From 01727e61f0967dd18fadd9dfcee5cf1246e6d8a6 Mon Sep 17 00:00:00 2001 From: Rabin Vincent Date: Mon, 13 Dec 2010 12:02:40 +0530 Subject: 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 Signed-off-by: Linus Walleij --- arch/arm/plat-nomadik/include/plat/gpio.h | 1 + 1 file changed, 1 insertion(+) (limited to 'arch/arm/plat-nomadik/include') 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 */ -- cgit v1.2.3