coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
ddp.c File Reference
#include <console/console.h>
#include <device/mmio.h>
#include <edid.h>
#include <soc/addressmap.h>
#include <soc/ddp.h>
Include dependency graph for ddp.c:

Go to the source code of this file.

Functions

static void disp_config_main_path_connection (void)
 
static void disp_config_main_path_mutex (void)
 
static void ovl_bgclr_in_sel (u32 idx)
 
static void ovl_layer_smi_id_en (u32 idx)
 
static void ccorr_config (u32 width, u32 height)
 
static void aal_config (u32 width, u32 height)
 
static void gamma_config (u32 width, u32 height)
 
static void postmask_config (u32 width, u32 height)
 
static void dither_config (u32 width, u32 height)
 
static void main_disp_path_setup (u32 width, u32 height, u32 vrefresh)
 
static void disp_clock_on (void)
 
void mtk_ddp_init (void)
 
void mtk_ddp_mode_set (const struct edid *edid)
 

Function Documentation

◆ aal_config()

static void aal_config ( u32  width,
u32  height 
)
static

Definition at line 65 of file ddp.c.

References BIOS_INFO, clrbits32, disp_aal, height, PQ_EN, PQ_ENGINE_EN, PQ_RELAY_MODE, printk, setbits32, width, and write32().

Referenced by main_disp_path_setup().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ccorr_config()

static void ccorr_config ( u32  width,
u32  height 
)
static

Definition at line 45 of file ddp.c.

References BIOS_INFO, clrbits32, disp_ccorr, height, PQ_EN, PQ_ENGINE_EN, PQ_RELAY_MODE, printk, setbits32, width, and write32().

Referenced by main_disp_path_setup().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ disp_clock_on()

static void disp_clock_on ( void  )
static

Definition at line 161 of file ddp.c.

References CG_CON0_DISP_ALL, CG_CON1_DISP_ALL, CG_CON2_DISP_ALL, clrbits32, mmsys_cfg, mmsys_cfg_regs::mmsys_cg_con0, mmsys_cfg_regs::mmsys_cg_con1, and mmsys_cfg_regs::mmsys_cg_con2.

Referenced by mtk_ddp_init().

Here is the caller graph for this function:

◆ disp_config_main_path_connection()

◆ disp_config_main_path_mutex()

static void disp_config_main_path_mutex ( void  )
static

Definition at line 23 of file ddp.c.

References BIT, disp_mutex_regs::ctl, disp_mutex, disp_mutex_regs::en, disp_mutex_regs::mod, disp_mutex_regs::mutex, MUTEX_MOD_MAIN_PATH, MUTEX_SOF_DSI0, and write32().

Referenced by main_disp_path_setup().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dither_config()

static void dither_config ( u32  width,
u32  height 
)
static

Definition at line 120 of file ddp.c.

References BIOS_INFO, clrbits32, disp_dither, height, PQ_EN, PQ_RELAY_MODE, printk, setbits32, width, and write32().

Referenced by main_disp_path_setup().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ gamma_config()

static void gamma_config ( u32  width,
u32  height 
)
static

Definition at line 86 of file ddp.c.

References BIOS_INFO, clrbits32, disp_gamma, height, PQ_EN, PQ_RELAY_MODE, printk, setbits32, width, and write32().

Referenced by main_disp_path_setup().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ main_disp_path_setup()

static void main_disp_path_setup ( u32  width,
u32  height,
u32  vrefresh 
)
static

Definition at line 138 of file ddp.c.

References aal_config(), BIOS_INFO, ccorr_config(), color_start(), disp_config_main_path_connection(), disp_config_main_path_mutex(), dither_config(), gamma_config(), height, KiB, MAIN_PATH_OVL_NR, ovl_layer_smi_id_en(), ovl_set_roi(), postmask_config(), printk, rdma_config(), and width.

Referenced by mtk_ddp_mode_set().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mtk_ddp_init()

void mtk_ddp_init ( void  )

Definition at line 170 of file ddp.c.

References disp_clock_on(), SMI_LARB0, SMI_LARB_PORT_L0_OVL_RDMA0, and write32().

Here is the call graph for this function:

◆ mtk_ddp_mode_set()

void mtk_ddp_mode_set ( const struct edid edid)

◆ ovl_bgclr_in_sel()

static void ovl_bgclr_in_sel ( u32  idx)
static

Definition at line 33 of file ddp.c.

References BIT, disp_ovl, and setbits32.

Referenced by mtk_ddp_mode_set().

Here is the caller graph for this function:

◆ ovl_layer_smi_id_en()

static void ovl_layer_smi_id_en ( u32  idx)
static

Definition at line 38 of file ddp.c.

References BIOS_INFO, BIT, disp_ovl, printk, and setbits32.

Referenced by main_disp_path_setup().

Here is the caller graph for this function:

◆ postmask_config()

static void postmask_config ( u32  width,
u32  height 
)
static

Definition at line 103 of file ddp.c.

References BIOS_INFO, clrbits32, disp_postmask, height, PQ_EN, PQ_RELAY_MODE, printk, setbits32, width, and write32().

Referenced by main_disp_path_setup().

Here is the call graph for this function:
Here is the caller graph for this function: