diff options
author | Michal Simek <monstr@monstr.eu> | 2012-07-04 13:12:37 +0200 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2012-09-11 09:24:58 +0200 |
commit | 2380b8f529ae95cc51fa475e83101e40f4191a43 (patch) | |
tree | e5148174ae1255a921a514537ac40fab4d5145cf /board/xilinx/microblaze-generic/microblaze-generic.c | |
parent | bcbb046bd5cba6acb07aa99cad728726be8359e6 (diff) | |
download | u-boot-imx-2380b8f529ae95cc51fa475e83101e40f4191a43.zip u-boot-imx-2380b8f529ae95cc51fa475e83101e40f4191a43.tar.gz u-boot-imx-2380b8f529ae95cc51fa475e83101e40f4191a43.tar.bz2 |
microblaze: Clean microblaze initialization
Move board specific function to board_init function in board/ folder
Remove externs from generic board.c
Use board_init_f function in board.c file.
Signed-off-by: Michal Simek <monstr@monstr.eu>
Acked-by: Stephan Linz <linz@li-pro.net>
Diffstat (limited to 'board/xilinx/microblaze-generic/microblaze-generic.c')
-rw-r--r-- | board/xilinx/microblaze-generic/microblaze-generic.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/board/xilinx/microblaze-generic/microblaze-generic.c b/board/xilinx/microblaze-generic/microblaze-generic.c index a1e2bfe..b75e62c 100644 --- a/board/xilinx/microblaze-generic/microblaze-generic.c +++ b/board/xilinx/microblaze-generic/microblaze-generic.c @@ -28,6 +28,7 @@ #include <common.h> #include <config.h> #include <netdev.h> +#include <asm/processor.h> #include <asm/microblaze_intc.h> #include <asm/asm.h> @@ -69,6 +70,14 @@ int fsl_init2 (void) { } #endif +void board_init(void) +{ + gpio_init(); +#ifdef CONFIG_SYS_FSL_2 + fsl_init2(); +#endif +} + int board_eth_init(bd_t *bis) { int ret = 0; |