diff options
Diffstat (limited to 'firmware/target')
-rw-r--r-- | firmware/target/arm/imx31/ccm-imx31.c | 4 | ||||
-rw-r--r-- | firmware/target/arm/imx31/ccm-imx31.h | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/firmware/target/arm/imx31/ccm-imx31.c b/firmware/target/arm/imx31/ccm-imx31.c index 272f00aca9..0d166e5dbf 100644 --- a/firmware/target/arm/imx31/ccm-imx31.c +++ b/firmware/target/arm/imx31/ccm-imx31.c | |||
@@ -49,9 +49,9 @@ void ccm_module_clock_gating(enum IMX31_CG_LIST cg, enum IMX31_CG_MODES mode) | |||
49 | unsigned int ccm_get_pll_ref_clk(void) | 49 | unsigned int ccm_get_pll_ref_clk(void) |
50 | { | 50 | { |
51 | if ((CCM_CCMR & (3 << 1)) == (1 << 1)) | 51 | if ((CCM_CCMR & (3 << 1)) == (1 << 1)) |
52 | return CONFIG_CLK32_FREQ * 1024; | 52 | return CONFIG_CKIL_FREQ * 1024; |
53 | else | 53 | else |
54 | return CONFIG_HCLK_FREQ; | 54 | return CONFIG_CKIH_FREQ; |
55 | } | 55 | } |
56 | 56 | ||
57 | /* Return PLL frequency in HZ */ | 57 | /* Return PLL frequency in HZ */ |
diff --git a/firmware/target/arm/imx31/ccm-imx31.h b/firmware/target/arm/imx31/ccm-imx31.h index e1057a9618..e95891255d 100644 --- a/firmware/target/arm/imx31/ccm-imx31.h +++ b/firmware/target/arm/imx31/ccm-imx31.h | |||
@@ -93,9 +93,6 @@ enum IMX31_PLLS | |||
93 | NUM_PLLS, | 93 | NUM_PLLS, |
94 | }; | 94 | }; |
95 | 95 | ||
96 | #define CONFIG_CLK32_FREQ 32768 | ||
97 | #define CONFIG_HCLK_FREQ 27000000 | ||
98 | |||
99 | /* Get the PLL reference clock frequency in HZ */ | 96 | /* Get the PLL reference clock frequency in HZ */ |
100 | unsigned int ccm_get_pll_ref_clk(void); | 97 | unsigned int ccm_get_pll_ref_clk(void); |
101 | 98 | ||