Linux Kernel
3.7.1
|
Go to the source code of this file.
Data Structures | |
struct | tps65217_bl_pdata |
struct | tps65217_board |
struct | tps_info |
struct | tps65217 |
Functions | |
: Voltage regulator name | |
int | tps65217_reg_read (struct tps65217 *tps, unsigned int reg, unsigned int *val) |
int | tps65217_reg_write (struct tps65217 *tps, unsigned int reg, unsigned int val, unsigned int level) |
int | tps65217_set_bits (struct tps65217 *tps, unsigned int reg, unsigned int mask, unsigned int val, unsigned int level) |
int | tps65217_clear_bits (struct tps65217 *tps, unsigned int reg, unsigned int mask, unsigned int level) |
#define TPS65217 0xF0 |
Definition at line 26 of file tps65217.h.
#define TPS65217_CHGCONFIG0_ACTIVE BIT(3) |
Definition at line 85 of file tps65217.h.
#define TPS65217_CHGCONFIG0_BATTEMP BIT(0) |
Definition at line 88 of file tps65217.h.
#define TPS65217_CHGCONFIG0_CHGTOUT BIT(2) |
Definition at line 86 of file tps65217.h.
#define TPS65217_CHGCONFIG0_DPPM BIT(6) |
Definition at line 82 of file tps65217.h.
#define TPS65217_CHGCONFIG0_PCHGTOUT BIT(1) |
Definition at line 87 of file tps65217.h.
#define TPS65217_CHGCONFIG0_TERMI BIT(4) |
Definition at line 84 of file tps65217.h.
#define TPS65217_CHGCONFIG0_TREG BIT(7) |
Definition at line 81 of file tps65217.h.
#define TPS65217_CHGCONFIG0_TSUSP BIT(5) |
Definition at line 83 of file tps65217.h.
#define TPS65217_CHGCONFIG1_CHG_EN BIT(0) |
Definition at line 96 of file tps65217.h.
#define TPS65217_CHGCONFIG1_NTC_TYPE BIT(4) |
Definition at line 92 of file tps65217.h.
#define TPS65217_CHGCONFIG1_RESET BIT(3) |
Definition at line 93 of file tps65217.h.
#define TPS65217_CHGCONFIG1_SUSP BIT(1) |
Definition at line 95 of file tps65217.h.
#define TPS65217_CHGCONFIG1_TERM BIT(2) |
Definition at line 94 of file tps65217.h.
#define TPS65217_CHGCONFIG1_TMR_ENABLE BIT(5) |
Definition at line 91 of file tps65217.h.
#define TPS65217_CHGCONFIG1_TMR_MASK 0xC0 |
Definition at line 90 of file tps65217.h.
#define TPS65217_CHGCONFIG2_DYNTMR BIT(7) |
Definition at line 98 of file tps65217.h.
#define TPS65217_CHGCONFIG2_PCHRGT BIT(3) |
Definition at line 104 of file tps65217.h.
#define TPS65217_CHGCONFIG2_TERMIF 0x06 |
Definition at line 105 of file tps65217.h.
#define TPS65217_CHGCONFIG2_TRANGE BIT(0) |
Definition at line 106 of file tps65217.h.
#define TPS65217_CHGCONFIG2_VOREG_MASK 0x30 |
Definition at line 100 of file tps65217.h.
#define TPS65217_CHGCONFIG2_VPREGHG BIT(6) |
Definition at line 99 of file tps65217.h.
#define TPS65217_CHGCONFIG3_DPPMTH_MASK 0x30 |
Definition at line 103 of file tps65217.h.
#define TPS65217_CHGCONFIG3_ICHRG_MASK 0xC0 |
Definition at line 102 of file tps65217.h.
#define TPS65217_CHIPID_CHIP_MASK 0xF0 |
Definition at line 64 of file tps65217.h.
#define TPS65217_CHIPID_REV_MASK 0x0F |
Definition at line 65 of file tps65217.h.
#define TPS65217_DEFDCDCX_DCDC_MASK 0x3F |
Definition at line 136 of file tps65217.h.
#define TPS65217_DEFDCDCX_XADJX BIT(7) |
Definition at line 135 of file tps65217.h.
#define TPS65217_DEFLDO1_LDO1_MASK 0x0F |
Definition at line 145 of file tps65217.h.
#define TPS65217_DEFLDO2_LDO2_MASK 0x3F |
Definition at line 148 of file tps65217.h.
#define TPS65217_DEFLDO2_TRACK BIT(6) |
Definition at line 147 of file tps65217.h.
#define TPS65217_DEFLDO3_LDO3_EN BIT(5) |
Definition at line 150 of file tps65217.h.
#define TPS65217_DEFLDO3_LDO3_MASK 0x1F |
Definition at line 151 of file tps65217.h.
#define TPS65217_DEFLDO4_LDO4_EN BIT(5) |
Definition at line 153 of file tps65217.h.
#define TPS65217_DEFLDO4_LDO4_MASK 0x1F |
Definition at line 154 of file tps65217.h.
#define TPS65217_DEFPG_LDO1PGM BIT(3) |
Definition at line 131 of file tps65217.h.
#define TPS65217_DEFPG_LDO2PGM BIT(2) |
Definition at line 132 of file tps65217.h.
#define TPS65217_DEFPG_PGDLY_MASK 0x03 |
Definition at line 133 of file tps65217.h.
#define TPS65217_DEFSLEW_GO BIT(7) |
Definition at line 138 of file tps65217.h.
#define TPS65217_DEFSLEW_GODSBL BIT(6) |
Definition at line 139 of file tps65217.h.
#define TPS65217_DEFSLEW_PFM_EN1 BIT(5) |
Definition at line 140 of file tps65217.h.
#define TPS65217_DEFSLEW_PFM_EN2 BIT(4) |
Definition at line 141 of file tps65217.h.
#define TPS65217_DEFSLEW_PFM_EN3 BIT(3) |
Definition at line 142 of file tps65217.h.
#define TPS65217_DEFSLEW_SLEW_MASK 0x07 |
Definition at line 143 of file tps65217.h.
#define TPS65217_DEFUVLO_UVLO_MASK 0x03 |
Definition at line 165 of file tps65217.h.
#define TPS65217_DEFUVLO_UVLOHYS BIT(2) |
Definition at line 164 of file tps65217.h.
#define TPS65217_ENABLE_DC1_EN BIT(4) |
Definition at line 158 of file tps65217.h.
#define TPS65217_ENABLE_DC2_EN BIT(3) |
Definition at line 159 of file tps65217.h.
#define TPS65217_ENABLE_DC3_EN BIT(2) |
Definition at line 160 of file tps65217.h.
#define TPS65217_ENABLE_LDO1_EN BIT(1) |
Definition at line 161 of file tps65217.h.
#define TPS65217_ENABLE_LDO2_EN BIT(0) |
Definition at line 162 of file tps65217.h.
#define TPS65217_ENABLE_LS1_EN BIT(6) |
Definition at line 156 of file tps65217.h.
#define TPS65217_ENABLE_LS2_EN BIT(5) |
Definition at line 157 of file tps65217.h.
#define TPS65217_I2C_ID 0x24 |
Definition at line 29 of file tps65217.h.
#define TPS65217_INT_ACI BIT(1) |
Definition at line 78 of file tps65217.h.
#define TPS65217_INT_ACM BIT(5) |
Definition at line 75 of file tps65217.h.
#define TPS65217_INT_PBI BIT(2) |
Definition at line 77 of file tps65217.h.
#define TPS65217_INT_PBM BIT(6) |
Definition at line 74 of file tps65217.h.
#define TPS65217_INT_USBI BIT(0) |
Definition at line 79 of file tps65217.h.
#define TPS65217_INT_USBM BIT(4) |
Definition at line 76 of file tps65217.h.
#define TPS65217_MAX_REG_ID TPS65217_LDO_4 |
Definition at line 207 of file tps65217.h.
#define TPS65217_MAX_REGISTER 0x1E |
Definition at line 189 of file tps65217.h.
#define TPS65217_MUXCTRL_MUX_MASK 0x07 |
Definition at line 114 of file tps65217.h.
#define TPS65217_NUM_DCDC 3 |
Definition at line 210 of file tps65217.h.
#define TPS65217_NUM_LDO 4 |
Definition at line 212 of file tps65217.h.
#define TPS65217_NUM_REGULATOR (TPS65217_NUM_DCDC + TPS65217_NUM_LDO) |
Definition at line 214 of file tps65217.h.
#define TPS65217_PASSWORD_REGS_UNLOCK 0x7D |
Definition at line 121 of file tps65217.h.
#define TPS65217_PGOOD_DC1_PG BIT(4) |
Definition at line 125 of file tps65217.h.
#define TPS65217_PGOOD_DC2_PG BIT(3) |
Definition at line 126 of file tps65217.h.
#define TPS65217_PGOOD_DC3_PG BIT(2) |
Definition at line 127 of file tps65217.h.
#define TPS65217_PGOOD_LDO1_PG BIT(1) |
Definition at line 128 of file tps65217.h.
#define TPS65217_PGOOD_LDO2_PG BIT(0) |
Definition at line 129 of file tps65217.h.
#define TPS65217_PGOOD_LDO3_PG BIT(6) |
Definition at line 123 of file tps65217.h.
#define TPS65217_PGOOD_LDO4_PG BIT(5) |
Definition at line 124 of file tps65217.h.
#define TPS65217_PPATH_AC_CURRENT_MASK 0x0C |
Definition at line 71 of file tps65217.h.
#define TPS65217_PPATH_AC_PW_ENABLE BIT(5) |
Definition at line 69 of file tps65217.h.
#define TPS65217_PPATH_ACSINK_ENABLE BIT(7) |
Definition at line 67 of file tps65217.h.
#define TPS65217_PPATH_USB_CURRENT_MASK 0x03 |
Definition at line 72 of file tps65217.h.
#define TPS65217_PPATH_USB_PW_ENABLE BIT(4) |
Definition at line 70 of file tps65217.h.
#define TPS65217_PPATH_USBSINK_ENABLE BIT(6) |
Definition at line 68 of file tps65217.h.
#define TPS65217_PROTECT_L1 1 |
Definition at line 191 of file tps65217.h.
#define TPS65217_PROTECT_L2 2 |
Definition at line 192 of file tps65217.h.
#define TPS65217_PROTECT_NONE 0 |
Definition at line 190 of file tps65217.h.
#define TPS65217_REG_CHGCONFIG0 0X03 |
Definition at line 35 of file tps65217.h.
#define TPS65217_REG_CHGCONFIG1 0X04 |
Definition at line 36 of file tps65217.h.
#define TPS65217_REG_CHGCONFIG2 0X05 |
Definition at line 37 of file tps65217.h.
#define TPS65217_REG_CHGCONFIG3 0X06 |
Definition at line 38 of file tps65217.h.
#define TPS65217_REG_CHIPID 0X00 |
Definition at line 32 of file tps65217.h.
#define TPS65217_REG_DEFDCDC1 0X0E |
Definition at line 46 of file tps65217.h.
#define TPS65217_REG_DEFDCDC2 0X0F |
Definition at line 47 of file tps65217.h.
#define TPS65217_REG_DEFDCDC3 0X10 |
Definition at line 48 of file tps65217.h.
#define TPS65217_REG_DEFLDO1 0X12 |
Definition at line 50 of file tps65217.h.
#define TPS65217_REG_DEFLDO2 0X13 |
Definition at line 51 of file tps65217.h.
#define TPS65217_REG_DEFLS1 0X14 |
Definition at line 52 of file tps65217.h.
#define TPS65217_REG_DEFLS2 0X15 |
Definition at line 53 of file tps65217.h.
#define TPS65217_REG_DEFPG 0X0D |
Definition at line 45 of file tps65217.h.
#define TPS65217_REG_DEFSLEW 0X11 |
Definition at line 49 of file tps65217.h.
#define TPS65217_REG_DEFUVLO 0X18 |
Definition at line 55 of file tps65217.h.
#define TPS65217_REG_ENABLE 0X16 |
Definition at line 54 of file tps65217.h.
#define TPS65217_REG_INT 0X02 |
Definition at line 34 of file tps65217.h.
#define TPS65217_REG_MUXCTRL 0X09 |
Definition at line 41 of file tps65217.h.
#define TPS65217_REG_PASSWORD 0X0B |
Definition at line 43 of file tps65217.h.
#define TPS65217_REG_PGOOD 0X0C |
Definition at line 44 of file tps65217.h.
#define TPS65217_REG_PPATH 0X01 |
Definition at line 33 of file tps65217.h.
#define TPS65217_REG_SEQ1 0X19 |
Definition at line 56 of file tps65217.h.
#define TPS65217_REG_SEQ2 0X1A |
Definition at line 57 of file tps65217.h.
#define TPS65217_REG_SEQ3 0X1B |
Definition at line 58 of file tps65217.h.
#define TPS65217_REG_SEQ4 0X1C |
Definition at line 59 of file tps65217.h.
#define TPS65217_REG_SEQ5 0X1D |
Definition at line 60 of file tps65217.h.
#define TPS65217_REG_SEQ6 0X1E |
Definition at line 61 of file tps65217.h.
#define TPS65217_REG_STATUS 0X0A |
Definition at line 42 of file tps65217.h.
#define TPS65217_REG_WLEDCTRL1 0X07 |
Definition at line 39 of file tps65217.h.
#define TPS65217_REG_WLEDCTRL2 0X08 |
Definition at line 40 of file tps65217.h.
#define TPS65217_SEQ1_DC1_SEQ_MASK 0xF0 |
Definition at line 167 of file tps65217.h.
#define TPS65217_SEQ1_DC2_SEQ_MASK 0x0F |
Definition at line 168 of file tps65217.h.
#define TPS65217_SEQ2_DC3_SEQ_MASK 0xF0 |
Definition at line 170 of file tps65217.h.
#define TPS65217_SEQ2_LDO1_SEQ_MASK 0x0F |
Definition at line 171 of file tps65217.h.
#define TPS65217_SEQ3_LDO2_SEQ_MASK 0xF0 |
Definition at line 173 of file tps65217.h.
#define TPS65217_SEQ3_LDO3_SEQ_MASK 0x0F |
Definition at line 174 of file tps65217.h.
#define TPS65217_SEQ4_LDO4_SEQ_MASK 0xF0 |
Definition at line 176 of file tps65217.h.
#define TPS65217_SEQ5_DLY1_MASK 0xC0 |
Definition at line 178 of file tps65217.h.
#define TPS65217_SEQ5_DLY2_MASK 0x30 |
Definition at line 179 of file tps65217.h.
#define TPS65217_SEQ5_DLY3_MASK 0x0C |
Definition at line 180 of file tps65217.h.
#define TPS65217_SEQ5_DLY4_MASK 0x03 |
Definition at line 181 of file tps65217.h.
#define TPS65217_SEQ6_DLY5_MASK 0xC0 |
Definition at line 183 of file tps65217.h.
#define TPS65217_SEQ6_DLY6_MASK 0x30 |
Definition at line 184 of file tps65217.h.
#define TPS65217_SEQ6_INSTDWN BIT(0) |
Definition at line 187 of file tps65217.h.
#define TPS65217_SEQ6_SEQDWN BIT(1) |
Definition at line 186 of file tps65217.h.
#define TPS65217_SEQ6_SEQUP BIT(2) |
Definition at line 185 of file tps65217.h.
#define TPS65217_STATUS_ACPWR BIT(3) |
Definition at line 117 of file tps65217.h.
#define TPS65217_STATUS_OFF BIT(7) |
Definition at line 116 of file tps65217.h.
#define TPS65217_STATUS_PB BIT(0) |
Definition at line 119 of file tps65217.h.
#define TPS65217_STATUS_USBPWR BIT(2) |
Definition at line 118 of file tps65217.h.
#define TPS65217_WLEDCTRL1_FDIM_MASK 0x03 |
Definition at line 110 of file tps65217.h.
#define TPS65217_WLEDCTRL1_ISEL BIT(2) |
Definition at line 109 of file tps65217.h.
#define TPS65217_WLEDCTRL1_ISINK_ENABLE BIT(3) |
Definition at line 108 of file tps65217.h.
#define TPS65217_WLEDCTRL2_DUTY_MASK 0x7F |
Definition at line 112 of file tps65217.h.
enum tps65217_bl_fdim |
TPS65217_BL_FDIM_100HZ | |
TPS65217_BL_FDIM_200HZ | |
TPS65217_BL_FDIM_500HZ | |
TPS65217_BL_FDIM_1000HZ |
Definition at line 221 of file tps65217.h.
enum tps65217_bl_isel |
Definition at line 216 of file tps65217.h.
TPS65217_DCDC_1 | |
TPS65217_DCDC_2 | |
TPS65217_DCDC_3 | |
TPS65217_LDO_1 | |
TPS65217_LDO_2 | |
TPS65217_LDO_3 | |
TPS65217_LDO_4 |
Definition at line 195 of file tps65217.h.
int tps65217_clear_bits | ( | struct tps65217 * | tps, |
unsigned int | reg, | ||
unsigned int | mask, | ||
unsigned int | level | ||
) |
Definition at line 139 of file tps65217.c.
tps65217_reg_read: Read a single tps65217 register.
: Device to read from. : Register to read. : Contians the value
Definition at line 49 of file tps65217.c.
int tps65217_reg_write | ( | struct tps65217 * | tps, |
unsigned int | reg, | ||
unsigned int | val, | ||
unsigned int | level | ||
) |
tps65217_reg_write: Write a single tps65217 register.
: Device to write to. : Register to write to. : Value to write. : Password protected level
Definition at line 64 of file tps65217.c.