Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Variables
dvo_ch7017.c File Reference
#include "dvo.h"

Go to the source code of this file.

Data Structures

struct  ch7017_priv
 

Macros

#define CH7017_TV_DISPLAY_MODE   0x00
 
#define CH7017_FLICKER_FILTER   0x01
 
#define CH7017_VIDEO_BANDWIDTH   0x02
 
#define CH7017_TEXT_ENHANCEMENT   0x03
 
#define CH7017_START_ACTIVE_VIDEO   0x04
 
#define CH7017_HORIZONTAL_POSITION   0x05
 
#define CH7017_VERTICAL_POSITION   0x06
 
#define CH7017_BLACK_LEVEL   0x07
 
#define CH7017_CONTRAST_ENHANCEMENT   0x08
 
#define CH7017_TV_PLL   0x09
 
#define CH7017_TV_PLL_M   0x0a
 
#define CH7017_TV_PLL_N   0x0b
 
#define CH7017_SUB_CARRIER_0   0x0c
 
#define CH7017_CIV_CONTROL   0x10
 
#define CH7017_CIV_0   0x11
 
#define CH7017_CHROMA_BOOST   0x14
 
#define CH7017_CLOCK_MODE   0x1c
 
#define CH7017_INPUT_CLOCK   0x1d
 
#define CH7017_GPIO_CONTROL   0x1e
 
#define CH7017_INPUT_DATA_FORMAT   0x1f
 
#define CH7017_CONNECTION_DETECT   0x20
 
#define CH7017_DAC_CONTROL   0x21
 
#define CH7017_BUFFERED_CLOCK_OUTPUT   0x22
 
#define CH7017_DEFEAT_VSYNC   0x47
 
#define CH7017_TEST_PATTERN   0x48
 
#define CH7017_POWER_MANAGEMENT   0x49
 
#define CH7017_TV_EN   (1 << 0)
 
#define CH7017_DAC0_POWER_DOWN   (1 << 1)
 
#define CH7017_DAC1_POWER_DOWN   (1 << 2)
 
#define CH7017_DAC2_POWER_DOWN   (1 << 3)
 
#define CH7017_DAC3_POWER_DOWN   (1 << 4)
 
#define CH7017_TV_POWER_DOWN_EN   (1 << 5)
 
#define CH7017_VERSION_ID   0x4a
 
#define CH7017_DEVICE_ID   0x4b
 
#define CH7017_DEVICE_ID_VALUE   0x1b
 
#define CH7018_DEVICE_ID_VALUE   0x1a
 
#define CH7019_DEVICE_ID_VALUE   0x19
 
#define CH7017_XCLK_D2_ADJUST   0x53
 
#define CH7017_UP_SCALER_COEFF_0   0x55
 
#define CH7017_UP_SCALER_COEFF_1   0x56
 
#define CH7017_UP_SCALER_COEFF_2   0x57
 
#define CH7017_UP_SCALER_COEFF_3   0x58
 
#define CH7017_UP_SCALER_COEFF_4   0x59
 
#define CH7017_UP_SCALER_VERTICAL_INC_0   0x5a
 
#define CH7017_UP_SCALER_VERTICAL_INC_1   0x5b
 
#define CH7017_GPIO_INVERT   0x5c
 
#define CH7017_UP_SCALER_HORIZONTAL_INC_0   0x5d
 
#define CH7017_UP_SCALER_HORIZONTAL_INC_1   0x5e
 
#define CH7017_HORIZONTAL_ACTIVE_PIXEL_INPUT   0x5f
 
#define CH7017_ACTIVE_INPUT_LINE_OUTPUT   0x60
 
#define CH7017_LVDS_HAP_INPUT_MASK   (0x7 << 0)
 
#define CH7017_LVDS_VAL_HIGH_MASK   (0x7 << 3)
 
#define CH7017_VERTICAL_ACTIVE_LINE_OUTPUT   0x61
 
#define CH7017_HORIZONTAL_ACTIVE_PIXEL_OUTPUT   0x62
 
#define CH7017_LVDS_POWER_DOWN   0x63
 
#define CH7017_LVDS_HAP_HIGH_MASK   (0x7 << 0)
 
