npu: check chip whether contain npu module [1/2]
authorcancan.chang <cancan.chang@amlogic.com>
Fri, 26 Apr 2019 11:59:59 +0000 (19:59 +0800)
committerNick Xie <nick@khadas.com>
Mon, 5 Aug 2019 06:22:44 +0000 (14:22 +0800)
PD#SWPL-7761

Problem:
S922X revb boot up fail

Solution:
add check function

Verify:
test pass at g12b revb

Change-Id: I17de7f9f82e09c68e27668288cb001e975785f5b
Signed-off-by: cancan chang <cancan.chang@amlogic.com>
arch/arm/boot/dts/amlogic/mesong12b.dtsi
arch/arm/boot/dts/amlogic/mesong12b_a.dtsi
arch/arm64/boot/dts/amlogic/mesong12b.dtsi
arch/arm64/boot/dts/amlogic/mesong12b_a.dtsi

index e4b893d..9f6a2ea 100644 (file)
                interrupts = <0 147 4>;
                interrupt-names = "galcore";
                reg = <0xff100000 0x800
-                      0xff000000 0x400000>;
+                       0xff000000 0x400000
+                       0xff63c10c 0x4
+                       0xff63c110 0x4
+                       0xffd01088 0x4
+                       0xff63c1c8 0x4
+                       >;
+               reg-names = "NN_REG","NN_SRAM","NN_MEM0",
+                       "NN_MEM1","NN_RESET","NN_CLK";
+               nn_efuse = <0xff63003c 0x20>;
        };
 
        aocec: aocec {
index ce28d0a..3f910ea 100644 (file)
                interrupts = <0 147 4>;
                interrupt-names = "galcore";
                reg = <0xff100000 0x800
-                      0xff000000 0x400000>;
+                       0xff000000 0x400000
+                       0xff63c10c 0x4
+                       0xff63c110 0x4
+                       0xffd01088 0x4
+                       0xff63c1c8 0x4
+                       >;
+               reg-names = "NN_REG","NN_SRAM","NN_MEM0",
+                       "NN_MEM1","NN_RESET","NN_CLK";
+               nn_efuse = <0xff63003c 0x20>;
        };
 
        aocec: aocec {
index 524b24e..5b7aa00 100644 (file)
                interrupts = <0 147 4>;
                interrupt-names = "galcore";
                reg = <0x0 0xff100000 0x0 0x800
-                      0x0 0xff000000 0x0 0x400000>;
+                       0x0 0xff000000 0x0 0x400000
+                       0x0 0xff63c10c 0x0 0x4
+                       0x0 0xff63c110 0x0 0x4
+                       0x0 0xffd01088 0x0 0x4
+                       0X0 0xff63c1c8 0X0 0x4
+                       >;
+               reg-names = "NN_REG","NN_SRAM","NN_MEM0",
+                       "NN_MEM1","NN_RESET","NN_CLK";
+               nn_efuse = <0xff63003c 0x20>;
        };
 
        aocec: aocec {
index 04d6e1b..b00a84e 100644 (file)
                interrupts = <0 147 4>;
                interrupt-names = "galcore";
                reg = <0x0 0xff100000 0x0 0x800
-                      0x0 0xff000000 0x0 0x400000>;
+                       0x0 0xff000000 0x0 0x400000
+                       0x0 0xff63c10c 0x0 0x4
+                       0x0 0xff63c110 0x0 0x4
+                       0x0 0xffd01088 0x0 0x4
+                       0X0 0xff63c1c8 0X0 0x4
+                       >;
+               reg-names = "NN_REG","NN_SRAM","NN_MEM0",
+                       "NN_MEM1","NN_RESET","NN_CLK";
+               nn_efuse = <0xff63003c 0x20>;
        };
 
        aocec: aocec {