[PATCH 1/3] Kconfig: set i.MX8MQ SYS_MALLOC_F_LEN

From: Peng Fan peng.fan@nxp.com
set SPL_SYS_MALLOC_F_LEN to 0x2000 set SYS_MALLOC_F_LEN to 0x10000
This is to prepare enable CLK_IMX8MQ for i.MX8MQ
Fixes: commit 4eb82c2e56a7c ("imx: power-domain: Get rid of SMCCC dependency") Signed-off-by: Peng Fan peng.fan@nxp.com --- Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Kconfig b/Kconfig index bdae59e06f4..4559b627707 100644 --- a/Kconfig +++ b/Kconfig @@ -257,7 +257,7 @@ config SYS_MALLOC_F_LEN default 0x4000 if SANDBOX || RISCV || ARCH_APPLE || ROCKCHIP_RK3368 || \ ROCKCHIP_RK3399 default 0x8000 if RCAR_GEN3 - default 0x10000 if ARCH_IMX8 || (ARCH_IMX8M && !IMX8MQ) || \ + default 0x10000 if ARCH_IMX8 || ARCH_IMX8M || \ ARCH_LS1012A || ARCH_LS1021A || ARCH_LS1043A || \ ARCH_LS1046A default 0x2000 @@ -285,6 +285,7 @@ config SPL_SYS_MALLOC_F_LEN depends on SYS_MALLOC_F && SPL default 0 if !SPL_FRAMEWORK default 0x2800 if RCAR_GEN3 + default 0x2000 if IMX8MQ default SYS_MALLOC_F_LEN help In SPL memory is very limited on many platforms. Still,

From: Peng Fan peng.fan@nxp.com
Since the power domain driver default select CONFIG_CLK, so we will meet lots failures without CLK_IMX8MQ, so default select it.
Fixes: commit 4eb82c2e56a7c ("imx: power-domain: Get rid of SMCCC dependency") Signed-off-by: Peng Fan peng.fan@nxp.com --- arch/arm/mach-imx/imx8m/Kconfig | 1 + 1 file changed, 1 insertion(+)
diff --git a/arch/arm/mach-imx/imx8m/Kconfig b/arch/arm/mach-imx/imx8m/Kconfig index 24299ae037f..7f23d687be3 100644 --- a/arch/arm/mach-imx/imx8m/Kconfig +++ b/arch/arm/mach-imx/imx8m/Kconfig @@ -8,6 +8,7 @@ config IMX8M config IMX8MQ bool select IMX8M + select CLK_IMX8MQ
config IMX8MM bool

On Fri, Apr 29, 2022 at 2:20 AM Peng Fan (OSS) peng.fan@oss.nxp.com wrote:
From: Peng Fan peng.fan@nxp.com
Since the power domain driver default select CONFIG_CLK, so we will meet lots failures without CLK_IMX8MQ, so default select it.
There is a related patch [1] that I submitted for all imx8m SoC's t select their respective CLK_IMX8M[MNPQ]
adam
[1] - https://patchwork.ozlabs.org/project/uboot/patch/20220417221647.2390750-1-af...
Fixes: commit 4eb82c2e56a7c ("imx: power-domain: Get rid of SMCCC dependency") Signed-off-by: Peng Fan peng.fan@nxp.com
arch/arm/mach-imx/imx8m/Kconfig | 1 + 1 file changed, 1 insertion(+)
diff --git a/arch/arm/mach-imx/imx8m/Kconfig b/arch/arm/mach-imx/imx8m/Kconfig index 24299ae037f..7f23d687be3 100644 --- a/arch/arm/mach-imx/imx8m/Kconfig +++ b/arch/arm/mach-imx/imx8m/Kconfig @@ -8,6 +8,7 @@ config IMX8M config IMX8MQ bool select IMX8M
select CLK_IMX8MQ
config IMX8MM bool -- 2.36.0

