mx31: Convert MX31_HCLK_FREQ and MX31_CLK32 to Kconfig.
authorMagnus Lilja <lilja.magnus@gmail.com>
Fri, 11 May 2018 12:06:55 +0000 (14:06 +0200)
committerStefano Babic <sbabic@denx.de>
Thu, 17 May 2018 10:02:28 +0000 (12:02 +0200)
Also remove the #ifdef's from clock.h since the Kconfig values defaults
the to old default values in clock.h.

Signed-off-by: Magnus Lilja <lilja.magnus@gmail.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
arch/arm/include/asm/arch-mx31/clock.h
arch/arm/mach-imx/mx3/Kconfig

index e340db42fad86fe730bd43b4615a613ec66236a5..aafc2d690efa96c73a09423b93865c785bf6228d 100644 (file)
@@ -9,17 +9,9 @@
 
 #include <common.h>
 
-#ifdef CONFIG_MX31_HCLK_FREQ
 #define MXC_HCLK       CONFIG_MX31_HCLK_FREQ
-#else
-#define MXC_HCLK       26000000
-#endif
 
-#ifdef CONFIG_MX31_CLK32
 #define MXC_CLK32      CONFIG_MX31_CLK32
-#else
-#define MXC_CLK32      32768
-#endif
 
 enum mxc_clock {
        MXC_ARM_CLK,
index bf6a1c6927529fc81baf01cff2fadd85bf384b84..6cc970fc4992b772713cf6efd46d0e6240509923 100644 (file)
@@ -15,6 +15,20 @@ config TARGET_MX31PDK
 
 endchoice
 
+config MX31_HCLK_FREQ
+       int "i.MX31 HCLK frequency"
+       default 26000000
+       help
+         Frequency in Hz of the high frequency input clock. Typically
+        26000000 Hz.
+
+config MX31_CLK32
+       int "i.MX31 CLK32 Frequency"
+       default 32768
+       help
+         Frequency in Hz of the low frequency input clock. Typically
+        32768 or 32000 Hz.
+
 source "board/freescale/mx31pdk/Kconfig"
 
 endif