Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
aat2870.h File Reference
#include <linux/debugfs.h>
#include <linux/i2c.h>

Go to the source code of this file.

Data Structures

struct  aat2870_register
 
struct  aat2870_data
 
struct  aat2870_subdev_info
 
struct  aat2870_platform_data
 
struct  aat2870_bl_platform_data
 

Macros

#define AAT2870_BL_CH_EN   0x00
 
#define AAT2870_BLM   0x01
 
#define AAT2870_BLS   0x02
 
#define AAT2870_BL1   0x03
 
#define AAT2870_BL2   0x04
 
#define AAT2870_BL3   0x05
 
#define AAT2870_BL4   0x06
 
#define AAT2870_BL5   0x07
 
#define AAT2870_BL6   0x08
 
#define AAT2870_BL7   0x09
 
#define AAT2870_BL8   0x0A
 
#define AAT2870_FLR   0x0B
 
#define AAT2870_FM   0x0C
 
#define AAT2870_FS   0x0D
 
#define AAT2870_ALS_CFG0   0x0E
 
#define AAT2870_ALS_CFG1   0x0F
 
#define AAT2870_ALS_CFG2   0x10
 
#define AAT2870_AMB   0x11
 
#define AAT2870_ALS0   0x12
 
#define AAT2870_ALS1   0x13
 
#define AAT2870_ALS2   0x14
 
#define AAT2870_ALS3   0x15
 
#define AAT2870_ALS4   0x16
 
#define AAT2870_ALS5   0x17
 
#define AAT2870_ALS6   0x18
 
#define AAT2870_ALS7   0x19
 
#define AAT2870_ALS8   0x1A
 
#define AAT2870_ALS9   0x1B
 
#define AAT2870_ALSA   0x1C
 
#define AAT2870_ALSB   0x1D
 
#define AAT2870_ALSC   0x1E
 
#define AAT2870_ALSD   0x1F
 
#define AAT2870_ALSE   0x20
 
#define AAT2870_ALSF   0x21
 
#define AAT2870_SUB_SET   0x22
 
#define AAT2870_SUB_CTRL   0x23
 
#define AAT2870_LDO_AB   0x24
 
#define AAT2870_LDO_CD   0x25
 
#define AAT2870_LDO_EN   0x26
 
#define AAT2870_REG_NUM   0x27
 
#define AAT2870_BL_CH1   0x01
 
#define AAT2870_BL_CH2   0x02
 
#define AAT2870_BL_CH3   0x04
 
#define AAT2870_BL_CH4   0x08
 
#define AAT2870_BL_CH5   0x10
 
#define AAT2870_BL_CH6   0x20
 
#define AAT2870_BL_CH7   0x40
 
#define AAT2870_BL_CH8   0x80
 
#define AAT2870_BL_CH_ALL   0xFF
 

Enumerations

enum  aat2870_id {
  AAT2870_ID_BL, AAT2870_ID_LDOA, AAT2870_ID_LDOB, AAT2870_ID_LDOC,
  AAT2870_ID_LDOD
}
 
enum  aat2870_current {
  AAT2870_CURRENT_0_45 = 1, AAT2870_CURRENT_0_90, AAT2870_CURRENT_1_80, AAT2870_CURRENT_2_70,
  AAT2870_CURRENT_3_60, AAT2870_CURRENT_4_50, AAT2870_CURRENT_5_40, AAT2870_CURRENT_6_30,
  AAT2870_CURRENT_7_20, AAT2870_CURRENT_8_10, AAT2870_CURRENT_9_00, AAT2870_CURRENT_9_90,
  AAT2870_CURRENT_10_8, AAT2870_CURRENT_11_7, AAT2870_CURRENT_12_6, AAT2870_CURRENT_13_5,
  AAT2870_CURRENT_14_4, AAT2870_CURRENT_15_3, AAT2870_CURRENT_16_2, AAT2870_CURRENT_17_1,
  AAT2870_CURRENT_18_0, AAT2870_CURRENT_18_9, AAT2870_CURRENT_19_8, AAT2870_CURRENT_20_7,
  AAT2870_CURRENT_21_6, AAT2870_CURRENT_22_5, AAT2870_CURRENT_23_4, AAT2870_CURRENT_24_3,
  AAT2870_CURRENT_25_2, AAT2870_CURRENT_26_1, AAT2870_CURRENT_27_0, AAT2870_CURRENT_27_9
}
 

Macro Definition Documentation

#define AAT2870_ALS0   0x12

Definition at line 47 of file aat2870.h.

#define AAT2870_ALS1   0x13

Definition at line 48 of file aat2870.h.

#define AAT2870_ALS2   0x14

Definition at line 49 of file aat2870.h.

#define AAT2870_ALS3   0x15

Definition at line 50 of file aat2870.h.

#define AAT2870_ALS4   0x16

Definition at line 51 of file aat2870.h.

#define AAT2870_ALS5   0x17

Definition at line 52 of file aat2870.h.

#define AAT2870_ALS6   0x18

Definition at line 53 of file aat2870.h.

#define AAT2870_ALS7   0x19

Definition at line 54 of file aat2870.h.

#define AAT2870_ALS8   0x1A

Definition at line 55 of file aat2870.h.

#define AAT2870_ALS9   0x1B

Definition at line 56 of file aat2870.h.

