1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright 2018 Google
9 #ifdef CONFIG_SPL_BUILD
10 /* provided to defeat compiler optimisation in board_init_f() */
11 void gru_dummy_function(int i)
15 int board_early_init_f(void)
17 # ifdef CONFIG_TARGET_CHROMEBOOK_BOB
21 * Add a delay and ensure that the compiler does not optimise this out.
22 * This is needed since the power rails tail a while to turn on, and
23 * we get garbage serial output otherwise.
26 for (i = 0; i < 150000; i++)
28 gru_dummy_function(sum);
29 #endif /* CONFIG_TARGET_CHROMEBOOK_BOB */