]> pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
To Cleanup TWL-Core driver
authorSyed Mohammed, Khasim <x0khasim@ti.com>
Thu, 26 Jul 2007 00:19:49 +0000 (19:19 -0500)
committerTony Lindgren <tony@atomide.com>
Fri, 10 Aug 2007 09:26:56 +0000 (02:26 -0700)
Patch to cleanup few spellings in TWL4030 Core and export TWLGPIO APIs

Signed-off-by: Syed Mohammed Khasim <x0khasim@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/i2c/chips/twl4030_core.c
include/asm-arm/arch-omap/twl4030.h

index 062713b989997afaafa8c2342b3236bc73c2a0df..80078474b3dc657cbd36154e586f62d99a76cbfb 100644 (file)
 #define TWL4030_BASEADD_BACKUP         0x0014
 #define TWL4030_BASEADD_INT            0x002E
 #define TWL4030_BASEADD_PM_MASTER      0x0036
-#define TWL4030_BASEADD_PM_RECIEVER    0x005B
+#define TWL4030_BASEADD_PM_RECEIVER    0x005B
 #define TWL4030_BASEADD_RTC            0x001C
 #define TWL4030_BASEADD_SECURED_REG    0x0000
 
@@ -190,7 +190,7 @@ static struct twl4030mapping twl4030_map[TWL4030_MODULE_LAST + 1] = {
        { TWL4030_SLAVENUM_NUM3, TWL4030_BASEADD_BACKUP },
        { TWL4030_SLAVENUM_NUM3, TWL4030_BASEADD_INT },
        { TWL4030_SLAVENUM_NUM3, TWL4030_BASEADD_PM_MASTER },
-       { TWL4030_SLAVENUM_NUM3, TWL4030_BASEADD_PM_RECIEVER },
+       { TWL4030_SLAVENUM_NUM3, TWL4030_BASEADD_PM_RECEIVER },
        { TWL4030_SLAVENUM_NUM3, TWL4030_BASEADD_RTC },
        { TWL4030_SLAVENUM_NUM3, TWL4030_BASEADD_SECURED_REG },
 };
index 017dfd702436351d6f758d978d539dfc021eacce..7f9b90d2aad4c53920e065996b38fd4f84a6b507 100644 (file)
@@ -48,7 +48,7 @@
 #define TWL4030_MODULE_BACKUP          0x10
 #define TWL4030_MODULE_INT             0x11
 #define TWL4030_MODULE_PM_MASTER       0x12
-#define TWL4030_MODULE_PM_RECIEVER     0x13
+#define TWL4030_MODULE_PM_RECEIVER     0x13
 #define TWL4030_MODULE_RTC             0x14
 #define TWL4030_MODULE_SECURED_REG     0x15
 
@@ -106,4 +106,13 @@ int twl4030_i2c_read_u8(u8 mod_no, u8* val, u8 reg);
 int twl4030_i2c_write(u8 mod_no, u8 * value, u8 reg, u8 num_bytes);
 int twl4030_i2c_read(u8 mod_no, u8 * value, u8 reg, u8 num_bytes);
 
+/*
+ * Exported TWL4030 GPIO APIs
+ */
+int twl4030_get_gpio_datain(int gpio);
+int twl4030_request_gpio(int gpio);
+int twl4030_set_gpio_edge_ctrl(int gpio, int edge);
+int twl4030_set_gpio_debounce(int gpio, int enable);
+int twl4030_free_gpio(int gpio);
+
 #endif /* End of __TWL4030_H */