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

Go to the source code of this file.

Data Structures

struct  tps65912_board
 
struct  tps65912
 
struct  tps65912_platform_data
 

Macros

#define REGULATOR_LDO   0
 
#define REGULATOR_DCDC   1
 
#define TPS65912_DCDC1_CTRL   0x00
 
#define TPS65912_DCDC2_CTRL   0x01
 
#define TPS65912_DCDC3_CTRL   0x02
 
#define TPS65912_DCDC4_CTRL   0x03
 
#define TPS65912_DCDC1_OP   0x04
 
#define TPS65912_DCDC1_AVS   0x05
 
#define TPS65912_DCDC1_LIMIT   0x06
 
#define TPS65912_DCDC2_OP   0x07
 
#define TPS65912_DCDC2_AVS   0x08
 
#define TPS65912_DCDC2_LIMIT   0x09
 
#define TPS65912_DCDC3_OP   0x0A
 
#define TPS65912_DCDC3_AVS   0x0B
 
#define TPS65912_DCDC3_LIMIT   0x0C
 
#define TPS65912_DCDC4_OP   0x0D
 
#define TPS65912_DCDC4_AVS   0x0E
 
#define TPS65912_DCDC4_LIMIT   0x0F
 
#define TPS65912_LDO1_OP   0x10
 
#define TPS65912_LDO1_AVS   0x11
 
#define TPS65912_LDO1_LIMIT   0x12
 
#define TPS65912_LDO2_OP   0x13
 
#define TPS65912_LDO2_AVS   0x14
 
#define TPS65912_LDO2_LIMIT   0x15
 
#define TPS65912_LDO3_OP   0x16
 
#define TPS65912_LDO3_AVS   0x17
 
#define TPS65912_LDO3_LIMIT   0x18
 
#define TPS65912_LDO4_OP   0x19
 
#define TPS65912_LDO4_AVS   0x1A
 
#define TPS65912_LDO4_LIMIT   0x1B
 
#define TPS65912_LDO5   0x1C
 
#define TPS65912_LDO6   0x1D
 
#define TPS65912_LDO7   0x1E
 
#define TPS65912_LDO8   0x1F
 
#define TPS65912_LDO9   0x20
 
#define TPS65912_LDO10   0x21
 
#define TPS65912_THRM   0x22
 
#define TPS65912_CLK32OUT   0x23
 
#define TPS65912_DEVCTRL   0x24
 
#define TPS65912_DEVCTRL2   0x25
 
#define TPS65912_I2C_SPI_CFG   0x26
 
#define TPS65912_KEEP_ON   0x27
 
#define TPS65912_KEEP_ON2   0x28
 
#define TPS65912_SET_OFF1   0x29
 
#define TPS65912_SET_OFF2   0x2A
 
#define TPS65912_DEF_VOLT   0x2B
 
#define TPS65912_DEF_VOLT_MAPPING   0x2C
 
#define TPS65912_DISCHARGE   0x2D
 
#define TPS65912_DISCHARGE2   0x2E
 
#define TPS65912_EN1_SET1   0x2F
 
#define TPS65912_EN1_SET2   0x30
 
#define TPS65912_EN2_SET1   0x31
 
#define TPS65912_EN2_SET2   0x32
 
#define TPS65912_EN3_SET1   0x33
 
#define TPS65912_EN3_SET2   0x34
 
#define TPS65912_EN4_SET1   0x35
 
#define TPS65912_EN4_SET2   0x36
 
#define TPS65912_PGOOD   0x37
 
#define TPS65912_PGOOD2   0x38
 
#define TPS65912_INT_STS   0x39
 
#define TPS65912_INT_MSK   0x3A
 
#define TPS65912_INT_STS2   0x3B
 
#define TPS65912_INT_MSK2   0x3C
 
#define TPS65912_INT_STS3   0x3D
 
#define TPS65912_INT_MSK3   0x3E
 
#define TPS65912_INT_STS4   0x3F
 
#define TPS65912_INT_MSK4   0x40
 
#define TPS65912_GPIO1   0x41
 
#define TPS65912_GPIO2   0x42
 
#define TPS65912_GPIO3   0x43
 
#define TPS65912_GPIO4   0x44
 
#define TPS65912_GPIO5   0x45
 
#define TPS65912_VMON   0x46
 
#define TPS65912_LEDA_CTRL1   0x47
 
#define TPS65912_LEDA_CTRL2   0x48
 
#define TPS65912_LEDA_CTRL3   0x49
 
#define TPS65912_LEDA_CTRL4   0x4A
 
#define TPS65912_LEDA_CTRL5   0x4B
 
#define TPS65912_LEDA_CTRL6   0x4C
 
#define TPS65912_LEDA_CTRL7   0x4D
 
