summaryrefslogtreecommitdiff
path: root/arch/arm/plat-nomadik/include
diff options
context:
space:
mode:
authorRabin Vincent <rabin.vincent@stericsson.com>2010-12-13 09:32:40 +0300
committerLinus Walleij <linus.walleij@linaro.org>2011-03-14 16:05:15 +0300
commit01727e61f0967dd18fadd9dfcee5cf1246e6d8a6 (patch)
tree710acb7f8eacaa4d11dfbc8bf584226680ce6513 /arch/arm/plat-nomadik/include
parent3546d15c5c3f923f7925f92bfe0f8e1cf8bccc1c (diff)
downloadlinux-01727e61f0967dd18fadd9dfcee5cf1246e6d8a6.tar.xz
plat-nomadik: implement safe switch sequence for Alt-C
Setting pinmux alternative C for a GPIO pin is actually not so easy since it ivolves setting value "1" in two registers, and since the combined result will take effect for intermediate values (01 or 10) this will cause glitches while you wrote one register but have not yet written the other. This patch implements a series of kludges including an optional machine-specific callback to avoid glitches when changing pin mux mode to alternative C. Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm/plat-nomadik/include')
-rw-r--r--arch/arm/plat-nomadik/include/plat/gpio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/plat-nomadik/include/plat/gpio.h b/arch/arm/plat-nomadik/include/plat/gpio.h
index d108a326a0ab..e3a4837e86f4 100644
--- a/arch/arm/plat-nomadik/include/plat/gpio.h
+++ b/arch/arm/plat-nomadik/include/plat/gpio.h
@@ -84,6 +84,7 @@ struct nmk_gpio_platform_data {
int first_irq;
int num_gpio;
u32 (*get_secondary_status)(unsigned int bank);
+ void (*set_ioforce)(bool enable);
};
#endif /* __ASM_PLAT_GPIO_H */