class Clock

Defined at line 22 of file ../../src/graphics/display/drivers/amlogic-display/clock.h

Public Methods

zx::result<std::unique_ptr<Clock>> Create (fidl::UnownedClientEnd<fuchsia_hardware_platform_device::Device> platform_device, bool already_enabled)

Factory method intended for production use.

`platform_device` must be valid.

Creating a Clock instance doesn't change the hardware state, and is

therefore safe to use when adopting a bootloader initialized device.

Defined at line 522 of file ../../src/graphics/display/drivers/amlogic-display/clock.cc

void Clock (fdf::MmioBuffer vpu_mmio, fdf::MmioBuffer hhi_mmio, bool clock_enabled)

Production code should prefer using the `Create()` factory method.

`vpu_mmio` is the VPU MMIO register region. It must be a valid MMIO buffer.

`hhi_mmio` is the HHI (HIU) MMIO register region. It must be a valid MMIO

buffer.

The VPU and HIU register regions are defined in Section 8.1 "Memory Map"

of the AMLogic A311D datasheet.

Defined at line 29 of file ../../src/graphics/display/drivers/amlogic-display/clock.cc

int64_t GetBitrate ()

This is only safe to call when the clock is Enable'd.

Defined at line 51 of file ../../src/graphics/display/drivers/amlogic-display/clock.h

zx::result<> Enable (const PanelConfig & panel_config)

Defined at line 240 of file ../../src/graphics/display/drivers/amlogic-display/clock.cc

void Disable ()

Defined at line 215 of file ../../src/graphics/display/drivers/amlogic-display/clock.cc

void SetVideoOn (bool on)

Defined at line 519 of file ../../src/graphics/display/drivers/amlogic-display/clock.cc

LcdTiming CalculateLcdTiming (const display::DisplayTiming & display_timing)

static

Defined at line 35 of file ../../src/graphics/display/drivers/amlogic-display/clock.cc

zx::result<HdmiPllConfigForMipiDsi> GenerateHPLL (int64_t pixel_clock_frequency_hz, int64_t maximum_per_data_lane_bit_per_second)

This function calculates the required pll configurations needed to generate

the desired lcd clock

Defined at line 110 of file ../../src/graphics/display/drivers/amlogic-display/clock.cc