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.

Macros

#define MERGE_MODE   6
 
#define MERGE_SWAP   0
 

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 ovl_layer_gclast_en (u32 idx)
 
static void ovl_layer_output_clamp_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 dither_config (u32 width, u32 height)
 
static void dsc_config (void)
 
static void merge_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)
 

Macro Definition Documentation

◆ MERGE_MODE

#define MERGE_MODE   6

Definition at line 9 of file ddp.c.

◆ MERGE_SWAP

#define MERGE_SWAP   0

Definition at line 10 of file ddp.c.

Function Documentation

◆ aal_config()

static void aal_config ( u32  width,
u32  height 
)
static

Definition at line 67 of file ddp.c.

References clrsetbits32, disp_aal, height, PQ_EN, PQ_ENGINE_EN, PQ_RELAY_MODE, 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 58 of file ddp.c.

References clrsetbits32, disp_ccorr, height, PQ_EN, PQ_ENGINE_EN, PQ_RELAY_MODE, 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 138 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 27 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_DP_INTF0, 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 86 of file ddp.c.

References disp_dither, height, PQ_EN, PQ_RELAY_MODE, 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:

◆ dsc_config()

static void dsc_config ( void  )
static

Definition at line 94 of file ddp.c.

References disp_dsc, DISP_DSC0_CON, 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 77 of file ddp.c.

References disp_gamma, height, PQ_EN, PQ_RELAY_MODE, 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

◆ merge_config()

static void merge_config ( u32  width,
u32  height 
)
static

Definition at line 102 of file ddp.c.

References disp_merge, height, MERGE_MODE, MERGE_SWAP, 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:

◆ mtk_ddp_init()

void mtk_ddp_init ( void  )

Definition at line 145 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()

◆ ovl_bgclr_in_sel()

static void ovl_bgclr_in_sel ( u32  idx)
static

Definition at line 37 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_gclast_en()

static void ovl_layer_gclast_en ( u32  idx)
static

Definition at line 47 of file ddp.c.

References BIT, disp_ovl, and setbits32.

Referenced by main_disp_path_setup().

Here is the caller graph for this function:

◆ ovl_layer_output_clamp_en()

static void ovl_layer_output_clamp_en ( u32  idx)
static

Definition at line 53 of file ddp.c.

References BIT, disp_ovl, and setbits32.

Referenced by main_disp_path_setup().

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 42 of file ddp.c.

References BIT, disp_ovl, and setbits32.

Referenced by main_disp_path_setup().

Here is the caller graph for this function: