diff options
author | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2015-02-27 02:26:51 +0900 |
---|---|---|
committer | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2015-03-01 00:02:36 +0900 |
commit | 198a97a6abe7090109002baea0d2cb46070955aa (patch) | |
tree | 4ee4cea278f41d5f16147152028785e3891cf97b /arch/arm/mach-uniphier/board_early_init_f.c | |
parent | f267b81e20da095539c7da7103afbd1e1b39b20b (diff) | |
download | talos-obmc-uboot-198a97a6abe7090109002baea0d2cb46070955aa.tar.gz talos-obmc-uboot-198a97a6abe7090109002baea0d2cb46070955aa.zip |
ARM: UniPhier: split clkrst_init() into two functions
Split the current clkrst_init() into two functions:
- early_clkrst_init(): called from SPL
Deassert the reset signals of the memory controller and some other
basic cores.
- clkrst_init(): called from main U-boot
Deassert the reset signals that are necessary for the access to
peripherals etc.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Diffstat (limited to 'arch/arm/mach-uniphier/board_early_init_f.c')
-rw-r--r-- | arch/arm/mach-uniphier/board_early_init_f.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-uniphier/board_early_init_f.c b/arch/arm/mach-uniphier/board_early_init_f.c index bf81345ab9..7108740408 100644 --- a/arch/arm/mach-uniphier/board_early_init_f.c +++ b/arch/arm/mach-uniphier/board_early_init_f.c @@ -9,6 +9,7 @@ #include <mach/board.h> void pin_init(void); +void clkrst_init(void); int board_early_init_f(void) { @@ -18,5 +19,9 @@ int board_early_init_f(void) led_write(U, 1, , ); + clkrst_init(); + + led_write(U, 2, , ); + return 0; } |