Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
exynos_dp_reg.c File Reference
#include <linux/device.h>
#include <linux/io.h>
#include <linux/delay.h>
#include <video/exynos_dp.h>
#include "exynos_dp_core.h"
#include "exynos_dp_reg.h"

Go to the source code of this file.

Macros

#define COMMON_INT_MASK_1   (0)
 
#define COMMON_INT_MASK_2   (0)
 
#define COMMON_INT_MASK_3   (0)
 
#define COMMON_INT_MASK_4   (0)
 
#define INT_STA_MASK   (0)
 

Functions

void exynos_dp_enable_video_mute (struct exynos_dp_device *dp, bool enable)
 
void exynos_dp_stop_video (struct exynos_dp_device *dp)
 
void exynos_dp_lane_swap (struct exynos_dp_device *dp, bool enable)
 
void exynos_dp_init_analog_param (struct exynos_dp_device *dp)
 
void exynos_dp_init_interrupt (struct exynos_dp_device *dp)
 
void exynos_dp_reset (struct exynos_dp_device *dp)
 
void exynos_dp_swreset (struct exynos_dp_device *dp)
 
void exynos_dp_config_interrupt (struct exynos_dp_device *dp)
 
enum pll_status exynos_dp_get_pll_lock_status (struct exynos_dp_device *dp)
 
void exynos_dp_set_pll_power_down (struct exynos_dp_device *dp, bool enable)
 
void exynos_dp_set_analog_power_down (struct exynos_dp_device *dp, enum analog_power_block block, bool enable)
 
void exynos_dp_init_analog_func (struct exynos_dp_device *dp)
 
void exynos_dp_init_hpd (struct exynos_dp_device *dp)
 
void exynos_dp_reset_aux (struct exynos_dp_device *dp)
 
void exynos_dp_init_aux (struct exynos_dp_device *dp)
 
int exynos_dp_get_plug_in_status (struct exynos_dp_device *dp)
 
void exynos_dp_enable_sw_function (struct exynos_dp_device *dp)
 
int exynos_dp_start_aux_transaction (struct exynos_dp_device *dp)
 
int exynos_dp_write_byte_to_dpcd (struct exynos_dp_device *dp, unsigned int reg_addr, unsigned char data)
 
int exynos_dp_read_byte_from_dpcd (struct exynos_dp_device *dp, unsigned int reg_addr, unsigned char *data)
 
int exynos_dp_write_bytes_to_dpcd (struct exynos_dp_device *dp, unsigned int reg_addr, unsigned int count, unsigned char data[])
 
int exynos_dp_read_bytes_from_dpcd (struct exynos_dp_device *dp, unsigned int reg_addr, unsigned int count, unsigned char data[])
 
int exynos_dp_select_i2c_device (struct exynos_dp_device *dp, unsigned int device_addr, unsigned int reg_addr)
 
int exynos_dp_read_byte_from_i2c (struct exynos_dp_device *dp, unsigned int device_addr, unsigned int reg_addr, unsigned int *data)
 
int exynos_dp_read_bytes_from_i2c (struct exynos_dp_device *dp, unsigned int device_addr, unsigned int reg_addr, unsigned int count, unsigned char edid[])
 
void exynos_dp_set_link_bandwidth (struct exynos_dp_device *dp, u32 bwtype)
 
void exynos_dp_get_link_bandwidth (struct exynos_dp_device *dp, u32 *bwtype)
 
void exynos_dp_set_lane_count (struct exynos_dp_device *dp, u32 count)
 
void exynos_dp_get_lane_count (struct exynos_dp_device *dp, u32 *count)
 
void exynos_dp_enable_enhanced_mode (struct exynos_dp_device *dp, bool enable)
 
void exynos_dp_set_training_pattern (struct exynos_dp_device *dp, enum pattern_set pattern)
 
void exynos_dp_set_lane0_pre_emphasis (struct exynos_dp_device *dp, u32 level)
 
