diff options
author | Adam Ford | 2023-02-01 19:58:41 -0600 |
---|---|---|
committer | Stefano Babic | 2023-07-11 14:40:02 +0200 |
commit | cacf0f8a193c0e8bbd7db6a5c7d4c463f0600710 (patch) | |
tree | c59ab8d6c96954082fd773e790547432f5e21e0d /include/configs | |
parent | 5054560e0c6ee2c3594798cda852aad518070394 (diff) |
configs: imx: imx8mm_beacon: Add config option for QSPI booting
The imx8mm_beacon SOM has a QSPI part attached to the FSPI controller.
Update the header and spl files to support booting from NOR flash and
add imx8mm_beacon_fspi_defconfig to support this configuration.
Signed-off-by: Adam Ford <aford173@gmail.com>
Diffstat (limited to 'include/configs')
-rw-r--r-- | include/configs/imx8mm_beacon.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/configs/imx8mm_beacon.h b/include/configs/imx8mm_beacon.h index d85ae21e231..6d70957e5ed 100644 --- a/include/configs/imx8mm_beacon.h +++ b/include/configs/imx8mm_beacon.h @@ -9,8 +9,17 @@ #include <linux/sizes.h> #include <asm/arch/imx-regs.h> +#define UBOOT_ITB_OFFSET 0x57C00 +#define FSPI_CONF_BLOCK_SIZE 0x1000 +#define UBOOT_ITB_OFFSET_FSPI \ + (UBOOT_ITB_OFFSET + FSPI_CONF_BLOCK_SIZE) +#ifdef CONFIG_FSPI_CONF_HEADER +#define CFG_SYS_UBOOT_BASE \ + (QSPI0_AMBA_BASE + UBOOT_ITB_OFFSET_FSPI) +#else #define CFG_SYS_UBOOT_BASE \ (QSPI0_AMBA_BASE + CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR * 512) +#endif #ifdef CONFIG_SPL_BUILD /* malloc f used before GD_FLG_FULL_MALLOC_INIT set */ |