On 2022/4/30 21:49, Adam Ford wrote:
On Fri, Apr 29, 2022 at 2:20 AM Peng Fan (OSS) peng.fan@oss.nxp.com wrote:
From: Peng Fan peng.fan@nxp.com
Since the power domain driver default select CONFIG_CLK, so we will meet lots failures without CLK_IMX8MQ, so default select it.
There is a related patch [1] that I submitted for all imx8m SoC's t select their respective CLK_IMX8M[MNPQ]
Actually default select CLK_IMX8MQ will not make i.MX8MQ bootable, patch 1 in this patchset still needed. If possible, you could take my patch 1 in your patchset and drop patch 2 in this patchset.
Thanks, Peng.
adam
[1] - https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpatchwork....
Fixes: commit 4eb82c2e56a7c ("imx: power-domain: Get rid of SMCCC dependency") Signed-off-by: Peng Fan peng.fan@nxp.com
arch/arm/mach-imx/imx8m/Kconfig | 1 + 1 file changed, 1 insertion(+)
diff --git a/arch/arm/mach-imx/imx8m/Kconfig b/arch/arm/mach-imx/imx8m/Kconfig index 24299ae037f..7f23d687be3 100644 --- a/arch/arm/mach-imx/imx8m/Kconfig +++ b/arch/arm/mach-imx/imx8m/Kconfig @@ -8,6 +8,7 @@ config IMX8M config IMX8MQ bool select IMX8M
select CLK_IMX8MQ
config IMX8MM bool
-- 2.36.0

From: Peng Fan peng.fan@nxp.com
select CONFIG_CMD_CLK to enable dump clk in uboot shell
Signed-off-by: Peng Fan peng.fan@nxp.com --- configs/imx8mq_evk_defconfig | 1 + 1 file changed, 1 insertion(+)
diff --git a/configs/imx8mq_evk_defconfig b/configs/imx8mq_evk_defconfig index 780f93103c7..9f54a280d9b 100644 --- a/configs/imx8mq_evk_defconfig +++ b/configs/imx8mq_evk_defconfig @@ -40,6 +40,7 @@ CONFIG_SYS_PROMPT="u-boot=> " # CONFIG_CMD_EXPORTENV is not set # CONFIG_CMD_IMPORTENV is not set # CONFIG_CMD_CRC32 is not set +CONFIG_CMD_CLK=y CONFIG_CMD_FUSE=y CONFIG_CMD_GPIO=y CONFIG_CMD_I2C=y

Hi Peng,
Am Fr., 29. Apr. 2022 um 09:20 Uhr schrieb Peng Fan (OSS) peng.fan@oss.nxp.com:
From: Peng Fan peng.fan@nxp.com
set SPL_SYS_MALLOC_F_LEN to 0x2000 set SYS_MALLOC_F_LEN to 0x10000
This is to prepare enable CLK_IMX8MQ for i.MX8MQ
Fixes: commit 4eb82c2e56a7c ("imx: power-domain: Get rid of SMCCC dependency") Signed-off-by: Peng Fan peng.fan@nxp.com
The kontron pitx-imx8m board (imx8mq SoC) does not start properly in since 4eb82c2e56a7c. This is still valid in the 2022.7-rcX. I see in patchwork that this commit is superseded. Are there others available that will fix your mentioned problem?
Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Kconfig b/Kconfig index bdae59e06f4..4559b627707 100644 --- a/Kconfig +++ b/Kconfig @@ -257,7 +257,7 @@ config SYS_MALLOC_F_LEN default 0x4000 if SANDBOX || RISCV || ARCH_APPLE || ROCKCHIP_RK3368 || \ ROCKCHIP_RK3399 default 0x8000 if RCAR_GEN3
default 0x10000 if ARCH_IMX8 || (ARCH_IMX8M && !IMX8MQ) || \
default 0x10000 if ARCH_IMX8 || ARCH_IMX8M || \ ARCH_LS1012A || ARCH_LS1021A || ARCH_LS1043A || \ ARCH_LS1046A default 0x2000
@@ -285,6 +285,7 @@ config SPL_SYS_MALLOC_F_LEN depends on SYS_MALLOC_F && SPL default 0 if !SPL_FRAMEWORK default 0x2800 if RCAR_GEN3
default 0x2000 if IMX8MQ default SYS_MALLOC_F_LEN help In SPL memory is very limited on many platforms. Still,
-- 2.36.0
Thanks
participants (3)
-
Adam Ford
-
Heiko Thiery
-
Peng Fan (OSS)