summaryrefslogtreecommitdiffstats
path: root/common/board_f.c
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2014-05-08 16:08:44 +0200
committerMichal Simek <michal.simek@xilinx.com>2015-02-09 15:11:56 +0100
commite945f6dc2814f5f0d30b5b7e23821b3fd4faff5b (patch)
tree30e842dc2c1878f34f9f86a5cc264e3b9a0bbdaf /common/board_f.c
parent4dd097427aeb6848fcb19c31b805abe1a3906913 (diff)
downloadblackbird-obmc-uboot-e945f6dc2814f5f0d30b5b7e23821b3fd4faff5b.tar.gz
blackbird-obmc-uboot-e945f6dc2814f5f0d30b5b7e23821b3fd4faff5b.zip
microblaze: Move architecture to use generic board init
Compile code with -fPIC to get GOT. Do not build SPL with fPIC because it increasing SPL size for nothing. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'common/board_f.c')
-rw-r--r--common/board_f.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/board_f.c b/common/board_f.c
index 79531377a7..d25329a0aa 100644
--- a/common/board_f.c
+++ b/common/board_f.c
@@ -262,7 +262,7 @@ static int zero_global_data(void)
static int setup_mon_len(void)
{
-#ifdef __ARM__
+#if defined(__ARM__) || defined(__MICROBLAZE__)
gd->mon_len = (ulong)&__bss_end - (ulong)_start;
#elif defined(CONFIG_SANDBOX)
gd->mon_len = (ulong)&_end - (ulong)_init;
@@ -909,7 +909,7 @@ static init_fnc_t init_sequence_f[] = {
#endif
announce_dram_init,
/* TODO: unify all these dram functions? */
-#if defined(CONFIG_ARM) || defined(CONFIG_X86)
+#if defined(CONFIG_ARM) || defined(CONFIG_X86) || defined(CONFIG_MICROBLAZE)
dram_init, /* configure available RAM banks */
#endif
#if defined(CONFIG_MIPS) || defined(CONFIG_PPC)
OpenPOWER on IntegriCloud