stm32: make SRAM/FLASH base address generic to soc

Move SRAM_BASE_ADDRESS and FLASH_BASE_ADDRESS to Kconfig.soc since
it will most likely be the same values for all STM32 socs.

Change-Id: I682dc441e34155a19a4f90757707008ef299e9d4
Signed-off-by: Fabien Parent <fparent@baylibre.com>
This commit is contained in:
Fabien Parent 2016-10-04 14:35:51 +02:00
parent e135a273ec
commit f52baa15fb
2 changed files with 10 additions and 6 deletions

View file

@ -1 +1,11 @@
source "arch/arm/soc/st_stm32/*/Kconfig.defconfig.series"
if SOC_FAMILY_STM32
config SRAM_BASE_ADDRESS
default 0x20000000
config FLASH_BASE_ADDRESS
default 0x08000000
endif # SOC_FAMILY_STM32

View file

@ -22,12 +22,6 @@ source "arch/arm/soc/st_stm32/stm32f1/Kconfig.defconfig.stm32f1*"
config SOC_SERIES
default stm32f1
config SRAM_BASE_ADDRESS
default 0x20000000
config FLASH_BASE_ADDRESS
default 0x08000000
config NUM_IRQ_PRIO_BITS
int
default 4