[PATCH] arm64: dts: smaug: Add EMC frequency change tables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add the reserved-memory regions of the nominal and derated tables setup by
the bootloader so that the EMC frequency change code can access them.

Signed-off-by: Diogo Ivo <diogo.ivo@xxxxxxxxxxxxxxxxxx>
---
 arch/arm64/boot/dts/nvidia/tegra210-smaug.dts | 21 +++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/arch/arm64/boot/dts/nvidia/tegra210-smaug.dts b/arch/arm64/boot/dts/nvidia/tegra210-smaug.dts
index 709f3f417a19..a74826ae97b4 100644
--- a/arch/arm64/boot/dts/nvidia/tegra210-smaug.dts
+++ b/arch/arm64/boot/dts/nvidia/tegra210-smaug.dts
@@ -30,6 +30,22 @@ memory {
 		reg = <0x0 0x80000000 0x0 0xc0000000>;
 	};
 
+	reserved-memory {
+		#address-cells = <2>;
+		#size-cells = <2>;
+		ranges;
+
+		nominal: emc-table@f67cc000 {
+			compatible = "nvidia,tegra210-emc-table";
+			reg = <0x0 0xf67cc000 0x0 0xbea0>;
+		};
+
+		derated: emc-table@f67d7ea0 {
+			compatible = "nvidia,tegra210-emc-table";
+			reg = <0x0 0xf67d7ea0 0x0 0xbea0>;
+		};
+	};
+
 	host1x@50000000 {
 		dc@54200000 {
 			status = "okay";
@@ -1735,6 +1751,11 @@ pmc@7000e400 {
 		status = "okay";
 	};
 
+	emc: external-memory-controller@7001b000 {
+		memory-region = <&nominal>, <&derated>;
+		memory-region-names = "nominal", "derated";
+	};
+
 	usb@70090000 {
 		phys = <&{/padctl@7009f000/pads/usb2/lanes/usb2-0}>,
 		       <&{/padctl@7009f000/pads/pcie/lanes/pcie-6}>;
-- 
2.40.0




[Index of Archives]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux