Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 160788
b: refs/heads/master
c: 0abe185
h: refs/heads/master
v: v3
  • Loading branch information
wanzongshun authored and Russell King committed Jul 17, 2009
1 parent 9a31bed commit 34abb63
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: db58e90fdbe9d12b431ae8d8e856961ce75d74f0
refs/heads/master: 0abe1856bdb68ef699c00949cf9f81fbec98d499
6 changes: 5 additions & 1 deletion trunk/arch/arm/mach-w90x900/mfp-w90p910.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ void mfp_set_groupc(struct device *dev)
}
EXPORT_SYMBOL(mfp_set_groupc);

void mfp_set_groupi(struct device *dev, int gpio)
void mfp_set_groupi(struct device *dev)
{
unsigned long mfpen;
const char *dev_id;
Expand All @@ -103,10 +103,14 @@ void mfp_set_groupi(struct device *dev, int gpio)

mfpen = __raw_readl(REG_MFSEL);

mfpen &= ~GPSELEI1;/*default gpio16*/

if (strcmp(dev_id, "w90p910-wdog") == 0)
mfpen |= GPSELEI1;/*enable wdog*/
else if (strcmp(dev_id, "w90p910-atapi") == 0)
mfpen |= GPSELEI0;/*enable atapi*/
else if (strcmp(dev_id, "w90p910-keypad") == 0)
mfpen &= ~GPSELEI0;/*enable keypad*/

__raw_writel(mfpen, REG_MFSEL);

Expand Down

0 comments on commit 34abb63

Please sign in to comment.