}
//end of i2c
-#define POWER_ON_PIN RK30_PIN6_PB0 //power_hold
static void rk30_pm_power_off(void)
{
printk(KERN_ERR "rk30_pm_power_off start...\n");
- gpio_direction_output(POWER_ON_PIN, GPIO_LOW);
-#if defined(CONFIG_MFD_WM831X)
- wm831x_set_bits(Wm831x,WM831X_GPIO_LEVEL,0x0001,0x0000); //set sys_pwr 0
- wm831x_device_shutdown(Wm831x);//wm8326 shutdown
+#if defined(CONFIG_TWL4030_CORE)
+ twl6030_poweroff();
#endif
while (1);
}
static void __init machine_rk30_board_init(void)
{
- gpio_request(POWER_ON_PIN, "poweronpin");
- gpio_direction_output(POWER_ON_PIN, GPIO_HIGH);
-
pm_power_off = rk30_pm_power_off;
rk30_i2c_register_board_info();
.tblsize = ARRAY_SIZE(tps_batt_table),
};
-int rk30_phy_init(){}
-int rk30_phy_exit(){}
-int rk30_phy_power(){}
-int rk30_phy_set_clk(){}
-int rk30_phy_suspend(){}
+static int rk30_phy_init(){}
+static int rk30_phy_exit(){}
+static int rk30_phy_power(){}
+static int rk30_phy_set_clk(){}
+static int rk30_phy_suspend(){}
static struct twl4030_usb_data tps80032_usbphy_data = {
.phy_init = rk30_phy_init,
.phy_exit = rk30_phy_exit,
input_sync(pwr->input_dev);
} else if (!push_release_flag) {
push_release_flag = 1;
- input_report_key(pwr->input_dev, pwr->report_key, !pwr_val);
+ input_report_key(pwr->input_dev, pwr->report_key, pwr_val);
input_sync(pwr->input_dev);
msleep(20);
- input_report_key(pwr->input_dev, pwr->report_key, pwr_val);
+ input_report_key(pwr->input_dev, pwr->report_key, !pwr_val);
input_sync(pwr->input_dev);
} else
push_release_flag = 0;