mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
rk30:modify suspend func for 8326 and tps65910
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user