//ILIM = 900ma
ret = wm831x_reg_read(parm, WM831X_POWER_STATE) & 0xffff;
wm831x_reg_write(parm, WM831X_POWER_STATE, (ret&0xfff8) | 0x04);
+
+ //BATT_FET_ENA = 1
+ wm831x_set_bits(parm, WM831X_RESET_CONTROL,0x1000,0x1000);
+ ret = wm831x_reg_read(parm, WM831X_RESET_CONTROL) & 0xffff;
+ printk("%s:WM831X_RESET_CONTROL=0x%x\n",__FUNCTION__,ret);
+
#if 0
wm831x_set_bits(parm, WM831X_LDO_ENABLE, (1 << 3), 0);
wm831x_set_bits(parm, WM831X_LDO_ENABLE, (1 << 7), 0);
//ILIM = 900ma
ret = wm831x_reg_read(parm, WM831X_POWER_STATE) & 0xffff;
wm831x_reg_write(parm, WM831X_POWER_STATE, (ret&0xfff8) | 0x04);
+
+ //BATT_FET_ENA = 1
+ wm831x_set_bits(parm, WM831X_RESET_CONTROL,0x1000,0x1000);
+ ret = wm831x_reg_read(parm, WM831X_RESET_CONTROL) & 0xffff;
+ printk("%s:WM831X_RESET_CONTROL=0x%x\n",__FUNCTION__,ret);
+
#if 0
wm831x_set_bits(parm, WM831X_LDO_ENABLE, (1 << 3), 0);
wm831x_set_bits(parm, WM831X_LDO_ENABLE, (1 << 7), 0);