#define TPS65912_LEDA_CTRL8   0x4E
 
#define TPS65912_LEDB_CTRL1   0x4F
 
#define TPS65912_LEDB_CTRL2   0x50
 
#define TPS65912_LEDB_CTRL3   0x51
 
#define TPS65912_LEDB_CTRL4   0x52
 
#define TPS65912_LEDB_CTRL5   0x53
 
#define TPS65912_LEDB_CTRL6   0x54
 
#define TPS65912_LEDB_CTRL7   0x55
 
#define TPS65912_LEDB_CTRL8   0x56
 
#define TPS65912_LEDC_CTRL1   0x57
 
#define TPS65912_LEDC_CTRL2   0x58
 
#define TPS65912_LEDC_CTRL3   0x59
 
#define TPS65912_LEDC_CTRL4   0x5A
 
#define TPS65912_LEDC_CTRL5   0x5B
 
#define TPS65912_LEDC_CTRL6   0x5C
 
#define TPS65912_LEDC_CTRL7   0x5D
 
#define TPS65912_LEDC_CTRL8   0x5E
 
#define TPS65912_LED_RAMP_UP_TIME   0x5F
 
#define TPS65912_LED_RAMP_DOWN_TIME   0x60
 
#define TPS65912_LED_SEQ_EN   0x61
 
#define TPS65912_LOADSWITCH   0x62
 
#define TPS65912_SPARE   0x63
 
#define TPS65912_VERNUM   0x64
 
#define TPS6591X_MAX_REGISTER   0x64
 
#define TPS65912_IRQ_PWRHOLD_F   0
 
#define TPS65912_IRQ_VMON   1
 
#define TPS65912_IRQ_PWRON   2
 
#define TPS65912_IRQ_PWRON_LP   3
 
#define TPS65912_IRQ_PWRHOLD_R   4
 
#define TPS65912_IRQ_HOTDIE   5
 
#define TPS65912_IRQ_GPIO1_R   6
 
#define TPS65912_IRQ_GPIO1_F   7
 
#define TPS65912_IRQ_GPIO2_R   8
 
#define TPS65912_IRQ_GPIO2_F   9
 
#define TPS65912_IRQ_GPIO3_R   10
 
#define TPS65912_IRQ_GPIO3_F   11
 
#define TPS65912_IRQ_GPIO4_R   12
 
#define TPS65912_IRQ_GPIO4_F   13
 
#define TPS65912_IRQ_GPIO5_R   14
 
#define TPS65912_IRQ_GPIO5_F   15
 
#define TPS65912_IRQ_PGOOD_DCDC1   16
 
#define TPS65912_IRQ_PGOOD_DCDC2   17
 
#define TPS65912_IRQ_PGOOD_DCDC3   18
 
#define TPS65912_IRQ_PGOOD_DCDC4   19
 
#define TPS65912_IRQ_PGOOD_LDO1   20
 
#define TPS65912_IRQ_PGOOD_LDO2   21
 
#define TPS65912_IRQ_PGOOD_LDO3   22
 
#define TPS65912_IRQ_PGOOD_LDO4   23
 
#define TPS65912_IRQ_PGOOD_LDO5   24
 
#define TPS65912_IRQ_PGOOD_LDO6   25
 
#define TPS65912_IRQ_PGOOD_LDO7   26
 
#define TPS65912_IRQ_PGOOD_LD08   27
 
#define TPS65912_IRQ_PGOOD_LDO9   28
 
#define TPS65912_IRQ_PGOOD_LDO10   29
 
#define TPS65912_NUM_IRQ   30
 
#define GPIO_SLEEP_MASK   0x80
 
#define GPIO_SLEEP_SHIFT   7
 
#define GPIO_DEB_MASK   0x10
 
#define GPIO_DEB_SHIFT   4
 
#define GPIO_CFG_MASK   0x04
 
#define GPIO_CFG_SHIFT   2
 
#define GPIO_STS_MASK   0x02
 
#define GPIO_STS_SHIFT   1
 
#define GPIO_SET_MASK   0x01
 
#define GPIO_SET_SHIFT   0
 
#define GPIO3_SLEEP_MASK   0x80
 
#define GPIO3_SLEEP_SHIFT   7
 
#define GPIO3_SEL_MASK   0x40
 
#define GPIO3_SEL_SHIFT   6
 
#define GPIO3_ODEN_MASK   0x20
 
#define GPIO3_ODEN_SHIFT   5
 
#define GPIO3_DEB_MASK   0x10
 
#define GPIO3_DEB_SHIFT   4
 
#define GPIO3_PDEN_MASK   0x08
 
#define GPIO3_PDEN_SHIFT   3
 
#define GPIO3_CFG_MASK   0x04
 