void exynos_dp_set_lane1_pre_emphasis (struct exynos_dp_device *dp, u32 level)
 
void exynos_dp_set_lane2_pre_emphasis (struct exynos_dp_device *dp, u32 level)
 
void exynos_dp_set_lane3_pre_emphasis (struct exynos_dp_device *dp, u32 level)
 
void exynos_dp_set_lane0_link_training (struct exynos_dp_device *dp, u32 training_lane)
 
void exynos_dp_set_lane1_link_training (struct exynos_dp_device *dp, u32 training_lane)
 
void exynos_dp_set_lane2_link_training (struct exynos_dp_device *dp, u32 training_lane)
 
void exynos_dp_set_lane3_link_training (struct exynos_dp_device *dp, u32 training_lane)
 
u32 exynos_dp_get_lane0_link_training (struct exynos_dp_device *dp)
 
u32 exynos_dp_get_lane1_link_training (struct exynos_dp_device *dp)
 
u32 exynos_dp_get_lane2_link_training (struct exynos_dp_device *dp)
 
u32 exynos_dp_get_lane3_link_training (struct exynos_dp_device *dp)
 
void exynos_dp_reset_macro (struct exynos_dp_device *dp)
 
void exynos_dp_init_video (struct exynos_dp_device *dp)
 
void exynos_dp_set_video_color_format (struct exynos_dp_device *dp, u32 color_depth, u32 color_space, u32 dynamic_range, u32 ycbcr_coeff)
 
int exynos_dp_is_slave_video_stream_clock_on (struct exynos_dp_device *dp)
 
void exynos_dp_set_video_cr_mn (struct exynos_dp_device *dp, enum clock_recovery_m_value_type type, u32 m_value, u32 n_value)
 
void exynos_dp_set_video_timing_mode (struct exynos_dp_device *dp, u32 type)
 
void exynos_dp_enable_video_master (struct exynos_dp_device *dp, bool enable)
 
void exynos_dp_start_video (struct exynos_dp_device *dp)
 
int exynos_dp_is_video_stream_on (struct exynos_dp_device *dp)
 
void exynos_dp_config_video_slave_mode (struct exynos_dp_device *dp, struct video_info *video_info)
 
void exynos_dp_enable_scrambling (struct exynos_dp_device *dp)
 
void exynos_dp_disable_scrambling (struct exynos_dp_device *dp)
 

Macro Definition Documentation

#define COMMON_INT_MASK_1   (0)

Definition at line 22 of file exynos_dp_reg.c.

#define COMMON_INT_MASK_2   (0)

Definition at line 23 of file exynos_dp_reg.c.

#define COMMON_INT_MASK_3   (0)

Definition at line 24 of file exynos_dp_reg.c.

#define COMMON_INT_MASK_4   (0)

Definition at line 25 of file exynos_dp_reg.c.

#define INT_STA_MASK   (0)

Definition at line 26 of file exynos_dp_reg.c.

Function Documentation

void exynos_dp_config_interrupt ( struct exynos_dp_device dp)

Definition at line 158 of file exynos_dp_reg.c.

void exynos_dp_config_video_slave_mode ( struct exynos_dp_device dp,
struct video_info video_info 
)

Definition at line 1181 of file exynos_dp_reg.c.

void exynos_dp_disable_scrambling ( struct exynos_dp_device dp)

Definition at line 1219 of file exynos_dp_reg.c.

void exynos_dp_enable_enhanced_mode ( struct exynos_dp_device dp,
bool  enable 
)

Definition at line 846 of file exynos_dp_reg.c.

void exynos_dp_enable_scrambling ( struct exynos_dp_device dp)

Definition at line 1210 of file exynos_dp_reg.c.

void exynos_dp_enable_sw_function ( struct exynos_dp_device dp)

Definition at line 388 of file exynos_dp_reg.c.

void exynos_dp_enable_video_master ( struct exynos_dp_device dp,
bool  enable 
)

Definition at line 1139 of file exynos_dp_reg.c.

