imx: ventana: config: add fixfdt script to apply manual fdt fixups
authorTim Harvey <tharvey@gateworks.com>
Tue, 24 May 2016 18:03:43 +0000 (11:03 -0700)
committerStefano Babic <sbabic@denx.de>
Tue, 31 May 2016 15:22:20 +0000 (17:22 +0200)
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
include/configs/gw_ventana.h

index 3aeb0df15e03e756c3c8cf2b71089312c9f44777..e57b120555b47e3c669ae1dc7f9f2b3ab2099a12 100644 (file)
        "fdt_high=0xffffffff\0" \
        "fdt_addr=0x18000000\0" \
        "initrd_high=0xffffffff\0" \
+       "fixfdt=" \
+               "fdt addr ${fdt_addr}\0" \
        "bootdir=boot\0" \
        "loadfdt=" \
-               "if ${fsload} ${fdt_addr} ${bootdir}/${fdt_file}; then " \
-                       "echo Loaded DTB from ${bootdir}/${fdt_file}; " \
-               "elif ${fsload} ${fdt_addr} ${bootdir}/${fdt_file1}; then " \
-                       "echo Loaded DTB from ${bootdir}/${fdt_file1}; " \
-               "elif ${fsload} ${fdt_addr} ${bootdir}/${fdt_file2}; then " \
-                       "echo Loaded DTB from ${bootdir}/${fdt_file2}; " \
+               "if ${fsload} ${fdt_addr} boot/${fdt_file}; then " \
+                       "echo Loaded DTB from boot/${fdt_file}; " \
+                       "run fixfdt; " \
+               "elif ${fsload} ${fdt_addr} boot/${fdt_file1}; then " \
+                       "echo Loaded DTB from boot/${fdt_file1}; " \
+                       "run fixfdt; " \
+               "elif ${fsload} ${fdt_addr} boot/${fdt_file2}; then " \
+                       "echo Loaded DTB from boot/${fdt_file2}; " \
+                       "run fixfdt; " \
                "fi\0" \
        \
        "script=6x_bootscript-ventana\0" \
                        "setenv bootargs console=${console},${baudrate} " \
                                "root=/dev/mmcblk0p1 rootfstype=ext4 " \
                                "rootwait rw ${video} ${extra}; " \
-                       "if run loadfdt && fdt addr ${fdt_addr}; then " \
+                       "if run loadfdt; then " \
                                "bootm ${loadaddr} - ${fdt_addr}; " \
                        "else " \
                                "bootm; " \
                        "setenv bootargs console=${console},${baudrate} " \
                                "root=/dev/sda1 rootfstype=ext4 " \
                                "rootwait rw ${video} ${extra}; " \
-                       "if run loadfdt && fdt addr ${fdt_addr}; then " \
+                       "if run loadfdt; then " \
                                "bootm ${loadaddr} - ${fdt_addr}; " \
                        "else " \
                                "bootm; " \
                        "setenv bootargs console=${console},${baudrate} " \
                                "root=/dev/sda1 rootfstype=ext4 " \
                                "rootwait rw ${video} ${extra}; " \
-                       "if run loadfdt && fdt addr ${fdt_addr}; then " \
+                       "if run loadfdt; then " \
                                "bootm ${loadaddr} - ${fdt_addr}; " \
                        "else " \
                                "bootm; " \
                "if ${fsload} ${loadaddr} ${bootdir}/${uimage}; then " \
                        "setenv bootargs console=${console},${baudrate} " \
                                "root=${root} ${video} ${extra}; " \
-                       "if run loadfdt && fdt addr ${fdt_addr}; then " \
+                       "if run loadfdt; then " \
                                "ubifsumount; " \
                                "bootm ${loadaddr} - ${fdt_addr}; " \
                        "else " \