Skip to content

Commit 7f6348b

Browse files
fifteenhexarndb
authored andcommitted
ARM: mstar: Add IMI SRAM region
All MStar v7 SoCs have an internal SRAM region that is between 64KB (infinity2m) and 128KB(infinity3, mercury5). The region is always at the same base address and is used for the second stage loader (MStar IPL or u-boot SPL) and will be used for the DDR self-refresh entry code within the kernel eventually. This patch adds a 128KB region to the SoC and the minimum 64KB SRAM region to the base dtsi. Families with more SRAM will override the size in their family level dtsi. Signed-off-by: Daniel Palmer <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
1 parent 9e30b09 commit 7f6348b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

arch/arm/boot/dts/mstar-v7.dtsi

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545
#address-cells = <1>;
4646
#size-cells = <1>;
4747
ranges = <0x16001000 0x16001000 0x00007000>,
48-
<0x1f000000 0x1f000000 0x00400000>;
48+
<0x1f000000 0x1f000000 0x00400000>,
49+
<0xa0000000 0xa0000000 0x20000>;
4950

5051
gic: interrupt-controller@16001000 {
5152
compatible = "arm,cortex-a7-gic";
@@ -79,5 +80,10 @@
7980
status = "disabled";
8081
};
8182
};
83+
84+
imi: sram@a0000000 {
85+
compatible = "mmio-sram";
86+
reg = <0xa0000000 0x10000>;
87+
};
8288
};
8389
};

0 commit comments

Comments
 (0)