Namespaces

Enumerations

enum DpiColorComponentMapping
Name Value
k16BitR5G6B5Config1 0b0000
k16BitR5G6B5Config2 0b0001
k16BitR5G6B5Config3 0b0010
k18BitR6G6B6Config1 0b0011
k18BitR6G6B6Config2 0b0100
k24BitR8G8B8 0b0101
k20BitYcbcr422 0b0110
k24BitYcbcr422 0b0111
k16BitYcbcr422 0b1000
k30BitR10G10B10 0b1001
k36BitR12G12B12 0b1010
k12BitYcbcr420 0b1011
kDsc24Compressed 0b1100

Defines the mapping between RGB / YCbCr components and the pins on the DPI

interface.

The mapping between color components and DPI interface pins is documented

in DSI Host Databook, Section 2.3.2 "Enabling DPI", Figure 2-2 "Location of

Color Components in an Extension of DPI-2 Pixel Interface", page 42.

The enum values are used by the DPI_COLOR_CODING register fields to

distinguish the DPI color formats:

DSI Host Databook, Section 5.1.5 "DPI_COLOR_CODING", page 195.

Defined at line 28 of file ../../src/graphics/display/lib/designware-dsi/dpi-interface-config.h

Records

Functions

  • int32_t DphyLaneByteRateToDpiPixelRateRatio (int64_t dphy_data_lane_bytes_per_second, int64_t dpi_pixel_rate_hz)

    The ratio of MIPI D-PHY data lane byte transmission rate (bytes per

    second) to the MIPI DPI pixel rate (Hz).

    The DPI pixel rate must be divisble by the D-PHY data lane byte transmission

    rate, and the quotient must be

    >= kMinDphyLaneByteRateToDpiPixelClockFrequencyRatio and

    <

    = kMaxDphyLaneByteRateToDpiPixelClockFrequencyRatio.

    Defined at line 31 of file ../../src/graphics/display/lib/designware-dsi/dpi-video-timing.h

  • int32_t DpiPixelToDphyLaneByteClockCycle (int32_t pixels, int64_t dpi_pixel_rate_hz, int64_t dphy_data_lane_bytes_per_second)

    Amount of time it takes to transmit a number of pixels across the DPI

    interface between the display engine frontend and the DesignWare DSI

    host controller.

    The result is expressed in D-PHY lane byte clock cycles, which is the

    number of bytes that can be transmitted on a D-PHY data lane in High Speed

    mode.

    `pixels` must be >= 0 and

    <

    = 2^23 - 1.

    The DPI pixel rate (Hz) must be divisble by the D-PHY data lane byte

    transmission rate (bytes per second), and the quotient must be

    >= kMinDphyLaneByteRateToDpiPixelClockFrequencyRatio and

    <

    = kMaxDphyLaneByteRateToDpiPixelClockFrequencyRatio.

    Defined at line 61 of file ../../src/graphics/display/lib/designware-dsi/dpi-video-timing.h

  • bool IsValidDpiVideoTiming (const display::DisplayTiming & timingint64_t dphy_data_lane_bytes_per_second)

    Returns whether the given `timing` is valid for the DesignWare DSI Host

    Controller's DPI interface input when the D-PHY the Controller connects

    to is configured to transmit at `dphy_data_lane_bytes_per_second` in High

    Speed mode.

    Defined at line 128 of file ../../src/graphics/display/lib/designware-dsi/dpi-video-timing.h

Variables

const int kMinSupportedDphyDataLaneCount

Defined at line 18 of file ../../src/graphics/display/lib/designware-dsi/dphy-interface-config.h

const int32_t kMinDphyLaneByteRateToDpiPixelRateRatio

Defined at line 21 of file ../../src/graphics/display/lib/designware-dsi/dpi-video-timing.h

const int kMaxSupportedDphyDataLaneCount

Defined at line 22 of file ../../src/graphics/display/lib/designware-dsi/dphy-interface-config.h

const int32_t kMaxDphyLaneByteRateToDpiPixelRateRatio

