ARM: dts: aspeed: tacoma: Enable XDMA engine
authorEddie James <eajames@linux.ibm.com>
Tue, 5 May 2020 16:58:25 +0000 (11:58 -0500)
committerJoel Stanley <joel@jms.id.au>
Mon, 20 Jul 2020 04:58:10 +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-tacoma.dts

index 13c4aa0..61d7fd9 100644 (file)
                        no-map;
                        reg = <0xb8000000 0x4000000>; /* 64M */
                };
+
+               vga_memory: region@bf000000 {
+                       no-map;
+                       compatible = "shared-dma-pool";
+                       reg = <0xbf000000 0x01000000>;  /* 16M */
+               };
        };
 
        gpio-keys {
        pinctrl-0 = <&pinctrl_lpc_default>,
                    <&pinctrl_lsirq_default>;
 };
+
+&xdma {
+       status = "okay";
+       memory-region = <&vga_memory>;
+};