summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorDanny Nold <dannynold@freescale.com>2010-07-15 17:36:57 -0500
committerDanny Nold <dannynold@freescale.com>2010-07-27 22:11:17 -0500
commita2be21bc20f5d79e0809f5516181c0567483b35d (patch)
tree1d5ca95abc873f02daab95b9300e0f7b28092ad8 /arch
parenta382152e810d409eff4bd5afed9a0a05e7c39b16 (diff)
ENGR00125044-2 - MSL changes to set up EPDC AXI clock
EPDC AXI clock configuration had to be moved to ensure that it takes place after all parent clocks have been enabled. Signed-off-by: Danny Nold <dannynold@freescale.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-mx5/clock_mx50.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/arch/arm/mach-mx5/clock_mx50.c b/arch/arm/mach-mx5/clock_mx50.c
index d87ce481e550..a47f461bc2fc 100644
--- a/arch/arm/mach-mx5/clock_mx50.c
+++ b/arch/arm/mach-mx5/clock_mx50.c
@@ -3107,14 +3107,6 @@ int __init mx50_clocks_init(unsigned long ckil, unsigned long osc, unsigned long
clk_register(&apbh_dma_clk);
- clk_set_parent(&epdc_axi_clk, &pll1_sw_clk);
- /* Set EPDC AXI to 200MHz */
- /*
- clk_set_rate(&epdc_axi_clk, 200000000);
- */
- __raw_writel(0xC0000008, MXC_CCM_EPDC_AXI);
- clk_set_parent(&epdc_pix_clk, &pll1_sw_clk);
-
reg = __raw_readl(MXC_CCM_ELCDIFPIX);
reg &= ~MXC_CCM_ELCDIFPIX_CLKGATE_MASK;
reg = 0x3 << MXC_CCM_ELCDIFPIX_CLKGATE_OFFSET;
@@ -3151,6 +3143,13 @@ int __init mx50_clocks_init(unsigned long ckil, unsigned long osc, unsigned long
clk_set_parent(&display_axi_clk, &pll1_sw_clk);
clk_set_rate(&display_axi_clk, 200000000);
+ /* Enable and set EPDC AXI to 200MHz */
+ clk_set_parent(&epdc_axi_clk, &pfd3_clk);
+ clk_enable(&epdc_axi_clk);
+ clk_set_rate(&epdc_axi_clk, 200000000);
+
+ clk_set_parent(&epdc_pix_clk, &pfd5_clk);
+
/* Move SSI clocks to SSI_LP_APM clock */
clk_set_parent(&ssi_lp_apm_clk, &lp_apm_clk);