summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/clock-imx31.c
diff options
context:
space:
mode:
authorJason Liu <jason.hui@linaro.org>2011-08-26 07:35:21 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2011-08-26 08:50:59 +0200
commitab116a86faf6aeafd0acf766c0c5d9475bf8493e (patch)
tree06d70594ebff86d1ea529308e08e7106ba46f0be /arch/arm/mach-imx/clock-imx31.c
parentARM: mx27: Print silicon revision on boot (diff)
downloadlinux-ab116a86faf6aeafd0acf766c0c5d9475bf8493e.tar.xz
linux-ab116a86faf6aeafd0acf766c0c5d9475bf8493e.zip
ARM: mx31: use generic function for displaying silicon revision
Update to use generic function for displaying silicon revision Tested on mx31pdk board as print the following information: CPU identified as i.MX31, silicon rev 2.0 Signed-off-by: Jason Liu <jason.hui@linaro.org> Cc: Fabio Estevam <fabio.estevam@freescale.com> Cc: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/clock-imx31.c')
-rw-r--r--arch/arm/mach-imx/clock-imx31.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-imx/clock-imx31.c b/arch/arm/mach-imx/clock-imx31.c
index d973770b1f96..85b8885cf345 100644
--- a/arch/arm/mach-imx/clock-imx31.c
+++ b/arch/arm/mach-imx/clock-imx31.c
@@ -611,11 +611,11 @@ int __init mx31_clocks_init(unsigned long fref)
clk_enable(&gpt_clk);
clk_enable(&emi_clk);
clk_enable(&iim_clk);
+ mx31_revision();
+ clk_disable(&iim_clk);
clk_enable(&serial_pll_clk);
- mx31_read_cpu_rev();
-
if (mx31_revision() >= IMX_CHIP_REVISION_2_0) {
reg = __raw_readl(MXC_CCM_PMCR1);
/* No PLL restart on DVFS switch; enable auto EMI handshake */