Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
lp855x.h File Reference

Go to the source code of this file.

Data Structures

struct  lp855x_pwm_data
 
struct  lp855x_rom_data
 
struct  lp855x_platform_data
 

Macros

#define BL_CTL_SHFT   (0)
 
#define BRT_MODE_SHFT   (1)
 
#define BRT_MODE_MASK   (0x06)
 
#define ENABLE_BL   (1)
 
#define DISABLE_BL   (0)
 
#define I2C_CONFIG(id)   id ## _I2C_CONFIG
 
#define PWM_CONFIG(id)   id ## _PWM_CONFIG
 
#define LP8550_PWM_CONFIG   (LP8550_PWM_ONLY << BRT_MODE_SHFT)
 
#define LP8550_I2C_CONFIG
 
#define LP8551_PWM_CONFIG   LP8550_PWM_CONFIG
 
#define LP8551_I2C_CONFIG   LP8550_I2C_CONFIG
 
#define LP8552_PWM_CONFIG   LP8550_PWM_CONFIG
 
#define LP8552_I2C_CONFIG   LP8550_I2C_CONFIG
 
#define LP8553_PWM_CONFIG   LP8550_PWM_CONFIG
 
#define LP8553_I2C_CONFIG   LP8550_I2C_CONFIG
 
#define LP8556_PWM_CONFIG   (LP8556_PWM_ONLY << BRT_MODE_SHFT)
 
#define LP8556_COMB1_CONFIG   (LP8556_COMBINED1 << BRT_MODE_SHFT)
 
#define LP8556_I2C_CONFIG
 
#define LP8556_COMB2_CONFIG   (LP8556_COMBINED2 << BRT_MODE_SHFT)
 
#define LP8556_FAST_CONFIG
 

Enumerations

enum  lp855x_chip_id {
  LP8550, LP8551, LP8552, LP8553,
  LP8556
}
 
enum  lp855x_brightness_ctrl_mode { PWM_BASED = 1, REGISTER_BASED }
 
enum  lp8550_brighntess_source { LP8550_PWM_ONLY, LP8550_I2C_ONLY = 2 }
 
enum  lp8551_brighntess_source { LP8551_PWM_ONLY = LP8550_PWM_ONLY, LP8551_I2C_ONLY = LP8550_I2C_ONLY }
 
enum  lp8552_brighntess_source { LP8552_PWM_ONLY = LP8550_PWM_ONLY, LP8552_I2C_ONLY = LP8550_I2C_ONLY }
 
enum  lp8553_brighntess_source { LP8553_PWM_ONLY = LP8550_PWM_ONLY, LP8553_I2C_ONLY = LP8550_I2C_ONLY }
 
enum  lp8556_brightness_source { LP8556_PWM_ONLY, LP8556_COMBINED1, LP8556_I2C_ONLY, LP8556_COMBINED2 }
 

Macro Definition Documentation

#define BL_CTL_SHFT   (0)

Definition at line 15 of file lp855x.h.

#define BRT_MODE_MASK   (0x06)

Definition at line 17 of file lp855x.h.

#define BRT_MODE_SHFT   (1)

Definition at line 16 of file lp855x.h.

#define DISABLE_BL   (0)

Definition at line 21 of file lp855x.h.

#define ENABLE_BL   (1)

Definition at line 20 of file lp855x.h.

#define I2C_CONFIG (   id)    id ## _I2C_CONFIG

Definition at line 23 of file lp855x.h.

#define LP8550_I2C_CONFIG
Value:

Definition at line 28 of file lp855x.h.

#define LP8550_PWM_CONFIG   (LP8550_PWM_ONLY << BRT_MODE_SHFT)

Definition at line 27 of file lp855x.h.

#define LP8551_I2C_CONFIG   LP8550_I2C_CONFIG

Definition at line 33 of file lp855x.h.

#define LP8551_PWM_CONFIG   LP8550_PWM_CONFIG

Definition at line 32 of file lp855x.h.

#define LP8552_I2C_CONFIG   LP8550_I2C_CONFIG

Definition at line 37 of file lp855x.h.

#define LP8552_PWM_CONFIG   LP8550_PWM_CONFIG

Definition at line 36 of file lp855x.h.

#define LP8553_I2C_CONFIG   LP8550_I2C_CONFIG

Definition at line 41 of file lp855x.h.

#define LP8553_PWM_CONFIG   LP8550_PWM_CONFIG

Definition at line 40 of file lp855x.h.

#define LP8556_COMB1_CONFIG   (LP8556_COMBINED1 << BRT_MODE_SHFT)

Definition at line 45 of file lp855x.h.

#define LP8556_COMB2_CONFIG   (LP8556_COMBINED2 << BRT_MODE_SHFT)

Definition at line 48 of file lp855x.h.

#define LP8556_FAST_CONFIG
Value:
BIT(7) /* use it if EPROMs should be maintained
when exiting the low power mode */

Definition at line 49 of file lp855x.h.

#define LP8556_I2C_CONFIG
Value:

Definition at line 46 of file lp855x.h.

#define LP8556_PWM_CONFIG   (LP8556_PWM_ONLY << BRT_MODE_SHFT)

Definition at line 44 of file lp855x.h.

#define PWM_CONFIG (   id)    id ## _PWM_CONFIG

Definition at line 24 of file lp855x.h.

Enumeration Type Documentation

Enumerator:
LP8550_PWM_ONLY 
LP8550_I2C_ONLY 

Definition at line 64 of file lp855x.h.

Enumerator:
LP8551_PWM_ONLY 
LP8551_I2C_ONLY 

Definition at line 69 of file lp855x.h.

Enumerator:
LP8552_PWM_ONLY 
LP8552_I2C_ONLY 

Definition at line 74 of file lp855x.h.

Enumerator:
LP8553_PWM_ONLY 
LP8553_I2C_ONLY 

Definition at line 79 of file lp855x.h.

Enumerator:
LP8556_PWM_ONLY 
LP8556_COMBINED1 
LP8556_I2C_ONLY 
LP8556_COMBINED2 

Definition at line 84 of file lp855x.h.

Enumerator:
PWM_BASED 
REGISTER_BASED 

Definition at line 59 of file lp855x.h.

Enumerator:
LP8550 
LP8551 
LP8552 
LP8553 
LP8556 

Definition at line 51 of file lp855x.h.