Hi Joanxie.
I'm building uboot-2022.01.
The code you showed is get_ddrc_clk(void).
What I found in this code
reg = readl(&ccm_reg->root[DRAM_CLK_ROOT].target_root;
DRAM_CLK_ROOT, which is not written in "Fugure 5-7.DRAM_Clock Structure", is loaded into reg.
The initial value of DRAM_CLK_ROOT was 0x00000001.
Clearing DRAM_CLK_ROOT made it display correctly.
However, DRAM_SDCKE0 is 270MHz. Is this correct? I checked it with an oscilloscope.
Best regards.