5.5.6.3.1 Initialization

The Input Video interface captures the data and control signals from the LCD Controller (LCDC) and conveys them to the FIFO interfaces that transmit them to the DSI link. Two different streams of data are presented at the interface; video control signals and pixel data.

Depending on the interface color coding, the pixel data is disposed differently throughout the bus. Interface pixel color coding is shown in the table below:

Table 5-108. Location and Color Component In Input Video Interface
Order16-bit Config 116-bit Config 216-bit Config 318-bit Config 118-bit Config 224-bitDSC24
D23R[7]Byte1[7]
D22R[6]Byte1[6]
D21R[4]R[5]R[5]Byte1[5]
D20R[4]R[3]R[4]R[4]Byte1[4]
D19R[3]R[2]R[3]R[3]Byte1[3]
D18R[2]R[1]R[2]R[2]Byte1[2]
D17R[1]R[0]R[5]R[1]R[1]Byte1[1]
D16R[0]R[4]R[0]R[0]Byte1[0]
D15R[4]R[3]G[7]Byte2[7]
D14R[3]R[2]G[6]Byte2[6]
D13R[2]G[5]G[5]R[1]G[5]G[5]Byte2[5]
D12R[1]G[4]G[4]R[0]G[4]G[4]Byte2[4]
D11R[0]G[3]G[3]G[5]G[3]G[3]Byte2[3]
D10G[5]G[2]G[2]G[4]G[2]G[2]Byte2[2]
D9G[4]G[1]G[1]G[3]G[1]G[1]Byte2[1]
D8G[3]G[0]G[0]G[2]G[0]G[0]Byte2[0]
D7G[2]G[1]B[7]Byte3[7]
D6G[1]G[0]B[6]Byte3[6]
D5G[0]B[4]B[5]B[5]B[5]Byte3[5]
D4B[4]B[4]B[3]B[4]B[4]B[4]Byte3[4]
D3B[3]B[3]B[2]B[3]B[3]B[3]Byte3[3]
D2B[2]B[2]B[1]B[2]B[2]B[2]Byte3[2]
D1B[1]B[1]B[0]B[1]B[1]B[1]Byte3[1]
D0B[0]B[0]B[0]B[0]B[0]Byte3[0]

These configuration options are as follows:

  • Polarity control: All the control signals are programmable to change the polarity depending on the LCDC configuration.
  • After the controller reset, the input video interface waits for the first VSYNC active transition to start signal sampling, including pixel data, thus avoiding starting the transmission of the image data in the middle of a frame.
  • If the interface pixel color coding is 18 bits and the 18-bit loosely packed stream is disabled, the number of pixels programmed in the field VID_PKT_SIZE in the Video Mode Packet Size Configuration register (DSI_VID_PKT_SIZE) must be a multiple of four. This means that in this mode, the two LSBs in the configuration are always inferred as zero. The specification states that in this mode, the pixel line size should be a multiple of four.
  • To avoid FIFO underflows and overflows, the configured number of pixels is assumed to be received at all times. A set of bits in the DSI_VID_PKT_STATUS register report the status of the FIFOs and internal buffers associated with the input video interface support.
  • To keep the memory organized with respect to the packet scheduling, the number of pixels per packet parameter is used to separate the memory space of different video packets.

For Shutdown and Color mode signal transmission, the input video signaling must be active. Because of such constraints and for commands to be correctly transmitted, the first VSYNC active pulse should occur for command sampling and transmission. When shutting down the display, the input video must remain active for one frame after the command has been issued. This ensures that the commands are correctly transmitted before disabling the video generation at the input video interface.