diff options
author | Michael Büsch <mb@bu3sch.de> | 2011-02-26 23:52:18 +0000 |
---|---|---|
committer | Michael Büsch <mb@bu3sch.de> | 2011-02-26 23:52:18 +0000 |
commit | c3f81206b7253f69e461ba1821b774bd74bdc053 (patch) | |
tree | 7e5ae092f3e4b4f251f6c91824d6a3dc18a542d9 /target/linux/omap24xx/patches-2.6.38/510-cbus-retu-defines.patch | |
parent | c076125a5446f5f948dab51bcb40a157311b4e4c (diff) | |
download | master-187ad058-c3f81206b7253f69e461ba1821b774bd74bdc053.tar.gz master-187ad058-c3f81206b7253f69e461ba1821b774bd74bdc053.tar.bz2 master-187ad058-c3f81206b7253f69e461ba1821b774bd74bdc053.zip |
omap24xx: Add 2.6.38 files
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25746 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/omap24xx/patches-2.6.38/510-cbus-retu-defines.patch')
-rw-r--r-- | target/linux/omap24xx/patches-2.6.38/510-cbus-retu-defines.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/target/linux/omap24xx/patches-2.6.38/510-cbus-retu-defines.patch b/target/linux/omap24xx/patches-2.6.38/510-cbus-retu-defines.patch new file mode 100644 index 0000000000..c4acce9eac --- /dev/null +++ b/target/linux/omap24xx/patches-2.6.38/510-cbus-retu-defines.patch @@ -0,0 +1,37 @@ +Index: linux-2.6.38-rc6/drivers/cbus/retu.h +=================================================================== +--- linux-2.6.38-rc6.orig/drivers/cbus/retu.h 2011-02-25 02:16:28.000000000 +0100 ++++ linux-2.6.38-rc6/drivers/cbus/retu.h 2011-02-25 23:36:10.363457910 +0100 +@@ -40,6 +40,8 @@ + #define RETU_REG_CTRL_CLR 0x0f /* Regulator clear register */ + #define RETU_REG_CTRL_SET 0x10 /* Regulator set register */ + #define RETU_REG_STATUS 0x16 /* Status register */ ++#define RETU_REG_STATUS_BATAVAIL 0x0100 /* Battery available */ ++#define RETU_REG_STATUS_CHGPLUG 0x1000 /* Charger is plugged in */ + #define RETU_REG_WATCHDOG 0x17 /* Watchdog register */ + #define RETU_REG_AUDTXR 0x18 /* Audio Codec Tx register */ + #define RETU_REG_MAX 0x1f +@@ -57,6 +59,23 @@ + + #define MAX_RETU_IRQ_HANDLERS 16 + ++/* ADC channels */ ++#define RETU_ADC_GND 0x00 /* Ground */ ++#define RETU_ADC_BSI 0x01 /* Battery Size Indicator */ ++#define RETU_ADC_BATTEMP 0x02 /* Battery temperature */ ++#define RETU_ADC_CHGVOLT 0x03 /* Charger voltage */ ++#define RETU_ADC_HEADSET 0x04 /* Headset detection */ ++#define RETU_ADC_HOOKDET 0x05 /* Hook detection */ ++#define RETU_ADC_RFGP 0x06 /* RF GP */ ++#define RETU_ADC_WBTX 0x07 /* Wideband Tx detection */ ++#define RETU_ADC_BATTVOLT 0x08 /* Battery voltage measurement */ ++#define RETU_ADC_GND2 0x09 /* Ground */ ++#define RETU_ADC_LIGHTSENS 0x0A /* Light sensor */ ++#define RETU_ADC_LIGHTTEMP 0x0B /* Light sensor temperature */ ++#define RETU_ADC_BKUPVOLT 0x0C /* Backup battery voltage */ ++#define RETU_ADC_TEMP 0x0D /* RETU temperature */ ++ ++ + int retu_read_reg(struct device *child, unsigned reg); + void retu_write_reg(struct device *child, unsigned reg, u16 val); + void retu_set_clear_reg_bits(struct device *child, unsigned reg, u16 set, |