#define AAT2870_ALS_CFG0   0x0E

Definition at line 43 of file aat2870.h.

#define AAT2870_ALS_CFG1   0x0F

Definition at line 44 of file aat2870.h.

#define AAT2870_ALS_CFG2   0x10

Definition at line 45 of file aat2870.h.

#define AAT2870_ALSA   0x1C

Definition at line 57 of file aat2870.h.

#define AAT2870_ALSB   0x1D

Definition at line 58 of file aat2870.h.

#define AAT2870_ALSC   0x1E

Definition at line 59 of file aat2870.h.

#define AAT2870_ALSD   0x1F

Definition at line 60 of file aat2870.h.

#define AAT2870_ALSE   0x20

Definition at line 61 of file aat2870.h.

#define AAT2870_ALSF   0x21

Definition at line 62 of file aat2870.h.

#define AAT2870_AMB   0x11

Definition at line 46 of file aat2870.h.

#define AAT2870_BL1   0x03

Definition at line 32 of file aat2870.h.

#define AAT2870_BL2   0x04

Definition at line 33 of file aat2870.h.

#define AAT2870_BL3   0x05

Definition at line 34 of file aat2870.h.

#define AAT2870_BL4   0x06

Definition at line 35 of file aat2870.h.

#define AAT2870_BL5   0x07

Definition at line 36 of file aat2870.h.

#define AAT2870_BL6   0x08

Definition at line 37 of file aat2870.h.

#define AAT2870_BL7   0x09

Definition at line 38 of file aat2870.h.

#define AAT2870_BL8   0x0A

Definition at line 39 of file aat2870.h.

#define AAT2870_BL_CH1   0x01

Definition at line 80 of file aat2870.h.

#define AAT2870_BL_CH2   0x02

Definition at line 81 of file aat2870.h.

#define AAT2870_BL_CH3   0x04

Definition at line 82 of file aat2870.h.

#define AAT2870_BL_CH4   0x08

Definition at line 83 of file aat2870.h.

#define AAT2870_BL_CH5   0x10

Definition at line 84 of file aat2870.h.

#define AAT2870_BL_CH6   0x20

Definition at line 85 of file aat2870.h.

#define AAT2870_BL_CH7   0x40

Definition at line 86 of file aat2870.h.

#define AAT2870_BL_CH8   0x80

Definition at line 87 of file aat2870.h.

#define AAT2870_BL_CH_ALL   0xFF

Definition at line 88 of file aat2870.h.

#define AAT2870_BL_CH_EN   0x00

Definition at line 29 of file aat2870.h.

#define AAT2870_BLM   0x01

Definition at line 30 of file aat2870.h.

#define AAT2870_BLS   0x02

Definition at line 31 of file aat2870.h.

#define AAT2870_FLR   0x0B

Definition at line 40 of file aat2870.h.

#define AAT2870_FM   0x0C

Definition at line 41 of file aat2870.h.

#define AAT2870_FS   0x0D

Definition at line 42 of file aat2870.h.

#define AAT2870_LDO_AB   0x24

Definition at line 65 of file aat2870.h.

#define AAT2870_LDO_CD   0x25

Definition at line 66 of file aat2870.h.

#define AAT2870_LDO_EN   0x26

Definition at line 67 of file aat2870.h.

#define AAT2870_REG_NUM   0x27

Definition at line 68 of file aat2870.h.

#define AAT2870_SUB_CTRL   0x23

Definition at line 64 of file aat2870.h.

#define AAT2870_SUB_SET   0x22

Definition at line 63 of file aat2870.h.

Enumeration Type Documentation

Enumerator:
AAT2870_CURRENT_0_45 
AAT2870_CURRENT_0_90 
AAT2870_CURRENT_1_80 
AAT2870_CURRENT_2_70 
AAT2870_CURRENT_3_60 
AAT2870_CURRENT_4_50 
AAT2870_CURRENT_5_40 
AAT2870_CURRENT_6_30 
AAT2870_CURRENT_7_20 
AAT2870_CURRENT_8_10 
AAT2870_CURRENT_9_00 
AAT2870_CURRENT_9_90 
AAT2870_CURRENT_10_8 
AAT2870_CURRENT_11_7 
AAT2870_CURRENT_12_6 
AAT2870_CURRENT_13_5 
AAT2870_CURRENT_14_4 
AAT2870_CURRENT_15_3 
AAT2870_CURRENT_16_2 
AAT2870_CURRENT_17_1 
AAT2870_CURRENT_18_0 
AAT2870_CURRENT_18_9 
AAT2870_CURRENT_19_8 
AAT2870_CURRENT_20_7 
AAT2870_CURRENT_21_6 
AAT2870_CURRENT_22_5 
AAT2870_CURRENT_23_4 
AAT2870_CURRENT_24_3 
AAT2870_CURRENT_25_2 
AAT2870_CURRENT_26_1 
AAT2870_CURRENT_27_0 
AAT2870_CURRENT_27_9 

Definition at line 91 of file aat2870.h.

enum aat2870_id
Enumerator:
AAT2870_ID_BL 
AAT2870_ID_LDOA 
AAT2870_ID_LDOB 
AAT2870_ID_LDOC 
AAT2870_ID_LDOD 

Definition at line 71 of file aat2870.h.