#define PRESS_LEV_HIGH 0
static struct rk29_keys_button key_button[] = {
- {
- .desc = "menu",
- .code = EV_MENU,
- .gpio = RK29_PIN6_PA0,
- .active_low = PRESS_LEV_LOW,
- },
{
.desc = "vol+",
.code = KEY_VOLUMEUP,
.gpio = RK29_PIN6_PA2,
.active_low = PRESS_LEV_LOW,
},
- {
- .desc = "home",
- .code = KEY_HOME,
- .gpio = RK29_PIN6_PA3,
- .active_low = PRESS_LEV_LOW,
- },
- {
- .desc = "search",
- .code = KEY_SEARCH,
- .gpio = RK29_PIN6_PA4,
- .active_low = PRESS_LEV_LOW,
- },
- {
- .desc = "esc",
- .code = KEY_BACK,
- .gpio = RK29_PIN6_PA5,
- .active_low = PRESS_LEV_LOW,
- },
- {
- .desc = "sensor",
- .code = KEY_CAMERA,
- .gpio = RK29_PIN6_PA6,
- .active_low = PRESS_LEV_LOW,
- },
{
.desc = "play",
.code = KEY_POWER,
.irq = RK29_PIN0_PA4,
},
#endif
-#if 0//defined (CONFIG_SENSORS_AK8975)
- {
- .type = "ak8975",
- .addr = 0x0d,
- .flags = 0,
- .irq = RK29_PIN0_PA4,
- },
-#endif
/*mpu3050*/
#if defined (CONFIG_SENSORS_MPU3050)
{
rk29_mux_api_set(GPIO1D3_SDMMC0DATA1_NAME, GPIO1H_SDMMC0_DATA1);
rk29_mux_api_set(GPIO1D4_SDMMC0DATA2_NAME, GPIO1H_SDMMC0_DATA2);
rk29_mux_api_set(GPIO1D5_SDMMC0DATA3_NAME, GPIO1H_SDMMC0_DATA3);
- rk29_mux_api_set(GPIO2A2_SDMMC0DETECTN_NAME, GPIO2L_SDMMC0_DETECT_N);
+ rk29_mux_api_set(GPIO2A2_SDMMC0DETECTN_NAME, GPIO2L_GPIO2A2);
rk29_mux_api_set(GPIO5D5_SDMMC0PWREN_NAME, GPIO5H_GPIO5D5); ///GPIO5H_SDMMC0_PWR_EN); ///GPIO5H_GPIO5D5);
gpio_request(RK29_PIN5_PD5,"sdmmc");
#if 0
#else
.use_dma = 0,
#endif
- .detect_irq = RK29_PIN2_PA2 // INVALID_GPIO
+ .detect_irq = RK29_PIN2_PA2, // INVALID_GPIO
+ .enable_sd_wakeup = 0,
};
#endif
#ifdef CONFIG_SDMMC1_RK29