add rda587x device register
authorwdc <wdc@rock-chips.com>
Sat, 4 May 2013 03:50:50 +0000 (11:50 +0800)
committerwdc <wdc@rock-chips.com>
Sat, 4 May 2013 03:50:50 +0000 (11:50 +0800)
arch/arm/mach-rk3188/board-rk3188-ds1006h.c

index 794dbf0d5575ed6d56c4085c7f66fd4f89b59082..2f5196cd8e10e88551d3115db5683012cc2fa2dd 100755 (executable)
@@ -1266,6 +1266,36 @@ static struct platform_device device_mt6622 = {
 };     
 #endif
 
+#if defined CONFIG_TCC_BT_DEV
+static struct tcc_bt_platform_data tcc_bt_platdata = {
+
+    .power_gpio   = { // ldoon
+        .io             =  RK2928_PIN3_PC0,
+        .enable         = GPIO_HIGH,
+        .iomux          = {
+            .name       = NULL,
+            },
+        },
+
+    .wake_host_gpio  = { // BT_HOST_WAKE, for bt wakeup host when it is in deep sleep
+        .io         = RK2928_PIN0_PC5, // set io to INVALID_GPIO for disable it
+        .enable     = IRQF_TRIGGER_RISING,// set IRQF_TRIGGER_FALLING for falling, set IRQF_TRIGGER_RISING for rising
+        .iomux      = {
+            .name       = NULL,
+        },
+    },
+};
+
+static struct platform_device device_tcc_bt = {
+    .name   = "tcc_bt_dev",
+    .id     = -1,
+    .dev    = {
+        .platform_data = &tcc_bt_platdata,
+        },
+};
+#endif
+
+
 static struct platform_device *devices[] __initdata = {
 
 #ifdef CONFIG_ION
@@ -1298,6 +1328,9 @@ static struct platform_device *devices[] __initdata = {
        &device_mali,
 #endif
 
+#ifdef CONFIG_TCC_BT_DEV
+        &device_tcc_bt,
+#endif
 };