fuchsia.hardware.amlogic.metadata

Added: HEAD

STRUCTS

OperatingPoint

Defined in fuchsia.hardware.amlogic.metadata/cpu.fidl

FieldTypeDescriptionDefault
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

FieldTypeDescriptionDefault
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

FieldTypeDescriptionDefault
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

FieldTypeDescriptionDefault
microvolt uint32 No default
duty_cycle uint32 No default

TABLES

AmlI2cDelayValues

Defined in fuchsia.hardware.amlogic.metadata/i2c.fidl

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

OrdinalFieldTypeDescription
quarter_clock_delay uint16
clock_low_delay uint16

CpuMetadata

Defined in fuchsia.hardware.amlogic.metadata/cpu.fidl

OrdinalFieldTypeDescription
performance_domains vector<PerformanceDomain>
operating_points vector<OperatingPoint>

PowerMetadata

Defined in fuchsia.hardware.amlogic.metadata/power.fidl

OrdinalFieldTypeDescription
voltage_table vector<VoltageTableEntry>
voltage_pwm_period zx/Duration

CONSTANTS

NameValueTypeDescription
CS_CLIENT_MANAGED 4294967295 uint32
DEFAULT_DELAY_CONTROL 21 uint32
MAX_CS_COUNT 4 uint32
MAX_PERFORMANCE_DOMAIN_NAME_LENGTH 32 uint32