From a4c86922406104f615c179bdaecf47d1ab56c995 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Sun, 9 Sep 2012 21:47:55 +0200 Subject: 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 --- arch/arm/mach-imx/clocksource.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'arch/arm/mach-imx/clocksource.c') 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 */ -- cgit v1.2.3