rk3066b:switch between spk and ear in M701
authorhxy <hxy@rock-chips.com>
Fri, 14 Sep 2012 09:34:33 +0000 (17:34 +0800)
committerhxy <hxy@rock-chips.com>
Fri, 14 Sep 2012 09:34:33 +0000 (17:34 +0800)
arch/arm/mach-rk30/board-rk3066b-m701.c

index 9f41b9cdd379f058a6a563cfde8da4e329dafe94..94ba8c63dff22c017d53c0e08c3a4432a43da44c 100755 (executable)
@@ -1572,6 +1572,10 @@ static void __init machine_rk30_board_init(void)
 #ifdef CONFIG_WIFI_CONTROL_FUNC
        rk29sdk_wifi_bt_gpio_control_init();
 #endif
+
+       // spk and ear switch
+       gpio_request(RK30_PIN2_PB1, NULL);
+        gpio_direction_output(RK30_PIN2_PB1, GPIO_HIGH);
 }
 
 static void __init rk30_reserve(void)