[PATCH v7 2/7] MIPS: Loongson: ls7a-pch.dtsi: add has_dedicated_vram property

Sui Jingfeng 15330273260 at 189.cn
Sun Feb 13 14:16:44 UTC 2022


From: suijingfeng <suijingfeng at loongson.cn>

The LS7A1000 bridge chip is equipped with a dedicated video memory
which is typically 64MB or more. This patch add has_dedicated_vram
property in the display controller device node to reflict this.

Signed-off-by: suijingfeng <suijingfeng at loongson.cn>
Signed-off-by: Sui Jingfeng <15330273260 at 189.cn>
---
 arch/mips/boot/dts/loongson/ls7a-pch.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/mips/boot/dts/loongson/ls7a-pch.dtsi b/arch/mips/boot/dts/loongson/ls7a-pch.dtsi
index 2f45fce2cdc4..37a7a0aefcf1 100644
--- a/arch/mips/boot/dts/loongson/ls7a-pch.dtsi
+++ b/arch/mips/boot/dts/loongson/ls7a-pch.dtsi
@@ -160,7 +160,7 @@ gpu at 6,0 {
 				interrupt-parent = <&pic>;
 			};
 
-			dc at 6,1 {
+			lsdc: dc at 6,1 {
 				compatible = "pci0014,7a06.0",
 						   "pci0014,7a06",
 						   "pciclass030000",
@@ -169,6 +169,7 @@ dc at 6,1 {
 				reg = <0x3100 0x0 0x0 0x0 0x0>;
 				interrupts = <28 IRQ_TYPE_LEVEL_HIGH>;
 				interrupt-parent = <&pic>;
+				has_dedicated_vram;
 			};
 
 			hda at 7,0 {
-- 
2.25.1



More information about the dri-devel mailing list