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 od_start (u32 width, u32 height)
 
static void main_disp_path_setup (u32 width, u32 height, u32 pixel_clk)
 
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()

◆ disp_config_main_path_connection()

static void disp_config_main_path_connection ( void  )
static

◆ disp_config_main_path_mutex()

static void disp_config_main_path_mutex ( void  )
static

Definition at line 18 of file ddp.c.

References BIT, disp_mutex, disp_mutex_regs::en, disp_mutex_regs::mod, disp_mutex_regs::mutex, MUTEX_MOD_MAIN_PATH, disp_mutex_regs::sof, 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  pixel_clk 
)
static

Definition at line 35 of file ddp.c.

References color_start(), disp_config_main_path_connection(), disp_config_main_path_mutex(), disp_ufoe, height, KiB, od_start(), ovl_set_roi(), rdma_config(), disp_ufoe_regs::start, UFO_BYPASS, width, and write32().

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

References disp_clock_on().

Referenced by configure_display(), and display_startup().

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

◆ mtk_ddp_mode_set()

void mtk_ddp_mode_set ( const struct edid edid)

Definition at line 66 of file ddp.c.

References edid::framebuffer_bits_per_pixel, edid_mode::ha, main_disp_path_setup(), edid::mode, OVL_INFMT_RGBA8888, ovl_layer_config(), edid_mode::pixel_clock, rdma_start(), and edid_mode::va.

Referenced by configure_display(), and display_startup().

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

◆ od_start()

static void od_start ( u32  width,
u32  height 
)
static

Definition at line 27 of file ddp.c.

References disp_od_regs::cfg, disp_od, disp_od_regs::en, height, OD_RELAY_MODE, disp_od_regs::size, 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: