reg = <0x6b>;
gpios = <&gpio0 GPIO_A7 GPIO_ACTIVE_HIGH>;
bq24296,chg_current = <1000 500 2000>;
- status = "disable";
+ status = "okay";
};
bq27320: bq27320@55 {
compatible = "ti,bq27320";
reg = <0x55>;
/* gpios = <&gpio0 GPIO_A7 GPIO_ACTIVE_HIGH>; */
- status = "disable";
+ status = "okay";
};
};
}
/****************************************/
-
/****************set vbat low **********/
val = rk808_reg_read(rk808,RK808_VB_MON_REG);
val &=(~(VBAT_LOW_VOL_MASK | VBAT_LOW_ACT_MASK));
ret = mfd_add_devices(rk808->dev, -1,
rk808s, ARRAY_SIZE(rk808s),
NULL, 0,NULL);
-
+ #if 0
/********************vbat low int**************/
vlow_irq = irq_create_mapping(rk808->irq_domain, RK808_IRQ_VB_LO);
ret = request_threaded_irq(vlow_irq, NULL, rk808_vbat_lo_irq,
vlow_irq+ RK808_IRQ_VB_LO, ret);
}
-
+ #endif
/*********************************************/
g_rk808 = rk808;
}else{
#endif
// connect to pc
- bq24296_update_input_current_limit(bq24296_di->usb_input_current);
+ bq24296_update_input_current_limit(bq24296_di->adp_input_current);
bq24296_set_charge_current(CHARGE_CURRENT_512MA);
bq24296_charge_mode_config(0);
DBG("bq24296: detect normal usb charger\n");
// }
break;
default:
+ bq24296_update_input_current_limit(bq24296_di->adp_input_current);
+ bq24296_set_charge_current(CHARGE_CURRENT_512MA);
+ bq24296_charge_mode_config(0);
DBG("bq24296: detect no usb \n");
break;
}