diff options
Diffstat (limited to 'arch/arm/mach-w90x900/mfp-w90p910.c')
-rw-r--r-- | arch/arm/mach-w90x900/mfp-w90p910.c | 6 |
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 | } |
91 | EXPORT_SYMBOL(mfp_set_groupc); | 91 | EXPORT_SYMBOL(mfp_set_groupc); |
92 | 92 | ||
93 | void mfp_set_groupi(struct device *dev, int gpio) | 93 | void 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 | ||