Patchwork [2/3] imx51: add pata clock

login
register
mail settings
Submitter Arnaud Patard (Rtp)
Date July 22, 2011, 10:37 a.m.
Message ID <20110722103834.129709839@rtp-net.org>
Download mbox | patch
Permalink /patch/106251/
State New
Headers show

Comments

Arnaud Patard (Rtp) - July 22, 2011, 10:37 a.m.
Define the clock used by the imx51 pata device.

Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>

Patch

Index: linux-2.6-submit/arch/arm/mach-mx5/clock-mx51-mx53.c
===================================================================
--- linux-2.6-submit.orig/arch/arm/mach-mx5/clock-mx51-mx53.c	2011-07-20 23:03:44.000000000 +0200
+++ linux-2.6-submit/arch/arm/mach-mx5/clock-mx51-mx53.c	2011-07-22 10:19:49.000000000 +0200
@@ -1414,6 +1414,10 @@  DEFINE_CLOCK(ipu_di0_clk, 0, MXC_CCM_CCG
 DEFINE_CLOCK(ipu_di1_clk, 0, MXC_CCM_CCGR6, MXC_CCM_CCGRx_CG6_OFFSET,
 		NULL, NULL, &pll3_sw_clk, NULL);
 
+/* PATA */
+DEFINE_CLOCK(pata_clk, 0, MXC_CCM_CCGR4, MXC_CCM_CCGRx_CG0_OFFSET,
+		NULL, NULL, &ipg_clk, &spba_clk);
+
 #define _REGISTER_CLOCK(d, n, c) \
        { \
 		.dev_id = d, \
@@ -1466,6 +1470,7 @@  static struct clk_lookup mx51_lookups[]
 	_REGISTER_CLOCK("imx-ipuv3", "di0", ipu_di0_clk)
 	_REGISTER_CLOCK("imx-ipuv3", "di1", ipu_di1_clk)
 	_REGISTER_CLOCK(NULL, "gpc_dvfs", gpc_dvfs_clk)
+	_REGISTER_CLOCK("imx-pata", NULL, pata_clk)
 };
 
 static struct clk_lookup mx53_lookups[] = {