summaryrefslogtreecommitdiff
path: root/arch/arm/mach-uniphier/init/init-pxs2.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-pxs2.c
parentb61664e230b30084f2fae5063123fd40bd17d0f7 (diff)
downloadu-boot-imx-a8e6300d483d85f9eff211220db582cf6a403c0b.zip
u-boot-imx-a8e6300d483d85f9eff211220db582cf6a403c0b.tar.gz
u-boot-imx-a8e6300d483d85f9eff211220db582cf6a403c0b.tar.bz2
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-pxs2.c')
-rw-r--r--arch/arm/mach-uniphier/init/init-pxs2.c47
1 files changed, 0 insertions, 47 deletions
diff --git a/arch/arm/mach-uniphier/init/init-pxs2.c b/arch/arm/mach-uniphier/init/init-pxs2.c
deleted file mode 100644
index f7d5b48..0000000
--- a/arch/arm/mach-uniphier/init/init-pxs2.c
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Copyright (C) 2015 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_pxs2_init(const struct uniphier_board_data *bd)
-{
- int ret;
-
- uniphier_pxs2_sbc_init();
-
- support_card_init();
-
- led_puts("L0");
-
- uniphier_memconf_3ch_init(bd);
-
- led_puts("L1");
-
- uniphier_sld3_early_clk_init();
- uniphier_pxs2_dram_clk_init();
-
- led_puts("L2");
-
- led_puts("L3");
-
-#ifdef CONFIG_SPL_SERIAL_SUPPORT
- preloader_console_init();
-#endif
-
- led_puts("L4");
-
- ret = uniphier_pxs2_umc_init(bd);
- if (ret)
- return ret;
-
- led_puts("L5");
-
- return 0;
-}