summaryrefslogtreecommitdiff
path: root/arch/arm/mach-uniphier/init/init-sld8.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2017-01-15 14:59:09 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2017-01-18 01:22:30 +0900
commita8e6300d483d85f9eff211220db582cf6a403c0b (patch)
tree16d62d6bc5d7feda9ed08f3a6a70b9685031db19 /arch/arm/mach-uniphier/init/init-sld8.c
parentb61664e230b30084f2fae5063123fd40bd17d0f7 (diff)
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-sld8.c')
-rw-r--r--arch/arm/mach-uniphier/init/init-sld8.c57
1 files changed, 0 insertions, 57 deletions
diff --git a/arch/arm/mach-uniphier/init/init-sld8.c b/arch/arm/mach-uniphier/init/init-sld8.c
deleted file mode 100644
index 8da2843578..0000000000
--- a/arch/arm/mach-uniphier/init/init-sld8.c
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * Copyright (C) 2013-2015 Panasonic Corporation
- * Copyright (C) 2015-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_sld8_init(const struct uniphier_board_data *bd)
-{
- uniphier_ld4_bcu_init(bd);
-
- uniphier_ld4_sbc_init();
-
- support_card_init();
-
- uniphier_sld8_dpll_init(bd);
-
- led_puts("L0");
-
- uniphier_memconf_2ch_init(bd);
-
- led_puts("L1");
-
- uniphier_sld3_early_clk_init();
- uniphier_sld3_dram_clk_init();
-
- led_puts("L2");
-
- led_puts("L3");
-
-#ifdef CONFIG_SPL_SERIAL_SUPPORT
- preloader_console_init();
-#endif
-
- led_puts("L4");
-
- {
- int res;
-
- res = uniphier_sld8_umc_init(bd);
- if (res < 0) {
- while (1)
- ;
- }
- }
-
- led_puts("L5");
-
- return 0;
-}