void exynos_dp_enable_video_mute ( struct exynos_dp_device dp,
bool  enable 
)

Definition at line 28 of file exynos_dp_reg.c.

u32 exynos_dp_get_lane0_link_training ( struct exynos_dp_device dp)

Definition at line 970 of file exynos_dp_reg.c.

u32 exynos_dp_get_lane1_link_training ( struct exynos_dp_device dp)

Definition at line 978 of file exynos_dp_reg.c.

u32 exynos_dp_get_lane2_link_training ( struct exynos_dp_device dp)

Definition at line 986 of file exynos_dp_reg.c.

u32 exynos_dp_get_lane3_link_training ( struct exynos_dp_device dp)

Definition at line 994 of file exynos_dp_reg.c.

void exynos_dp_get_lane_count ( struct exynos_dp_device dp,
u32 count 
)

Definition at line 838 of file exynos_dp_reg.c.

void exynos_dp_get_link_bandwidth ( struct exynos_dp_device dp,
u32 bwtype 
)

Definition at line 822 of file exynos_dp_reg.c.

enum pll_status exynos_dp_get_pll_lock_status ( struct exynos_dp_device dp)

Definition at line 179 of file exynos_dp_reg.c.

int exynos_dp_get_plug_in_status ( struct exynos_dp_device dp)

Definition at line 377 of file exynos_dp_reg.c.

void exynos_dp_init_analog_func ( struct exynos_dp_device dp)

Definition at line 292 of file exynos_dp_reg.c.

void exynos_dp_init_analog_param ( struct exynos_dp_device dp)

Definition at line 66 of file exynos_dp_reg.c.

void exynos_dp_init_aux ( struct exynos_dp_device dp)

Definition at line 352 of file exynos_dp_reg.c.

void exynos_dp_init_hpd ( struct exynos_dp_device dp)

Definition at line 327 of file exynos_dp_reg.c.

void exynos_dp_init_interrupt ( struct exynos_dp_device dp)

Definition at line 88 of file exynos_dp_reg.c.

void exynos_dp_init_video ( struct exynos_dp_device dp)

Definition at line 1017 of file exynos_dp_reg.c.

int exynos_dp_is_slave_video_stream_clock_on ( struct exynos_dp_device dp)

Definition at line 1061 of file exynos_dp_reg.c.

int exynos_dp_is_video_stream_on ( struct exynos_dp_device dp)

Definition at line 1165 of file exynos_dp_reg.c.

void exynos_dp_lane_swap ( struct exynos_dp_device dp,
bool  enable 
)

Definition at line 52 of file exynos_dp_reg.c.

int exynos_dp_read_byte_from_dpcd ( struct exynos_dp_device dp,
unsigned int  reg_addr,
unsigned char data 
)

Definition at line 486 of file exynos_dp_reg.c.

int exynos_dp_read_byte_from_i2c ( struct exynos_dp_device dp,
unsigned int  device_addr,
unsigned int  reg_addr,
unsigned int data 
)

Definition at line 694 of file exynos_dp_reg.c.

int exynos_dp_read_bytes_from_dpcd ( struct exynos_dp_device dp,
unsigned int  reg_addr,
unsigned int  count,
unsigned char  data[] 
)

Definition at line 595 of file exynos_dp_reg.c.

int exynos_dp_read_bytes_from_i2c ( struct exynos_dp_device dp,
unsigned int  device_addr,
unsigned int  reg_addr,
unsigned int  count,
unsigned char  edid[] 
)

Definition at line 740 of file exynos_dp_reg.c.

void exynos_dp_reset ( struct exynos_dp_device dp)

Definition at line 108 of file exynos_dp_reg.c.

void exynos_dp_reset_aux ( struct exynos_dp_device dp)

Definition at line 342 of file exynos_dp_reg.c.

void exynos_dp_reset_macro ( struct exynos_dp_device dp)

Definition at line 1002 of file exynos_dp_reg.c.

