mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-09 20:18:54 -04:00
pmic: Enable power_board_init() support at TRATS
Enable support for power_board_init() method at TRATS board. 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
2ffb4beb50
commit
d47ab98261
@ -68,10 +68,6 @@ int board_init(void)
|
|||||||
check_hw_revision();
|
check_hw_revision();
|
||||||
printf("HW Revision:\t0x%x\n", board_rev);
|
printf("HW Revision:\t0x%x\n", board_rev);
|
||||||
|
|
||||||
#if defined(CONFIG_PMIC)
|
|
||||||
pmic_init(I2C_5);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -90,6 +86,17 @@ void i2c_init_board(void)
|
|||||||
s5p_gpio_direction_output(&gpio2->y4, 1, 1);
|
s5p_gpio_direction_output(&gpio2->y4, 1, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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…
x
Reference in New Issue
Block a user