summaryrefslogtreecommitdiff
path: root/arch/arm/mach-uniphier/init/init-ld11.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2016-05-25 12:27:44 -0400
committerTom Rini <trini@konsulko.com>2016-05-25 12:27:44 -0400
commit1b80e79586b0b777afa6a905961000c8495828cc (patch)
tree283a3a4883479022785ba0bfea05e62a460f7d96 /arch/arm/mach-uniphier/init/init-ld11.c
parent826d06dbdd0e29ab0d8bd76d1ca640e2dfdb076c (diff)
parentd7e103c08f5bb29d8126eaef3b7b6d6bafacea80 (diff)
downloadu-boot-imx-1b80e79586b0b777afa6a905961000c8495828cc.zip
u-boot-imx-1b80e79586b0b777afa6a905961000c8495828cc.tar.gz
u-boot-imx-1b80e79586b0b777afa6a905961000c8495828cc.tar.bz2
Merge branch 'master' of git://git.denx.de/u-boot-uniphier
Diffstat (limited to 'arch/arm/mach-uniphier/init/init-ld11.c')
-rw-r--r--arch/arm/mach-uniphier/init/init-ld11.c59
1 files changed, 59 insertions, 0 deletions
diff --git a/arch/arm/mach-uniphier/init/init-ld11.c b/arch/arm/mach-uniphier/init/init-ld11.c
new file mode 100644
index 0000000..de2dc62
--- /dev/null
+++ b/arch/arm/mach-uniphier/init/init-ld11.c
@@ -0,0 +1,59 @@
+/*
+ * Copyright (C) 2016 Socionext Inc.
+ * Author: Masahiro Yamada <yamada.masahiro@socionext.com>
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#include <common.h>
+#include <spl.h>
+
+#include "../init.h"
+#include "../micro-support-card.h"
+
+int uniphier_ld11_init(const struct uniphier_board_data *bd)
+{
+ uniphier_sbc_init_savepin(bd);
+ uniphier_pxs2_sbc_init(bd);
+ uniphier_ld20_early_pin_init(bd);
+
+ support_card_reset();
+
+ support_card_init();
+
+ led_puts("L0");
+
+ memconf_init(bd);
+
+ led_puts("L1");
+
+ uniphier_ld11_early_clk_init(bd);
+
+ led_puts("L2");
+
+ led_puts("L3");
+
+#ifdef CONFIG_SPL_SERIAL_SUPPORT
+ preloader_console_init();
+#endif
+
+ led_puts("L4");
+
+ {
+ int res;
+
+ res = uniphier_ld11_umc_init(bd);
+ if (res < 0) {
+ while (1)
+ ;
+ }
+ }
+
+ led_puts("L5");
+
+ dcache_disable();
+
+ led_puts("L6");
+
+ return 0;
+}