projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39977be
)
iomux: iomux_switch_gpio_mode
author
kfx
<kfx@rock-chips.com>
Wed, 15 May 2013 06:50:09 +0000
(14:50 +0800)
committer
kfx
<kfx@rock-chips.com>
Wed, 15 May 2013 06:50:09 +0000
(14:50 +0800)
arch/arm/plat-rk/include/plat/iomux.h
patch
|
blob
|
history
diff --git
a/arch/arm/plat-rk/include/plat/iomux.h
b/arch/arm/plat-rk/include/plat/iomux.h
index 70d8d18380e59f689803dfecd13d0b11dc0343d2..c2c5fc5f3e4db50fb9672002fa6959795cbe770f 100644
(file)
--- a/
arch/arm/plat-rk/include/plat/iomux.h
+++ b/
arch/arm/plat-rk/include/plat/iomux.h
@@
-3,7
+3,7
@@
#define INVALID_MODE 0xffffffff
-#define iomux_switch_gpio_mode(m) ((m) &
0x03
)
+#define iomux_switch_gpio_mode(m) ((m) &
(~0x03)
)
int iomux_gpio_to_mode(int gpio);
int iomux_mode_to_gpio(unsigned int mode);