Skip to content

Commit 784c93e

Browse files
refractionwarearndb
authored andcommitted
ARM: dts: samsung: exynos4412: decrease memory to account for unusable region
The last 4 MiB of RAM on those devices is likely used by trustzone firmware, and is unusable under Linux. Change the device tree memory node accordingly. The proprietary bootloader (S-BOOT) passes these memory ranges through ATAG_MEM; this change allows us to have the correct memory ranges without relying on ATAG_MEM. Tested-by: Henrik Grimler <[email protected]> # i9300, i9305 Signed-off-by: Artur Weber <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
1 parent cceac3f commit 784c93e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

arch/arm/boot/dts/samsung/exynos4412-i9300.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
memory@40000000 {
2020
device_type = "memory";
21-
reg = <0x40000000 0x40000000>;
21+
reg = <0x40000000 0x3fc00000>;
2222
};
2323
};
2424

arch/arm/boot/dts/samsung/exynos4412-i9305.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
memory@40000000 {
1313
device_type = "memory";
14-
reg = <0x40000000 0x80000000>;
14+
reg = <0x40000000 0x7fc00000>;
1515
};
1616
};
1717

arch/arm/boot/dts/samsung/exynos4412-n710x.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
memory@40000000 {
1111
device_type = "memory";
12-
reg = <0x40000000 0x80000000>;
12+
reg = <0x40000000 0x7fc00000>;
1313
};
1414

1515
/* bootargs are passed in by bootloader */

arch/arm/boot/dts/samsung/exynos4412-p4note.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
memory@40000000 {
2525
device_type = "memory";
26-
reg = <0x40000000 0x80000000>;
26+
reg = <0x40000000 0x7fc00000>;
2727
};
2828

2929
aliases {

0 commit comments

Comments
 (0)