#define GPIO3_CFG_SHIFT   2
 
#define GPIO3_STS_MASK   0x02
 
#define GPIO3_STS_SHIFT   1
 
#define GPIO3_SET_MASK   0x01
 
#define GPIO3_SET_SHIFT   0
 
#define GPIO4_SLEEP_MASK   0x80
 
#define GPIO4_SLEEP_SHIFT   7
 
#define GPIO4_SEL_MASK   0x40
 
#define GPIO4_SEL_SHIFT   6
 
#define GPIO4_ODEN_MASK   0x20
 
#define GPIO4_ODEN_SHIFT   5
 
#define GPIO4_DEB_MASK   0x10
 
#define GPIO4_DEB_SHIFT   4
 
#define GPIO4_PDEN_MASK   0x08
 
#define GPIO4_PDEN_SHIFT   3
 
#define GPIO4_CFG_MASK   0x04
 
#define GPIO4_CFG_SHIFT   2
 
#define GPIO4_STS_MASK   0x02
 
#define GPIO4_STS_SHIFT   1
 
#define GPIO4_SET_MASK   0x01
 
#define GPIO4_SET_SHIFT   0
 
#define THERM_THERM_HD_MASK   0x20
 
#define THERM_THERM_HD_SHIFT   5
 
#define THERM_THERM_TS_MASK   0x10
 
#define THERM_THERM_TS_SHIFT   4
 
#define THERM_THERM_HDSEL_MASK   0x0C
 
#define THERM_THERM_HDSEL_SHIFT   2
 
#define THERM_RSVD1_MASK   0x02
 
#define THERM_RSVD1_SHIFT   1
 
#define THERM_THERM_STATE_MASK   0x01
 
#define THERM_THERM_STATE_SHIFT   0
 
#define DCDCCTRL_VCON_ENABLE_MASK   0x80
 
#define DCDCCTRL_VCON_ENABLE_SHIFT   7
 
#define DCDCCTRL_VCON_RANGE1_MASK   0x40
 
#define DCDCCTRL_VCON_RANGE1_SHIFT   6
 
#define DCDCCTRL_VCON_RANGE0_MASK   0x20
 
#define DCDCCTRL_VCON_RANGE0_SHIFT   5
 
#define DCDCCTRL_TSTEP2_MASK   0x10
 
#define DCDCCTRL_TSTEP2_SHIFT   4
 
#define DCDCCTRL_TSTEP1_MASK   0x08
 
#define DCDCCTRL_TSTEP1_SHIFT   3
 
#define DCDCCTRL_TSTEP0_MASK   0x04
 
#define DCDCCTRL_TSTEP0_SHIFT   2
 
#define DCDCCTRL_DCDC1_MODE_MASK   0x02
 
#define DCDCCTRL_DCDC1_MODE_SHIFT   1
 
#define DCDCCTRL_TSTEP2_MASK   0x10
 
#define DCDCCTRL_TSTEP2_SHIFT   4
 
#define DCDCCTRL_TSTEP1_MASK   0x08
 
#define DCDCCTRL_TSTEP1_SHIFT   3
 
#define DCDCCTRL_TSTEP0_MASK   0x04
 
#define DCDCCTRL_TSTEP0_SHIFT   2
 
#define DCDCCTRL_DCDC_MODE_MASK   0x02
 
#define DCDCCTRL_DCDC_MODE_SHIFT   1
 
#define DCDCCTRL_RSVD0_MASK   0x01
 
#define DCDCCTRL_RSVD0_SHIFT   0
 
#define DCDCCTRL_RAMP_TIME_MASK   0x01
 
#define DCDCCTRL_RAMP_TIME_SHIFT   0
 
#define DCDC_AVS_ENABLE_MASK   0x80
 
#define DCDC_AVS_ENABLE_SHIFT   7
 
#define DCDC_AVS_ECO_MASK   0x40
 
#define DCDC_AVS_ECO_SHIFT   6
 
#define DCDC_LIMIT_RANGE_MASK   0xC0
 
#define DCDC_LIMIT_RANGE_SHIFT   6
 
#define DCDC_LIMIT_MAX_SEL_MASK   0x3F
 
#define DCDC_LIMIT_MAX_SEL_SHIFT   0
 

Functions

unsigned int tps_chip (void)
 
int tps65912_set_bits (struct tps65912 *tps65912, u8 reg, u8 mask)
 
int tps65912_clear_bits (struct tps65912 *tps65912, u8 reg, u8 mask)
 
int tps65912_reg_read (struct tps65912 *tps65912, u8 reg)
 
int tps65912_reg_write (struct tps65912 *tps65912, u8 reg, u8 val)
 
int tps65912_device_init (struct tps65912 *tps65912)
 
