summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorJingchang Lu <b35083@freescale.com>2012-09-12 13:56:45 +0800
committerAndy Voltz <andy.voltz@timesys.com>2012-10-17 14:37:25 -0400
commit56c3a9d88448dfdd858f69b8733cc91a505766cb (patch)
treee54570177cab13d5802169e7cb4dd44e7c655177 /arch
parentb2fcdda7a78d05ac0b75d52ffc991f1c62d87178 (diff)
ENGR00181395-1: Add UART MISC functions support for Faraday
Add hardware flow control support, Add transmit DMA support, Add FIFO operation support, Add MSB/LSB on data support, Add 9-bits MARK/SPACE support. Signed-off-by: Jingchang Lu <b35083@freescale.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-mvf/board-twr-vf700.c8
-rw-r--r--arch/arm/plat-mxc/include/mach/imx-uart.h1
2 files changed, 8 insertions, 1 deletions
diff --git a/arch/arm/mach-mvf/board-twr-vf700.c b/arch/arm/mach-mvf/board-twr-vf700.c
index b79b40e2ffb7..a796fde9a562 100644
--- a/arch/arm/mach-mvf/board-twr-vf700.c
+++ b/arch/arm/mach-mvf/board-twr-vf700.c
@@ -228,9 +228,15 @@ static struct platform_device mvf_twr_audio_device = {
.name = "mvf-sgtl5000",
};
+static struct imxuart_platform_data mvf_uart1_pdata = {
+ .flags = IMXUART_FIFO | IMXUART_EDMA,
+ .dma_req_rx = DMA_MUX03_UART1_RX,
+ .dma_req_tx = DMA_MUX03_UART1_TX,
+};
+
static inline void mvf_vf700_init_uart(void)
{
- mvf_add_imx_uart(1, NULL);
+ mvf_add_imx_uart(1, &mvf_uart1_pdata);
}
static int mvf_vf700_fec_phy_init(struct phy_device *phydev)
diff --git a/arch/arm/plat-mxc/include/mach/imx-uart.h b/arch/arm/plat-mxc/include/mach/imx-uart.h
index 48dc29a4f1d6..4e43ee1a0e31 100644
--- a/arch/arm/plat-mxc/include/mach/imx-uart.h
+++ b/arch/arm/plat-mxc/include/mach/imx-uart.h
@@ -24,6 +24,7 @@
#define IMXUART_USE_DCEDTE (1<<2)
#define IMXUART_SDMA (1<<3)
#define IMXUART_EDMA (1<<4)
+#define IMXUART_FIFO (1 << 5)
struct imxuart_platform_data {
int (*init)(struct platform_device *pdev);