coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
ddp.c File Reference
#include <device/mmio.h>
#include <edid.h>
#include <soc/addressmap.h>
#include <soc/ddp.h>
#include <types.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 enable_pq (struct disp_pq_regs *const regs, u32 width, u32 height, int enable_relay)
 
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

◆ disp_clock_on()

static void disp_clock_on ( void  )
static

Definition at line 61 of file ddp.c.

References CG_CON0_DISP_ALL, CG_CON1_DISP_DSI0, CG_CON1_DISP_DSI0_INTERFACE, clrbits32, mmsys_cfg, mmsys_cfg_regs::mmsys_cg_con0, and mmsys_cfg_regs::mmsys_cg_con1.

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 19 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:

◆ enable_pq()

static void enable_pq ( struct disp_pq_regs *const  regs,
u32  width,
u32  height,
int  enable_relay 
)
static

Definition at line 34 of file ddp.c.

References height, PQ_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:

◆ main_disp_path_setup()

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

Definition at line 43 of file ddp.c.

References color_start(), disp_aal, disp_ccorr, disp_config_main_path_connection(), disp_config_main_path_mutex(), disp_dither, disp_gamma, enable_pq(), height, KiB, MAIN_PATH_OVL_NR, ovl_set_roi(), 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 69 of file ddp.c.

References disp_clock_on(), SMI_LARB0, SMI_LARB_NON_SEC_CON, 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 29 of file ddp.c.

References BIT, disp_ovl, and setbits32.

Referenced by mtk_ddp_mode_set().

Here is the caller graph for this function: