diff mbox series

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

Message ID 20220213141649.1115987-3-15330273260@189.cn (mailing list archive)
State New, archived
Headers show
Series drm/lsdc: add drm driver for loongson display controller | expand

Commit Message

Sui Jingfeng Feb. 13, 2022, 2:16 p.m. UTC
From: suijingfeng <suijingfeng@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@loongson.cn>
Signed-off-by: Sui Jingfeng <15330273260@189.cn>
---
 arch/mips/boot/dts/loongson/ls7a-pch.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

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@6,0 {
 				interrupt-parent = <&pic>;
 			};
 
-			dc@6,1 {
+			lsdc: dc@6,1 {
 				compatible = "pci0014,7a06.0",
 						   "pci0014,7a06",
 						   "pciclass030000",
@@ -169,6 +169,7 @@  dc@6,1 {
 				reg = <0x3100 0x0 0x0 0x0 0x0>;
 				interrupts = <28 IRQ_TYPE_LEVEL_HIGH>;
 				interrupt-parent = <&pic>;
+				has_dedicated_vram;
 			};
 
 			hda@7,0 {