diff options
author | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2015-02-05 05:42:55 (GMT) |
---|---|---|
committer | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2015-02-06 15:15:03 (GMT) |
commit | 35adfc4d259e7985abaffa32cb9578640d09225c (patch) | |
tree | c358463fd5370f5c1873a1541664534b9c747625 /arch/arm/cpu/armv7/uniphier/dram_init.c | |
parent | 84ccd791afd580c35c73be2b395d4a1d3f24200c (diff) | |
download | u-boot-35adfc4d259e7985abaffa32cb9578640d09225c.tar.xz |
ARM: UniPhier: move SPL init functions to spl_board_init()
Now init functions called from board_postclk_init() and dram_init()
are only necessary for SPL.
Move them to spl_board_init() for clean-up.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Diffstat (limited to 'arch/arm/cpu/armv7/uniphier/dram_init.c')
-rw-r--r-- | arch/arm/cpu/armv7/uniphier/dram_init.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/arch/arm/cpu/armv7/uniphier/dram_init.c b/arch/arm/cpu/armv7/uniphier/dram_init.c index 7de657b..4b8c938 100644 --- a/arch/arm/cpu/armv7/uniphier/dram_init.c +++ b/arch/arm/cpu/armv7/uniphier/dram_init.c @@ -1,37 +1,16 @@ /* - * Copyright (C) 2012-2014 Panasonic Corporation + * Copyright (C) 2012-2015 Panasonic Corporation * Author: Masahiro Yamada <yamada.m@jp.panasonic.com> * * SPDX-License-Identifier: GPL-2.0+ */ #include <common.h> -#include <asm/arch/led.h> - -int umc_init(void); -void enable_dpll_ssc(void); int dram_init(void) { DECLARE_GLOBAL_DATA_PTR; gd->ram_size = CONFIG_SYS_SDRAM_SIZE; -#ifdef CONFIG_DRAM_INIT - led_write(B, 4, , ); - - { - int res; - - res = umc_init(); - if (res < 0) - return res; - } - led_write(B, 5, , ); - - enable_dpll_ssc(); -#endif - - led_write(B, 6, , ); - return 0; } |