linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv4 1/3] ARM: mx51: Add entry for gpc_dvfs_clk
@ 2011-03-18 15:21 Dinh.Nguyen
  2011-03-18 15:21 ` [PATCHv4 2/3] ARM: mx51: Implement code to allow mx51 to enter WFI Dinh.Nguyen
  0 siblings, 1 reply; 8+ messages in thread
From: Dinh.Nguyen @ 2011-03-18 15:21 UTC (permalink / raw)
  To: linux-kernel
  Cc: linux-arm-kernel, linux, s.hauer, u.kleine-koenig, arnaud.patard,
	ra5478, xiao-lizhang, festevam, Dinh Nguyen

From: Dinh Nguyen <Dinh.Nguyen@freescale.com>

For MX51 SRPG, we need to turn on the GPC clock in order to set the
SRPG registers.

Signed-off-by: Dinh Nguyen <Dinh.Nguyen@freescale.com>
---
 arch/arm/mach-mx5/clock-mx51-mx53.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-mx5/clock-mx51-mx53.c b/arch/arm/mach-mx5/clock-mx51-mx53.c
index 652ace4..3eb1c6e 100644
--- a/arch/arm/mach-mx5/clock-mx51-mx53.c
+++ b/arch/arm/mach-mx5/clock-mx51-mx53.c
@@ -865,6 +865,13 @@ static struct clk aips_tz2_clk = {
 	.disable = _clk_ccgr_disable_inwait,
 };
 
+static struct clk gpc_dvfs_clk = {
+	.enable_reg = MXC_CCM_CCGR5,
+	.enable_shift = MXC_CCM_CCGRx_CG12_OFFSET,
+	.enable = _clk_ccgr_enable,
+	.disable = _clk_ccgr_disable,
+};
+
 static struct clk gpt_32k_clk = {
 	.id = 0,
 	.parent = &ckil_clk,
@@ -1448,6 +1455,7 @@ static struct clk_lookup mx51_lookups[] = {
 	_REGISTER_CLOCK("imx-ipuv3", NULL, ipu_clk)
 	_REGISTER_CLOCK("imx-ipuv3", "di0", ipu_di0_clk)
 	_REGISTER_CLOCK("imx-ipuv3", "di1", ipu_di1_clk)
+	_REGISTER_CLOCK(NULL, "gpc_dvfs", gpc_dvfs_clk)
 };
 
 static struct clk_lookup mx53_lookups[] = {
-- 
1.6.0.4



^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-03-21 15:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-18 15:21 [PATCHv4 1/3] ARM: mx51: Add entry for gpc_dvfs_clk Dinh.Nguyen
2011-03-18 15:21 ` [PATCHv4 2/3] ARM: mx51: Implement code to allow mx51 to enter WFI Dinh.Nguyen
2011-03-18 15:21   ` [PATCHv4 3/3] ARM: mx51: Add support for low power suspend on MX51 Dinh.Nguyen
2011-03-18 15:25     ` Russell King - ARM Linux
2011-03-21 14:53       ` Nguyen Dinh-R00091
2011-03-21 15:48         ` Russell King - ARM Linux
2011-03-18 15:30   ` [PATCHv4 2/3] ARM: mx51: Implement code to allow mx51 to enter WFI Fabio Estevam
2011-03-18 15:34     ` Nguyen Dinh-R00091

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).