From 4514095405e2cc1ec99a3ef7d4b436ce587d5fba Mon Sep 17 00:00:00 2001 From: Simon Shields Date: Mon, 21 May 2018 00:11:34 +1000 Subject: board: samsung: add late_init hook, remove cros dependency --- board/samsung/common/board.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'board') diff --git a/board/samsung/common/board.c b/board/samsung/common/board.c index c4b6baedf0..8c72f214a4 100644 --- a/board/samsung/common/board.c +++ b/board/samsung/common/board.c @@ -41,6 +41,11 @@ __weak int exynos_power_init(void) return 0; } +__weak int exynos_late_init(void) +{ + return 0; +} + #if defined CONFIG_EXYNOS_TMU /* Boot Time Thermal Analysis for SoC temperature threshold breach */ static void boot_temp_check(void) @@ -308,6 +313,7 @@ int board_late_init(void) { stdio_print_current_devices(); +#ifdef CONFIG_CROS_EC if (cros_ec_get_error()) { /* Force console on */ gd->flags &= ~GD_FLG_SILENT; @@ -318,7 +324,9 @@ int board_late_init(void) panic("Cannot init cros-ec device"); return -1; } - return 0; +#endif + + return exynos_late_init();; } #endif -- cgit v1.2.3