.active_low = PRESS_LEV_LOW,
.wakeup = 1,
},
+/*
{
.desc = "esc",
.code = KEY_BACK,
.gpio = INVALID_GPIO,
.active_low = PRESS_LEV_LOW,
},
+ */
+ {
+ .desc = "mode_switch",
+ .code = KEY_MODE_SWITCH,
+ //.desc = "vol+",
+ //.code = KEY_VOLUMEUP,
+
+ .adc_value = 1,
+ .gpio = INVALID_GPIO,
+ .active_low = PRESS_LEV_LOW,
+ .wakeup = 1
+ },
+
};
struct rk29_keys_platform_data rk29_keys_pdata = {
.buttons = key_button,
};
#endif
+#if defined(CONFIG_AC_USB_SWITCH)
+static struct ac_usb_switch_platform_data ac_usb_switch_platdata= {
+ .usb_switch_pin = RK30_PIN3_PB2,
+ .pc_state_pin = INVALID_GPIO,
+};
+static struct platform_device device_ac_usb_switch = {
+ .name = "ac_usb_switch",
+ .id = -1,
+ .dev = {
+ .platform_data = &ac_usb_switch_platdata,
+ },
+};
+#endif
static struct platform_device *devices[] __initdata = {
#ifdef CONFIG_TCC_BT_DEV
&device_tcc_bt,
#endif
+#if defined(CONFIG_AC_USB_SWITCH)
+ &device_ac_usb_switch,
+#endif
};