soc: arm: smartbond: Set flash base address

Flash address is updated to 0x16000000, i.e. actual location instead of
remapped one. FLASH_BASE_ADDRESS is now set via dts.

Co-authored-by: Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
Signed-off-by: Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
Signed-off-by: Niek Ilmer <niek.ilmer.aj@renesas.com>
This commit is contained in:
Niek Ilmer 2023-03-13 01:43:11 +01:00 committed by Anas Nashif
commit d39ada2248
3 changed files with 5 additions and 2 deletions

View file

@ -71,7 +71,7 @@
};
&flash0 {
reg = <0 DT_SIZE_M(1)>;
reg = <0x16000000 DT_SIZE_M(1)>;
partitions {
compatible = "fixed-partitions";

View file

@ -103,7 +103,7 @@
#address-cells = <1>;
#size-cells = <1>;
flash0: flash@0 {
flash0: flash@16000000 {
compatible = "soc-nv-flash";
erase-block-size = <4096>;
write-block-size = <1>;

View file

@ -17,4 +17,7 @@ config SYS_CLOCK_HW_CYCLES_PER_SEC
config SRAM_VECTOR_TABLE
default y
config FLASH_BASE_ADDRESS
default $(dt_chosen_reg_addr_hex,$(DT_CHOSEN_Z_FLASH))
endif # SOC_SERIES_DA1469X