Skip to content
Snippets Groups Projects
Commit 71720d67 authored by Magnus Lilja's avatar Magnus Lilja Committed by Stefano Babic
Browse files

mx31: Convert MX31_HCLK_FREQ and MX31_CLK32 to Kconfig.


Also remove the #ifdef's from clock.h since the Kconfig values defaults
the to old default values in clock.h.

Signed-off-by: default avatarMagnus Lilja <lilja.magnus@gmail.com>
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
parent 3159ec64
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment