From f4989ed13dbdbf4fad85e911a1ba19ec863a2595 Mon Sep 17 00:00:00 2001 From: "Syed Mohammed, Khasim" Date: Wed, 25 Jul 2007 19:19:49 -0500 Subject: [PATCH] To Cleanup TWL-Core driver Patch to cleanup few spellings in TWL4030 Core and export TWLGPIO APIs Signed-off-by: Syed Mohammed Khasim Signed-off-by: Tony Lindgren --- drivers/i2c/chips/twl4030_core.c | 4 ++-- include/asm-arm/arch-omap/twl4030.h | 11 ++++++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/chips/twl4030_core.c b/drivers/i2c/chips/twl4030_core.c index 062713b9899..80078474b3d 100644 --- a/drivers/i2c/chips/twl4030_core.c +++ b/drivers/i2c/chips/twl4030_core.c @@ -111,7 +111,7 @@ #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 }, }; diff --git a/include/asm-arm/arch-omap/twl4030.h b/include/asm-arm/arch-omap/twl4030.h index 017dfd70243..7f9b90d2aad 100644 --- a/include/asm-arm/arch-omap/twl4030.h +++ b/include/asm-arm/arch-omap/twl4030.h @@ -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 */ -- 2.41.1