summaryrefslogtreecommitdiff
path: root/board/samsung
diff options
context:
space:
mode:
authorPiotr Wilczek <p.wilczek@samsung.com>2014-03-07 14:59:43 +0100
committerMinkyu Kang <mk7.kang@samsung.com>2014-03-12 19:54:59 +0900
commit8e5e1e6a92acfa465d993ab099ca1c54c4cadc8d (patch)
tree7ae8d2009d6b22314c1c37ae3af92372772668d4 /board/samsung
parent4c1dd998523633c8649c6e322ffe6f625dcc234e (diff)
downloadu-boot-imx-8e5e1e6a92acfa465d993ab099ca1c54c4cadc8d.zip
u-boot-imx-8e5e1e6a92acfa465d993ab099ca1c54c4cadc8d.tar.gz
u-boot-imx-8e5e1e6a92acfa465d993ab099ca1c54c4cadc8d.tar.bz2
arm:exynos: add common DTS file for exynos 4
This patch adds common dtsi file and config header for all Exynos 4 based boards. Patch additionaly adds board specific (weak) functions for board_early_init_f and board_power_init functions. Signed-off-by: Piotr Wilczek <p.wilczek@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'board/samsung')
-rw-r--r--board/samsung/common/board.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/board/samsung/common/board.c b/board/samsung/common/board.c
index f8562b2..cf78d36 100644
--- a/board/samsung/common/board.c
+++ b/board/samsung/common/board.c
@@ -33,6 +33,20 @@ struct local_info {
static struct local_info local;
+int __exynos_early_init_f(void)
+{
+ return 0;
+}
+int exynos_early_init_f(void)
+ __attribute__((weak, alias("__exynos_early_init_f")));
+
+int __exynos_power_init(void)
+{
+ return 0;
+}
+int exynos_power_init(void)
+ __attribute__((weak, alias("__exynos_power_init")));
+
#if defined CONFIG_EXYNOS_TMU
/* Boot Time Thermal Analysis for SoC temperature threshold breach */
static void boot_temp_check(void)
@@ -140,7 +154,7 @@ int board_early_init_f(void)
board_i2c_init(gd->fdt_blob);
#endif
- return err;
+ return exynos_early_init_f();
}
#endif
@@ -284,7 +298,7 @@ int power_init_board(void)
ret = max77686_init();
#endif
- return ret;
+ return exynos_power_init();
}
#endif