aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-w90x900
diff options
context:
space:
mode:
authorwanzongshun <mcuos.com@gmail.com>2009-07-14 10:12:26 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2009-07-17 08:38:18 -0400
commit0abe1856bdb68ef699c00949cf9f81fbec98d499 (patch)
tree1f96b372101be3580201c08c8d963e1816c60d8d /arch/arm/mach-w90x900
parentdb58e90fdbe9d12b431ae8d8e856961ce75d74f0 (diff)
[ARM] 5604/1: Add keypad multi-function pin api for w90p910 platform
Add keypad multi-function pin api for w90p910 platform. Signed-off-by: Wan ZongShun <mcuos.com@gmail.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-w90x900')
-rw-r--r--arch/arm/mach-w90x900/mfp-w90p910.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/arm/mach-w90x900/mfp-w90p910.c b/arch/arm/mach-w90x900/mfp-w90p910.c
index a3520fefb5e7..8aec34b044ca 100644
--- a/arch/arm/mach-w90x900/mfp-w90p910.c
+++ b/arch/arm/mach-w90x900/mfp-w90p910.c
@@ -90,7 +90,7 @@ void mfp_set_groupc(struct device *dev)
90} 90}
91EXPORT_SYMBOL(mfp_set_groupc); 91EXPORT_SYMBOL(mfp_set_groupc);
92 92
93void mfp_set_groupi(struct device *dev, int gpio) 93void mfp_set_groupi(struct device *dev)
94{ 94{
95 unsigned long mfpen; 95 unsigned long mfpen;
96 const char *dev_id; 96 const char *dev_id;
@@ -103,10 +103,14 @@ void mfp_set_groupi(struct device *dev, int gpio)
103 103
104 mfpen = __raw_readl(REG_MFSEL); 104 mfpen = __raw_readl(REG_MFSEL);
105 105
106 mfpen &= ~GPSELEI1;/*default gpio16*/
107
106 if (strcmp(dev_id, "w90p910-wdog") == 0) 108 if (strcmp(dev_id, "w90p910-wdog") == 0)
107 mfpen |= GPSELEI1;/*enable wdog*/ 109 mfpen |= GPSELEI1;/*enable wdog*/
108 else if (strcmp(dev_id, "w90p910-atapi") == 0) 110 else if (strcmp(dev_id, "w90p910-atapi") == 0)
109 mfpen |= GPSELEI0;/*enable atapi*/ 111 mfpen |= GPSELEI0;/*enable atapi*/
112 else if (strcmp(dev_id, "w90p910-keypad") == 0)
113 mfpen &= ~GPSELEI0;/*enable keypad*/
110 114
111 __raw_writel(mfpen, REG_MFSEL); 115 __raw_writel(mfpen, REG_MFSEL);
112 116