Kconfig: set i.MX8MQ SYS_MALLOC_F_LEN
Subsystems (3)
PATCH 1/3 Kconfig: set i.MX8MQ SYS_MALLOC_F_LEN
From: Peng Fan <[email protected]>
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
--- Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Kconfig +2 -1
@@ -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,
Signature · 1 line
2.36.0
PATCH 2/3 imx: imx8mq: default select CLK_IMX8MQ
From: Peng Fan <[email protected]>
Since the power domain driver default select CONFIG_CLK, so we will meet lots failures without CLK_IMX8MQ, so default select it.
--- arch/arm/mach-imx/imx8m/Kconfig | 1 + 1 file changed, 1 insertion(+)
arch/arm/mach-imx/imx8m/Kconfig +1 -0
@@ -8,6 +8,7 @@ config IMX8M config IMX8MQ bool select IMX8M + select CLK_IMX8MQ config IMX8MM bool
Signature · 1 line
2.36.0
Re: [PATCH 2/3] imx: imx8mq: default select CLK_IMX8MQ
Quoted 6 lines · Peng Fan (OSS)
From: Peng Fan <[email protected]>
Since the power domain driver default select
CONFIG_CLK, so we will meet lots failures withoutCLK_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/[email protected]/
Quoted 21 lines
Fixes commit 4eb82c2e56a7c ("imx: power-domain: Get rid of SMCCC dependency")Signed-off-by Peng Fan <[email protected]>--- arch/arm/mach-imx/imx8m/Kconfig | 1 + 1 file changed, 1 insertion(+)arch/arm/mach-imx/imx8m/Kconfig +1
-1@@ -8,6 +8,7 @@ config IMX8M config IMX8MQ bool select IMX8M + select CLK_IMX8MQ config IMX8MM bool --2.36.0
Re: [PATCH 2/3] imx: imx8mq: default select CLK_IMX8MQ
Quoted 10 lines · Adam Ford
Quoted 6 lines · Peng Fan (OSS)
From: Peng Fan <[email protected]>
Since the power domain driver default select
CONFIG_CLK, so we will meet lots failures withoutCLK_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.
Quoted 26 lines
adam
Quoted 21 lines
Fixes commit 4eb82c2e56a7c ("imx: power-domain: Get rid of SMCCC dependency")Signed-off-by Peng Fan <[email protected]>--- arch/arm/mach-imx/imx8m/Kconfig | 1 + 1 file changed, 1 insertion(+)arch/arm/mach-imx/imx8m/Kconfig +1
-1@@ -8,6 +8,7 @@ config IMX8M config IMX8MQ bool select IMX8M + select CLK_IMX8MQ config IMX8MM bool --2.36.0
PATCH 3/3 imx: imx8mq: select CONFIG_CMD_CLK
In reply to Peng Fan (OSS)From: Peng Fan <[email protected]>
select CONFIG_CMD_CLK to enable dump clk in uboot shell
--- configs/imx8mq_evk_defconfig | 1 + 1 file changed, 1 insertion(+)
configs/imx8mq_evk_defconfig +1 -0
@@ -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
Signature · 1 line
2.36.0
Hi Peng,
Am Fr., 29. Apr. 2022 um 09:20 Uhr schrieb Peng Fan (OSS) <[email protected]>:
Quoted 10 lines
From: Peng Fan <[email protected]>
set
SPL_SYS_MALLOC_F_LENto0x2000
setSYS_MALLOC_F_LENto0x10000This is to prepare enable
CLK_IMX8MQfor i.MX8MQFixes commit 4eb82c2e56a7c ("imx: power-domain: Get rid of SMCCC dependency")Signed-off-by Peng Fan <[email protected]>
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?
Quoted 26 lines
--- Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)Kconfig +2
-2@@ -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, --
Quoted 2 lines
2.36.0
Thanks
Signature · 1 line
Heiko