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>
This commit is contained in:
@@ -106,62 +106,16 @@
|
||||
# define CONFIG_XILINX_TB_WATCHDOG
|
||||
#endif
|
||||
|
||||
/*
|
||||
* memory layout - Example
|
||||
* CONFIG_SYS_TEXT_BASE = 0x1200_0000; defined in config.mk
|
||||
* CONFIG_SYS_SRAM_BASE = 0x1000_0000;
|
||||
* CONFIG_SYS_SRAM_SIZE = 0x0400_0000; 64MB
|
||||
*
|
||||
* CONFIG_SYS_MONITOR_LEN = 0x40000
|
||||
* CONFIG_SYS_MALLOC_LEN = 3 * CONFIG_SYS_MONITOR_LEN = 0xC0000
|
||||
*
|
||||
* CONFIG_SYS_GBL_DATA_OFFSET = 0x1000_0000 + 0x0400_0000 - 0x1000 = 0x13FF_F000
|
||||
* CONFIG_SYS_MONITOR_BASE = 0x13FF_F000 - CONFIG_SYS_MONITOR_LEN = 0x13FB_F000
|
||||
* CONFIG_SYS_MALLOC_BASE = 0x13FB_F000 - CONFIG_SYS_MALLOC_LEN = 0x13EF_F000
|
||||
*
|
||||
* 0x1000_0000 CONFIG_SYS_SDRAM_BASE
|
||||
* MEMTEST_AREA 64kB
|
||||
* FREE
|
||||
* 0x1200_0000 CONFIG_SYS_TEXT_BASE
|
||||
* U-BOOT code
|
||||
* 0x1202_0000
|
||||
* FREE
|
||||
*
|
||||
* STACK
|
||||
* 0x13EF_F000 CONFIG_SYS_MALLOC_BASE
|
||||
* MALLOC_AREA 768kB Alloc
|
||||
* 0x13FB_F000 CONFIG_SYS_MONITOR_BASE
|
||||
* MONITOR_CODE 256kB Env
|
||||
* 0x13FF_F000 CONFIG_SYS_GBL_DATA_OFFSET
|
||||
* GLOBAL_DATA 4kB bd, gd
|
||||
* 0x1400_0000 CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_SDRAM_SIZE
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_OF_CONTROL
|
||||
/* ddr sdram - main memory */
|
||||
#define CONFIG_SYS_SDRAM_BASE XILINX_RAM_START
|
||||
#define CONFIG_SYS_SDRAM_SIZE XILINX_RAM_SIZE
|
||||
#define CONFIG_SYS_MEMTEST_START CONFIG_SYS_SDRAM_BASE
|
||||
#define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_SDRAM_BASE + 0x1000)
|
||||
# define CONFIG_SYS_SDRAM_BASE XILINX_RAM_START
|
||||
# define CONFIG_SYS_SDRAM_SIZE XILINX_RAM_SIZE
|
||||
#endif
|
||||
|
||||
/* global pointer */
|
||||
/* start of global data */
|
||||
#define CONFIG_SYS_GBL_DATA_OFFSET \
|
||||
(CONFIG_SYS_SDRAM_SIZE - GENERATED_GBL_DATA_SIZE)
|
||||
#define CONFIG_SYS_MALLOC_LEN 0xC0000
|
||||
|
||||
/* monitor code */
|
||||
#define SIZE 0x40000
|
||||
#define CONFIG_SYS_MONITOR_LEN SIZE
|
||||
#define CONFIG_SYS_MONITOR_BASE \
|
||||
(CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_GBL_DATA_OFFSET \
|
||||
- CONFIG_SYS_MONITOR_LEN - GENERATED_BD_INFO_SIZE)
|
||||
#define CONFIG_SYS_MONITOR_END \
|
||||
(CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN)
|
||||
#define CONFIG_SYS_MALLOC_LEN (SIZE * 3)
|
||||
#define CONFIG_SYS_MALLOC_BASE \
|
||||
(CONFIG_SYS_MONITOR_BASE - CONFIG_SYS_MALLOC_LEN)
|
||||
|
||||
/* stack */
|
||||
#define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_MALLOC_BASE
|
||||
/* Stack location before relocation */
|
||||
#define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_TEXT_BASE
|
||||
|
||||
/*
|
||||
* CFI flash memory layout - Example
|
||||
|
||||
Reference in New Issue
Block a user