void tps65912_device_exit (struct tps65912 *tps65912)
 
int tps65912_irq_init (struct tps65912 *tps65912, int irq, struct tps65912_platform_data *pdata)
 

Macro Definition Documentation

#define DCDC_AVS_ECO_MASK   0x40

Definition at line 258 of file tps65912.h.

#define DCDC_AVS_ECO_SHIFT   6

Definition at line 259 of file tps65912.h.

#define DCDC_AVS_ENABLE_MASK   0x80

Definition at line 256 of file tps65912.h.

#define DCDC_AVS_ENABLE_SHIFT   7

Definition at line 257 of file tps65912.h.

#define DCDC_LIMIT_MAX_SEL_MASK   0x3F

Definition at line 264 of file tps65912.h.

#define DCDC_LIMIT_MAX_SEL_SHIFT   0

Definition at line 265 of file tps65912.h.

#define DCDC_LIMIT_RANGE_MASK   0xC0

Definition at line 262 of file tps65912.h.

#define DCDC_LIMIT_RANGE_SHIFT   6

Definition at line 263 of file tps65912.h.

#define DCDCCTRL_DCDC1_MODE_MASK   0x02

Definition at line 236 of file tps65912.h.

#define DCDCCTRL_DCDC1_MODE_SHIFT   1

Definition at line 237 of file tps65912.h.

#define DCDCCTRL_DCDC_MODE_MASK   0x02

Definition at line 246 of file tps65912.h.

#define DCDCCTRL_DCDC_MODE_SHIFT   1

Definition at line 247 of file tps65912.h.

#define DCDCCTRL_RAMP_TIME_MASK   0x01

Definition at line 252 of file tps65912.h.

#define DCDCCTRL_RAMP_TIME_SHIFT   0

Definition at line 253 of file tps65912.h.

#define DCDCCTRL_RSVD0_MASK   0x01

Definition at line 248 of file tps65912.h.

#define DCDCCTRL_RSVD0_SHIFT   0

Definition at line 249 of file tps65912.h.

#define DCDCCTRL_TSTEP0_MASK   0x04

Definition at line 244 of file tps65912.h.

#define DCDCCTRL_TSTEP0_MASK   0x04

Definition at line 244 of file tps65912.h.

#define DCDCCTRL_TSTEP0_SHIFT   2

Definition at line 245 of file tps65912.h.

#define DCDCCTRL_TSTEP0_SHIFT   2

Definition at line 245 of file tps65912.h.

#define DCDCCTRL_TSTEP1_MASK   0x08

Definition at line 242 of file tps65912.h.

#define DCDCCTRL_TSTEP1_MASK   0x08

Definition at line 242 of file tps65912.h.

#define DCDCCTRL_TSTEP1_SHIFT   3

Definition at line 243 of file tps65912.h.

#define DCDCCTRL_TSTEP1_SHIFT   3

Definition at line 243 of file tps65912.h.

#define DCDCCTRL_TSTEP2_MASK   0x10

Definition at line 240 of file tps65912.h.

#define DCDCCTRL_TSTEP2_MASK   0x10

Definition at line 240 of file tps65912.h.

#define DCDCCTRL_TSTEP2_SHIFT   4

Definition at line 241 of file tps65912.h.

#define DCDCCTRL_TSTEP2_SHIFT   4

Definition at line 241 of file tps65912.h.

#define DCDCCTRL_VCON_ENABLE_MASK   0x80

Definition at line 224 of file tps65912.h.

#define DCDCCTRL_VCON_ENABLE_SHIFT   7

Definition at line 225 of file tps65912.h.

#define DCDCCTRL_VCON_RANGE0_MASK   0x20

Definition at line 228 of file tps65912.h.

#define DCDCCTRL_VCON_RANGE0_SHIFT   5

Definition at line 229 of file tps65912.h.

#define DCDCCTRL_VCON_RANGE1_MASK   0x40

Definition at line 226 of file tps65912.h.

#define DCDCCTRL_VCON_RANGE1_SHIFT   6

Definition at line 227 of file tps65912.h.

#define GPIO3_CFG_MASK   0x04

Definition at line 186 of file tps65912.h.

#define GPIO3_CFG_SHIFT   2

Definition at line 187 of file tps65912.h.

#define GPIO3_DEB_MASK   0x10

Definition at line 182 of file tps65912.h.

#define GPIO3_DEB_SHIFT   4

Definition at line 183 of file tps65912.h.

#define GPIO3_ODEN_MASK   0x20

Definition at line 180 of file tps65912.h.

#define GPIO3_ODEN_SHIFT   5

Definition at line 181 of file tps65912.h.

#define GPIO3_PDEN_MASK   0x08

Definition at line 184 of file tps65912.h.

#define GPIO3_PDEN_SHIFT   3

