mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 06:00:43 +00:00
arm:goni:pmic: Adjust GONI target platform board to new PMIC framework
Move pmic_init() function call from board_init() to power_init_board() to work with new PMIC/POWER framework. Signed-off-by: Lukasz Majewski <l.majewski@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Cc: Minkyu Kang <mk7.kang@samsung.com>
This commit is contained in:
parent
2988e8662b
commit
0ecdab682c
1 changed files with 10 additions and 3 deletions
|
@ -41,9 +41,16 @@ int board_init(void)
|
||||||
gd->bd->bi_arch_number = MACH_TYPE_GONI;
|
gd->bd->bi_arch_number = MACH_TYPE_GONI;
|
||||||
gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
|
gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
|
||||||
|
|
||||||
#if defined(CONFIG_POWER)
|
return 0;
|
||||||
pmic_init(I2C_5);
|
}
|
||||||
#endif
|
|
||||||
|
int power_init_board(void)
|
||||||
|
{
|
||||||
|
int ret;
|
||||||
|
|
||||||
|
ret = pmic_init(I2C_5);
|
||||||
|
if (ret)
|
||||||
|
return ret;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue