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

Go to the source code of this file.

Data Structures

struct  tps65010_board
 

Macros

#define TPS_CHGSTATUS   0x01
 
#define TPS_CHG_USB   (1 << 7)
 
#define TPS_CHG_AC   (1 << 6)
 
#define TPS_CHG_THERM   (1 << 5)
 
#define TPS_CHG_TERM   (1 << 4)
 
#define TPS_CHG_TAPER_TMO   (1 << 3)
 
#define TPS_CHG_CHG_TMO   (1 << 2)
 
#define TPS_CHG_PRECHG_TMO   (1 << 1)
 
#define TPS_CHG_TEMP_ERR   (1 << 0)
 
#define TPS_REGSTATUS   0x02
 
#define TPS_REG_ONOFF   (1 << 7)
 
#define TPS_REG_COVER   (1 << 6)
 
#define TPS_REG_UVLO   (1 << 5)
 
#define TPS_REG_NO_CHG   (1 << 4) /* tps65013 */
 
#define TPS_REG_PG_LD02   (1 << 3)
 
#define TPS_REG_PG_LD01   (1 << 2)
 
#define TPS_REG_PG_MAIN   (1 << 1)
 
#define TPS_REG_PG_CORE   (1 << 0)
 
#define TPS_MASK1   0x03
 
#define TPS_MASK2   0x04
 
#define TPS_ACKINT1   0x05
 
#define TPS_ACKINT2   0x06
 
#define TPS_CHGCONFIG   0x07
 
#define TPS_CHARGE_POR   (1 << 7) /* 65010/65012 */
 
#define TPS65013_AUA   (1 << 7) /* 65011/65013 */
 
#define TPS_CHARGE_RESET   (1 << 6)
 
#define TPS_CHARGE_FAST   (1 << 5)
 
#define TPS_CHARGE_CURRENT   (3 << 3)
 
#define TPS_VBUS_500MA   (1 << 2)
 
#define TPS_VBUS_CHARGING   (1 << 1)
 
#define TPS_CHARGE_ENABLE   (1 << 0)
 
#define TPS_LED1_ON   0x08
 
#define TPS_LED1_PER   0x09
 
#define TPS_LED2_ON   0x0a
 
#define TPS_LED2_PER   0x0b
 
#define TPS_VDCDC1   0x0c
 
#define TPS_ENABLE_LP   (1 << 3)
 
#define TPS_VDCDC2   0x0d
 
#define TPS_LP_COREOFF   (1 << 7)
 
#define TPS_VCORE_1_8V   (7<<4)
 
#define TPS_VCORE_1_5V   (6 << 4)
 
#define TPS_VCORE_1_4V   (5 << 4)
 
#define TPS_VCORE_1_3V   (4 << 4)
 
#define TPS_VCORE_1_2V   (3 << 4)
 
#define TPS_VCORE_1_1V   (2 << 4)
 
#define TPS_VCORE_1_0V   (1 << 4)
 
#define TPS_VCORE_0_85V   (0 << 4)
 
#define TPS_VCORE_LP_1_2V   (3 << 2)
 
#define TPS_VCORE_LP_1_1V   (2 << 2)
 
#define TPS_VCORE_LP_1_0V   (1 << 2)
 
#define TPS_VCORE_LP_0_85V   (0 << 2)
 
#define TPS_VIB   (1 << 1)
 
#define TPS_VCORE_DISCH   (1 << 0)
 
#define TPS_VREGS1   0x0e
 
#define TPS_LDO2_ENABLE   (1 << 7)
 
#define TPS_LDO2_OFF   (1 << 6)
 
#define TPS_VLDO2_3_0V   (3 << 4)
 
#define TPS_VLDO2_2_75V   (2 << 4)
 
#define TPS_VLDO2_2_5V   (1 << 4)
 
#define TPS_VLDO2_1_8V   (0 << 4)
 
#define TPS_LDO1_ENABLE   (1 << 3)
 
#define TPS_LDO1_OFF   (1 << 2)
 
#define TPS_VLDO1_3_0V   (3 << 0)
 
#define TPS_VLDO1_2_75V   (2 << 0)
 
#define TPS_VLDO1_2_5V   (1 << 0)
 
#define TPS_VLDO1_ADJ   (0 << 0)
 
#define TPS_MASK3   0x0f
 
#define TPS_DEFGPIO   0x10
 
#define LED1   1
 
#define LED2   2
 
#define OFF   0
 
#define ON   1
 
#define BLINK   2
 
#define GPIO1   1
 
#define GPIO2   2
 
#define GPIO3   3
 
#define GPIO4   4
 
#define LOW   0
 
