void set_charging_current_sub(void) { #ifdef CONFIG_LGE_BLOCK_CHARGING_MODE if ( 0 == get_block_charging_state() ) { printk(KERN_INFO "%s: Block Charging State\n", __func__); return ; } #endif switch( get_ext_pwr_type() ) { case NO_CABLE: charging_ic_active_default(); break; case LT_CABLE_56K: case LT_CABLE_130K: case LT_CABLE_910K: charging_ic_set_factory_mode(); /* mbk_temp HW Request */ setting_for_factory_mode_hw_req(); break; case TA_CABLE: case FORGED_TA_CABLE: charging_ic_set_ta_mode(); break; case USB_CABLE: case ABNORMAL_USB_100MA: case ABNORMAL_USB_400MA: charging_ic_set_usb_mode(); break; } printk("[charging_msg] %s, External Power Type %d, charging_ic_status %d \n", __FUNCTION__, get_ext_pwr_type(), charging_ic_status); return ; }
void rt9536_charging_enable(unsigned int set_current, unsigned int enable) { if (enable) { if ( set_current == AC_CHARGER_CURRENT ) charging_ic_set_ta_mode(); else if ( set_current == USB_CHARGER_CURRENT ) charging_ic_set_usb_mode(); else charging_ic_active_default(); printk("[charger_rt9536] :: %s, current(%d), enable(%d)\n", __func__, set_current, enable); } else { charging_ic_deactive(); printk("[charger_rt9536] :: %s, enable(%d)\n", __func__, enable); } }
void charging_ic_set_usb_mode(void) { charging_ic_active_default(); }
void charging_ic_set_usb_mode() { //charging_ic_set_ta_mode(); charging_ic_active_default(); }