int exynos_dp_select_i2c_device ( struct exynos_dp_device dp,
unsigned int  device_addr,
unsigned int  reg_addr 
)

Definition at line 661 of file exynos_dp_reg.c.

void exynos_dp_set_analog_power_down ( struct exynos_dp_device dp,
enum analog_power_block  block,
bool  enable 
)

Definition at line 205 of file exynos_dp_reg.c.

void exynos_dp_set_lane0_link_training ( struct exynos_dp_device dp,
u32  training_lane 
)

Definition at line 934 of file exynos_dp_reg.c.

void exynos_dp_set_lane0_pre_emphasis ( struct exynos_dp_device dp,
u32  level 
)

Definition at line 894 of file exynos_dp_reg.c.

void exynos_dp_set_lane1_link_training ( struct exynos_dp_device dp,
u32  training_lane 
)

Definition at line 943 of file exynos_dp_reg.c.

void exynos_dp_set_lane1_pre_emphasis ( struct exynos_dp_device dp,
u32  level 
)

Definition at line 904 of file exynos_dp_reg.c.

void exynos_dp_set_lane2_link_training ( struct exynos_dp_device dp,
u32  training_lane 
)

Definition at line 952 of file exynos_dp_reg.c.

void exynos_dp_set_lane2_pre_emphasis ( struct exynos_dp_device dp,
u32  level 
)

Definition at line 914 of file exynos_dp_reg.c.

void exynos_dp_set_lane3_link_training ( struct exynos_dp_device dp,
u32  training_lane 
)

Definition at line 961 of file exynos_dp_reg.c.

void exynos_dp_set_lane3_pre_emphasis ( struct exynos_dp_device dp,
u32  level 
)

Definition at line 924 of file exynos_dp_reg.c.

void exynos_dp_set_lane_count ( struct exynos_dp_device dp,
u32  count 
)

Definition at line 830 of file exynos_dp_reg.c.

void exynos_dp_set_link_bandwidth ( struct exynos_dp_device dp,
u32  bwtype 
)

Definition at line 813 of file exynos_dp_reg.c.

void exynos_dp_set_pll_power_down ( struct exynos_dp_device dp,
bool  enable 
)

Definition at line 190 of file exynos_dp_reg.c.

void exynos_dp_set_training_pattern ( struct exynos_dp_device dp,
enum pattern_set  pattern 
)

Definition at line 861 of file exynos_dp_reg.c.

void exynos_dp_set_video_color_format ( struct exynos_dp_device dp,
u32  color_depth,
u32  color_space,
u32  dynamic_range,
u32  ycbcr_coeff 
)

Definition at line 1037 of file exynos_dp_reg.c.

void exynos_dp_set_video_cr_mn ( struct exynos_dp_device dp,
enum clock_recovery_m_value_type  type,
u32  m_value,
u32  n_value 
)

Definition at line 1089 of file exynos_dp_reg.c.

void exynos_dp_set_video_timing_mode ( struct exynos_dp_device dp,
u32  type 
)

Definition at line 1124 of file exynos_dp_reg.c.

int exynos_dp_start_aux_transaction ( struct exynos_dp_device dp)

Definition at line 397 of file exynos_dp_reg.c.

void exynos_dp_start_video ( struct exynos_dp_device dp)

Definition at line 1156 of file exynos_dp_reg.c.

void exynos_dp_stop_video ( struct exynos_dp_device dp)

Definition at line 43 of file exynos_dp_reg.c.

void exynos_dp_swreset ( struct exynos_dp_device dp)

Definition at line 153 of file exynos_dp_reg.c.

int exynos_dp_write_byte_to_dpcd ( struct exynos_dp_device dp,
unsigned int  reg_addr,
unsigned char  data 
)

Definition at line 441 of file exynos_dp_reg.c.

int exynos_dp_write_bytes_to_dpcd ( struct exynos_dp_device dp,
unsigned int  reg_addr,
unsigned int  count,
unsigned char  data[] 
)

Definition at line 531 of file exynos_dp_reg.c.