<br />

Added: HEAD

## **STRUCTS**

### OperatingPoint

*Defined in [fuchsia.hardware.amlogic.metadata/cpu.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.amlogic.metadata/cpu.fidl;l=24)*

| Field | Type | Description | Default |
|---|---|---|---|
| `freq_hz` | `uint32` |   | No default |
| `volt_uv` | `uint32` |   | No default |
| `pd_id` | `uint32` | Performance domain ID. | No default |

### PerformanceDomain

*Defined in [fuchsia.hardware.amlogic.metadata/cpu.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.amlogic.metadata/cpu.fidl;l=8)*

| Field | Type | Description | Default |
|---|---|---|---|
| `id` | `uint32` | A unique identifier that maps this performance domain to its operating points. | No default |
| `core_count` | `uint32` | Number of logical processors in this performance domain. | No default |
| `relative_performance` | `uint8` | An integer in the range \[0-255\] that defines the relative performance of this domain compared to others in the system. | No default |
| `name` | `string:32` | A friendly name for this performance domain. | No default |

### SpiConfig

*Defined in [fuchsia.hardware.amlogic.metadata/spi.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.amlogic.metadata/spi.fidl;l=11)*

| Field | Type | Description | Default |
|---|---|---|---|
| `bus_id` | `uint32` |   | No default |
| `cs` | `vector<uint32>:4` | The index of the GPIO to use for each SPI device. GPIOs are expected to be fragments named "gpio-cs-n", where n is the valued stored in `cs`. Alternatively, entries may be set to `CS_CLIENT_MANAGED` to indicate that the client driver will manage the cs GPIO for this chip (or that cs isn't needed). | No default |
| `clock_divider_register_value` | `uint32` | The clock divider register value (NOT the actual clock divider) to use for SCLK. If `use_enhanced_clock_mode` is true: - `clock_divider_register_value` is written to ENHANCE_CNTL, and must be in \[0, 255\]. - The bus clock frequency is: core clock / (2 \* (`clock_divider_register_value` + 1)) If `use_enhanced_clock_mode` is false: - `clock_divider_register_value` is written to CONREG, and must be in \[0, 7\]. - The bus clock frequency is: core clock / (2 \^ (`clock_divider_register_value` + 2)) | No default |
| `use_enhanced_clock_mode` | `bool` | If true, the SPI driver uses the enhanced clock mode instead of the regular clock mode. | No default |
| `client_reverses_dma_transfers` | `bool` | If true, the client is responsible for reversing the endianness of transfers when using DMA. | No default |
| `delay_control` | `uint32` | The value to use for the dlyctl field in TESTREG. The default value should work for low-speed peripherals. | No default |

### VoltageTableEntry

*Defined in [fuchsia.hardware.amlogic.metadata/power.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.amlogic.metadata/power.fidl;l=8)*

| Field | Type | Description | Default |
|---|---|---|---|
| `microvolt` | `uint32` |   | No default |
| `duty_cycle` | `uint32` |   | No default |

## **TABLES**

### AmlI2cDelayValues

*Defined in [fuchsia.hardware.amlogic.metadata/i2c.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.amlogic.metadata/i2c.fidl;l=9)*

One struct must be present for each bus managed by this driver.
Default register values are preserved if delay values are not set.

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `quarter_clock_delay` | `uint16` |   |
| ### 2 | `clock_low_delay` | `uint16` |   |

### CpuMetadata

*Defined in [fuchsia.hardware.amlogic.metadata/cpu.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.amlogic.metadata/cpu.fidl;l=34)*

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `performance_domains` | `vector<https://fuchsia.dev/reference/fidl/fuchsia.hardware.amlogic.metadata#PerformanceDomain>` |   |
| ### 2 | `operating_points` | `vector<https://fuchsia.dev/reference/fidl/fuchsia.hardware.amlogic.metadata#OperatingPoint>` |   |

### PowerMetadata

*Defined in [fuchsia.hardware.amlogic.metadata/power.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.amlogic.metadata/power.fidl;l=14)*

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `voltage_table` | `vector<https://fuchsia.dev/reference/fidl/fuchsia.hardware.amlogic.metadata#VoltageTableEntry>` |   |
| ### 2 | `voltage_pwm_period` | `https://fuchsia.dev/reference/zx//https://fuchsia.dev/reference/zx#Duration` |   |

## **CONSTANTS**

| Name | Value | Type | Description |
|---|---|---|---|
| [CS_CLIENT_MANAGED](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.amlogic.metadata/spi.fidl;l=6) | `4294967295` | `uint32` |   |
| [DEFAULT_DELAY_CONTROL](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.amlogic.metadata/spi.fidl;l=7) | `21` | `uint32` |   |
| [MAX_CS_COUNT](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.amlogic.metadata/spi.fidl;l=8) | `4` | `uint32` |   |
| [MAX_PERFORMANCE_DOMAIN_NAME_LENGTH](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.amlogic.metadata/cpu.fidl;l=6) | `32` | `uint32` |   |