From 0221910042a629e3439576e8807f04b612c94fd5 Mon Sep 17 00:00:00 2001 From: Kever Yang Date: Mon, 22 Jul 2019 20:02:11 +0800 Subject: 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 --- board/google/veyron/veyron.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'board/google/veyron/veyron.c') diff --git a/board/google/veyron/veyron.c b/board/google/veyron/veyron.c index 19edb18a66..361f0e9da2 100644 --- a/board/google/veyron/veyron.c +++ b/board/google/veyron/veyron.c @@ -4,9 +4,29 @@ */ #include +#include /* * 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 * '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; +} -- cgit