dts: arc: Get flash address from dts file
As flash address changes between different boards of same Soc, it is derived from .dts file instead of hard coding in .dtsi. Signed-off-by: Savinay Dharmappa <savinay.dharmappa@intel.com>
This commit is contained in:
parent
987329f82c
commit
9e300b77e4
2 changed files with 4 additions and 2 deletions
|
@ -4,6 +4,8 @@
|
||||||
#define DT_SRAM_SIZE __SIZE_K(24)
|
#define DT_SRAM_SIZE __SIZE_K(24)
|
||||||
#define DT_DCCM_SIZE __SIZE_K(8)
|
#define DT_DCCM_SIZE __SIZE_K(8)
|
||||||
|
|
||||||
|
#define DT_FLASH_ADDR 0x40000000
|
||||||
|
|
||||||
#include "quark_se_c1000_ss.dtsi"
|
#include "quark_se_c1000_ss.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
flash0: flash@40010000 {
|
flash0: flash@DT_FLASH_ADDR {
|
||||||
reg = <0x40000000 DT_FLASH_SIZE>;
|
reg = <DT_FLASH_ADDR DT_FLASH_SIZE>;
|
||||||
};
|
};
|
||||||
|
|
||||||
sram0: memory@a8000400 {
|
sram0: memory@a8000400 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue