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

Go to the source code of this file.

Data Structures

struct  tps6586x_settings
 
struct  tps6586x_subdev_info
 
struct  tps6586x_platform_data
 

Macros

#define TPS6586X_SLEW_RATE_INSTANTLY   0x00
 
#define TPS6586X_SLEW_RATE_110UV   0x01
 
#define TPS6586X_SLEW_RATE_220UV   0x02
 
#define TPS6586X_SLEW_RATE_440UV   0x03
 
#define TPS6586X_SLEW_RATE_880UV   0x04
 
#define TPS6586X_SLEW_RATE_1760UV   0x05
 
#define TPS6586X_SLEW_RATE_3520UV   0x06
 
#define TPS6586X_SLEW_RATE_7040UV   0x07
 
#define TPS6586X_SLEW_RATE_SET   0x08
 
#define TPS6586X_SLEW_RATE_MASK   0x07
 

Enumerations

enum  {
  TPS6586X_ID_SYS, TPS6586X_ID_SM_0, TPS6586X_ID_SM_1, TPS6586X_ID_SM_2,
  TPS6586X_ID_LDO_0, TPS6586X_ID_LDO_1, TPS6586X_ID_LDO_2, TPS6586X_ID_LDO_3,
  TPS6586X_ID_LDO_4, TPS6586X_ID_LDO_5, TPS6586X_ID_LDO_6, TPS6586X_ID_LDO_7,
  TPS6586X_ID_LDO_8, TPS6586X_ID_LDO_9, TPS6586X_ID_LDO_RTC
}
 
enum  {
  TPS6586X_INT_PLDO_0, TPS6586X_INT_PLDO_1, TPS6586X_INT_PLDO_2, TPS6586X_INT_PLDO_3,
  TPS6586X_INT_PLDO_4, TPS6586X_INT_PLDO_5, TPS6586X_INT_PLDO_6, TPS6586X_INT_PLDO_7,
  TPS6586X_INT_COMP_DET, TPS6586X_INT_ADC, TPS6586X_INT_PLDO_8, TPS6586X_INT_PLDO_9,
  TPS6586X_INT_PSM_0, TPS6586X_INT_PSM_1, TPS6586X_INT_PSM_2, TPS6586X_INT_PSM_3,
  TPS6586X_INT_RTC_ALM1, TPS6586X_INT_ACUSB_OVP, TPS6586X_INT_USB_DET, TPS6586X_INT_AC_DET,
  TPS6586X_INT_BAT_DET, TPS6586X_INT_CHG_STAT, TPS6586X_INT_CHG_TEMP, TPS6586X_INT_PP,
  TPS6586X_INT_RESUME, TPS6586X_INT_LOW_SYS, TPS6586X_INT_RTC_ALM2
}
 

Functions

int tps6586x_write (struct device *dev, int reg, uint8_t val)
 
int tps6586x_writes (struct device *dev, int reg, int len, uint8_t *val)
 
int tps6586x_read (struct device *dev, int reg, uint8_t *val)
 
int tps6586x_reads (struct device *dev, int reg, int len, uint8_t *val)
 
int tps6586x_set_bits (struct device *dev, int reg, uint8_t bit_mask)
 
int tps6586x_clr_bits (struct device *dev, int reg, uint8_t bit_mask)
 
int tps6586x_update (struct device *dev, int reg, uint8_t val, uint8_t mask)
 

Macro Definition Documentation

#define TPS6586X_SLEW_RATE_110UV   0x01

Definition at line 5 of file tps6586x.h.

#define TPS6586X_SLEW_RATE_1760UV   0x05

Definition at line 9 of file tps6586x.h.

#define TPS6586X_SLEW_RATE_220UV   0x02

Definition at line 6 of file tps6586x.h.

#define TPS6586X_SLEW_RATE_3520UV   0x06

Definition at line 10 of file tps6586x.h.

#define TPS6586X_SLEW_RATE_440UV   0x03

Definition at line 7 of file tps6586x.h.

#define TPS6586X_SLEW_RATE_7040UV   0x07

Definition at line 11 of file tps6586x.h.

#define TPS6586X_SLEW_RATE_880UV   0x04

Definition at line 8 of file tps6586x.h.

#define TPS6586X_SLEW_RATE_INSTANTLY   0x00

Definition at line 4 of file tps6586x.h.

#define TPS6586X_SLEW_RATE_MASK   0x07

Definition at line 14 of file tps6586x.h.

#define TPS6586X_SLEW_RATE_SET   0x08

Definition at line 13 of file tps6586x.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
TPS6586X_ID_SYS 
TPS6586X_ID_SM_0 
TPS6586X_ID_SM_1 
TPS6586X_ID_SM_2 
TPS6586X_ID_LDO_0 
TPS6586X_ID_LDO_1 
TPS6586X_ID_LDO_2 
TPS6586X_ID_LDO_3 
TPS6586X_ID_LDO_4 
TPS6586X_ID_LDO_5 
TPS6586X_ID_LDO_6 
TPS6586X_ID_LDO_7 
TPS6586X_ID_LDO_8 
TPS6586X_ID_LDO_9 
TPS6586X_ID_LDO_RTC 

Definition at line 16 of file tps6586x.h.

anonymous enum
Enumerator:
TPS6586X_INT_PLDO_0 
TPS6586X_INT_PLDO_1 
TPS6586X_INT_PLDO_2 
TPS6586X_INT_PLDO_3 
TPS6586X_INT_PLDO_4 
TPS6586X_INT_PLDO_5 
TPS6586X_INT_PLDO_6 
TPS6586X_INT_PLDO_7 
TPS6586X_INT_COMP_DET 
TPS6586X_INT_ADC 
TPS6586X_INT_PLDO_8 
TPS6586X_INT_PLDO_9 
TPS6586X_INT_PSM_0 
TPS6586X_INT_PSM_1 
TPS6586X_INT_PSM_2 
TPS6586X_INT_PSM_3 
TPS6586X_INT_RTC_ALM1 
TPS6586X_INT_ACUSB_OVP 
TPS6586X_INT_USB_DET 
TPS6586X_INT_AC_DET 
TPS6586X_INT_BAT_DET 
TPS6586X_INT_CHG_STAT 
TPS6586X_INT_CHG_TEMP 
TPS6586X_INT_PP 
TPS6586X_INT_RESUME 
TPS6586X_INT_LOW_SYS 
TPS6586X_INT_RTC_ALM2 

Definition at line 34 of file tps6586x.h.

Function Documentation

int tps6586x_clr_bits ( struct device dev,
int  reg,
uint8_t  bit_mask 
)

Definition at line 171 of file tps6586x.c.

int tps6586x_read ( struct device dev,
int  reg,
uint8_t val 
)

Definition at line 142 of file tps6586x.c.

int tps6586x_reads ( struct device dev,
int  reg,
int  len,
uint8_t val 
)

Definition at line 155 of file tps6586x.c.

int tps6586x_set_bits ( struct device dev,
int  reg,
uint8_t  bit_mask 
)

Definition at line 163 of file tps6586x.c.

int tps6586x_update ( struct device dev,
int  reg,
uint8_t  val,
uint8_t  mask 
)

Definition at line 179 of file tps6586x.c.

int tps6586x_write ( struct device dev,
int  reg,
uint8_t  val 
)

Definition at line 126 of file tps6586x.c.

int tps6586x_writes ( struct device dev,
int  reg,
int  len,
uint8_t val 
)

Definition at line 134 of file tps6586x.c.