Skip to content

Commit 46edf3b

Browse files
TomChang19nashif
authored andcommitted
dts: npcx: change the default memory configuration of npcx9m7fb
The internal flash size of npcx9m7fb is 512KB. Reduce the default Code RAM size from 320KB to 256KB because the Code RAM size is limited by FLASH_SIZE/2 in the Chromebook EC application. Signed-off-by: Tom Chang <[email protected]> Signed-off-by: Jun Lin <[email protected]> (cherry picked from commit f2e11e4)
1 parent 8151023 commit 46edf3b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dts/arm/nuvoton/npcx9m7fb.dtsi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99

1010
/ {
1111
flash0: flash@10070000 {
12-
reg = <0x10070000 DT_SIZE_K(320)>;
12+
reg = <0x10070000 DT_SIZE_K(256)>;
1313
};
1414

1515
flash1: flash@64000000 {
16-
reg = <0x64000000 DT_SIZE_K(1024)>;
16+
reg = <0x64000000 DT_SIZE_K(512)>;
1717
};
1818

1919
sram0: memory@200c0000 {
2020
compatible = "mmio-sram";
21-
reg = <0x200C0000 DT_SIZE_K(64)>;
21+
reg = <0x200B0000 DT_SIZE_K(128)>;
2222
};
2323

2424
soc-id {
@@ -29,7 +29,7 @@
2929
&qspi_fiu0 {
3030
int_flash: w25q80@0 {
3131
compatible ="nuvoton,npcx-fiu-nor";
32-
size = <DT_SIZE_M(1 * 8)>;
32+
size = <DT_SIZE_K(512 * 8)>;
3333
reg = <0>;
3434
status = "okay";
3535

0 commit comments

Comments
 (0)