public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Set correct off mode polarity
@ 2008-07-21 16:02 Peter 'p2' De Schrijver
  2008-07-21 16:02 ` [PATCH] Enable SYSOFFMODE use Peter 'p2' De Schrijver
  2008-07-21 17:22 ` [PATCH] Set correct off mode polarity Felipe Balbi
  0 siblings, 2 replies; 14+ messages in thread
From: Peter 'p2' De Schrijver @ 2008-07-21 16:02 UTC (permalink / raw)
  To: linux-omap; +Cc: Peter 'p2' De Schrijver


Signed-off-by: Peter 'p2' De Schrijver <peter.de-schrijver@nokia.com>
---
 arch/arm/mach-omap2/clock34xx.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-omap2/clock34xx.c b/arch/arm/mach-omap2/clock34xx.c
index 6bb25cf..b0bc1b9 100644
--- a/arch/arm/mach-omap2/clock34xx.c
+++ b/arch/arm/mach-omap2/clock34xx.c
@@ -46,6 +46,8 @@
 
 #define MAX_DPLL_WAIT_TRIES		1000000
 
+#define OFFMODE_POL 			(1<<3)
+
 struct vdd_prcm_config *curr_vdd1_prcm_set;
 struct vdd_prcm_config *curr_vdd2_prcm_set;
 static struct clk *dpll1_clk, *dpll2_clk, *dpll3_clk;
@@ -684,6 +686,9 @@ int __init omap2_clk_init(void)
 	}
 #endif
 
+	prm_clear_mod_reg_bits(OFFMODE_POL, OMAP3430_GR_MOD,
+				OMAP3_PRM_POLCTRL_OFFSET);
+
 	printk(KERN_INFO "Clocking rate (Crystal/DPLL/ARM core): "
 	       "%ld.%01ld/%ld/%ld MHz\n",
 	       (osc_sys_ck.rate / 1000000), (osc_sys_ck.rate / 100000) % 10,
@@ -797,7 +802,6 @@ static int omap3_select_table_rate(struct clk *clk, unsigned long rate)
 		return -EINVAL;
 	}
 
-
 	if (clk == &virt_vdd1_prcm_set) {
 		curr_mpu_speed = curr_vdd1_prcm_set->speed;
 		clk_set_rate(dpll1_clk, prcm_vdd->speed);
-- 
1.5.3.4


^ permalink raw reply related	[flat|nested] 14+ messages in thread
* RFC: OMAP3 SYS_OFF_MODE support
@ 2008-07-21 16:17 Peter 'p2' De Schrijver
  2008-07-21 16:17 ` [PATCH] Set correct off mode polarity Peter 'p2' De Schrijver
  0 siblings, 1 reply; 14+ messages in thread
From: Peter 'p2' De Schrijver @ 2008-07-21 16:17 UTC (permalink / raw)
  To: linux-omap


The following patch set introduces support for the OMAP3 SYS_OFF_MODE
signal. This will cause a properly programmed triton2 to shutdown the
VDD1 and VDD2 regulators when both core and MPU powerdomain are in off
state. The patches includes programming triton2 with the appropriate
scripts for the SDP3430 board.
By default the OMAP3 polarity of the SYS_OFF_MODE signal is inverted
compared to what triton2 expects. This means the polarity needs to be
changed before the triton2 scripts are activated, otherwise the system
will crash. At the moment this is done in omap2_clk_init as this
function is called before triton2 is initialized. Better suggestions are
welcome.
Thanks to Kalle Jokiniemi for doing the initial patch and test work.


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

end of thread, other threads:[~2008-08-08  1:18 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-21 16:02 [PATCH] Set correct off mode polarity Peter 'p2' De Schrijver
2008-07-21 16:02 ` [PATCH] Enable SYSOFFMODE use Peter 'p2' De Schrijver
2008-07-21 16:02   ` [PATCH] Add SYSOFFMODE option Peter 'p2' De Schrijver
2008-07-21 16:02     ` [PATCH] Load triton2 scripts Peter 'p2' De Schrijver
2008-07-21 17:32       ` Felipe Balbi
2008-08-05 10:50   ` [PATCH] Enable SYSOFFMODE use Tony Lindgren
2008-08-06 11:15     ` Kalle Jokiniemi
2008-08-06 17:12       ` Woodruff, Richard
2008-08-07  7:11         ` Kalle Jokiniemi
2008-08-08  1:18           ` Woodruff, Richard
2008-07-21 17:22 ` [PATCH] Set correct off mode polarity Felipe Balbi
2008-07-23 13:26   ` Peter 'p2' De Schrijver
2008-07-23 18:24     ` Felipe Balbi
  -- strict thread matches above, loose matches on Subject: below --
2008-07-21 16:17 RFC: OMAP3 SYS_OFF_MODE support Peter 'p2' De Schrijver
2008-07-21 16:17 ` [PATCH] Set correct off mode polarity Peter 'p2' De Schrijver

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox