global: Migrate CONFIG_SYS_FSL* symbols to the CFG_SYS namespace
[platform/kernel/u-boot.git] / arch / arm / mach-imx / mx7ulp / clock.c
index a987ff2..37d8565 100644 (file)
@@ -7,6 +7,7 @@
 #include <clock_legacy.h>
 #include <command.h>
 #include <div64.h>
+#include <asm/global_data.h>
 #include <asm/io.h>
 #include <errno.h>
 #include <asm/arch/clock.h>
@@ -17,9 +18,9 @@ DECLARE_GLOBAL_DATA_PTR;
 int get_clocks(void)
 {
 #ifdef CONFIG_FSL_ESDHC_IMX
-#if CONFIG_SYS_FSL_ESDHC_ADDR == USDHC0_RBASE
+#if CFG_SYS_FSL_ESDHC_ADDR == USDHC0_RBASE
        gd->arch.sdhc_clk = mxc_get_clock(MXC_ESDHC_CLK);
-#elif CONFIG_SYS_FSL_ESDHC_ADDR == USDHC1_RBASE
+#elif CFG_SYS_FSL_ESDHC_ADDR == USDHC1_RBASE
        gd->arch.sdhc_clk = mxc_get_clock(MXC_ESDHC2_CLK);
 #endif
 #endif
@@ -333,7 +334,7 @@ void hab_caam_clock_enable(unsigned char enable)
 int do_mx7_showclocks(struct cmd_tbl *cmdtp, int flag, int argc,
                      char *const argv[])
 {
-       u32 addr = 0;
+
        u32 freq;
        freq = decode_pll(PLL_A7_SPLL);
        printf("PLL_A7_SPLL    %8d MHz\n", freq / 1000000);
@@ -342,7 +343,7 @@ int do_mx7_showclocks(struct cmd_tbl *cmdtp, int flag, int argc,
        printf("PLL_A7_APLL    %8d MHz\n", freq / 1000000);
 
        freq = decode_pll(PLL_USB);
-       printf("PLL_USB    %8d MHz\n", freq / 1000000);
+       printf("PLL_USB        %8d MHz\n", freq / 1000000);
 
        printf("\n");
 
@@ -356,8 +357,6 @@ int do_mx7_showclocks(struct cmd_tbl *cmdtp, int flag, int argc,
        printf("USDHC2     %8d kHz\n", mxc_get_clock(MXC_ESDHC2_CLK) / 1000);
        printf("I2C4       %8d kHz\n", mxc_get_clock(MXC_I2C_CLK) / 1000);
 
-       addr = (u32) clock_init;
-       printf("[%s] addr = 0x%08X\r\n", __func__, addr);
        scg_a7_info();
 
        return 0;