summaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data/atmel.h
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2013-11-07 10:25:55 +0100
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>2013-12-20 11:41:30 +0100
commit354e57f3a0a26120af3bcd6c92c355ad00a057c1 (patch)
tree6935c516167f34df47ebce43c579bbc8ce53f8d4 /include/linux/platform_data/atmel.h
parent6a79799d5654bb7800614e8b7a009252be7ff90e (diff)
downloadlinux-354e57f3a0a26120af3bcd6c92c355ad00a057c1.tar.bz2
ARM/serial: at91: switch atmel serial to use gpiolib
This passes the errata fix using a GPIO to control the RTS pin on one of the AT91 chips to use gpiolib instead of the AT91-specific interfaces. Also remove the reliance on compile-time #defines and the cpu_* check and rely on the platform passing down the proper GPIO pin through platform data. This is a prerequisite for getting rid of the local GPIO implementation in the AT91 platform and move toward multiplatform. The patch also adds device tree support for getting the RTS GPIO pin from the device tree on DT boot paths. Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'include/linux/platform_data/atmel.h')
-rw-r--r--include/linux/platform_data/atmel.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/platform_data/atmel.h b/include/linux/platform_data/atmel.h
index cea9f70133c5..e26b0c14edea 100644
--- a/include/linux/platform_data/atmel.h
+++ b/include/linux/platform_data/atmel.h
@@ -84,6 +84,7 @@ struct atmel_uart_data {
short use_dma_rx; /* use receive DMA? */
void __iomem *regs; /* virt. base address, if any */
struct serial_rs485 rs485; /* rs485 settings */
+ int rts_gpio; /* optional RTS GPIO */
};
/* Touchscreen Controller */