[x86] Allow gzipping of squashfs images with padded jffs2 partition
[openwrt.git] / target / linux / omap24xx / patches-2.6.38 / 510-cbus-retu-defines.patch
1 --- a/drivers/cbus/retu.h
2 +++ b/drivers/cbus/retu.h
3 @@ -40,6 +40,8 @@
4 #define RETU_REG_CTRL_CLR 0x0f /* Regulator clear register */
5 #define RETU_REG_CTRL_SET 0x10 /* Regulator set register */
6 #define RETU_REG_STATUS 0x16 /* Status register */
7 +#define RETU_REG_STATUS_BATAVAIL 0x0100 /* Battery available */
8 +#define RETU_REG_STATUS_CHGPLUG 0x1000 /* Charger is plugged in */
9 #define RETU_REG_WATCHDOG 0x17 /* Watchdog register */
10 #define RETU_REG_AUDTXR 0x18 /* Audio Codec Tx register */
11 #define RETU_REG_MAX 0x1f
12 @@ -57,6 +59,23 @@
13
14 #define MAX_RETU_IRQ_HANDLERS 16
15
16 +/* ADC channels */
17 +#define RETU_ADC_GND 0x00 /* Ground */
18 +#define RETU_ADC_BSI 0x01 /* Battery Size Indicator */
19 +#define RETU_ADC_BATTEMP 0x02 /* Battery temperature */
20 +#define RETU_ADC_CHGVOLT 0x03 /* Charger voltage */
21 +#define RETU_ADC_HEADSET 0x04 /* Headset detection */
22 +#define RETU_ADC_HOOKDET 0x05 /* Hook detection */
23 +#define RETU_ADC_RFGP 0x06 /* RF GP */
24 +#define RETU_ADC_WBTX 0x07 /* Wideband Tx detection */
25 +#define RETU_ADC_BATTVOLT 0x08 /* Battery voltage measurement */
26 +#define RETU_ADC_GND2 0x09 /* Ground */
27 +#define RETU_ADC_LIGHTSENS 0x0A /* Light sensor */
28 +#define RETU_ADC_LIGHTTEMP 0x0B /* Light sensor temperature */
29 +#define RETU_ADC_BKUPVOLT 0x0C /* Backup battery voltage */
30 +#define RETU_ADC_TEMP 0x0D /* RETU temperature */
31 +
32 +
33 int retu_read_reg(struct device *child, unsigned reg);
34 void retu_write_reg(struct device *child, unsigned reg, u16 val);
35 void retu_set_clear_reg_bits(struct device *child, unsigned reg, u16 set,
This page took 0.037998 seconds and 5 git commands to generate.