board/boundarydevices: update u-boot scripts for i.MX7 support
authorGary Bisson <gary.bisson@boundarydevices.com>
Thu, 3 Mar 2016 14:57:17 +0000 (15:57 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 3 Mar 2016 16:41:16 +0000 (17:41 +0100)
Also remove useless tfp410 enablement since a basic kernel driver has
been added.

Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
board/boundarydevices/nitrogen6x/6x_bootscript.txt
board/boundarydevices/nitrogen6x/6x_upgrade.txt

index 4a9be0b29b4d56fb0a22a3a5b489b7e810a89130..e8a08aa8ae14bfe383fbfe78e0716043118902df 100644 (file)
@@ -1,8 +1,19 @@
 setenv bootargs ''
 
-a_script=0x10800000
-a_zImage=0x10800000
-a_fdt=0x13000000
+if itest.s x6SX == "x${cpu}" || itest.s x7D == "x${cpu}"; then
+       a_script=0x80800000
+       a_zImage=0x80800000
+       a_fdt=0x83000000
+       m4=''
+       if itest.s "x1" == "x$m4enabled" ; then
+               run m4boot;
+               m4='-m4';
+       fi
+else
+       a_script=0x10800000
+       a_zImage=0x10800000
+       a_fdt=0x13000000
+fi
 
 setenv initrd_high 0xffffffff
 if itest.s "x" == "x${dtbname}" ; then
@@ -13,15 +24,9 @@ if itest.s "x" == "x${dtbname}" ; then
        elif itest.s x6QP == "x${cpu}" ; then
                dtbname=imx6qp-${board}.dtb;
        elif itest.s x6SX == "x${cpu}" ; then
-               if itest.s "x1" != "x$m4enabled" ; then
-                       dtbname=imx6sx-${board}.dtb;
-               else
-                       run m4boot;
-                       dtbname=imx6sx-${board}-m4.dtb;
-               fi
-               a_script=0x80800000
-               a_zImage=0x80800000
-               a_fdt=0x83000000
+               dtbname=imx6sx-${board}${m4}.dtb;
+       elif itest.s x7D == "x${cpu}" ; then
+               dtbname=imx7d-${board}${m4}.dtb;
        else
                dtbname=imx6q-${board}.dtb;
        fi
@@ -47,10 +52,6 @@ else
        exit;
 fi
 
-# first enable tfp410
-i2c dev 1
-i2c mw 38 8.1 bd
-
 cmd_xxx_present=
 fdt resize
 if itest.s "x" != "x${cmd_custom}" ; then
index 9715f163076f34a6b896f03fbd7a0de97a69a1ee..e012ff97ac3d8d915f5b4693d81b286a02900c4a 100644 (file)
@@ -7,7 +7,7 @@ offset=0x400
 a_uImage1=0x12000000
 a_uImage2=0x12400000
 
-if itest.s x6SX == "x$cpu" ; then
+if itest.s x6SX == "x${cpu}" || itest.s x7D == "x${cpu}"; then
        a_uImage1=0x82000000
        a_uImage2=0x82400000
 fi