Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
tps6586x.h
Go to the documentation of this file.
1 #ifndef __LINUX_MFD_TPS6586X_H
2 #define __LINUX_MFD_TPS6586X_H
3 
4 #define TPS6586X_SLEW_RATE_INSTANTLY 0x00
5 #define TPS6586X_SLEW_RATE_110UV 0x01
6 #define TPS6586X_SLEW_RATE_220UV 0x02
7 #define TPS6586X_SLEW_RATE_440UV 0x03
8 #define TPS6586X_SLEW_RATE_880UV 0x04
9 #define TPS6586X_SLEW_RATE_1760UV 0x05
10 #define TPS6586X_SLEW_RATE_3520UV 0x06
11 #define TPS6586X_SLEW_RATE_7040UV 0x07
12 
13 #define TPS6586X_SLEW_RATE_SET 0x08
14 #define TPS6586X_SLEW_RATE_MASK 0x07
15 
16 enum {
32 };
33 
34 enum {
62 };
63 
65  int slew_rate;
66 };
67 
69  int id;
70  const char *name;
73 };
74 
78 
79  int gpio_base;
80  int irq_base;
81  bool pm_off;
82 };
83 
84 /*
85  * NOTE: the functions below are not intended for use outside
86  * of the TPS6586X sub-device drivers
87  */
88 extern int tps6586x_write(struct device *dev, int reg, uint8_t val);
89 extern int tps6586x_writes(struct device *dev, int reg, int len, uint8_t *val);
90 extern int tps6586x_read(struct device *dev, int reg, uint8_t *val);
91 extern int tps6586x_reads(struct device *dev, int reg, int len, uint8_t *val);
92 extern int tps6586x_set_bits(struct device *dev, int reg, uint8_t bit_mask);
93 extern int tps6586x_clr_bits(struct device *dev, int reg, uint8_t bit_mask);
94 extern int tps6586x_update(struct device *dev, int reg, uint8_t val,
95  uint8_t mask);
96 
97 #endif /*__LINUX_MFD_TPS6586X_H */