aboutsummaryrefslogtreecommitdiffstats
path: root/board
diff options
context:
space:
mode:
authorSimon Shields <simon@lineageos.org>2018-05-21 00:11:34 +1000
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-03-28 01:14:10 +0100
commit4514095405e2cc1ec99a3ef7d4b436ce587d5fba (patch)
tree7cdf816bead5040730f6bf1c9a11d9db3ff7129b /board
parent4bfc149af5765be7164ffb8dfa4df70d1564e517 (diff)
downloadu-boot-midas-4514095405e2cc1ec99a3ef7d4b436ce587d5fba.tar.gz
u-boot-midas-4514095405e2cc1ec99a3ef7d4b436ce587d5fba.tar.bz2
u-boot-midas-4514095405e2cc1ec99a3ef7d4b436ce587d5fba.zip
board: samsung: add late_init hook, remove cros dependency
Diffstat (limited to 'board')
-rw-r--r--board/samsung/common/board.c10
1 files changed, 9 insertions, 1 deletions
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