]> git.dujemihanovic.xyz Git - u-boot.git/commit
imx9: clock: Update clock init function and sequence
authorYe Li <ye.li@nxp.com>
Thu, 19 Sep 2024 04:01:27 +0000 (12:01 +0800)
committerFabio Estevam <festevam@gmail.com>
Thu, 19 Sep 2024 03:12:41 +0000 (00:12 -0300)
commit7872a986e5834bcc387788968e7f9f520f2cb140
tree788f405a58bc9f74cc7b38e258592b56ab3af95c
parent46f72ebad960c5b7d66ec3d901fc6c957dd2a395
imx9: clock: Update clock init function and sequence

Since we use SPEED GRADE fuse to set A55 frequency, remove the
set_arm_core_low_drive_clk function which has hard coded frequency.
And adjust clock_init called sequence and split it to early and late
functions.
Set the authen register in early function, because CCF driver checks
NS bit.
Set bus and core clock in late function, because the fuse read and
SoC type/rev depend on ELE.

Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/include/asm/arch-imx9/clock.h
arch/arm/mach-imx/imx9/clock.c
arch/arm/mach-imx/imx9/soc.c
board/freescale/imx93_evk/spl.c
board/phytec/phycore_imx93/spl.c