coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
dsi.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef SOC_MEDIATEK_MT8183_DSI_H
4 #define SOC_MEDIATEK_MT8183_DSI_H
5 
6 #include <soc/dsi_common.h>
7 #include <types.h>
8 
9 /* DSI features */
10 #define MTK_DSI_MIPI_RATIO_NUMERATOR 100
11 #define MTK_DSI_MIPI_RATIO_DENOMINATOR 100
12 #define MTK_DSI_DATA_RATE_MIN_MHZ 125
13 #define MTK_DSI_HAVE_SIZE_CON 1
14 #define PIXEL_STREAM_CUSTOM_HEADER 0xb
15 
16 /* MIPITX is SOC specific and cannot live in common. */
17 
18 /* MIPITX_REG */
19 struct mipi_tx_regs {
41 };
42 
43 check_member(mipi_tx_regs, pll_con4, 0x3c);
44 check_member(mipi_tx_regs, d3_sw_ctl_en, 0x544);
45 static struct mipi_tx_regs *const mipi_tx = (void *)MIPITX_BASE;
46 
47 /* Register values */
48 #define DSI_CK_CKMODE_EN BIT(0)
49 #define DSI_SW_CTL_EN BIT(0)
50 #define AD_DSI_PLL_SDM_PWR_ON BIT(0)
51 #define AD_DSI_PLL_SDM_ISO_EN BIT(1)
52 
53 #define RG_DSI_PLL_EN BIT(4)
54 #define RG_DSI_PLL_POSDIV (0x7 << 8)
55 
56 #endif
check_member(mipi_tx_regs, dsi_top_con, 0x40)
@ MIPITX_BASE
Definition: addressmap.h:41
static struct mipi_tx_regs *const mipi_tx
Definition: dsi.h:45
uint32_t u32
Definition: stdint.h:51
u32 d0_sw_ctl_en
Definition: dsi.h:32
u8 reserved0[40]
Definition: dsi.h:23
u32 d2_sw_ctl_en
Definition: dsi.h:30
u32 ck_sw_ctl_en
Definition: dsi.h:36
u32 ck_ckmode_en
Definition: dsi.h:34
u32 pll_con2
Definition: dsi.h:26
u32 d1_sw_ctl_en
Definition: dsi.h:38
u32 reserved3[63]
Definition: dsi.h:31
u32 reserved4[56]
Definition: dsi.h:33
u32 lane_con
Definition: dsi.h:21
u32 pll_pwr
Definition: dsi.h:23
u32 pll_con3
Definition: dsi.h:27
u8 reserved1[8]
Definition: dsi.h:26
u32 pll_con4
Definition: dsi.h:28
u32 pll_con1
Definition: dsi.h:25
u32 reserved7[63]
Definition: dsi.h:39
u32 pll_con0
Definition: dsi.h:24
u8 reserved2[4]
Definition: dsi.h:34
u32 reserved5[6]
Definition: dsi.h:35
u32 reserved6[63]
Definition: dsi.h:37
u32 d3_sw_ctl_en
Definition: dsi.h:40