Skip to content

Commit

Permalink
soc: arm: smartbond: Set flash base address
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Andrzej Kaczmarek <[email protected]>
Signed-off-by: Niek Ilmer <[email protected]>
  • Loading branch information
2 people authored and nashif committed May 26, 2023
1 parent ba652f5 commit d39ada2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion boards/arm/da1469x_dk_pro/da1469x_dk_pro.dts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
};

&flash0 {
reg = <0 DT_SIZE_M(1)>;
reg = <0x16000000 DT_SIZE_M(1)>;

partitions {
compatible = "fixed-partitions";
Expand Down
2 changes: 1 addition & 1 deletion dts/arm/renesas/smartbond/da1469x.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
Expand Down
3 changes: 3 additions & 0 deletions soc/arm/renesas_smartbond/da1469x/Kconfig.defconfig.series
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d39ada2

Please sign in to comment.