OSDN Git Service

ARM: dts: aspeed: witherspoon: Enable XDMA engine
authorEddie James <eajames@linux.ibm.com>
Tue, 5 May 2020 16:58:24 +0000 (11:58 -0500)
committerJoel Stanley <joel@jms.id.au>
Mon, 20 Jul 2020 04:58:08 +0000 (14:28 +0930)
Add a reserved memory node for the VGA memory. Add the XDMA engine node,
enable it, and point it's memory region to the VGA memory.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Signed-off-by: Joel Stanley <joel@jms.id.au>
arch/arm/boot/dts/aspeed-bmc-opp-witherspoon.dts

index a0f99e3..85d58a6 100644 (file)
                        reg = <0x98000000 0x04000000>; /* 64M */
                };
 
+               vga_memory: region@9f000000 {
+                       no-map;
+                       compatible = "shared-dma-pool";
+                       reg = <0x9f000000 0x01000000>; /* 16M */
+               };
+
                gfx_memory: framebuffer {
                        size = <0x01000000>;
                        alignment = <0x01000000>;
        memory-region = <&video_engine_memory>;
 };
 
+&xdma {
+       status = "okay";
+       memory-region = <&vga_memory>;
+};
+
 #include "ibm-power9-dual.dtsi"