coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
dsi.h File Reference
#include <soc/dsi_common.h>
#include <types.h>
Include dependency graph for dsi.h:

Go to the source code of this file.

Data Structures

struct  mipi_tx_regs
 

Macros

#define MTK_DSI_MIPI_RATIO_NUMERATOR   100
 
#define MTK_DSI_MIPI_RATIO_DENOMINATOR   100
 
#define MTK_DSI_DATA_RATE_MIN_MHZ   125
 
#define MTK_DSI_HAVE_SIZE_CON   1
 
#define PIXEL_STREAM_CUSTOM_HEADER   0xb
 
#define DSI_CK_CKMODE_EN   BIT(0)
 
#define DSI_SW_CTL_EN   BIT(0)
 
#define AD_DSI_PLL_SDM_PWR_ON   BIT(0)
 
#define AD_DSI_PLL_SDM_ISO_EN   BIT(1)
 
#define RG_DSI_PLL_EN   BIT(4)
 
#define RG_DSI_PLL_POSDIV   (0x7 << 8)
 

Functions

 check_member (mipi_tx_regs, pll_con4, 0x3c)
 
 check_member (mipi_tx_regs, d3_sw_ctl_en, 0x544)
 

Variables

static struct mipi_tx_regs *const mipi_tx = (void *)MIPITX_BASE
 

Macro Definition Documentation

◆ AD_DSI_PLL_SDM_ISO_EN

#define AD_DSI_PLL_SDM_ISO_EN   BIT(1)

Definition at line 51 of file dsi.h.

◆ AD_DSI_PLL_SDM_PWR_ON

#define AD_DSI_PLL_SDM_PWR_ON   BIT(0)

Definition at line 50 of file dsi.h.

◆ DSI_CK_CKMODE_EN

#define DSI_CK_CKMODE_EN   BIT(0)

Definition at line 48 of file dsi.h.

◆ DSI_SW_CTL_EN

#define DSI_SW_CTL_EN   BIT(0)

Definition at line 49 of file dsi.h.

◆ MTK_DSI_DATA_RATE_MIN_MHZ

#define MTK_DSI_DATA_RATE_MIN_MHZ   125

Definition at line 12 of file dsi.h.

◆ MTK_DSI_HAVE_SIZE_CON

#define MTK_DSI_HAVE_SIZE_CON   1

Definition at line 13 of file dsi.h.

◆ MTK_DSI_MIPI_RATIO_DENOMINATOR

#define MTK_DSI_MIPI_RATIO_DENOMINATOR   100

Definition at line 11 of file dsi.h.

◆ MTK_DSI_MIPI_RATIO_NUMERATOR

#define MTK_DSI_MIPI_RATIO_NUMERATOR   100

Definition at line 10 of file dsi.h.

◆ PIXEL_STREAM_CUSTOM_HEADER

#define PIXEL_STREAM_CUSTOM_HEADER   0xb

Definition at line 14 of file dsi.h.

◆ RG_DSI_PLL_EN

#define RG_DSI_PLL_EN   BIT(4)

Definition at line 53 of file dsi.h.

◆ RG_DSI_PLL_POSDIV

#define RG_DSI_PLL_POSDIV   (0x7 << 8)

Definition at line 54 of file dsi.h.

Function Documentation

◆ check_member() [1/2]

check_member ( mipi_tx_regs  ,
d3_sw_ctl_en  ,
0x544   
)

◆ check_member() [2/2]

check_member ( mipi_tx_regs  ,
pll_con4  ,
0x3c   
)

Variable Documentation

◆ mipi_tx

struct mipi_tx_regs* const mipi_tx = (void *)MIPITX_BASE
static

Definition at line 45 of file dsi.h.

Referenced by mtk_dsi_configure_mipi_tx().