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.

Macros

#define RDMA_FIFO_PSEUDO_SIZE(bytes)   (((bytes) / 16) << 16)
 
#define RDMA_OUTPUT_VALID_FIFO_THRESHOLD(bytes)   ((bytes) / 16)
 

Functions

void ovl_set_roi (u32 idx, u32 width, u32 height, u32 color)
 
void rdma_start (void)
 
void rdma_config (u32 width, u32 height, u32 pixel_clk, u32 fifo_size)
 
void color_start (u32 width, u32 height)
 
void ovl_layer_config (u32 fmt, u32 bpp, u32 width, u32 height)
 

Macro Definition Documentation

◆ RDMA_FIFO_PSEUDO_SIZE

#define RDMA_FIFO_PSEUDO_SIZE (   bytes)    (((bytes) / 16) << 16)

Definition at line 9 of file ddp.c.

◆ RDMA_OUTPUT_VALID_FIFO_THRESHOLD

#define RDMA_OUTPUT_VALID_FIFO_THRESHOLD (   bytes)    ((bytes) / 16)

Definition at line 10 of file ddp.c.

Function Documentation

◆ color_start()

void color_start ( u32  width,
u32  height 
)

Definition at line 47 of file ddp.c.

References BIT, disp_color_regs::cfg_main, COLOR_BYPASS_ALL, COLOR_SEQ_SEL, disp_color0, height, disp_color_regs::height, disp_color_regs::start, width, disp_color_regs::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:

◆ ovl_layer_config()

void ovl_layer_config ( u32  fmt,
u32  bpp,
u32  width,
u32  height 
)

Definition at line 56 of file ddp.c.

References BIT, disp_ovl_regs::con, disp_ovl_regs::ctrl, disp_ovl, height, disp_ovl_regs::layer, disp_ovl_regs::mem_gmc_setting, disp_ovl_regs::pitch, disp_ovl_regs::rdma, RDMA_MEM_GMC, setbits32, disp_ovl_regs::src_con, disp_ovl_regs::src_size, 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:

◆ ovl_set_roi()

void ovl_set_roi ( u32  idx,
u32  width,
u32  height,
u32  color 
)

Definition at line 12 of file ddp.c.

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

◆ rdma_config()

void rdma_config ( u32  width,
u32  height,
u32  pixel_clk,
u32  fifo_size 
)

Definition at line 23 of file ddp.c.

References clrsetbits32, disp_rdma0, disp_rdma_regs::fifo_con, height, RDMA_FIFO_PSEUDO_SIZE, RDMA_FIFO_UNDERFLOW_EN, RDMA_OUTPUT_VALID_FIFO_THRESHOLD, disp_rdma_regs::size_con_0, disp_rdma_regs::size_con_1, 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:

◆ rdma_start()

void rdma_start ( void  )

Definition at line 18 of file ddp.c.

References disp_rdma0, disp_rdma_regs::global_con, RDMA_ENGINE_EN, and setbits32.

Referenced by mtk_ddp_mode_set().

Here is the caller graph for this function: