mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 04:46:01 +01:00
rockchip: rk3288: move board_early_init_f() back to veyron
The board_early_init_f() is only used by veyron board now, move it into the board file veyron.c Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
This commit is contained in:
parent
1e7d2be011
commit
0221910042
@ -243,22 +243,3 @@ U_BOOT_CMD(
|
|||||||
"display information about clocks",
|
"display information about clocks",
|
||||||
""
|
""
|
||||||
);
|
);
|
||||||
|
|
||||||
int board_early_init_f(void)
|
|
||||||
{
|
|
||||||
struct udevice *dev;
|
|
||||||
int ret;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* This init is done in SPL, but when chain-loading U-Boot SPL will
|
|
||||||
* have been skipped. Allow the clock driver to check if it needs
|
|
||||||
* setting up.
|
|
||||||
*/
|
|
||||||
ret = rockchip_get_clk(&dev);
|
|
||||||
if (ret) {
|
|
||||||
debug("CLK init failed: %d\n", ret);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
@ -4,9 +4,29 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
|
#include <asm/arch-rockchip/clock.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* We should increase the DDR voltage to 1.2V using the PWM regulator.
|
* We should increase the DDR voltage to 1.2V using the PWM regulator.
|
||||||
* There is a U-Boot driver for this but it may need to add support for the
|
* There is a U-Boot driver for this but it may need to add support for the
|
||||||
* 'voltage-table' property.
|
* 'voltage-table' property.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
int board_early_init_f(void)
|
||||||
|
{
|
||||||
|
struct udevice *dev;
|
||||||
|
int ret;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This init is done in SPL, but when chain-loading U-Boot SPL will
|
||||||
|
* have been skipped. Allow the clock driver to check if it needs
|
||||||
|
* setting up.
|
||||||
|
*/
|
||||||
|
ret = rockchip_get_clk(&dev);
|
||||||
|
if (ret) {
|
||||||
|
debug("CLK init failed: %d\n", ret);
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user