mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
rk3168_86v: restart the system if the mid is connect to the dc or usb in pwd
This commit is contained in:
@@ -1038,6 +1038,7 @@ CONFIG_MISC_DEVICES=y
|
||||
# CONFIG_SENSORS_APDS990X is not set
|
||||
# CONFIG_HMC6352 is not set
|
||||
# CONFIG_SENSORS_AK8975 is not set
|
||||
# CONFIG_SENSORS_AK8963 is not set
|
||||
# CONFIG_DS1682 is not set
|
||||
CONFIG_UID_STAT=y
|
||||
# CONFIG_BMP085 is not set
|
||||
@@ -2467,9 +2468,13 @@ CONFIG_USB20_HOST=y
|
||||
CONFIG_USB20_HOST_EN=y
|
||||
CONFIG_USB20_OTG=y
|
||||
# CONFIG_DWC_OTG_HOST_ONLY is not set
|
||||
CONFIG_DWC_OTG_DEVICE_ONLY=y
|
||||
# CONFIG_DWC_OTG_BOTH_HOST_SLAVE is not set
|
||||
# CONFIG_DWC_OTG_DEVICE_ONLY is not set
|
||||
CONFIG_DWC_OTG_BOTH_HOST_SLAVE=y
|
||||
CONFIG_DWC_OTG_DEFAULT_ID=y
|
||||
# CONFIG_DWC_OTG_DEFAULT_HOST is not set
|
||||
# CONFIG_DWC_OTG_DEFAULT_DEVICE is not set
|
||||
CONFIG_DWC_CONN_EN=y
|
||||
CONFIG_USB20_OTG_EN=y
|
||||
# CONFIG_DWC_OTG_DEBUG is not set
|
||||
# CONFIG_DWC_REMOTE_WAKEUP is not set
|
||||
CONFIG_DWC_OTG=y
|
||||
|
||||
@@ -1796,9 +1796,9 @@ static void rk30_pm_power_off(void)
|
||||
wm831x_device_shutdown(Wm831x);//wm8326 shutdown
|
||||
#endif
|
||||
#if defined(CONFIG_REGULATOR_ACT8846)
|
||||
if (pmic_is_act8846()) {
|
||||
if (pmic_is_tps65910()) {
|
||||
printk("enter dcdet===========\n");
|
||||
if(gpio_get_value (RK30_PIN0_PB2) == GPIO_LOW)
|
||||
if((gpio_get_value (RK30_PIN0_PB2) == GPIO_LOW)||(gpio_get_value (RK30_PIN0_PA7) == GPIO_HIGH))
|
||||
{
|
||||
printk("enter restart===========\n");
|
||||
arm_pm_restart(0, NULL);
|
||||
|
||||
Reference in New Issue
Block a user