diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-09-09 21:47:55 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-10-10 09:47:51 +0200 |
commit | a4c86922406104f615c179bdaecf47d1ab56c995 (patch) | |
tree | ba1932d0c16505260f40486b9dd637f6e79d620f /arch/arm/mach-imx | |
parent | 0ea2ee7866f121163a28fd24ca0967d97b744b10 (diff) | |
download | barebox-a4c86922406104f615c179bdaecf47d1ab56c995.tar.gz barebox-a4c86922406104f615c179bdaecf47d1ab56c995.tar.xz |
ARM i.MX: Enable clocks in common place
On i.MX we enable all necessary clocks during startup of the clock
controller driver, so we do not need the register hacking in the drivers
anymore.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx')
-rw-r--r-- | arch/arm/mach-imx/clocksource.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/arch/arm/mach-imx/clocksource.c b/arch/arm/mach-imx/clocksource.c index 69a688c09d..31e1fdfa23 100644 --- a/arch/arm/mach-imx/clocksource.c +++ b/arch/arm/mach-imx/clocksource.c @@ -108,18 +108,6 @@ static int imx_gpt_probe(struct device_d *dev) /* setup GP Timer 1 */ writel(TCTL_SWR, timer_base + GPT_TCTL); -#ifdef CONFIG_ARCH_IMX21 - PCCR1 |= PCCR1_GPT1_EN; -#endif -#ifdef CONFIG_ARCH_IMX27 - PCCR0 |= PCCR0_GPT1_EN; - PCCR1 |= PCCR1_PERCLK1_EN; -#endif -#ifdef CONFIG_ARCH_IMX25 - writel(readl(IMX_CCM_BASE + CCM_CGCR1) | (1 << 19), - IMX_CCM_BASE + CCM_CGCR1); -#endif - for (i = 0; i < 100; i++) writel(0, timer_base + GPT_TCTL); /* We have no udelay by now */ |