summaryrefslogtreecommitdiff
path: root/arch/arm/mach-uniphier/init/init-ld20.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2017-01-15 05:59:09 (GMT)
committerMasahiro Yamada <yamada.masahiro@socionext.com>2017-01-17 16:22:30 (GMT)
commita8e6300d483d85f9eff211220db582cf6a403c0b (patch)
tree16d62d6bc5d7feda9ed08f3a6a70b9685031db19 /arch/arm/mach-uniphier/init/init-ld20.c
parentb61664e230b30084f2fae5063123fd40bd17d0f7 (diff)
downloadu-boot-fsl-qoriq-a8e6300d483d85f9eff211220db582cf6a403c0b.tar.xz
ARM: uniphier: refactor spl_init_board()
Merge init-*.c into a single file using a table of callbacks because the initialization flow is almost common among SoCs. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'arch/arm/mach-uniphier/init/init-ld20.c')
-rw-r--r--arch/arm/mach-uniphier/init/init-ld20.c56
1 files changed, 0 insertions, 56 deletions
diff --git a/arch/arm/mach-uniphier/init/init-ld20.c b/arch/arm/mach-uniphier/init/init-ld20.c
deleted file mode 100644
index e056d5d..0000000
--- a/arch/arm/mach-uniphier/init/init-ld20.c
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * 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_ld20_init(const struct uniphier_board_data *bd)
-{
- uniphier_ld11_sbc_init();
-
- support_card_init();
-
- led_puts("L0");
-
- uniphier_memconf_3ch_init(bd);
-
- led_puts("L1");
-
- uniphier_ld11_early_clk_init();
- uniphier_ld20_dram_clk_init();
-
- led_puts("L2");
-
-#ifdef CONFIG_SPL_SERIAL_SUPPORT
- preloader_console_init();
-#endif
-
- led_puts("L3");
-
- uniphier_ld20_dpll_init(bd);
-
- led_puts("L4");
-
- {
- int res;
-
- res = uniphier_ld20_umc_init(bd);
- if (res < 0) {
- while (1)
- ;
- }
- }
-
- led_puts("L5");
-
- dcache_disable();
-
- return 0;
-}