imx: imx8ulp: Call DM post init function for init_r phase
Subsystems (3)
PATCH 1/1 imx: imx8ulp: Call DM post init function for init_r phase
The ELE MU driver needs to be probed at init_r phase as well because some ELE APIs will be called.
--- arch/arm/mach-imx/imx8ulp/soc.c | 1 + 1 file changed, 1 insertion(+)
arch/arm/mach-imx/imx8ulp/soc.c +1 -0
@@ -804,6 +804,7 @@ int imx8ulp_dm_post_init(void)return 0 ; }EVENT_SPY_SIMPLE (EVT_DM_POST_INIT_F , imx8ulp_dm_post_init); +EVENT_SPY_SIMPLE (EVT_DM_POST_INIT_R , imx8ulp_dm_post_init);#if defined(CONFIG_XPL_BUILD )__weak void __noreturn jump_to_image (struct spl_image_info *spl_image)
Signature · 1 line
2.37.1
PATCH 1/1 imx8ulp_evk: Fix ELE FW version print bug
According to latest ELE Get FW version API, the FW version word is defined as below. The patch version only has 4 bits and minor version has 12 bits. However, the codes use 8 bits for patch version and minor version. Add the patch to fix the issue.
ELE firmware version
[31] - When set indicates a dirty build.
[30] - Reserved
[29:28] - Hotfix version.
[27] - When set, indicate that ELE FW is authenticated and operational. [26:25] - Reserved
[24] - When set, indicate that an alternative FW is running. [23:16] - Indicate the major version. This byte is checked against the version set in the fuses to determine if the FW execution can be authorized [15:4] - Indicate the minor version.
[3:0] - Indicate the patch version.
--- board/freescale/imx8ulp_evk/spl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
board/freescale/imx8ulp_evk/spl.c +2 -2
@@ -69,8 +69,8 @@ void display_ele_fw_version(void) }else {printf ("ELE firmware version %u.%u.%u-%x" , (fw_version & (0x00ff0000 )) >>16 , - (fw_version & (0x0000ff00 )) >>8 , - (fw_version & (0x000000ff )), sha1); + (fw_version & (0x0000fff0 )) >>4 , + (fw_version & (0x0000000f )), sha1); ((fw_version & (0x80000000 )) >>31 ) ==1 ?puts ("-dirty\n" ) :puts ("\n" ); } }
Signature · 1 line
2.37.1
Re: [PATCH] imx8ulp_evk: Fix ELE FW version print bug
Quoted 18 lines · Ye Li
According to latest ELE Get FW version API, the FW version word is defined as below. The patch version only has 4 bits and minor version has 12 bits. However, the codes use 8 bits for patch version and minor version. Add the patch to fix the issue.
ELE firmware version
[31] - When set indicates a dirty build.
[30] - Reserved
[29:28] - Hotfix version.
[27] - When set, indicate that ELE FW is authenticated and operational. [26:25] - Reserved
[24] - When set, indicate that an alternative FW is running. [23:16] - Indicate the major version. This byte is checked against the version set in the fuses to determine if the FW execution can be authorized [15:4] - Indicate the minor version.
[3:0] - Indicate the patch version.
Quoted 2 lines
Signed-off-by Ye Li <[email protected]>Reviewed-by Peng Fan <[email protected]>
Applied to -master, thanks,
PATCH 1/1 arm: imx9: Fix LPCG number in ccm_reg structure
In reply to Ye LiThe LPCG number on iMX93 and iMX91 is 127 not 122. The wrong value is used in ccm_reg structure and Coverity reports several issues as out-of-bounds write.
--- arch/arm/include/asm/arch-imx9/clock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/include/asm/arch-imx9/clock.h +1 -1
@@ -111,7 +111,7 @@ struct ccm_reg {u32 reserved_3[192 ];struct ccm_lpcg_oscpll clk_oscplls[19 ];/* 0x5000 */ u32 reserved_4[2768 ]; -struct ccm_lpcg_oscpll clk_lpcgs[122 ];/* 0x8000 */ +struct ccm_lpcg_oscpll clk_lpcgs[127 ];/* 0x8000 */ };struct ana_pll_reg_elem {
Signature · 1 line
2.37.1
Re: [PATCH] arm: imx9: Fix LPCG number in ccm_reg structure
Quoted 7 lines · Ye Li
The LPCG number on iMX93 and iMX91 is 127 not 122. The wrong value is used in
ccm_regstructure and Coverity reports several issues as out-of-bounds write.Signed-off-by Ye Li <[email protected]>Reviewed-by Peng Fan <[email protected]>
Applied to -master, thanks.
Quoted 4 lines · Ye Li
The ELE MU driver needs to be probed at
init_rphase as well because some ELE APIs will be called.Signed-off-by Ye Li <[email protected]>
Quoted 5 lines · Ye Li
The ELE MU driver needs to be probed at
init_rphase as well because some ELE APIs will be called.Signed-off-by Ye Li <[email protected]>
Applied to -master, thanks.