Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
cdv_intel_lvds.c File Reference
#include <linux/i2c.h>
#include <linux/dmi.h>
#include <drm/drmP.h>
#include "intel_bios.h"
#include "psb_drv.h"
#include "psb_intel_drv.h"
#include "psb_intel_reg.h"
#include "power.h"
#include <linux/pm_runtime.h>
#include "cdv_device.h"

Go to the source code of this file.

Data Structures

struct  cdv_intel_lvds_priv
 

Macros

#define BRIGHTNESS_MAX_LEVEL   100
 
#define BRIGHTNESS_MASK   0xFF
 
#define BLC_I2C_TYPE   0x01
 
#define BLC_PWM_TYPT   0x02
 
#define BLC_POLARITY_NORMAL   0
 
#define BLC_POLARITY_INVERSE   1
 
#define PSB_BLC_MAX_PWM_REG_FREQ   (0xFFFE)
 
#define PSB_BLC_MIN_PWM_REG_FREQ   (0x2)
 
#define PSB_BLC_PWM_PRECISION_FACTOR   (10)
 
#define PSB_BACKLIGHT_PWM_CTL_SHIFT   (16)
 
#define PSB_BACKLIGHT_PWM_POLARITY_BIT_CLEAR   (0xFFFE)
 

Functions

void cdv_intel_lvds_init (struct drm_device *dev, struct psb_intel_mode_device *mode_dev)
 

Macro Definition Documentation

#define BLC_I2C_TYPE   0x01

Definition at line 40 of file cdv_intel_lvds.c.

#define BLC_POLARITY_INVERSE   1

Definition at line 44 of file cdv_intel_lvds.c.

#define BLC_POLARITY_NORMAL   0

Definition at line 43 of file cdv_intel_lvds.c.

#define BLC_PWM_TYPT   0x02

Definition at line 41 of file cdv_intel_lvds.c.

#define BRIGHTNESS_MASK   0xFF

Definition at line 39 of file cdv_intel_lvds.c.

#define BRIGHTNESS_MAX_LEVEL   100

LVDS I2C backlight control macros

Definition at line 38 of file cdv_intel_lvds.c.

#define PSB_BACKLIGHT_PWM_CTL_SHIFT   (16)

Definition at line 49 of file cdv_intel_lvds.c.

#define PSB_BACKLIGHT_PWM_POLARITY_BIT_CLEAR   (0xFFFE)

Definition at line 50 of file cdv_intel_lvds.c.

#define PSB_BLC_MAX_PWM_REG_FREQ   (0xFFFE)

Definition at line 46 of file cdv_intel_lvds.c.

#define PSB_BLC_MIN_PWM_REG_FREQ   (0x2)

Definition at line 47 of file cdv_intel_lvds.c.

#define PSB_BLC_PWM_PRECISION_FACTOR   (10)

Definition at line 48 of file cdv_intel_lvds.c.

Function Documentation

void cdv_intel_lvds_init ( struct drm_device dev,
struct psb_intel_mode_device mode_dev 
)

cdv_intel_lvds_init - setup LVDS connectors on this device : drm device

Create the connector, register the LVDS DDC bus, and try to figure out what modes we can display on the LVDS panel (if present).

Set up I2C bus FIXME: distroy i2c_bus when exit

Definition at line 612 of file cdv_intel_lvds.c.