Merge git://git.denx.de/u-boot-imx
[oweals/u-boot.git] / include / configs / stm32mp1.h
index 6281dd5387d687e5b3b792bdd9575a8183863691..da0e259736a6bec9538699c255adb9cd10a3e22b 100644 (file)
@@ -18,7 +18,6 @@
  */
 #define CONFIG_SYS_HZ                          1000
 #define CONFIG_SYS_ARCH_TIMER
-#define CONFIG_SYS_HZ_CLOCK                    64000000
 
 /*
  * malloc() pool size
 
 #include <config_distro_bootcmd.h>
 
+#define STM32MP_PREBOOT        \
+       "echo \"Boot over ${boot_device}${boot_instance}!\"; " \
+       "if test \"${boot_device}\" = \"mmc\"; then " \
+               "env set boot_targets \"mmc${boot_instance}\"; "\
+       "fi;"
+
 #define CONFIG_EXTRA_ENV_SETTINGS \
        "scriptaddr=0xC0000000\0" \
        "pxefile_addr_r=0xC0000000\0" \
@@ -90,6 +95,7 @@
        "ramdisk_addr_r=0xC4100000\0" \
        "fdt_high=0xffffffff\0" \
        "initrd_high=0xffffffff\0" \
+       "preboot=" STM32MP_PREBOOT "\0" \
        BOOTENV
 
 #endif /* ifndef CONFIG_SPL_BUILD */