imx8m: Dump DRAM PLL rate by clocks command
authorYe Li <ye.li@nxp.com>
Tue, 24 Mar 2020 02:57:55 +0000 (19:57 -0700)
committerStefano Babic <sbabic@denx.de>
Fri, 1 May 2020 11:46:21 +0000 (13:46 +0200)
Add the dump of DRAM PLL into "clocks" command

Reviewed-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
arch/arm/mach-imx/imx8m/clock_imx8mq.c

index fb85a8d..ee18cde 100644 (file)
@@ -762,6 +762,8 @@ static int do_imx8m_showclocks(cmd_tbl_t *cmdtp, int flag, int argc,
 
        freq = decode_frac_pll(ARM_PLL_CLK);
        printf("ARM_PLL    %8d MHz\n", freq / 1000000);
+       freq = decode_sscg_pll(DRAM_PLL1_CLK);
+       printf("DRAM_PLL    %8d MHz\n", freq / 1000000);
        freq = decode_sscg_pll(SYSTEM_PLL1_800M_CLK);
        printf("SYS_PLL1_800    %8d MHz\n", freq / 1000000);
        freq = decode_sscg_pll(SYSTEM_PLL1_400M_CLK);