coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <console/console.h>
#include <device/mmio.h>
#include <edid.h>
#include <soc/addressmap.h>
#include <soc/ddp.h>
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) |
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().
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().
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().
Definition at line 12 of file ddp.c.
References DISP_OVL0_TO_DISP_RDMA0, mmsys_cfg, mmsys_cfg_regs::mmsys_ovl_mout_en, mmsys_cfg_regs::mmsys_sel_in, mmsys_cfg_regs::mmsys_sel_out, SEL_IN_DP_INTF0_FROM_VPP_MERGE, SEL_IN_DSC_WRAP0_IN_FROM_DISP_DITHER0, SEL_IN_VPP_MERGE_FROM_DSC_WRAP0_OUT, SEL_OUT_DISP_DITHER0_TO_DSC_WRAP0_IN, SEL_OUT_DSC_WRAP0_OUT_TO_VPP_MERGE, SEL_OUT_VPP_MERGE_TO_DP_INTF0, and write32().
Referenced by main_disp_path_setup().
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().
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().
Definition at line 94 of file ddp.c.
References disp_dsc, DISP_DSC0_CON, and write32().
Referenced by main_disp_path_setup().
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().
Definition at line 114 of file ddp.c.
References aal_config(), ccorr_config(), color_start(), disp_config_main_path_connection(), disp_config_main_path_mutex(), dither_config(), dsc_config(), gamma_config(), height, KiB, MAIN_PATH_OVL_NR, merge_config(), ovl_layer_gclast_en(), ovl_layer_output_clamp_en(), ovl_layer_smi_id_en(), ovl_set_roi(), rdma_config(), and width.
Referenced by mtk_ddp_mode_set().
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().
Definition at line 145 of file ddp.c.
References disp_clock_on(), SMI_LARB0, SMI_LARB_PORT_L0_OVL_RDMA0, and write32().
Definition at line 153 of file ddp.c.
References BIOS_DEBUG, BIOS_WARNING, edid::framebuffer_bits_per_pixel, edid_mode::ha, edid_mode::hbl, height, main_disp_path_setup(), edid::mode, ovl_bgclr_in_sel(), OVL_INFMT_RGBA8888, ovl_layer_config(), edid_mode::pixel_clock, printk, rdma_start(), edid_mode::refresh, edid_mode::va, edid_mode::vbl, and width.