Definition at line 185 of file tps65912.h.

#define GPIO3_SEL_MASK   0x40

Definition at line 178 of file tps65912.h.

#define GPIO3_SEL_SHIFT   6

Definition at line 179 of file tps65912.h.

#define GPIO3_SET_MASK   0x01

Definition at line 190 of file tps65912.h.

#define GPIO3_SET_SHIFT   0

Definition at line 191 of file tps65912.h.

#define GPIO3_SLEEP_MASK   0x80

Definition at line 176 of file tps65912.h.

#define GPIO3_SLEEP_SHIFT   7

Definition at line 177 of file tps65912.h.

#define GPIO3_STS_MASK   0x02

Definition at line 188 of file tps65912.h.

#define GPIO3_STS_SHIFT   1

Definition at line 189 of file tps65912.h.

#define GPIO4_CFG_MASK   0x04

Definition at line 204 of file tps65912.h.

#define GPIO4_CFG_SHIFT   2

Definition at line 205 of file tps65912.h.

#define GPIO4_DEB_MASK   0x10

Definition at line 200 of file tps65912.h.

#define GPIO4_DEB_SHIFT   4

Definition at line 201 of file tps65912.h.

#define GPIO4_ODEN_MASK   0x20

Definition at line 198 of file tps65912.h.

#define GPIO4_ODEN_SHIFT   5

Definition at line 199 of file tps65912.h.

#define GPIO4_PDEN_MASK   0x08

Definition at line 202 of file tps65912.h.

#define GPIO4_PDEN_SHIFT   3

Definition at line 203 of file tps65912.h.

#define GPIO4_SEL_MASK   0x40

Definition at line 196 of file tps65912.h.

#define GPIO4_SEL_SHIFT   6

Definition at line 197 of file tps65912.h.

#define GPIO4_SET_MASK   0x01

Definition at line 208 of file tps65912.h.

#define GPIO4_SET_SHIFT   0

Definition at line 209 of file tps65912.h.

#define GPIO4_SLEEP_MASK   0x80

Definition at line 194 of file tps65912.h.

#define GPIO4_SLEEP_SHIFT   7

Definition at line 195 of file tps65912.h.

#define GPIO4_STS_MASK   0x02

Definition at line 206 of file tps65912.h.

#define GPIO4_STS_SHIFT   1

Definition at line 207 of file tps65912.h.

#define GPIO_CFG_MASK   0x04

Definition at line 168 of file tps65912.h.

#define GPIO_CFG_SHIFT   2

Definition at line 169 of file tps65912.h.

#define GPIO_DEB_MASK   0x10

Definition at line 166 of file tps65912.h.

#define GPIO_DEB_SHIFT   4

Definition at line 167 of file tps65912.h.

#define GPIO_SET_MASK   0x01

Definition at line 172 of file tps65912.h.

#define GPIO_SET_SHIFT   0

Definition at line 173 of file tps65912.h.

#define GPIO_SLEEP_MASK   0x80

Definition at line 164 of file tps65912.h.

#define GPIO_SLEEP_SHIFT   7

Definition at line 165 of file tps65912.h.

#define GPIO_STS_MASK   0x02

Definition at line 170 of file tps65912.h.

#define GPIO_STS_SHIFT   1

Definition at line 171 of file tps65912.h.

#define REGULATOR_DCDC   1

Definition at line 20 of file tps65912.h.

#define REGULATOR_LDO   0

Definition at line 19 of file tps65912.h.

#define THERM_RSVD1_MASK   0x02

Definition at line 218 of file tps65912.h.

#define THERM_RSVD1_SHIFT   1

Definition at line 219 of file tps65912.h.

#define THERM_THERM_HD_MASK   0x20

Definition at line 212 of file tps65912.h.

#define THERM_THERM_HD_SHIFT   5

Definition at line 213 of file tps65912.h.

#define THERM_THERM_HDSEL_MASK   0x0C

Definition at line 216 of file tps65912.h.

#define THERM_THERM_HDSEL_SHIFT   2

Definition at line 217 of file tps65912.h.

#define THERM_THERM_STATE_MASK   0x01

Definition at line 220 of file tps65912.h.

#define THERM_THERM_STATE_SHIFT   0

Definition at line 221 of file tps65912.h.

#define THERM_THERM_TS_MASK   0x10

Definition at line 214 of file tps65912.h.

#define THERM_THERM_TS_SHIFT   4

Definition at line 215 of file tps65912.h.

#define TPS65912_CLK32OUT   0x23

Definition at line 61 of file tps65912.h.

#define TPS65912_DCDC1_AVS   0x05

Definition at line 31 of file tps65912.h.

#define TPS65912_DCDC1_CTRL   0x00

