common: NN API implementation [1/3]
authordeng.liu <deng.liu@amlogic.com>
Thu, 14 Mar 2019 11:42:45 +0000 (19:42 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Mon, 18 Mar 2019 08:19:33 +0000 (00:19 -0800)
PD#SWPL-86

Problem:
Android tensorflow lite ,NN API implementation

Solution:
NN API implementation

Verify:
Local on galilei

Change-Id: I699a53b3fa2fd199cea7ef4db2f439ef49536a9c
Signed-off-by: deng.liu <deng.liu@amlogic.com>
arch/arm/boot/dts/amlogic/g12b_a311d_w400.dts
arch/arm/boot/dts/amlogic/g12b_a311d_w400_a.dts
arch/arm/boot/dts/amlogic/mesong12b.dtsi
arch/arm/boot/dts/amlogic/mesong12b_a.dtsi

index 489f833..3295cc4 100644 (file)
                        size = <0x04000000>;
                        alignment = <0x400000>;
                };
+               galcore_reserved:linux,galcore {
+                       compatible = "shared-dma-pool";
+                       reusable;
+                       size = <0x1000000>;
+                       alignment = <0x400000>;
+                       linux,contiguous-region;
+               };
+       };
+
+       galcore {
+               status = "okay";
+               memory-region = <&galcore_reserved>;
        };
 
        gpioleds {
index ef3bbda..bee50cc 100644 (file)
                        size = <0x04000000>;
                        alignment = <0x400000>;
                };
+               galcore_reserved:linux,galcore {
+                       compatible = "shared-dma-pool";
+                       reusable;
+                       size = <0x1000000>;
+                       alignment = <0x400000>;
+                       linux,contiguous-region;
+               };
+       };
+
+       galcore {
+               status = "okay";
+               memory-region = <&galcore_reserved>;
        };
 
        gpioleds {
index f913a51..1b80185 100644 (file)
                        <&clkc CLKID_VNANOQ_CORE_CLK_COMP>;
                clock-names = "cts_vipnanoq_axi_clk_composite",
                        "cts_vipnanoq_core_clk_composite";
-               interrupts = <0 147 1>;
+               interrupts = <0 147 4>;
                interrupt-names = "galcore";
                reg = <0xff100000 0x800
                       0xff000000 0x400000>;
index 4adebb6..2b1a806 100644 (file)
                        <&clkc CLKID_VNANOQ_CORE_CLK_COMP>;
                clock-names = "cts_vipnanoq_axi_clk_composite",
                        "cts_vipnanoq_core_clk_composite";
-               interrupts = <0 147 1>;
+               interrupts = <0 147 4>;
                interrupt-names = "galcore";
                reg = <0xff100000 0x800
                       0xff000000 0x400000>;