summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-uniphier/spl.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2015-02-27 02:27:04 +0900
committerMasahiro Yamada <yamada.m@jp.panasonic.com>2015-03-01 00:03:13 +0900
commit6cc2120646a3230bcf4b57cb3cb937f4a1cfe150 (patch)
treeda73383c242ddacceaf270584d2a1ba62260d37c /arch/arm/mach-uniphier/spl.c
parentafed8c1b6a28bc201dd3633f914572bbf693e620 (diff)
downloadtalos-obmc-uboot-6cc2120646a3230bcf4b57cb3cb937f4a1cfe150.tar.gz
talos-obmc-uboot-6cc2120646a3230bcf4b57cb3cb937f4a1cfe150.zip
ARM: UniPhier: consolidate MEMCONF setting code
This code is duplicated in ph1-ld4/sg_init.c and ph1-pro4/sg_init.c. Merge the same code into a new file, memconf.c. The helper functions no longer have to be placed in the header file. Also, move them into memconf.c. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Diffstat (limited to 'arch/arm/mach-uniphier/spl.c')
-rw-r--r--arch/arm/mach-uniphier/spl.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/arch/arm/mach-uniphier/spl.c b/arch/arm/mach-uniphier/spl.c
index c8a2469f6a..c3d90d03d0 100644
--- a/arch/arm/mach-uniphier/spl.c
+++ b/arch/arm/mach-uniphier/spl.c
@@ -18,6 +18,7 @@ void sbc_init(void);
void sg_init(void);
void pll_init(void);
void pin_init(void);
+void memconf_init(void);
void early_clkrst_init(void);
int umc_init(void);
void enable_dpll_ssc(void);
@@ -38,10 +39,14 @@ void spl_board_init(void)
led_write(L, 0, , );
- early_clkrst_init();
+ memconf_init();
led_write(L, 1, , );
+ early_clkrst_init();
+
+ led_write(L, 2, , );
+
{
int res;
@@ -51,9 +56,9 @@ void spl_board_init(void)
;
}
}
- led_write(L, 2, , );
+ led_write(L, 3, , );
enable_dpll_ssc();
- led_write(L, 3, , );
+ led_write(L, 4, , );
}
OpenPOWER on IntegriCloud