From e64a3185cd0dc121fda10967c4d6ebf201c82e08 Mon Sep 17 00:00:00 2001 From: hwg Date: Tue, 18 Jun 2013 20:20:19 +0800 Subject: [PATCH] mt6622: add rts control for hwflow --- arch/arm/mach-rk30/board-rk3168-LR097.c | 12 +++++++++++- arch/arm/mach-rk30/board-rk3168-tb.c | 12 +++++++++++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-rk30/board-rk3168-LR097.c b/arch/arm/mach-rk30/board-rk3168-LR097.c index 0768afc107ed..71c8dec7e0da 100755 --- a/arch/arm/mach-rk30/board-rk3168-LR097.c +++ b/arch/arm/mach-rk30/board-rk3168-LR097.c @@ -1420,7 +1420,17 @@ static struct mt6622_platform_data mt6622_platdata = { .iomux = { .name = NULL, }, - } + }, + + .rts_gpio = { // UART_RTS + .io = RK30_PIN1_PA3, + .enable = GPIO_LOW, + .iomux = { + .name = "bt_rts", + .fgpio = GPIO1_A3, + .fmux = UART0_RTSN, + }, + }, }; static struct platform_device device_mt6622 = { diff --git a/arch/arm/mach-rk30/board-rk3168-tb.c b/arch/arm/mach-rk30/board-rk3168-tb.c index 11d3ff4a3ad0..592af755211e 100755 --- a/arch/arm/mach-rk30/board-rk3168-tb.c +++ b/arch/arm/mach-rk30/board-rk3168-tb.c @@ -1429,7 +1429,17 @@ static struct mt6622_platform_data mt6622_platdata = { .iomux = { .name = NULL, }, - } + }, + + .rts_gpio = { // UART_RTS + .io = RK30_PIN1_PA3, + .enable = GPIO_LOW, + .iomux = { + .name = "bt_rts", + .fgpio = GPIO1_A3, + .fmux = UART0_RTSN, + }, + }, }; static struct platform_device device_mt6622 = { -- 2.34.1