Message ID | 20200710101907.11214-2-ovidiu.panait@windriver.com |
---|---|
State | Accepted |
Commit | dd084b0a378c83e1f80785cc82049578849fb3d6 |
Headers | show |
Series | [v2,01/14] Kconfig: Introduce CONFIG_SYS_HAS_SRAM | expand |
On Fri, 10 Jul 2020 at 04:23, Ovidiu Panait <ovidiu.panait at windriver.com> wrote: > > This converts ad-hoc CONFIG_SYS_SRAM_BASE to Kconfig. > > Signed-off-by: Ovidiu Panait <ovidiu.panait at windriver.com> > --- > > Kconfig | 5 +++++ > include/configs/pic32mzdask.h | 1 - > scripts/config_whitelist.txt | 1 - > 3 files changed, 5 insertions(+), 2 deletions(-) Reviewed-by: Simon Glass <sjg at chromium.org>
diff --git a/Kconfig b/Kconfig index 641748916d..9b51a2cd20 100644 --- a/Kconfig +++ b/Kconfig @@ -361,6 +361,11 @@ config SYS_HAS_SRAM SRAM base address is controlled by CONFIG_SYS_SRAM_BASE. SRAM size is controlled by CONFIG_SYS_SRAM_SIZE. +config SYS_SRAM_BASE + hex + default 0x80000000 if TARGET_PIC32MZDASK + default 0x0 + endmenu # General setup menu "Boot images" diff --git a/include/configs/pic32mzdask.h b/include/configs/pic32mzdask.h index 73edd28f1a..25b898f2e6 100644 --- a/include/configs/pic32mzdask.h +++ b/include/configs/pic32mzdask.h @@ -19,7 +19,6 @@ /*---------------------------------------------------------------------- * Memory Layout */ -#define CONFIG_SYS_SRAM_BASE 0x80000000 #define CONFIG_SYS_SRAM_SIZE 0x00080000 /* 512K */ /* Initial RAM for temporary stack, global data */ diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt index 747583089b..9e167989c4 100644 --- a/scripts/config_whitelist.txt +++ b/scripts/config_whitelist.txt @@ -3798,7 +3798,6 @@ CONFIG_SYS_SPL_LEN CONFIG_SYS_SPL_MALLOC_SIZE CONFIG_SYS_SPL_MALLOC_START CONFIG_SYS_SPR -CONFIG_SYS_SRAM_BASE CONFIG_SYS_SRAM_SIZE CONFIG_SYS_SRAM_START CONFIG_SYS_SRIO
This converts ad-hoc CONFIG_SYS_SRAM_BASE to Kconfig. Signed-off-by: Ovidiu Panait <ovidiu.panait at windriver.com> --- Kconfig | 5 +++++ include/configs/pic32mzdask.h | 1 - scripts/config_whitelist.txt | 1 - 3 files changed, 5 insertions(+), 2 deletions(-)