int eemcs_get_bat_info(unsigned int para)
{
    int val = 0;
    #if defined (FEATURE_GET_MD_BAT_VOL)
    val = (int)BAT_Get_Battery_Voltage(0);
    printk("[EEMCS HELPER]get_bat_info : %d \n", val);
	return val;
	#endif
    
}
static void slp_suspend_ops_finish(void)
{
	/* legacy log */
	aee_sram_printk("_Chip_pm_finish\n");
	slp_xinfo("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n");
	slp_xinfo("_Chip_pm_finish @@@@@@@@@@@@@@@@@@@@@\n");
	slp_xinfo(" @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n");

	/* debug help */
	slp_xinfo("Battery_Voltage = %lu\n", BAT_Get_Battery_Voltage(0));
}
Example #3
0
int eemcs_get_bat_info(unsigned int para)
{
#if defined (FEATURE_GET_MD_BAT_VOL)
	int val = 0;

	val = (int)BAT_Get_Battery_Voltage(0);
	printk("[EEMCS/PLAT] get_bat_info : %d \n", val);
	return val;
	
#else
	return -1;
#endif

}
static void slp_suspend_ops_finish(void)
{
	//Compal Add start
	odm_suspend_flag = 1;
	slp_xinfo("slp_suspend_ops_finish - odm_suspend_flag : %d \n", odm_suspend_flag);
	//Compal Add end
	/* legacy log */
	aee_sram_printk("_Chip_pm_finish\n");
	slp_xinfo("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n");
	slp_xinfo("_Chip_pm_finish @@@@@@@@@@@@@@@@@@@@@\n");
	slp_xinfo(" @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n");

	/* debug help */
	slp_xinfo("Battery_Voltage = %lu\n", BAT_Get_Battery_Voltage(0));
}
int get_bat_info(unsigned int para)
{
	#if defined (FEATURE_GET_MD_BAT_VOL)
	return (int)BAT_Get_Battery_Voltage(0);
	#endif
}
int get_bat_info(unsigned int para)
{
	return (int)BAT_Get_Battery_Voltage(0);
}