#define CH7017_LVDS_POWER_DOWN_EN   (1 << 6)
 
#define CH7017_LVDS_UPSCALER_EN   (1 << 7)
 
#define CH7017_LVDS_POWER_DOWN_DEFAULT_RESERVED   0x08
 
#define CH7017_LVDS_ENCODING   0x64
 
#define CH7017_LVDS_DITHER_2D   (1 << 2)
 
#define CH7017_LVDS_DITHER_DIS   (1 << 3)
 
#define CH7017_LVDS_DUAL_CHANNEL_EN   (1 << 4)
 
#define CH7017_LVDS_24_BIT   (1 << 5)
 
#define CH7017_LVDS_ENCODING_2   0x65
 
#define CH7017_LVDS_PLL_CONTROL   0x66
 
#define CH7017_LVDS_PANEN   (1 << 0)
 
#define CH7017_LVDS_BKLEN   (1 << 3)
 
#define CH7017_POWER_SEQUENCING_T1   0x67
 
#define CH7017_POWER_SEQUENCING_T2   0x68
 
#define CH7017_POWER_SEQUENCING_T3   0x69
 
#define CH7017_POWER_SEQUENCING_T4   0x6a
 
#define CH7017_POWER_SEQUENCING_T5   0x6b
 
#define CH7017_GPIO_DRIVER_TYPE   0x6c
 
#define CH7017_GPIO_DATA   0x6d
 
#define CH7017_GPIO_DIRECTION_CONTROL   0x6e
 
#define CH7017_LVDS_PLL_FEEDBACK_DIV   0x71
 
#define CH7017_LVDS_PLL_FEED_BACK_DIVIDER_SHIFT   4
 
#define CH7017_LVDS_PLL_FEED_FORWARD_DIVIDER_SHIFT   0
 
#define CH7017_LVDS_PLL_FEEDBACK_DEFAULT_RESERVED   0x80
 
#define CH7017_LVDS_PLL_VCO_CONTROL   0x72
 
#define CH7017_LVDS_PLL_VCO_DEFAULT_RESERVED   0x80
 
#define CH7017_LVDS_PLL_VCO_SHIFT   4
 
#define CH7017_LVDS_PLL_POST_SCALE_DIV_SHIFT   0
 
#define CH7017_OUTPUTS_ENABLE   0x73
 
#define CH7017_CHARGE_PUMP_LOW   0x0
 
#define CH7017_CHARGE_PUMP_HIGH   0x3
 
#define CH7017_LVDS_CHANNEL_A   (1 << 3)
 
#define CH7017_LVDS_CHANNEL_B   (1 << 4)
 
#define CH7017_TV_DAC_A   (1 << 5)
 
#define CH7017_TV_DAC_B   (1 << 6)
 
#define CH7017_DDC_SELECT_DC2   (1 << 7)
 
#define CH7017_LVDS_OUTPUT_AMPLITUDE   0x74
 
#define CH7017_LVDS_PLL_EMI_REDUCTION   0x75
 
#define CH7017_LVDS_POWER_DOWN_FLICKER   0x76
 
#define CH7017_LVDS_CONTROL_2   0x78
 
#define CH7017_LOOP_FILTER_SHIFT   5
 
#define CH7017_PHASE_DETECTOR_SHIFT   0
 
#define CH7017_BANG_LIMIT_CONTROL   0x7f
 
#define DUMP(reg)
 

Variables

struct intel_dvo_dev_ops ch7017_ops
 

Macro Definition Documentation

#define CH7017_ACTIVE_INPUT_LINE_OUTPUT   0x60

Definition at line 88 of file dvo_ch7017.c.

#define CH7017_BANG_LIMIT_CONTROL   0x7f

Definition at line 159 of file dvo_ch7017.c.

#define CH7017_BLACK_LEVEL   0x07

Definition at line 37 of file dvo_ch7017.c.

#define CH7017_BUFFERED_CLOCK_OUTPUT   0x22

Definition at line 52 of file dvo_ch7017.c.

#define CH7017_CHARGE_PUMP_HIGH   0x3

Definition at line 144 of file dvo_ch7017.c.

#define CH7017_CHARGE_PUMP_LOW   0x0

Definition at line 143 of file dvo_ch7017.c.

