]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: dts: exynos: replace hardcoded reserved memory ranges with auto-allocated ones
authorMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 7 Jun 2016 12:03:36 +0000 (14:03 +0200)
committerKrzysztof Kozlowski <k.kozlowski@samsung.com>
Wed, 8 Jun 2016 07:45:59 +0000 (09:45 +0200)
Generic reserved memory regions bindings allow to automatically allocate
region of given parameters (alignment and size), so use this feature
instead of the hardcoded values, which had no dependency on the real
hardware. This patch also increases "left" region from 8MiB to 16MiB to
make the codec really usable with nowadays steams (with 8MiB reserved
region it was not even possible to decode 480p H264 video).

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com>
Tested-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
arch/arm/boot/dts/exynos-mfc-reserved-memory.dtsi

index c4d063ae6b74f958aeb691b2ad2d97d956d7b6c3..da3ced99ffa2baa3ffe6f9aec45608c976af4712 100644 (file)
                #size-cells = <1>;
                ranges;
 
-               mfc_left: region@51000000 {
+               mfc_left: region_mfc_left {
                        compatible = "shared-dma-pool";
                        no-map;
-                       reg = <0x51000000 0x800000>;
+                       size = <0x1000000>;
+                       alignment = <0x100000>;
                };
 
-               mfc_right: region@43000000 {
+               mfc_right: region_mfc_right {
                        compatible = "shared-dma-pool";
                        no-map;
-                       reg = <0x43000000 0x800000>;
+                       size = <0x800000>;
+                       alignment = <0x100000>;
                };
        };
 };