Definition at line 26 of file tps65912.h.

#define TPS65912_DCDC1_LIMIT   0x06

Definition at line 32 of file tps65912.h.

#define TPS65912_DCDC1_OP   0x04

Definition at line 30 of file tps65912.h.

#define TPS65912_DCDC2_AVS   0x08

Definition at line 34 of file tps65912.h.

#define TPS65912_DCDC2_CTRL   0x01

Definition at line 27 of file tps65912.h.

#define TPS65912_DCDC2_LIMIT   0x09

Definition at line 35 of file tps65912.h.

#define TPS65912_DCDC2_OP   0x07

Definition at line 33 of file tps65912.h.

#define TPS65912_DCDC3_AVS   0x0B

Definition at line 37 of file tps65912.h.

#define TPS65912_DCDC3_CTRL   0x02

Definition at line 28 of file tps65912.h.

#define TPS65912_DCDC3_LIMIT   0x0C

Definition at line 38 of file tps65912.h.

#define TPS65912_DCDC3_OP   0x0A

Definition at line 36 of file tps65912.h.

#define TPS65912_DCDC4_AVS   0x0E

Definition at line 40 of file tps65912.h.

#define TPS65912_DCDC4_CTRL   0x03

Definition at line 29 of file tps65912.h.

#define TPS65912_DCDC4_LIMIT   0x0F

Definition at line 41 of file tps65912.h.

#define TPS65912_DCDC4_OP   0x0D

Definition at line 39 of file tps65912.h.

#define TPS65912_DEF_VOLT   0x2B

Definition at line 69 of file tps65912.h.

#define TPS65912_DEF_VOLT_MAPPING   0x2C

Definition at line 70 of file tps65912.h.

#define TPS65912_DEVCTRL   0x24

Definition at line 62 of file tps65912.h.

#define TPS65912_DEVCTRL2   0x25

Definition at line 63 of file tps65912.h.

#define TPS65912_DISCHARGE   0x2D

Definition at line 71 of file tps65912.h.

#define TPS65912_DISCHARGE2   0x2E

Definition at line 72 of file tps65912.h.

#define TPS65912_EN1_SET1   0x2F

Definition at line 73 of file tps65912.h.

#define TPS65912_EN1_SET2   0x30

Definition at line 74 of file tps65912.h.

#define TPS65912_EN2_SET1   0x31

Definition at line 75 of file tps65912.h.

#define TPS65912_EN2_SET2   0x32

Definition at line 76 of file tps65912.h.

#define TPS65912_EN3_SET1   0x33

Definition at line 77 of file tps65912.h.

#define TPS65912_EN3_SET2   0x34

Definition at line 78 of file tps65912.h.

#define TPS65912_EN4_SET1   0x35

Definition at line 79 of file tps65912.h.

#define TPS65912_EN4_SET2   0x36

Definition at line 80 of file tps65912.h.

#define TPS65912_GPIO1   0x41

Definition at line 91 of file tps65912.h.

#define TPS65912_GPIO2   0x42

Definition at line 92 of file tps65912.h.

#define TPS65912_GPIO3   0x43

Definition at line 93 of file tps65912.h.

#define TPS65912_GPIO4   0x44

Definition at line 94 of file tps65912.h.

#define TPS65912_GPIO5   0x45

Definition at line 95 of file tps65912.h.

#define TPS65912_I2C_SPI_CFG   0x26

Definition at line 64 of file tps65912.h.

#define TPS65912_INT_MSK   0x3A

Definition at line 84 of file tps65912.h.

#define TPS65912_INT_MSK2   0x3C

Definition at line 86 of file tps65912.h.

#define TPS65912_INT_MSK3   0x3E

Definition at line 88 of file tps65912.h.

#define TPS65912_INT_MSK4   0x40

Definition at line 90 of file tps65912.h.

#define TPS65912_INT_STS   0x39

Definition at line 83 of file tps65912.h.

#define TPS65912_INT_STS2   0x3B

Definition at line 85 of file tps65912.h.

#define TPS65912_INT_STS3   0x3D

Definition at line 87 of file tps65912.h.

#define TPS65912_INT_STS4   0x3F

Definition at line 89 of file tps65912.h.

#define TPS65912_IRQ_GPIO1_F   7

Definition at line 137 of file tps65912.h.

#define TPS65912_IRQ_GPIO1_R   6

Definition at line 136 of file tps65912.h.

#define TPS65912_IRQ_GPIO2_F   9

Definition at line 139 of file tps65912.h.

#define TPS65912_IRQ_GPIO2_R   8

Definition at line 138 of file tps65912.h.

#define TPS65912_IRQ_GPIO3_F   11

Definition at line 141 of file tps65912.h.

#define TPS65912_IRQ_GPIO3_R   10