#define CH7017_CHROMA_BOOST   0x14

Definition at line 45 of file dvo_ch7017.c.

#define CH7017_CIV_0   0x11

Definition at line 44 of file dvo_ch7017.c.

#define CH7017_CIV_CONTROL   0x10

Definition at line 43 of file dvo_ch7017.c.

#define CH7017_CLOCK_MODE   0x1c

Definition at line 46 of file dvo_ch7017.c.

#define CH7017_CONNECTION_DETECT   0x20

Definition at line 50 of file dvo_ch7017.c.

#define CH7017_CONTRAST_ENHANCEMENT   0x08

Definition at line 38 of file dvo_ch7017.c.

#define CH7017_DAC0_POWER_DOWN   (1 << 1)

Definition at line 59 of file dvo_ch7017.c.

#define CH7017_DAC1_POWER_DOWN   (1 << 2)

Definition at line 60 of file dvo_ch7017.c.

#define CH7017_DAC2_POWER_DOWN   (1 << 3)

Definition at line 61 of file dvo_ch7017.c.

#define CH7017_DAC3_POWER_DOWN   (1 << 4)

Definition at line 62 of file dvo_ch7017.c.

#define CH7017_DAC_CONTROL   0x21

Definition at line 51 of file dvo_ch7017.c.

#define CH7017_DDC_SELECT_DC2   (1 << 7)

Definition at line 149 of file dvo_ch7017.c.

#define CH7017_DEFEAT_VSYNC   0x47

Definition at line 53 of file dvo_ch7017.c.

#define CH7017_DEVICE_ID   0x4b

Definition at line 68 of file dvo_ch7017.c.

#define CH7017_DEVICE_ID_VALUE   0x1b

Definition at line 69 of file dvo_ch7017.c.

#define CH7017_FLICKER_FILTER   0x01

Definition at line 31 of file dvo_ch7017.c.

#define CH7017_GPIO_CONTROL   0x1e

Definition at line 48 of file dvo_ch7017.c.

#define CH7017_GPIO_DATA   0x6d

Definition at line 129 of file dvo_ch7017.c.

#define CH7017_GPIO_DIRECTION_CONTROL   0x6e

Definition at line 130 of file dvo_ch7017.c.

#define CH7017_GPIO_DRIVER_TYPE   0x6c

Definition at line 128 of file dvo_ch7017.c.

#define CH7017_GPIO_INVERT   0x5c

Definition at line 81 of file dvo_ch7017.c.

#define CH7017_HORIZONTAL_ACTIVE_PIXEL_INPUT   0x5f

Low bits of horizontal active pixel input

Definition at line 85 of file dvo_ch7017.c.

#define CH7017_HORIZONTAL_ACTIVE_PIXEL_OUTPUT   0x62

Low bits of horizontal active pixel output

Definition at line 97 of file dvo_ch7017.c.

#define CH7017_HORIZONTAL_POSITION   0x05

Definition at line 35 of file dvo_ch7017.c.

#define CH7017_INPUT_CLOCK   0x1d

Definition at line 47 of file dvo_ch7017.c.

#define CH7017_INPUT_DATA_FORMAT   0x1f

Definition at line 49 of file dvo_ch7017.c.

#define CH7017_LOOP_FILTER_SHIFT   5

Definition at line 156 of file dvo_ch7017.c.

#define CH7017_LVDS_24_BIT   (1 << 5)

Definition at line 113 of file dvo_ch7017.c.

#define CH7017_LVDS_BKLEN   (1 << 3)

Enables the LVDS panel backlight

Definition at line 121 of file dvo_ch7017.c.

#define CH7017_LVDS_CHANNEL_A   (1 << 3)

Definition at line 145 of file dvo_ch7017.c.

#define CH7017_LVDS_CHANNEL_B   (1 << 4)

Definition at line 146 of file dvo_ch7017.c.

#define CH7017_LVDS_CONTROL_2   0x78

Definition at line 155 of file dvo_ch7017.c.

#define CH7017_LVDS_DITHER_2D   (1 << 2)

Definition at line 110 of file dvo_ch7017.c.

#define CH7017_LVDS_DITHER_DIS   (1 << 3)

Definition at line 111 of file dvo_ch7017.c.

