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

Go to the source code of this file.

Data Structures

struct  adp8870_backlight_platform_data
 

Macros

#define ID_ADP8870   8870
 
#define ADP8870_MAX_BRIGHTNESS   0x7F
 
#define FLAG_OFFT_SHIFT   8
 
#define ADP8870_LED_DIS_BLINK   (0 << FLAG_OFFT_SHIFT)
 
#define ADP8870_LED_OFFT_600ms   (1 << FLAG_OFFT_SHIFT)
 
#define ADP8870_LED_OFFT_1200ms   (2 << FLAG_OFFT_SHIFT)
 
#define ADP8870_LED_OFFT_1800ms   (3 << FLAG_OFFT_SHIFT)
 
#define ADP8870_LED_ONT_200ms   0
 
#define ADP8870_LED_ONT_600ms   1
 
#define ADP8870_LED_ONT_800ms   2
 
#define ADP8870_LED_ONT_1200ms   3
 
#define ADP8870_LED_D7   (7)
 
#define ADP8870_LED_D6   (6)
 
#define ADP8870_LED_D5   (5)
 
#define ADP8870_LED_D4   (4)
 
#define ADP8870_LED_D3   (3)
 
#define ADP8870_LED_D2   (2)
 
#define ADP8870_LED_D1   (1)
 
#define ADP8870_BL_D7   (1 << 6)
 
#define ADP8870_BL_D6   (1 << 5)
 
#define ADP8870_BL_D5   (1 << 4)
 
#define ADP8870_BL_D4   (1 << 3)
 
#define ADP8870_BL_D3   (1 << 2)
 
#define ADP8870_BL_D2   (1 << 1)
 
#define ADP8870_BL_D1   (1 << 0)
 
#define ADP8870_FADE_T_DIS   0 /* Fade Timer Disabled */
 
#define ADP8870_FADE_T_300ms   1 /* 0.3 Sec */
 
#define ADP8870_FADE_T_600ms   2
 
#define ADP8870_FADE_T_900ms   3
 
#define ADP8870_FADE_T_1200ms   4
 
#define ADP8870_FADE_T_1500ms   5
 
#define ADP8870_FADE_T_1800ms   6
 
#define ADP8870_FADE_T_2100ms   7
 
#define ADP8870_FADE_T_2400ms   8
 
#define ADP8870_FADE_T_2700ms   9
 
#define ADP8870_FADE_T_3000ms   10
 
#define ADP8870_FADE_T_3500ms   11
 
#define ADP8870_FADE_T_4000ms   12
 
#define ADP8870_FADE_T_4500ms   13
 
#define ADP8870_FADE_T_5000ms   14
 
#define ADP8870_FADE_T_5500ms   15 /* 5.5 Sec */
 
#define ADP8870_FADE_LAW_LINEAR   0
 
#define ADP8870_FADE_LAW_SQUARE   1
 
#define ADP8870_FADE_LAW_CUBIC1   2
 
#define ADP8870_FADE_LAW_CUBIC2   3
 
#define ADP8870_BL_AMBL_FILT_80ms   0 /* Light sensor filter time */
 
#define ADP8870_BL_AMBL_FILT_160ms   1
 
#define ADP8870_BL_AMBL_FILT_320ms   2
 
#define ADP8870_BL_AMBL_FILT_640ms   3
 
#define ADP8870_BL_AMBL_FILT_1280ms   4
 
#define ADP8870_BL_AMBL_FILT_2560ms   5
 
#define ADP8870_BL_AMBL_FILT_5120ms   6
 
#define ADP8870_BL_AMBL_FILT_10240ms   7 /* 10.24 sec */
 
#define ADP8870_BL_CUR_mA(I)   ((I * 127) / 30)
 
#define ADP8870_L2_COMP_CURR_uA(I)   ((I * 255) / 1106)
 
#define ADP8870_L3_COMP_CURR_uA(I)   ((I * 255) / 551)
 
#define ADP8870_L4_COMP_CURR_uA(I)   ((I * 255) / 275)
 
#define ADP8870_L5_COMP_CURR_uA(I)   ((I * 255) / 138)
 

Macro Definition Documentation

#define ADP8870_BL_AMBL_FILT_10240ms   7 /* 10.24 sec */

Definition at line 81 of file adp8870.h.

#define ADP8870_BL_AMBL_FILT_1280ms   4

Definition at line 78 of file adp8870.h.

#define ADP8870_BL_AMBL_FILT_160ms   1

Definition at line 75 of file adp8870.h.

#define ADP8870_BL_AMBL_FILT_2560ms   5

Definition at line 79 of file adp8870.h.

#define ADP8870_BL_AMBL_FILT_320ms   2

Definition at line 76 of file adp8870.h.

#define ADP8870_BL_AMBL_FILT_5120ms   6

Definition at line 80 of file adp8870.h.

#define ADP8870_BL_AMBL_FILT_640ms   3

Definition at line 77 of file adp8870.h.

#define ADP8870_BL_AMBL_FILT_80ms   0 /* Light sensor filter time */

Definition at line 74 of file adp8870.h.

#define ADP8870_BL_CUR_mA (   I)    ((I * 127) / 30)

Definition at line 86 of file adp8870.h.

