coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
dp-reg.c File Reference
#include <device/mmio.h>
#include <console/console.h>
#include <delay.h>
#include <soc/clk.h>
#include <soc/cpu.h>
#include <soc/dp.h>
#include <soc/dp-core.h>
#include <soc/fimd.h>
#include <soc/periph.h>
#include <timer.h>
Include dependency graph for dp-reg.c:

Go to the source code of this file.

Functions

void s5p_dp_reset (struct s5p_dp_device *dp)
 
unsigned int s5p_dp_get_pll_lock_status (struct s5p_dp_device *dp)
 
int s5p_dp_init_analog_func (struct s5p_dp_device *dp)
 
void s5p_dp_init_aux (struct s5p_dp_device *dp)
 
int s5p_dp_start_aux_transaction (struct s5p_dp_device *dp)
 
int s5p_dp_write_byte_to_dpcd (struct s5p_dp_device *dp, unsigned int reg_addr, unsigned char data)
 
int s5p_dp_read_byte_from_dpcd (struct s5p_dp_device *dp, unsigned int reg_addr, unsigned char *data)
 
void s5p_dp_init_video (struct s5p_dp_device *dp)
 
void s5p_dp_set_video_color_format (struct s5p_dp_device *dp, unsigned int color_depth, unsigned int color_space, unsigned int dynamic_range, unsigned int coeff)
 
int s5p_dp_is_slave_video_stream_clock_on (struct s5p_dp_device *dp)
 
void s5p_dp_set_video_cr_mn (struct s5p_dp_device *dp, enum clock_recovery_m_value_type type, unsigned int m_value, unsigned int n_value)
 
void s5p_dp_enable_video_master (struct s5p_dp_device *dp)
 
int s5p_dp_is_video_stream_on (struct s5p_dp_device *dp)
 
void s5p_dp_config_video_slave_mode (struct s5p_dp_device *dp, struct video_info *video_info)
 
void s5p_dp_wait_hw_link_training_done (struct s5p_dp_device *dp)
 

Function Documentation

◆ s5p_dp_config_video_slave_mode()

void s5p_dp_config_video_slave_mode ( struct s5p_dp_device dp,
struct video_info video_info 
)

◆ s5p_dp_enable_video_master()

void s5p_dp_enable_video_master ( struct s5p_dp_device dp)

Definition at line 404 of file dp-reg.c.

References base, s5p_dp_device::base, read32(), VIDEO_MODE_MASK, VIDEO_MODE_SLAVE_MODE, and write32().

Referenced by s5p_dp_config_video().

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

◆ s5p_dp_get_pll_lock_status()

unsigned int s5p_dp_get_pll_lock_status ( struct s5p_dp_device dp)

Definition at line 92 of file dp-reg.c.

References s5p_dp_device::base, exynos5_dp::dp_debug_ctl, PLL_LOCK, PLL_LOCKED, PLL_UNLOCKED, and read32().

Referenced by s5p_dp_config_video(), s5p_dp_hw_link_training(), and s5p_dp_init_analog_func().

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

◆ s5p_dp_init_analog_func()

int s5p_dp_init_analog_func ( struct s5p_dp_device dp)

◆ s5p_dp_init_aux()

void s5p_dp_init_aux ( struct s5p_dp_device dp)

◆ s5p_dp_init_video()

void s5p_dp_init_video ( struct s5p_dp_device dp)

Definition at line 297 of file dp-reg.c.

References base, s5p_dp_device::base, CHA_CRI_MASK, CHA_CRI_SHIFT, CHA_CTRL, VID_CLK_CHG, VID_FORMAT_CHG, VSYNC_DET, and write32().

Referenced by dp_controller_init().

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

◆ s5p_dp_is_slave_video_stream_clock_on()

int s5p_dp_is_slave_video_stream_clock_on ( struct s5p_dp_device dp)

Definition at line 341 of file dp-reg.c.

References base, s5p_dp_device::base, BIOS_DEBUG, CHA_STA, DET_STA, printk, read32(), and write32().

Referenced by s5p_dp_config_video().

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

◆ s5p_dp_is_video_stream_on()

int s5p_dp_is_video_stream_on ( struct s5p_dp_device dp)

Definition at line 415 of file dp-reg.c.

References base, s5p_dp_device::base, BIOS_DEBUG, printk, read32(), stopwatch_expired(), stopwatch_init_msecs_expire(), STREAM_ON_TIMEOUT, VSYNC_DET, and write32().

Referenced by s5p_dp_config_video().

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

◆ s5p_dp_read_byte_from_dpcd()

◆ s5p_dp_reset()

◆ s5p_dp_set_video_color_format()

void s5p_dp_set_video_color_format ( struct s5p_dp_device dp,
unsigned int  color_depth,
unsigned int  color_space,
unsigned int  dynamic_range,
unsigned int  coeff 
)

Definition at line 316 of file dp-reg.c.

References base, s5p_dp_device::base, IN_BPC_SHIFT, IN_COLOR_F_SHIFT, IN_D_RANGE_SHIFT, IN_YC_COEFFI_ITU601, IN_YC_COEFFI_ITU709, IN_YC_COEFFI_MASK, read32(), and write32().

Referenced by s5p_dp_config_video().

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

◆ s5p_dp_set_video_cr_mn()

void s5p_dp_set_video_cr_mn ( struct s5p_dp_device dp,
enum clock_recovery_m_value_type  type,
unsigned int  m_value,
unsigned int  n_value 
)

Definition at line 367 of file dp-reg.c.

References base, s5p_dp_device::base, clrbits32, FIX_M_VID, M_VID_0_VALUE_SHIFT, M_VID_1_VALUE_SHIFT, M_VID_2_VALUE_SHIFT, N_VID_0_VALUE_SHIFT, N_VID_1_VALUE_SHIFT, N_VID_2_VALUE_SHIFT, REGISTER_M, setbits32, type, and write32().

Referenced by s5p_dp_config_video().

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

◆ s5p_dp_start_aux_transaction()

int s5p_dp_start_aux_transaction ( struct s5p_dp_device dp)

Definition at line 165 of file dp-reg.c.

References AUX_EN, AUX_ERR, AUX_STATUS_MASK, base, s5p_dp_device::base, BIOS_ERR, printk, read32(), RPLY_RECEIV, setbits32, and write32().

Referenced by s5p_dp_read_byte_from_dpcd(), and s5p_dp_write_byte_to_dpcd().

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

◆ s5p_dp_wait_hw_link_training_done()

void s5p_dp_wait_hw_link_training_done ( struct s5p_dp_device dp)

Definition at line 472 of file dp-reg.c.

References base, s5p_dp_device::base, HW_TRAINING_EN, and read32().

Referenced by s5p_dp_hw_link_training().

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

◆ s5p_dp_write_byte_to_dpcd()

int s5p_dp_write_byte_to_dpcd ( struct s5p_dp_device dp,
unsigned int  reg_addr,
unsigned char  data 
)