common: NN API implementation [1/3]
authordeng.liu <deng.liu@amlogic.com>
Thu, 14 Mar 2019 11:42:45 +0000 (19:42 +0800)
committerLuan Yuan <luan.yuan@amlogic.com>
Fri, 15 Mar 2019 13:22:29 +0000 (21:22 +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 9a6d701..88b7280 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 de5c382..ba7f622 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 af8d789..fe69fd8 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 9e6514f..3b5feee 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>;