#define HIGH   1
 

Functions

int tps65010_set_vbus_draw (unsigned mA)
 
int tps65010_set_gpio_out_value (unsigned gpio, unsigned value)
 
int tps65010_set_led (unsigned led, unsigned mode)
 
int tps65010_set_vib (unsigned value)
 
int tps65010_set_low_pwr (unsigned mode)
 
int tps65010_config_vregs1 (unsigned value)
 
int tps65013_set_low_pwr (unsigned mode)
 
int tps65010_config_vdcdc2 (unsigned value)
 

Macro Definition Documentation

#define BLINK   2

Definition at line 116 of file tps65010.h.

#define GPIO1   1

Definition at line 117 of file tps65010.h.

#define GPIO2   2

Definition at line 118 of file tps65010.h.

#define GPIO3   3

Definition at line 119 of file tps65010.h.

#define GPIO4   4

Definition at line 120 of file tps65010.h.

#define HIGH   1

Definition at line 122 of file tps65010.h.

#define LED1   1

Definition at line 112 of file tps65010.h.

#define LED2   2

Definition at line 113 of file tps65010.h.

#define LOW   0

Definition at line 121 of file tps65010.h.

#define OFF   0

Definition at line 114 of file tps65010.h.

#define ON   1

Definition at line 115 of file tps65010.h.

#define TPS65013_AUA   (1 << 7) /* 65011/65013 */

Definition at line 61 of file tps65010.h.

#define TPS_ACKINT1   0x05

Definition at line 57 of file tps65010.h.

#define TPS_ACKINT2   0x06

Definition at line 58 of file tps65010.h.

#define TPS_CHARGE_CURRENT   (3 << 3)

Definition at line 64 of file tps65010.h.

#define TPS_CHARGE_ENABLE   (1 << 0)

Definition at line 67 of file tps65010.h.

#define TPS_CHARGE_FAST   (1 << 5)

Definition at line 63 of file tps65010.h.

#define TPS_CHARGE_POR   (1 << 7) /* 65010/65012 */

Definition at line 60 of file tps65010.h.

#define TPS_CHARGE_RESET   (1 << 6)

Definition at line 62 of file tps65010.h.

#define TPS_CHG_AC   (1 << 6)

Definition at line 39 of file tps65010.h.

#define TPS_CHG_CHG_TMO   (1 << 2)

Definition at line 43 of file tps65010.h.

#define TPS_CHG_PRECHG_TMO   (1 << 1)

Definition at line 44 of file tps65010.h.

#define TPS_CHG_TAPER_TMO   (1 << 3)

Definition at line 42 of file tps65010.h.

#define TPS_CHG_TEMP_ERR   (1 << 0)

Definition at line 45 of file tps65010.h.

#define TPS_CHG_TERM   (1 << 4)

Definition at line 41 of file tps65010.h.

#define TPS_CHG_THERM   (1 << 5)

Definition at line 40 of file tps65010.h.

#define TPS_CHG_USB   (1 << 7)

Definition at line 38 of file tps65010.h.

#define TPS_CHGCONFIG   0x07

Definition at line 59 of file tps65010.h.

#define TPS_CHGSTATUS   0x01

Definition at line 37 of file tps65010.h.

#define TPS_DEFGPIO   0x10

Definition at line 104 of file tps65010.h.

#define TPS_ENABLE_LP   (1 << 3)

Definition at line 73 of file tps65010.h.

#define TPS_LDO1_ENABLE   (1 << 3)

Definition at line 97 of file tps65010.h.

#define TPS_LDO1_OFF   (1 << 2)

Definition at line 98 of file tps65010.h.

#define TPS_LDO2_ENABLE   (1 << 7)

Definition at line 91 of file tps65010.h.

#define TPS_LDO2_OFF   (1 << 6)

Definition at line 92 of file tps65010.h.

#define TPS_LED1_ON   0x08

Definition at line 68 of file tps65010.h.

#define TPS_LED1_PER   0x09

Definition at line 69 of file tps65010.h.

#define TPS_LED2_ON   0x0a

Definition at line 70 of file tps65010.h.

#define TPS_LED2_PER   0x0b

Definition at line 71 of file tps65010.h.

#define TPS_LP_COREOFF   (1 << 7)

Definition at line 75 of file tps65010.h.

#define TPS_MASK1   0x03

Definition at line 55 of file tps65010.h.

#define TPS_MASK2   0x04

Definition at line 56 of file tps65010.h.

#define TPS_MASK3   0x0f

Definition at line 103 of file tps65010.h.

#define TPS_REG_COVER   (1 << 6)

