mt6622: add rts control for hwflow
authorhwg <hwg@rock-chips.com>
Tue, 18 Jun 2013 12:20:19 +0000 (20:20 +0800)
committerhwg <hwg@rock-chips.com>
Tue, 18 Jun 2013 12:20:19 +0000 (20:20 +0800)
arch/arm/mach-rk30/board-rk3168-LR097.c
arch/arm/mach-rk30/board-rk3168-tb.c

index 0768afc107ed98236eee2dbfd63ed37e8cb24c8c..71c8dec7e0da1c7d9f38b08f28afc9202b85446e 100755 (executable)
@@ -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 = {
index 11d3ff4a3ad02bc707ff5d29ae81dbcfe8246277..592af755211ed714cfc45309c615c6f60580436b 100755 (executable)
@@ -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 = {