Revision | 3c7ad8c40e783836b9ec667431ade27740515e74 (tree) |
---|---|
Time | 2022-07-25 22:35:35 |
Author | Mamta Shukla <mamta.shukla@leic...> |
Commiter | Stefano Babic |
configs: Add config for enabling FSPI boot option for i.MX8m
Add imx8mm_evk_fspi_defconfig to build QSPI boot image.
This config is based on imx8mm_evk_defconfig with addtional config options to
define FSPI Header parameters required to generate QSPI Header.
Update SPL offset to include header size and overwrite IMX_CONFIG to use
lpddr.cfg for FSPI.
Signed-off-by: Mamta Shukla <mamta.shukla@leica-geosystems.com>
Signed-off-by: Thomas Haemmerle <thomas.haemmerle@leica-geosystems.com>
Tested-by: Adam Ford <aford173@gmail.com>
Reviewed-by: Fabio Estevam <festevam@denx.de>
Reviewed-by: Andrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
@@ -0,0 +1,7 @@ | ||
1 | +/* SPDX-License-Identifier: GPL-2.0+ */ | |
2 | +/* | |
3 | + * Copyright 2021 NXP | |
4 | + */ | |
5 | + | |
6 | +BOOT_FROM fspi | |
7 | +LOADER u-boot-spl-ddr.bin 0x7E2000 |
@@ -0,0 +1,123 @@ | ||
1 | +CONFIG_ARM=y | |
2 | +CONFIG_ARCH_IMX8M=y | |
3 | +CONFIG_SYS_TEXT_BASE=0x40200000 | |
4 | +CONFIG_SYS_MALLOC_LEN=0x2000000 | |
5 | +CONFIG_SPL_GPIO=y | |
6 | +CONFIG_SPL_LIBCOMMON_SUPPORT=y | |
7 | +CONFIG_SPL_LIBGENERIC_SUPPORT=y | |
8 | +CONFIG_ENV_SIZE=0x1000 | |
9 | +CONFIG_ENV_OFFSET=0x400000 | |
10 | +CONFIG_DM_GPIO=y | |
11 | +CONFIG_DEFAULT_DEVICE_TREE="imx8mm-evk" | |
12 | +CONFIG_SPL_TEXT_BASE=0x7E2000 | |
13 | +CONFIG_TARGET_IMX8MM_EVK=y | |
14 | +CONFIG_IMX_CONFIG="board/freescale/imx8mm_evk/imximage-8mm-lpddr4-fspi.cfg" | |
15 | +CONFIG_SPL_MMC=y | |
16 | +CONFIG_SPL_NOR_SUPPORT=y | |
17 | +CONFIG_SPL_SERIAL=y | |
18 | +CONFIG_SPL_DRIVERS_MISC=y | |
19 | +CONFIG_SPL=y | |
20 | +CONFIG_SYS_LOAD_ADDR=0x40480000 | |
21 | +CONFIG_DISTRO_DEFAULTS=y | |
22 | +CONFIG_FIT=y | |
23 | +CONFIG_FIT_EXTERNAL_OFFSET=0x3000 | |
24 | +CONFIG_SPL_LOAD_FIT=y | |
25 | +# CONFIG_USE_SPL_FIT_GENERATOR is not set | |
26 | +CONFIG_OF_SYSTEM_SETUP=y | |
27 | +CONFIG_BOARD_LATE_INIT=y | |
28 | +CONFIG_SPL_MAX_SIZE=0x25000 | |
29 | +CONFIG_SPL_HAS_BSS_LINKER_SECTION=y | |
30 | +CONFIG_SPL_BSS_START_ADDR=0x910000 | |
31 | +CONFIG_SPL_BSS_MAX_SIZE=0x2000 | |
32 | +CONFIG_SPL_BOARD_INIT=y | |
33 | +# CONFIG_SPL_SHARES_INIT_SP_ADDR is not set | |
34 | +CONFIG_SPL_STACK=0x920000 | |
35 | +CONFIG_SYS_SPL_MALLOC=y | |
36 | +CONFIG_HAS_CUSTOM_SPL_MALLOC_START=y | |
37 | +CONFIG_CUSTOM_SYS_SPL_MALLOC_ADDR=0x42200000 | |
38 | +CONFIG_SYS_SPL_MALLOC_SIZE=0x80000 | |
39 | +CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR=y | |
40 | +CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x300 | |
41 | +CONFIG_SPL_I2C=y | |
42 | +CONFIG_SPL_POWER=y | |
43 | +CONFIG_SPL_WATCHDOG=y | |
44 | +CONFIG_SYS_PROMPT="u-boot=> " | |
45 | +CONFIG_SYS_MAXARGS=64 | |
46 | +CONFIG_SYS_CBSIZE=2048 | |
47 | +CONFIG_SYS_PBSIZE=2074 | |
48 | +# CONFIG_CMD_EXPORTENV is not set | |
49 | +# CONFIG_CMD_IMPORTENV is not set | |
50 | +# CONFIG_CMD_CRC32 is not set | |
51 | +CONFIG_CMD_CLK=y | |
52 | +CONFIG_CMD_FUSE=y | |
53 | +CONFIG_CMD_GPIO=y | |
54 | +CONFIG_CMD_I2C=y | |
55 | +CONFIG_CMD_MMC=y | |
56 | +CONFIG_CMD_CACHE=y | |
57 | +CONFIG_CMD_REGULATOR=y | |
58 | +CONFIG_CMD_EXT4_WRITE=y | |
59 | +CONFIG_OF_CONTROL=y | |
60 | +CONFIG_SPL_OF_CONTROL=y | |
61 | +CONFIG_ENV_OVERWRITE=y | |
62 | +CONFIG_ENV_IS_IN_MMC=y | |
63 | +CONFIG_SYS_RELOC_GD_ENV_ADDR=y | |
64 | +CONFIG_SYS_MMC_ENV_DEV=1 | |
65 | +CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y | |
66 | +CONFIG_USE_ETHPRIME=y | |
67 | +CONFIG_ETHPRIME="FEC" | |
68 | +CONFIG_SPL_DM=y | |
69 | +CONFIG_SPL_CLK_COMPOSITE_CCF=y | |
70 | +CONFIG_CLK_COMPOSITE_CCF=y | |
71 | +CONFIG_SPL_CLK_IMX8MM=y | |
72 | +CONFIG_CLK_IMX8MM=y | |
73 | +CONFIG_MXC_GPIO=y | |
74 | +CONFIG_DM_I2C=y | |
75 | +CONFIG_SUPPORT_EMMC_BOOT=y | |
76 | +CONFIG_MMC_IO_VOLTAGE=y | |
77 | +CONFIG_MMC_UHS_SUPPORT=y | |
78 | +CONFIG_MMC_HS400_ES_SUPPORT=y | |
79 | +CONFIG_MMC_HS400_SUPPORT=y | |
80 | +CONFIG_FSL_USDHC=y | |
81 | +CONFIG_PHYLIB=y | |
82 | +CONFIG_PHY_ATHEROS=y | |
83 | +CONFIG_DM_ETH=y | |
84 | +CONFIG_PHY_GIGE=y | |
85 | +CONFIG_FEC_MXC=y | |
86 | +CONFIG_MII=y | |
87 | +CONFIG_PINCTRL=y | |
88 | +CONFIG_SPL_PINCTRL=y | |
89 | +CONFIG_PINCTRL_IMX8M=y | |
90 | +CONFIG_DM_PMIC=y | |
91 | +CONFIG_SPL_DM_PMIC_PCA9450=y | |
92 | +CONFIG_DM_REGULATOR=y | |
93 | +CONFIG_DM_REGULATOR_FIXED=y | |
94 | +CONFIG_DM_REGULATOR_GPIO=y | |
95 | +CONFIG_DM_PWM=y | |
96 | +CONFIG_PWM_IMX=y | |
97 | +CONFIG_DM_SERIAL=y | |
98 | +CONFIG_MXC_UART=y | |
99 | +CONFIG_SYSRESET=y | |
100 | +CONFIG_SPL_SYSRESET=y | |
101 | +CONFIG_SYSRESET_PSCI=y | |
102 | +CONFIG_SYSRESET_WATCHDOG=y | |
103 | +CONFIG_DM_THERMAL=y | |
104 | +CONFIG_IMX_WATCHDOG=y | |
105 | +CONFIG_NXP_FSPI=y | |
106 | +CONFIG_SPI=y | |
107 | +CONFIG_SPI_FLASH=y | |
108 | +CONFIG_SPI_FLASH_BAR=y | |
109 | +CONFIG_DM_SPI=y | |
110 | +CONFIG_DM_SPI_FLASH=y | |
111 | +CONFIG_SPI_FLASH_STMICRO=y | |
112 | +CONFIG_SF_DEFAULT_BUS=0 | |
113 | +CONFIG_SF_DEFAULT_CS=0 | |
114 | +CONFIG_SF_DEFAULT_SPEED=40000000 | |
115 | +CONFIG_SF_DEFAULT_MODE=0 | |
116 | +CONFIG_FSPI_CONF_HEADER=y | |
117 | +CONFIG_FSPI_CONF_FILE="fspi_header.bin" | |
118 | +CONFIG_READ_CLK_SOURCE=0x00 | |
119 | +CONFIG_DEVICE_TYPE=0x01 | |
120 | +CONFIG_FLASH_PAD_TYPE=0x01 | |
121 | +CONFIG_SERIAL_CLK_FREQUENCY=0x02 | |
122 | +CONFIG_LUT_CUSTOM_SEQUENCE=0x00 | |
123 | +CONFIG_LUT_SEQUENCE="0x0b, 0x04, 0x18, 0x08, 0x08, 0x30, 0x04, 0x24" |