#define ADP8870_BL_D1   (1 << 0)

Definition at line 50 of file adp8870.h.

#define ADP8870_BL_D2   (1 << 1)

Definition at line 49 of file adp8870.h.

#define ADP8870_BL_D3   (1 << 2)

Definition at line 48 of file adp8870.h.

#define ADP8870_BL_D4   (1 << 3)

Definition at line 47 of file adp8870.h.

#define ADP8870_BL_D5   (1 << 4)

Definition at line 46 of file adp8870.h.

#define ADP8870_BL_D6   (1 << 5)

Definition at line 45 of file adp8870.h.

#define ADP8870_BL_D7   (1 << 6)

Definition at line 44 of file adp8870.h.

#define ADP8870_FADE_LAW_CUBIC1   2

Definition at line 71 of file adp8870.h.

#define ADP8870_FADE_LAW_CUBIC2   3

Definition at line 72 of file adp8870.h.

#define ADP8870_FADE_LAW_LINEAR   0

Definition at line 69 of file adp8870.h.

#define ADP8870_FADE_LAW_SQUARE   1

Definition at line 70 of file adp8870.h.

#define ADP8870_FADE_T_1200ms   4

Definition at line 56 of file adp8870.h.

#define ADP8870_FADE_T_1500ms   5

Definition at line 57 of file adp8870.h.

#define ADP8870_FADE_T_1800ms   6

Definition at line 58 of file adp8870.h.

#define ADP8870_FADE_T_2100ms   7

Definition at line 59 of file adp8870.h.

#define ADP8870_FADE_T_2400ms   8

Definition at line 60 of file adp8870.h.

#define ADP8870_FADE_T_2700ms   9

Definition at line 61 of file adp8870.h.

#define ADP8870_FADE_T_3000ms   10

Definition at line 62 of file adp8870.h.

#define ADP8870_FADE_T_300ms   1 /* 0.3 Sec */

Definition at line 53 of file adp8870.h.

#define ADP8870_FADE_T_3500ms   11

Definition at line 63 of file adp8870.h.

#define ADP8870_FADE_T_4000ms   12

Definition at line 64 of file adp8870.h.

#define ADP8870_FADE_T_4500ms   13

Definition at line 65 of file adp8870.h.

#define ADP8870_FADE_T_5000ms   14

Definition at line 66 of file adp8870.h.

#define ADP8870_FADE_T_5500ms   15 /* 5.5 Sec */

Definition at line 67 of file adp8870.h.

#define ADP8870_FADE_T_600ms   2

Definition at line 54 of file adp8870.h.

#define ADP8870_FADE_T_900ms   3

Definition at line 55 of file adp8870.h.

#define ADP8870_FADE_T_DIS   0 /* Fade Timer Disabled */

Definition at line 52 of file adp8870.h.

#define ADP8870_L2_COMP_CURR_uA (   I)    ((I * 255) / 1106)

Definition at line 91 of file adp8870.h.

#define ADP8870_L3_COMP_CURR_uA (   I)    ((I * 255) / 551)

Definition at line 96 of file adp8870.h.

#define ADP8870_L4_COMP_CURR_uA (   I)    ((I * 255) / 275)

Definition at line 101 of file adp8870.h.

#define ADP8870_L5_COMP_CURR_uA (   I)    ((I * 255) / 138)

Definition at line 106 of file adp8870.h.

#define ADP8870_LED_D1   (1)

Definition at line 38 of file adp8870.h.

#define ADP8870_LED_D2   (2)

Definition at line 37 of file adp8870.h.

#define ADP8870_LED_D3   (3)

Definition at line 36 of file adp8870.h.

#define ADP8870_LED_D4   (4)

Definition at line 35 of file adp8870.h.

#define ADP8870_LED_D5   (5)

Definition at line 34 of file adp8870.h.

#define ADP8870_LED_D6   (6)

Definition at line 33 of file adp8870.h.

#define ADP8870_LED_D7   (7)

Definition at line 32 of file adp8870.h.

#define ADP8870_LED_DIS_BLINK   (0 << FLAG_OFFT_SHIFT)

Definition at line 22 of file adp8870.h.

#define ADP8870_LED_OFFT_1200ms   (2 << FLAG_OFFT_SHIFT)

Definition at line 24 of file adp8870.h.

#define ADP8870_LED_OFFT_1800ms   (3 << FLAG_OFFT_SHIFT)

Definition at line 25 of file adp8870.h.

#define ADP8870_LED_OFFT_600ms   (1 << FLAG_OFFT_SHIFT)

Definition at line 23 of file adp8870.h.

#define ADP8870_LED_ONT_1200ms   3

Definition at line 30 of file adp8870.h.

#define ADP8870_LED_ONT_200ms   0

Definition at line 27 of file adp8870.h.

#define ADP8870_LED_ONT_600ms   1

Definition at line 28 of file adp8870.h.

#define ADP8870_LED_ONT_800ms   2

Definition at line 29 of file adp8870.h.

#define ADP8870_MAX_BRIGHTNESS   0x7F

Definition at line 15 of file adp8870.h.

#define FLAG_OFFT_SHIFT   8

Definition at line 16 of file adp8870.h.

#define ID_ADP8870   8870

Definition at line 13 of file adp8870.h.