Definition at line 48 of file tps65010.h.

#define TPS_REG_NO_CHG   (1 << 4) /* tps65013 */

Definition at line 50 of file tps65010.h.

#define TPS_REG_ONOFF   (1 << 7)

Definition at line 47 of file tps65010.h.

#define TPS_REG_PG_CORE   (1 << 0)

Definition at line 54 of file tps65010.h.

#define TPS_REG_PG_LD01   (1 << 2)

Definition at line 52 of file tps65010.h.

#define TPS_REG_PG_LD02   (1 << 3)

Definition at line 51 of file tps65010.h.

#define TPS_REG_PG_MAIN   (1 << 1)

Definition at line 53 of file tps65010.h.

#define TPS_REG_UVLO   (1 << 5)

Definition at line 49 of file tps65010.h.

#define TPS_REGSTATUS   0x02

Definition at line 46 of file tps65010.h.

#define TPS_VBUS_500MA   (1 << 2)

Definition at line 65 of file tps65010.h.

#define TPS_VBUS_CHARGING   (1 << 1)

Definition at line 66 of file tps65010.h.

#define TPS_VCORE_0_85V   (0 << 4)

Definition at line 83 of file tps65010.h.

#define TPS_VCORE_1_0V   (1 << 4)

Definition at line 82 of file tps65010.h.

#define TPS_VCORE_1_1V   (2 << 4)

Definition at line 81 of file tps65010.h.

#define TPS_VCORE_1_2V   (3 << 4)

Definition at line 80 of file tps65010.h.

#define TPS_VCORE_1_3V   (4 << 4)

Definition at line 79 of file tps65010.h.

#define TPS_VCORE_1_4V   (5 << 4)

Definition at line 78 of file tps65010.h.

#define TPS_VCORE_1_5V   (6 << 4)

Definition at line 77 of file tps65010.h.

#define TPS_VCORE_1_8V   (7<<4)

Definition at line 76 of file tps65010.h.

#define TPS_VCORE_DISCH   (1 << 0)

Definition at line 89 of file tps65010.h.

#define TPS_VCORE_LP_0_85V   (0 << 2)

Definition at line 87 of file tps65010.h.

#define TPS_VCORE_LP_1_0V   (1 << 2)

Definition at line 86 of file tps65010.h.

#define TPS_VCORE_LP_1_1V   (2 << 2)

Definition at line 85 of file tps65010.h.

#define TPS_VCORE_LP_1_2V   (3 << 2)

Definition at line 84 of file tps65010.h.

#define TPS_VDCDC1   0x0c

Definition at line 72 of file tps65010.h.

#define TPS_VDCDC2   0x0d

Definition at line 74 of file tps65010.h.

#define TPS_VIB   (1 << 1)

Definition at line 88 of file tps65010.h.

#define TPS_VLDO1_2_5V   (1 << 0)

Definition at line 101 of file tps65010.h.

#define TPS_VLDO1_2_75V   (2 << 0)

Definition at line 100 of file tps65010.h.

#define TPS_VLDO1_3_0V   (3 << 0)

Definition at line 99 of file tps65010.h.

#define TPS_VLDO1_ADJ   (0 << 0)

Definition at line 102 of file tps65010.h.

#define TPS_VLDO2_1_8V   (0 << 4)

Definition at line 96 of file tps65010.h.

#define TPS_VLDO2_2_5V   (1 << 4)

Definition at line 95 of file tps65010.h.

#define TPS_VLDO2_2_75V   (2 << 4)

Definition at line 94 of file tps65010.h.

#define TPS_VLDO2_3_0V   (3 << 4)

Definition at line 93 of file tps65010.h.

#define TPS_VREGS1   0x0e

Definition at line 90 of file tps65010.h.

Function Documentation

int tps65010_config_vdcdc2 ( unsigned  value)

Definition at line 964 of file tps65010.c.

int tps65010_config_vregs1 ( unsigned  value)

Definition at line 936 of file tps65010.c.

int tps65010_set_gpio_out_value ( unsigned  gpio,
unsigned  value 
)

Definition at line 734 of file tps65010.c.

int tps65010_set_led ( unsigned  led,
unsigned  mode 
)

Definition at line 779 of file tps65010.c.

int tps65010_set_low_pwr ( unsigned  mode)

Definition at line 889 of file tps65010.c.

int tps65010_set_vbus_draw ( unsigned  mA)

Definition at line 701 of file tps65010.c.

int tps65010_set_vib ( unsigned  value)

Definition at line 861 of file tps65010.c.

int tps65013_set_low_pwr ( unsigned  mode)

Definition at line 1000 of file tps65010.c.