MIPS: Move CONFIG_SYS_TEXT_BASE to Kconfig
Move CONFIG_SYS_TEXT_BASE to Kconfig, and add default values in board Kconfig files matching what was present in their config headers. This will make it cleaner to conditionalise the value for Malta based on 32 vs 64 bit builds. Signed-off-by: Paul Burton <paul.burton@imgtec.com>
This commit is contained in:
parent
6242aa1374
commit
ec35e12331
2
Kconfig
2
Kconfig
@ -268,7 +268,7 @@ config SYS_EXTRA_OPTIONS
|
||||
|
||||
config SYS_TEXT_BASE
|
||||
depends on SPARC || ARC || X86 || ARCH_UNIPHIER || ARCH_ZYNQMP || \
|
||||
(M68K && !TARGET_ASTRO_MCF5373L) || MICROBLAZE
|
||||
(M68K && !TARGET_ASTRO_MCF5373L) || MICROBLAZE || MIPS
|
||||
depends on !EFI_APP
|
||||
hex "Text Base"
|
||||
help
|
||||
|
@ -9,6 +9,9 @@ config SYS_SOC
|
||||
config SYS_CONFIG_NAME
|
||||
default "dbau1x00"
|
||||
|
||||
config SYS_TEXT_BASE
|
||||
default 0xbfc00000
|
||||
|
||||
menu "dbau1x00 board options"
|
||||
|
||||
choice
|
||||
|
@ -9,4 +9,7 @@ config SYS_VENDOR
|
||||
config SYS_CONFIG_NAME
|
||||
default "malta"
|
||||
|
||||
config SYS_TEXT_BASE
|
||||
default 0xbe000000
|
||||
|
||||
endif
|
||||
|
@ -10,4 +10,7 @@ config SYS_VENDOR
|
||||
config SYS_CONFIG_NAME
|
||||
default "pic32mzdask"
|
||||
|
||||
config SYS_TEXT_BASE
|
||||
default 0x9d004000
|
||||
|
||||
endif
|
||||
|
@ -9,6 +9,9 @@ config SYS_VENDOR
|
||||
config SYS_CONFIG_NAME
|
||||
default "vct"
|
||||
|
||||
config SYS_TEXT_BASE
|
||||
default 0x87000000
|
||||
|
||||
menu "vct board options"
|
||||
|
||||
choice
|
||||
|
@ -9,4 +9,7 @@ config SYS_SOC
|
||||
config SYS_CONFIG_NAME
|
||||
default "pb1x00"
|
||||
|
||||
config SYS_TEXT_BASE
|
||||
default 0x83800000
|
||||
|
||||
endif
|
||||
|
@ -9,4 +9,7 @@ config SYS_BOARD
|
||||
config SYS_CONFIG_NAME
|
||||
default "ap121"
|
||||
|
||||
config SYS_TEXT_BASE
|
||||
default 0x9f000000
|
||||
|
||||
endif
|
||||
|
@ -9,4 +9,7 @@ config SYS_BOARD
|
||||
config SYS_CONFIG_NAME
|
||||
default "ap143"
|
||||
|
||||
config SYS_TEXT_BASE
|
||||
default 0x9f000000
|
||||
|
||||
endif
|
||||
|
@ -7,4 +7,8 @@ config SYS_CONFIG_NAME
|
||||
default "qemu-mips" if 32BIT
|
||||
default "qemu-mips64" if 64BIT
|
||||
|
||||
config SYS_TEXT_BASE
|
||||
default 0xbfc00000 if 32BIT
|
||||
default 0xffffffffbfc00000 if 64BIT
|
||||
|
||||
endif
|
||||
|
@ -12,4 +12,7 @@ config SYS_BOARD
|
||||
config SYS_CONFIG_NAME
|
||||
default "tplink_wdr4300"
|
||||
|
||||
config SYS_TEXT_BASE
|
||||
default 0xa1000000
|
||||
|
||||
endif
|
||||
|
@ -7,8 +7,6 @@
|
||||
#ifndef __CONFIG_H
|
||||
#define __CONFIG_H
|
||||
|
||||
#define CONFIG_SYS_TEXT_BASE 0x9f000000
|
||||
|
||||
#define CONFIG_DISPLAY_CPUINFO
|
||||
#define CONFIG_DISPLAY_BOARDINFO
|
||||
#define CONFIG_BOARD_EARLY_INIT_F
|
||||
|
@ -7,8 +7,6 @@
|
||||
#ifndef __CONFIG_H
|
||||
#define __CONFIG_H
|
||||
|
||||
#define CONFIG_SYS_TEXT_BASE 0x9f000000
|
||||
|
||||
#define CONFIG_DISPLAY_CPUINFO
|
||||
#define CONFIG_DISPLAY_BOARDINFO
|
||||
#define CONFIG_BOARD_EARLY_INIT_F
|
||||
|
@ -139,12 +139,6 @@
|
||||
#define CONFIG_SYS_FLASH_CFI 1
|
||||
#define CONFIG_FLASH_CFI_DRIVER 1
|
||||
|
||||
/* The following #defines are needed to get flash environment right */
|
||||
/* ROM version */
|
||||
#define CONFIG_SYS_TEXT_BASE 0xbfc00000
|
||||
/* RAM version */
|
||||
/* #define CONFIG_SYS_TEXT_BASE 0x80100000 */
|
||||
|
||||
#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
|
||||
#define CONFIG_SYS_MONITOR_LEN (192 << 10)
|
||||
|
||||
|
@ -37,7 +37,6 @@
|
||||
/*
|
||||
* Memory map
|
||||
*/
|
||||
#define CONFIG_SYS_TEXT_BASE 0xbe000000 /* Rom version */
|
||||
#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
|
||||
|
||||
#define CONFIG_SYS_SDRAM_BASE 0x80000000 /* Cached addr */
|
||||
|
@ -80,12 +80,6 @@
|
||||
#define PHYS_FLASH_1 0xbec00000 /* Flash Bank #1 */
|
||||
#define PHYS_FLASH_2 0xbfc00000 /* Flash Bank #2 */
|
||||
|
||||
/* The following #defines are needed to get flash environment right */
|
||||
/* ROM version */
|
||||
/* #define CONFIG_SYS_TEXT_BASE 0xbfc00000 */
|
||||
/* SDRAM version */
|
||||
#define CONFIG_SYS_TEXT_BASE 0x83800000
|
||||
|
||||
#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
|
||||
#define CONFIG_SYS_MONITOR_LEN (192 << 10)
|
||||
|
||||
|
@ -10,7 +10,6 @@
|
||||
#define __PIC32MZDASK_CONFIG_H
|
||||
|
||||
/* System Configuration */
|
||||
#define CONFIG_SYS_TEXT_BASE 0x9d004000 /* .text */
|
||||
#define CONFIG_DISPLAY_BOARDINFO
|
||||
|
||||
/*--------------------------------------------
|
||||
|
@ -107,7 +107,6 @@
|
||||
* FLASH and environment organization
|
||||
*/
|
||||
/* The following #defines are needed to get flash environment right */
|
||||
#define CONFIG_SYS_TEXT_BASE 0xbfc00000 /* Rom version */
|
||||
#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
|
||||
#define CONFIG_SYS_MONITOR_LEN (192 << 10)
|
||||
|
||||
|
@ -107,7 +107,6 @@
|
||||
* FLASH and environment organization
|
||||
*/
|
||||
/* The following #defines are needed to get flash environment right */
|
||||
#define CONFIG_SYS_TEXT_BASE 0xffffffffbfc00000 /* Rom version */
|
||||
#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
|
||||
#define CONFIG_SYS_MONITOR_LEN (192 << 10)
|
||||
|
||||
|
@ -7,8 +7,6 @@
|
||||
#ifndef __CONFIG_H
|
||||
#define __CONFIG_H
|
||||
|
||||
#define CONFIG_SYS_TEXT_BASE 0xa1000000
|
||||
|
||||
#define CONFIG_DISPLAY_CPUINFO
|
||||
#define CONFIG_DISPLAY_BOARDINFO
|
||||
#define CONFIG_BOARD_EARLY_INIT_F
|
||||
|
@ -32,7 +32,6 @@
|
||||
|
||||
#define CONFIG_SKIP_LOWLEVEL_INIT /* SDRAM is initialized by the bootstrap code */
|
||||
|
||||
#define CONFIG_SYS_TEXT_BASE 0x87000000
|
||||
#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
|
||||
#define CONFIG_SYS_MONITOR_LEN (256 << 10)
|
||||
#define CONFIG_SYS_MALLOC_LEN (1 << 20)
|
||||
|
Loading…
Reference in New Issue
Block a user