rk30:modify suspend func for 8326 and tps65910

This commit is contained in:
张晴
2012-08-01 17:41:38 +08:00
parent 1f0a3da031
commit 7ab463de1e
2 changed files with 22 additions and 9 deletions

View File

@@ -1835,19 +1835,26 @@ static struct i2c_board_info __initdata i2c1_info[] = {
void __sramfunc board_pmu_suspend(void)
{
#if defined (CONFIG_MFD_WM831X_I2C)
if(g_pmic_type == PMIC_TYPE_WM8326)
board_pmu_wm8326_suspend();
else if(g_pmic_type == PMIC_TYPE_TPS65910)
#endif
#if defined (CONFIG_MFD_TPS65910)
if(g_pmic_type == PMIC_TYPE_TPS65910)
board_pmu_tps65910_suspend();
#endif
}
void __sramfunc board_pmu_resume(void)
{
#if defined (CONFIG_MFD_WM831X_I2C)
if(g_pmic_type == PMIC_TYPE_WM8326)
board_pmu_wm8326_resume();
else if(g_pmic_type == PMIC_TYPE_TPS65910)
board_pmu_tps65910_resume();
#endif
#if defined (CONFIG_MFD_TPS65910)
if(g_pmic_type == PMIC_TYPE_TPS65910)
board_pmu_tps65910_resume();
#endif
}

View File

@@ -1572,22 +1572,28 @@ static struct i2c_board_info __initdata i2c1_info[] = {
};
#endif
void __sramfunc board_pmu_suspend(void)
{
#if defined (CONFIG_MFD_WM831X_I2C)
if(g_pmic_type == PMIC_TYPE_WM8326)
board_pmu_wm8326_suspend();
else if(g_pmic_type == PMIC_TYPE_TPS65910)
#endif
#if defined (CONFIG_MFD_TPS65910)
if(g_pmic_type == PMIC_TYPE_TPS65910)
board_pmu_tps65910_suspend();
#endif
}
void __sramfunc board_pmu_resume(void)
{
#if defined (CONFIG_MFD_WM831X_I2C)
if(g_pmic_type == PMIC_TYPE_WM8326)
board_pmu_wm8326_resume();
else if(g_pmic_type == PMIC_TYPE_TPS65910)
board_pmu_tps65910_resume();
#endif
#if defined (CONFIG_MFD_TPS65910)
if(g_pmic_type == PMIC_TYPE_TPS65910)
board_pmu_tps65910_resume();
#endif
}
#ifdef CONFIG_I2C2_RK30