summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile/sh-gpio.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2013-11-28 16:17:58 +0100
committerSimon Horman <horms+renesas@verge.net.au>2013-12-10 09:24:49 +0100
commit3a8067f77fcef7771fb12f14bef847e0b6201e0b (patch)
treeaf63a2ab0535da55569925a72a76ac7bf6d437a6 /arch/arm/mach-shmobile/sh-gpio.h
parentARM: shmobile: Lager:add SPI FLASH support on QSPI (diff)
downloadlinux-3a8067f77fcef7771fb12f14bef847e0b6201e0b.tar.xz
linux-3a8067f77fcef7771fb12f14bef847e0b6201e0b.zip
ARM: shmobile: mackerel: Use pinconf API to configure pin pull-down
The USB0 and USB1 VBUS pins must be pulled down. Add corresponding configuration entries in the pinctrl map table instead of manually poking the pin control registers. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch/arm/mach-shmobile/sh-gpio.h')
-rw-r--r--arch/arm/mach-shmobile/sh-gpio.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/arch/arm/mach-shmobile/sh-gpio.h b/arch/arm/mach-shmobile/sh-gpio.h
index e834763ac2a5..2c4141413db9 100644
--- a/arch/arm/mach-shmobile/sh-gpio.h
+++ b/arch/arm/mach-shmobile/sh-gpio.h
@@ -26,23 +26,4 @@ static inline void __init gpio_direction_none(void __iomem * addr)
__raw_writeb(0x00, addr);
}
-static inline void __init gpio_request_pullup(void __iomem * addr)
-{
- u8 data = __raw_readb(addr);
-
- data &= 0x0F;
- data |= 0xC0;
- __raw_writeb(data, addr);
-}
-
-static inline void __init gpio_request_pulldown(void __iomem * addr)
-{
- u8 data = __raw_readb(addr);
-
- data &= 0x0F;
- data |= 0xA0;
-
- __raw_writeb(data, addr);
-}
-
#endif /* __ASM_ARCH_GPIO_H */