Definition at line 140 of file tps65912.h.

#define TPS65912_IRQ_GPIO4_F   13

Definition at line 143 of file tps65912.h.

#define TPS65912_IRQ_GPIO4_R   12

Definition at line 142 of file tps65912.h.

#define TPS65912_IRQ_GPIO5_F   15

Definition at line 145 of file tps65912.h.

#define TPS65912_IRQ_GPIO5_R   14

Definition at line 144 of file tps65912.h.

#define TPS65912_IRQ_HOTDIE   5

Definition at line 135 of file tps65912.h.

#define TPS65912_IRQ_PGOOD_DCDC1   16

Definition at line 146 of file tps65912.h.

#define TPS65912_IRQ_PGOOD_DCDC2   17

Definition at line 147 of file tps65912.h.

#define TPS65912_IRQ_PGOOD_DCDC3   18

Definition at line 148 of file tps65912.h.

#define TPS65912_IRQ_PGOOD_DCDC4   19

Definition at line 149 of file tps65912.h.

#define TPS65912_IRQ_PGOOD_LD08   27

Definition at line 157 of file tps65912.h.

#define TPS65912_IRQ_PGOOD_LDO1   20

Definition at line 150 of file tps65912.h.

#define TPS65912_IRQ_PGOOD_LDO10   29

Definition at line 159 of file tps65912.h.

#define TPS65912_IRQ_PGOOD_LDO2   21

Definition at line 151 of file tps65912.h.

#define TPS65912_IRQ_PGOOD_LDO3   22

Definition at line 152 of file tps65912.h.

#define TPS65912_IRQ_PGOOD_LDO4   23

Definition at line 153 of file tps65912.h.

#define TPS65912_IRQ_PGOOD_LDO5   24

Definition at line 154 of file tps65912.h.

#define TPS65912_IRQ_PGOOD_LDO6   25

Definition at line 155 of file tps65912.h.

#define TPS65912_IRQ_PGOOD_LDO7   26

Definition at line 156 of file tps65912.h.

#define TPS65912_IRQ_PGOOD_LDO9   28

Definition at line 158 of file tps65912.h.

#define TPS65912_IRQ_PWRHOLD_F   0

Definition at line 130 of file tps65912.h.

#define TPS65912_IRQ_PWRHOLD_R   4

Definition at line 134 of file tps65912.h.

#define TPS65912_IRQ_PWRON   2

Definition at line 132 of file tps65912.h.

#define TPS65912_IRQ_PWRON_LP   3

Definition at line 133 of file tps65912.h.

#define TPS65912_IRQ_VMON   1

Definition at line 131 of file tps65912.h.

#define TPS65912_KEEP_ON   0x27

Definition at line 65 of file tps65912.h.

#define TPS65912_KEEP_ON2   0x28

Definition at line 66 of file tps65912.h.

#define TPS65912_LDO10   0x21

Definition at line 59 of file tps65912.h.

#define TPS65912_LDO1_AVS   0x11

Definition at line 43 of file tps65912.h.

#define TPS65912_LDO1_LIMIT   0x12

Definition at line 44 of file tps65912.h.

#define TPS65912_LDO1_OP   0x10

Definition at line 42 of file tps65912.h.

#define TPS65912_LDO2_AVS   0x14

Definition at line 46 of file tps65912.h.

#define TPS65912_LDO2_LIMIT   0x15

Definition at line 47 of file tps65912.h.

#define TPS65912_LDO2_OP   0x13

Definition at line 45 of file tps65912.h.

#define TPS65912_LDO3_AVS   0x17

Definition at line 49 of file tps65912.h.

#define TPS65912_LDO3_LIMIT   0x18

Definition at line 50 of file tps65912.h.

#define TPS65912_LDO3_OP   0x16

Definition at line 48 of file tps65912.h.

#define TPS65912_LDO4_AVS   0x1A

Definition at line 52 of file tps65912.h.

#define TPS65912_LDO4_LIMIT   0x1B

Definition at line 53 of file tps65912.h.

#define TPS65912_LDO4_OP   0x19

Definition at line 51 of file tps65912.h.

#define TPS65912_LDO5   0x1C

Definition at line 54 of file tps65912.h.

#define TPS65912_LDO6   0x1D

Definition at line 55 of file tps65912.h.

#define TPS65912_LDO7   0x1E

Definition at line 56 of file tps65912.h.

#define TPS65912_LDO8   0x1F

Definition at line 57 of file tps65912.h.

#define TPS65912_LDO9   0x20

Definition at line 58 of file tps65912.h.

#define TPS65912_LED_RAMP_DOWN_TIME   0x60

Definition at line 122 of file tps65912.h.

#define TPS65912_LED_RAMP_UP_TIME   0x5F