Defined at line 22 of file ../../src/graphics/display/lib/designware-dsi/dpi-video-timing.h

const int32_t kMaxHighSpeedByteClockToEscapeClockFrequencyRatio

Defined at line 26 of file ../../src/graphics/display/lib/designware-dsi/dphy-interface-config.h

const int32_t kMinPossibleMaxDataLaneHsToLpTransitionDurationLaneByteClockCycles

Defined at line 30 of file ../../src/graphics/display/lib/designware-dsi/dphy-interface-config.h

const int32_t kMaxPossibleMaxDataLaneHsToLpTransitionDurationLaneByteClockCycles

Defined at line 31 of file ../../src/graphics/display/lib/designware-dsi/dphy-interface-config.h

const int32_t kMinPossibleMaxDataLaneLpToHsTransitionDurationLaneByteClockCycles

Defined at line 35 of file ../../src/graphics/display/lib/designware-dsi/dphy-interface-config.h

const int32_t kMaxPossibleMaxDataLaneLpToHsTransitionDurationLaneByteClockCycles

Defined at line 36 of file ../../src/graphics/display/lib/designware-dsi/dphy-interface-config.h

const int32_t kMinPossibleMaxClockLaneHsToLpTransitionDurationLaneByteClockCycles

Defined at line 40 of file ../../src/graphics/display/lib/designware-dsi/dphy-interface-config.h

const int32_t kMaxPossibleMaxClockLaneHsToLpTransitionDurationLaneByteClockCycles

Defined at line 41 of file ../../src/graphics/display/lib/designware-dsi/dphy-interface-config.h

const int32_t kMinPossibleMaxClockLaneLpToHsTransitionDurationLaneByteClockCycles

Defined at line 45 of file ../../src/graphics/display/lib/designware-dsi/dphy-interface-config.h

const int32_t kMaxPossibleMaxClockLaneLpToHsTransitionDurationLaneByteClockCycles

Defined at line 46 of file ../../src/graphics/display/lib/designware-dsi/dphy-interface-config.h

const int32_t kMaxHorizontalSyncWidthPx

Defined at line 71 of file ../../src/graphics/display/lib/designware-dsi/dpi-video-timing.h

const int32_t kMaxHorizontalBackPorchPx

Defined at line 72 of file ../../src/graphics/display/lib/designware-dsi/dpi-video-timing.h

const int32_t kMaxHorizontalTotalPx

Defined at line 73 of file ../../src/graphics/display/lib/designware-dsi/dpi-video-timing.h

const int32_t kMaxPossibleMaxVerticalBlankEscapeModeCommandSizeBytes

Defined at line 75 of file ../../src/graphics/display/lib/designware-dsi/dpi-interface-config.h

const int32_t kMaxPossibleMaxVerticalActiveEscapeModeCommandSizeBytes

Defined at line 79 of file ../../src/graphics/display/lib/designware-dsi/dpi-interface-config.h

const int32_t kMaxHorizontalSyncTimeLaneByteClockCycles

Defined at line 80 of file ../../src/graphics/display/lib/designware-dsi/dpi-video-timing.h

const int32_t kMaxHorizontalBackPorchTimeLaneByteClockCycles

Defined at line 87 of file ../../src/graphics/display/lib/designware-dsi/dpi-video-timing.h

const int32_t kMaxHorizontalTotalTimeLaneByteClockCycles

Defined at line 94 of file ../../src/graphics/display/lib/designware-dsi/dpi-video-timing.h

const int32_t kMaxVerticalActiveLines

Defined at line 101 of file ../../src/graphics/display/lib/designware-dsi/dpi-video-timing.h

const int32_t kMaxVerticalFrontPorchLines

Defined at line 108 of file ../../src/graphics/display/lib/designware-dsi/dpi-video-timing.h

const int32_t kMaxVerticalSyncWidthLines

Defined at line 115 of file ../../src/graphics/display/lib/designware-dsi/dpi-video-timing.h

const int32_t kMaxVerticalBackPorchLines

Defined at line 122 of file ../../src/graphics/display/lib/designware-dsi/dpi-video-timing.h