#define CH7017_LVDS_DUAL_CHANNEL_EN   (1 << 4)

Definition at line 112 of file dvo_ch7017.c.

#define CH7017_LVDS_ENCODING   0x64

Definition at line 109 of file dvo_ch7017.c.

#define CH7017_LVDS_ENCODING_2   0x65

Definition at line 115 of file dvo_ch7017.c.

#define CH7017_LVDS_HAP_HIGH_MASK   (0x7 << 0)

High bits of horizontal active pixel output

Definition at line 102 of file dvo_ch7017.c.

#define CH7017_LVDS_HAP_INPUT_MASK   (0x7 << 0)

High bits of horizontal active pixel input

Definition at line 90 of file dvo_ch7017.c.

#define CH7017_LVDS_OUTPUT_AMPLITUDE   0x74

Definition at line 151 of file dvo_ch7017.c.

#define CH7017_LVDS_PANEN   (1 << 0)

Enables the LVDS panel output path

Definition at line 119 of file dvo_ch7017.c.

#define CH7017_LVDS_PLL_CONTROL   0x66

Definition at line 117 of file dvo_ch7017.c.

#define CH7017_LVDS_PLL_EMI_REDUCTION   0x75

Definition at line 152 of file dvo_ch7017.c.

#define CH7017_LVDS_PLL_FEED_BACK_DIVIDER_SHIFT   4

Definition at line 133 of file dvo_ch7017.c.

#define CH7017_LVDS_PLL_FEED_FORWARD_DIVIDER_SHIFT   0

Definition at line 134 of file dvo_ch7017.c.

#define CH7017_LVDS_PLL_FEEDBACK_DEFAULT_RESERVED   0x80

Definition at line 135 of file dvo_ch7017.c.

#define CH7017_LVDS_PLL_FEEDBACK_DIV   0x71

Definition at line 132 of file dvo_ch7017.c.

#define CH7017_LVDS_PLL_POST_SCALE_DIV_SHIFT   0

Definition at line 140 of file dvo_ch7017.c.

#define CH7017_LVDS_PLL_VCO_CONTROL   0x72

Definition at line 137 of file dvo_ch7017.c.

#define CH7017_LVDS_PLL_VCO_DEFAULT_RESERVED   0x80

Definition at line 138 of file dvo_ch7017.c.

#define CH7017_LVDS_PLL_VCO_SHIFT   4

Definition at line 139 of file dvo_ch7017.c.

#define CH7017_LVDS_POWER_DOWN   0x63

Definition at line 100 of file dvo_ch7017.c.

#define CH7017_LVDS_POWER_DOWN_DEFAULT_RESERVED   0x08

Definition at line 107 of file dvo_ch7017.c.

#define CH7017_LVDS_POWER_DOWN_EN   (1 << 6)

Enables the LVDS power down state transition

Definition at line 104 of file dvo_ch7017.c.

#define CH7017_LVDS_POWER_DOWN_FLICKER   0x76

Definition at line 153 of file dvo_ch7017.c.

#define CH7017_LVDS_UPSCALER_EN   (1 << 7)

Enables the LVDS upscaler

Definition at line 106 of file dvo_ch7017.c.

#define CH7017_LVDS_VAL_HIGH_MASK   (0x7 << 3)

High bits of vertical active line output

Definition at line 92 of file dvo_ch7017.c.

#define CH7017_OUTPUTS_ENABLE   0x73

Definition at line 142 of file dvo_ch7017.c.

#define CH7017_PHASE_DETECTOR_SHIFT   0

Definition at line 157 of file dvo_ch7017.c.

#define CH7017_POWER_MANAGEMENT   0x49

Definition at line 56 of file dvo_ch7017.c.

#define CH7017_POWER_SEQUENCING_T1   0x67

Definition at line 123 of file dvo_ch7017.c.

#define CH7017_POWER_SEQUENCING_T2   0x68

Definition at line 124 of file dvo_ch7017.c.

#define CH7017_POWER_SEQUENCING_T3   0x69

Definition at line 125 of file dvo_ch7017.c.

#define CH7017_POWER_SEQUENCING_T4   0x6a

Definition at line 126 of file dvo_ch7017.c.

