]> Git Repo - J-u-boot.git/blobdiff - include/configs/pico-imx6ul.h
wandboard: README: Include the mx6qp variant in the list
[J-u-boot.git] / include / configs / pico-imx6ul.h
index e8e4c876140ec2f764d801db6a31c667051e88d8..ead242d2ff65e716243219ced5eed9b1e17d595b 100644 (file)
@@ -12,6 +12,7 @@
 #include <linux/sizes.h>
 #include "mx6_common.h"
 #include <asm/mach-imx/gpio.h>
+#include "imx6_spl.h"
 
 /* Network support */
 
@@ -27,7 +28,6 @@
 #define CONFIG_MXC_UART_BASE           UART6_BASE_ADDR
 
 /* MMC Configs */
-#define CONFIG_FSL_USDHC
 #define CONFIG_SYS_FSL_ESDHC_ADDR      USDHC1_BASE_ADDR
 #define CONFIG_SUPPORT_EMMC_BOOT
 
 #define DFU_DEFAULT_POLL_TIMEOUT 300
 
 #define CONFIG_DFU_ENV_SETTINGS \
-       "dfu_alt_info=uboot raw 0x2 0x400 mmcpart 1;" \
-               "boot part 0 1;" \
-               "/zImage ext4 0 1;" \
-               "/imx6ul-pico-hobbit.dtb ext4 0 1;" \
-               "rootfs part 0 2\0" \
+       "dfu_alt_info=" \
+               "spl raw 0x2 0x400 mmcpart 1;" \
+               "u-boot raw 0x8a 0x400 mmcpart 1;" \
+               "/boot/zImage ext4 0 1;" \
+               "/boot/imx6ul-pico-hobbit.dtb ext4 0 1;" \
+               "rootfs part 0 1\0" \
+
+#define BOOTMENU_ENV \
+       "bootmenu_0=Boot using PICO-Hobbit baseboard=" \
+               "setenv fdtfile imx6ul-pico-hobbit.dtb\0" \
 
 #define CONFIG_SYS_MMC_IMG_LOAD_PART   1
 
@@ -58,6 +63,7 @@
        "fdt_high=0xffffffff\0" \
        "initrd_high=0xffffffff\0" \
        "fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \
+       BOOTMENU_ENV \
        "fdt_addr=0x83000000\0" \
        "fdt_addr_r=0x83000000\0" \
        "kernel_addr_r=" __stringify(CONFIG_LOADADDR) "\0" \
        "scriptaddr=" __stringify(CONFIG_LOADADDR) "\0" \
        "mmcautodetect=yes\0" \
        CONFIG_DFU_ENV_SETTINGS \
+       "findfdt=" \
+               "if test $fdtfile = ask ; then " \
+                       "bootmenu -1; fi;" \
+               "if test $fdtfile != ask ; then " \
+                       "saveenv; fi;\0" \
        "finduuid=part uuid mmc 0:1 uuid\0" \
        "partitions=" \
                "uuid_disk=${uuid_gpt_disk};" \
This page took 0.028263 seconds and 4 git commands to generate.