| // SPDX-License-Identifier: GPL-2.0+ |
| /* provided to defeat compiler optimisation in board_init_f() */ |
| void gru_dummy_function(int i) |
| int board_early_init_f(void) |
| # ifdef CONFIG_TARGET_CHROMEBOOK_BOB |
| * Add a delay and ensure that the compiler does not optimise this out. |
| * This is needed since the power rails tail a while to turn on, and |
| * we get garbage serial output otherwise. |
| for (i = 0; i < 150000; i++) |
| #endif /* CONFIG_TARGET_CHROMEBOOK_BOB */ |
| int board_early_init_r(void) |
| * 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 |
| ret = uclass_get_device_by_driver(UCLASS_CLK, |
| DM_DRIVER_GET(clk_rk3399), &clk); |
| debug("%s: CLK init failed: %d\n", __func__, ret); |