#define CH7017_POWER_SEQUENCING_T5   0x6b

Definition at line 127 of file dvo_ch7017.c.

#define CH7017_START_ACTIVE_VIDEO   0x04

Definition at line 34 of file dvo_ch7017.c.

#define CH7017_SUB_CARRIER_0   0x0c

Definition at line 42 of file dvo_ch7017.c.

#define CH7017_TEST_PATTERN   0x48

Definition at line 54 of file dvo_ch7017.c.

#define CH7017_TEXT_ENHANCEMENT   0x03

Definition at line 33 of file dvo_ch7017.c.

#define CH7017_TV_DAC_A   (1 << 5)

Definition at line 147 of file dvo_ch7017.c.

#define CH7017_TV_DAC_B   (1 << 6)

Definition at line 148 of file dvo_ch7017.c.

#define CH7017_TV_DISPLAY_MODE   0x00

Definition at line 30 of file dvo_ch7017.c.

#define CH7017_TV_EN   (1 << 0)

Enables the TV output path.

Definition at line 58 of file dvo_ch7017.c.

#define CH7017_TV_PLL   0x09

Definition at line 39 of file dvo_ch7017.c.

#define CH7017_TV_PLL_M   0x0a

Definition at line 40 of file dvo_ch7017.c.

#define CH7017_TV_PLL_N   0x0b

Definition at line 41 of file dvo_ch7017.c.

#define CH7017_TV_POWER_DOWN_EN   (1 << 5)

Powers down the TV out block, and DAC0-3

Definition at line 64 of file dvo_ch7017.c.

#define CH7017_UP_SCALER_COEFF_0   0x55

Definition at line 74 of file dvo_ch7017.c.

#define CH7017_UP_SCALER_COEFF_1   0x56

Definition at line 75 of file dvo_ch7017.c.

#define CH7017_UP_SCALER_COEFF_2   0x57

Definition at line 76 of file dvo_ch7017.c.

#define CH7017_UP_SCALER_COEFF_3   0x58

Definition at line 77 of file dvo_ch7017.c.

#define CH7017_UP_SCALER_COEFF_4   0x59

Definition at line 78 of file dvo_ch7017.c.

#define CH7017_UP_SCALER_HORIZONTAL_INC_0   0x5d

Definition at line 82 of file dvo_ch7017.c.

#define CH7017_UP_SCALER_HORIZONTAL_INC_1   0x5e

Definition at line 83 of file dvo_ch7017.c.

#define CH7017_UP_SCALER_VERTICAL_INC_0   0x5a

Definition at line 79 of file dvo_ch7017.c.

#define CH7017_UP_SCALER_VERTICAL_INC_1   0x5b

Definition at line 80 of file dvo_ch7017.c.

#define CH7017_VERSION_ID   0x4a

Definition at line 66 of file dvo_ch7017.c.

#define CH7017_VERTICAL_ACTIVE_LINE_OUTPUT   0x61

Low bits of vertical active line output

Definition at line 94 of file dvo_ch7017.c.

#define CH7017_VERTICAL_POSITION   0x06

Definition at line 36 of file dvo_ch7017.c.

#define CH7017_VIDEO_BANDWIDTH   0x02

Definition at line 32 of file dvo_ch7017.c.

#define CH7017_XCLK_D2_ADJUST   0x53

Definition at line 73 of file dvo_ch7017.c.

#define CH7018_DEVICE_ID_VALUE   0x1a

Definition at line 70 of file dvo_ch7017.c.

#define CH7019_DEVICE_ID_VALUE   0x19

Definition at line 71 of file dvo_ch7017.c.

#define DUMP (   reg)
Value:
do { \
ch7017_read(dvo, reg, &val); \
DRM_DEBUG_KMS(#reg ": %02x\n", val); \
} while (0)

Variable Documentation

Initial value:
= {
.init = ch7017_init,
.detect = ch7017_detect,
.mode_valid = ch7017_mode_valid,
.mode_set = ch7017_mode_set,
.dpms = ch7017_dpms,
.get_hw_state = ch7017_get_hw_state,
.dump_regs = ch7017_dump_regs,
.destroy = ch7017_destroy,
}

Definition at line 405 of file dvo_ch7017.c.