diff options
author | Jan Luebbe <jlu@pengutronix.de> | 2016-09-20 10:17:40 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-09-22 11:22:03 +0200 |
commit | c29a58e273c2410024746dc145e7a4a329888cde (patch) | |
tree | 11a62dd20d98dcf416ab05dc7edbface21e56eb5 /arch/arm/mach-imx/imx6.c | |
parent | b997cc26c22fa7a95f84f4ffed2c3a0ef596aea8 (diff) | |
download | barebox-c29a58e273c2410024746dc145e7a4a329888cde.tar.gz barebox-c29a58e273c2410024746dc145e7a4a329888cde.tar.xz |
ARM: i.MX6: remove duplicate clock initialization
These registers are already set by imx6_ccm_probe (in clk-imx6.c) during
core_initcall, while imx6_init_lowlevel is only called during
postcore_initcall via imx_init in imx.c.
Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/imx6.c')
-rw-r--r-- | arch/arm/mach-imx/imx6.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/arch/arm/mach-imx/imx6.c b/arch/arm/mach-imx/imx6.c index 1230215c2e..477fadae80 100644 --- a/arch/arm/mach-imx/imx6.c +++ b/arch/arm/mach-imx/imx6.c @@ -54,19 +54,10 @@ void imx6_init_lowlevel(void) writel(0, aips2 + 0x4c); writel(0, aips2 + 0x50); - /* enable all clocks */ - writel(0xffffffff, 0x020c4068); - writel(0xffffffff, 0x020c406c); - writel(0xffffffff, 0x020c4070); - writel(0xffffffff, 0x020c4074); - writel(0xffffffff, 0x020c4078); - writel(0xffffffff, 0x020c407c); - writel(0xffffffff, 0x020c4080); - - /* - * Due to a hardware bug (related to errata ERR006282) on i.MX6DQ we - * need to gate/ungate all PFDs to make sure PFD is working right, - * otherwise PFDs may not output clock after reset. + /* Due to hardware limitation, on MX6Q we need to gate/ungate all PFDs + * to make sure PFD is working right, otherwise, PFDs may + * not output clock after reset, MX6DL and MX6SL have added 396M pfd + * workaround in ROM code, as bus clock need it */ if (is_imx6q || is_imx6d) { writel(BM_ANADIG_PFD_480_PFD3_CLKGATE | |