summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/clock-imx31.c
diff options
context:
space:
mode:
authorJason Liu <jason.hui@linaro.org>2011-08-26 13:35:21 +0800
committerSascha Hauer <s.hauer@pengutronix.de>2011-08-26 08:50:59 +0200
commitab116a86faf6aeafd0acf766c0c5d9475bf8493e (patch)
tree06d70594ebff86d1ea529308e08e7106ba46f0be /arch/arm/mach-imx/clock-imx31.c
parent3f5492c51367ed7bf39eaf9f86ba5b4f8a27a111 (diff)
downloadop-kernel-dev-ab116a86faf6aeafd0acf766c0c5d9475bf8493e.zip
op-kernel-dev-ab116a86faf6aeafd0acf766c0c5d9475bf8493e.tar.gz
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 d973770..85b8885 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 */
OpenPOWER on IntegriCloud