]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: s5pv210: Add reserved memory for MFC on Aries
authorPaweł Chmiel <pawel.mikolaj.chmiel@gmail.com>
Tue, 8 Jan 2019 16:55:58 +0000 (17:55 +0100)
committerKrzysztof Kozlowski <krzk@kernel.org>
Thu, 10 Jan 2019 19:45:47 +0000 (20:45 +0100)
THis commit adds memory reservation required by MFC (Multi Format Codec)
to run.  On S5PV210 both regions needs to be on separate memory banks.
Size of both regions is taken from vendor Linux kernel sources.

Signed-off-by: Paweł Chmiel <pawel.mikolaj.chmiel@gmail.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
arch/arm/boot/dts/s5pv210-aries.dtsi

index 575094ea7024e04985db887c4bb66df1cd6fc921..89525e56cc7c0bf4f506b145ad6a4cc16166bebf 100644 (file)
@@ -23,6 +23,24 @@ memory@30000000 {
                        0x50000000 0x08000000>;
        };
 
+       reserved-memory {
+               #address-cells = <1>;
+               #size-cells = <1>;
+               ranges;
+
+               mfc_left: region@43000000 {
+                       compatible = "shared-dma-pool";
+                       no-map;
+                       reg = <0x43000000 0x2000000>;
+               };
+
+               mfc_right: region@51000000 {
+                       compatible = "shared-dma-pool";
+                       no-map;
+                       reg = <0x51000000 0x2000000>;
+               };
+       };
+
        wifi_pwrseq: wifi-pwrseq {
                compatible = "mmc-pwrseq-simple";
                reset-gpios = <&gpg1 2 GPIO_ACTIVE_LOW>;
@@ -329,6 +347,10 @@ &hsotg {
        status = "okay";
 };
 
+&mfc {
+       memory-region = <&mfc_left>, <&mfc_right>;
+};
+
 &pinctrl0 {
        wlan_bt_en: wlan-bt-en {
                samsung,pins = "gpb-5";