Definition at line 121 of file tps65912.h.

#define TPS65912_LED_SEQ_EN   0x61

Definition at line 123 of file tps65912.h.

#define TPS65912_LEDA_CTRL1   0x47

Definition at line 97 of file tps65912.h.

#define TPS65912_LEDA_CTRL2   0x48

Definition at line 98 of file tps65912.h.

#define TPS65912_LEDA_CTRL3   0x49

Definition at line 99 of file tps65912.h.

#define TPS65912_LEDA_CTRL4   0x4A

Definition at line 100 of file tps65912.h.

#define TPS65912_LEDA_CTRL5   0x4B

Definition at line 101 of file tps65912.h.

#define TPS65912_LEDA_CTRL6   0x4C

Definition at line 102 of file tps65912.h.

#define TPS65912_LEDA_CTRL7   0x4D

Definition at line 103 of file tps65912.h.

#define TPS65912_LEDA_CTRL8   0x4E

Definition at line 104 of file tps65912.h.

#define TPS65912_LEDB_CTRL1   0x4F

Definition at line 105 of file tps65912.h.

#define TPS65912_LEDB_CTRL2   0x50

Definition at line 106 of file tps65912.h.

#define TPS65912_LEDB_CTRL3   0x51

Definition at line 107 of file tps65912.h.

#define TPS65912_LEDB_CTRL4   0x52

Definition at line 108 of file tps65912.h.

#define TPS65912_LEDB_CTRL5   0x53

Definition at line 109 of file tps65912.h.

#define TPS65912_LEDB_CTRL6   0x54

Definition at line 110 of file tps65912.h.

#define TPS65912_LEDB_CTRL7   0x55

Definition at line 111 of file tps65912.h.

#define TPS65912_LEDB_CTRL8   0x56

Definition at line 112 of file tps65912.h.

#define TPS65912_LEDC_CTRL1   0x57

Definition at line 113 of file tps65912.h.

#define TPS65912_LEDC_CTRL2   0x58

Definition at line 114 of file tps65912.h.

#define TPS65912_LEDC_CTRL3   0x59

Definition at line 115 of file tps65912.h.

#define TPS65912_LEDC_CTRL4   0x5A

Definition at line 116 of file tps65912.h.

#define TPS65912_LEDC_CTRL5   0x5B

Definition at line 117 of file tps65912.h.

#define TPS65912_LEDC_CTRL6   0x5C

Definition at line 118 of file tps65912.h.

#define TPS65912_LEDC_CTRL7   0x5D

Definition at line 119 of file tps65912.h.

#define TPS65912_LEDC_CTRL8   0x5E

Definition at line 120 of file tps65912.h.

#define TPS65912_LOADSWITCH   0x62

Definition at line 124 of file tps65912.h.

#define TPS65912_NUM_IRQ   30

Definition at line 161 of file tps65912.h.

#define TPS65912_PGOOD   0x37

Definition at line 81 of file tps65912.h.

#define TPS65912_PGOOD2   0x38

Definition at line 82 of file tps65912.h.

#define TPS65912_SET_OFF1   0x29

Definition at line 67 of file tps65912.h.

#define TPS65912_SET_OFF2   0x2A

Definition at line 68 of file tps65912.h.

#define TPS65912_SPARE   0x63

Definition at line 125 of file tps65912.h.

#define TPS65912_THRM   0x22

Definition at line 60 of file tps65912.h.

#define TPS65912_VERNUM   0x64

Definition at line 126 of file tps65912.h.

#define TPS65912_VMON   0x46

Definition at line 96 of file tps65912.h.

#define TPS6591X_MAX_REGISTER   0x64

Definition at line 127 of file tps65912.h.

Function Documentation

int tps65912_clear_bits ( struct tps65912 tps65912,
u8  reg,
u8  mask 
)

Definition at line 54 of file tps65912-core.c.

void tps65912_device_exit ( struct tps65912 tps65912)

Definition at line 169 of file tps65912-core.c.

int tps65912_device_init ( struct tps65912 tps65912)

Definition at line 124 of file tps65912-core.c.

int tps65912_irq_init ( struct tps65912 tps65912,
int  irq,
struct tps65912_platform_data pdata 
)

Definition at line 157 of file tps65912-irq.c.

int tps65912_reg_read ( struct tps65912 tps65912,
u8  reg 
)

Definition at line 94 of file tps65912-core.c.

int tps65912_reg_write ( struct tps65912 tps65912,
u8  reg,
u8  val 
)

Definition at line 109 of file tps65912-core.c.

int tps65912_set_bits ( struct tps65912 tps65912,
u8  reg,
u8  mask 
)

Definition at line 30 of file tps65912-core.c.

unsigned int tps_chip ( void  )