mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-19 05:31:32 +00:00
arm:universal_c210:pmic: Adjust C210 Universal 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
0ecdab682c
commit
f5a7004cf7
1 changed files with 11 additions and 4 deletions
|
@ -58,16 +58,23 @@ int board_init(void)
|
||||||
gd->bd->bi_arch_number = MACH_TYPE_UNIVERSAL_C210;
|
gd->bd->bi_arch_number = MACH_TYPE_UNIVERSAL_C210;
|
||||||
gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
|
gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
|
||||||
|
|
||||||
#if defined(CONFIG_POWER)
|
|
||||||
pmic_init(I2C_5);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
check_hw_revision();
|
check_hw_revision();
|
||||||
printf("HW Revision:\t0x%x\n", board_rev);
|
printf("HW Revision:\t0x%x\n", board_rev);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int power_init_board(void)
|
||||||
|
{
|
||||||
|
int ret;
|
||||||
|
|
||||||
|
ret = pmic_init(I2C_5);
|
||||||
|
if (ret)
|
||||||
|
return ret;
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
int dram_init(void)
|
int dram_init(void)
|
||||||
{
|
{
|
||||||
gd->ram_size = get_ram_size((long *)PHYS_SDRAM_1, PHYS_SDRAM_1_SIZE) +
|
gd->ram_size = get_ram_size((long *)PHYS_SDRAM_1, PHYS_SDRAM_1_SIZE) +
|
||||||
|
|
Loading…
Add table
Reference in a new issue