camera: config adapter buffer size from dts [1/2]
authorGuosong Zhou <guosong.zhou@amlogic.com>
Tue, 19 Feb 2019 06:43:42 +0000 (01:43 -0500)
committerJianxin Pan <jianxin.pan@amlogic.com>
Thu, 21 Feb 2019 02:23:49 +0000 (18:23 -0800)
PD#SWPL-4934

Problem:
kernel panic when adjust adapter memory size

Solution:
config adapter buffer size from dts

Verify:
verify by w411

Change-Id: Ie66cf57e870e140dd63516672c7f90f7d9ddda72
Signed-off-by: Guosong Zhou <guosong.zhou@amlogic.com>
arch/arm/boot/dts/amlogic/mesong12b.dtsi
arch/arm64/boot/dts/amlogic/g12b_a311x_w411_buildroot.dts
arch/arm64/boot/dts/amlogic/mesong12b.dtsi

index 7d0a515..5873b9c 100644 (file)
                reg-names = "adapter";
                interrupts = <0 179 0>;
                interrupt-names = "adapter-irq";
+               mem_alloc = <48>;
        };
 
        phycsi: phy-csi@ff650000 {
index 805798d..f702478 100644 (file)
 
 &adapter {
        status = "okay";
+       mem_alloc = <24>;
        memory-region = <&adapt_cma_reserved>;
 };
 
index 0bafb00..7cf0a05 100644 (file)
                reg-names = "adapter";
                interrupts = <0 179 0>;
                interrupt-names = "adapter-irq";
+               mem_alloc = <48>;
        };
 
        phycsi: phy-csi@ff650000 {