Re: [PATCHv2 03/19] ARM: OMAP4: PM: Add device-off support

2012-05-30 Thread Tero Kristo
On Tue, 2012-05-29 at 11:31 -0700, Kevin Hilman wrote: Tero Kristo t-kri...@ti.com writes: On Wed, 2012-05-16 at 15:36 -0700, Kevin Hilman wrote: +Jean for functional power states Tero Kristo t-kri...@ti.com writes: This patch adds device off support to OMAP4 device type

Re: [PATCHv2 09/19] ARM: OMAP4: PM: add errata support

2012-05-30 Thread Tero Kristo
On Tue, 2012-05-29 at 15:10 -0500, Menon, Nishanth wrote: On Mon, May 14, 2012 at 5:18 AM, Tero Kristo t-kri...@ti.com wrote: Added similar PM errata flag support as omap3 has. A few errata flags will be added in subsequent patches. Considering that we might have erratas for future SoCs

Re: [PATCHv2 14/19] ARM: OMAP4: wakeupgen: enable clocks for save_secure_all

2012-05-30 Thread Tero Kristo
On Tue, 2012-05-29 at 13:15 -0700, Kevin Hilman wrote: Tero Kristo t-kri...@ti.com writes: On Wed, 2012-05-16 at 17:06 -0700, Kevin Hilman wrote: +Benoit Tero Kristo t-kri...@ti.com writes: save_secure_all needs l3_main_3_ick and l4_secure_clkdm enabled, otherwise the secure

Re: [PATCHv2 14/19] ARM: OMAP4: wakeupgen: enable clocks for save_secure_all

2012-05-30 Thread Tero Kristo
On Tue, 2012-05-29 at 15:48 -0500, Menon, Nishanth wrote: On Tue, May 29, 2012 at 3:15 PM, Kevin Hilman khil...@ti.com wrote: Tero Kristo t-kri...@ti.com writes: On Wed, 2012-05-16 at 17:06 -0700, Kevin Hilman wrote: +Benoit Tero Kristo t-kri...@ti.com writes: save_secure_all

Re: [PATCH 1/3] ARM: OMAP4: VC: fix I2C timing

2012-05-30 Thread Tero Kristo
On Tue, 2012-05-29 at 14:30 -0700, Kevin Hilman wrote: Tero Kristo t-kri...@ti.com writes: Current I2C timing parameters do not work with Panda board at least. Parameters updated based on TI recommendation. Signed-off-by: Tero Kristo t-kri...@ti.com Let's fix this correctly

Re: [PATCHv2 19/19] ARM: OMAP4: powerdomain: update mpu / core off counters during device off

2012-05-31 Thread Tero Kristo
On Wed, 2012-05-30 at 16:08 -0500, Menon, Nishanth wrote: On Mon, May 14, 2012 at 5:18 AM, Tero Kristo t-kri...@ti.com wrote: Currently device off does not have any counters / timers of its own and it is impossible to track the time spent in this state. In device off, MPU / CORE

[PATCHv3 2/9] ARM: OMAP3+: voltage/pwrdm/clkdm/clock add recursive usecount tracking

2012-05-31 Thread Tero Kristo
and autoidle flag for clocks that are hardware controlled and should be skipped in usecount calculations. Signed-off-by: Tero Kristo t-kri...@ti.com Cc: Paul Walmsley p...@pwsan.com Cc: Kevin Hilman khil...@ti.com --- arch/arm/mach-omap2/clkt_iclk.c | 21 + arch/arm/mach

[PATCHv3 5/9] ARM: OMAP3: set autoidle flags for a few clocks

2012-05-31 Thread Tero Kristo
dpll3, dpll4 and sdrc_ick are controlled automatically by hardware. Thus, reflect this with the autoidle flags, the clocks will no longer show as active in usecount dumps and will allow the voltdm-sleep / wakeup calls to work properly. Signed-off-by: Tero Kristo t-kri...@ti.com Cc: Paul Walmsley

[PATCHv3 7/9] ARM: OMAP: clockdomain: add support for preventing domain transitions

2012-05-31 Thread Tero Kristo
Some clockdomains can't support manual domain transitions triggered by clock framework, and must be prevented from doing so. Added clkdm flag CLKDM_SKIP_MANUAL_TRANS for doing this. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/clockdomain.c |6 ++ arch/arm/mach

[PATCHv3 9/9] TEMP: ARM: OMAP3: prevent dpll4 manual enable / disable + prevent core clkdm idle

2012-05-31 Thread Tero Kristo
DPLL4 (PER DPLL) disable can cause issues on omap3, thus prevent disable / enable by setting the clkops as core_dpll_ops. Also, prevent l3 / l4 core clkdomain manual transitions as these can cause issues also. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/clock3xxx_data.c

[PATCHv3 6/9] ARM: OMAP: pm-debug: enhanced usecount debug support

2012-05-31 Thread Tero Kristo
from kernel code, by calling the pm_dbg_dump_X functions. The plan is to call these functions once an error condition is detected, e.g. failed suspend. Signed-off-by: Tero Kristo t-kri...@ti.com Cc: Paul Walmsley p...@pwsan.com Cc: Kevin Hilman khil...@ti.com --- arch/arm/mach-omap2/pm-debug.c

[PATCHv3 8/9] ARM: OMAP3: prevent per_clkdm from attempting manual domain transitions

2012-05-31 Thread Tero Kristo
-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/clockdomains3xxx_data.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/clockdomains3xxx_data.c b/arch/arm/mach-omap2/clockdomains3xxx_data.c index 6038adb..0dae4c8 100644 --- a/arch/arm/mach

[PATCHv3 1/9] ARM: OMAP: clk: add support for omap_clk_for_each

2012-05-31 Thread Tero Kristo
This works similarly to e.g. pwrdm_for_each(). Needed by enhanced usecounting debug functionality that will be added to pm-debug. Signed-off-by: Tero Kristo t-kri...@ti.com Cc: Paul Walmsley p...@pwsan.com Cc: Kevin Hilman khil...@ti.com --- arch/arm/plat-omap/clock.c | 33

[PATCHv3 4/9] ARM: OMAP3: add manual control for mpu / core pwrdm usecounting

2012-05-31 Thread Tero Kristo
, and will allow vc callbacks to be triggered at right point of time. Signed-off-by: Tero Kristo t-kri...@ti.com Cc: Paul Walmsley p...@pwsan.com Cc: Kevin Hilman khil...@ti.com --- arch/arm/mach-omap2/pm34xx.c |3 ++ arch/arm/mach-omap2/pm44xx.c |3 ++ arch/arm/mach-omap2/powerdomain.c

[PATCHv3 0/9] ARM: OMAP3+: pwrdm changes for usecounting

2012-05-31 Thread Tero Kristo
Hi, Refreshed the patches against latest mainline kernel, and did some updates mainly proposed by Nishanth Menon n...@ti.com. Changes compared to previous version: patch 1: - added check against null pointer patch 2: - added BUG_ON in case clkdm / pwrdm usecount goes negative patch 3: -

[PATCHv3 3/9] ARM: OMAP3+: voltage: add support for voltagedomain usecounts

2012-05-31 Thread Tero Kristo
These are updated based on powerdomain usecounts. Also added support for voltdm-sleep and voltdm-wakeup calls that will be invoked once voltagedomain enters sleep or wakes up based on usecount numbers. These will be used for controlling voltage scaling functionality. Signed-off-by: Tero Kristo t

[PATCHv6 00/14] ARM: OMAP3+: auto ret / auto off support

2012-05-31 Thread Tero Kristo
Hi, This set applies on top of the pwrdm / voltdm usecounting fixes set. Contains some fixes proposed mainly by Nishanth Menon n...@ti.com. http://marc.info/?l=linux-omapm=133847159830867w=2 Changes compared to previous version: - huge patch #3 in set v5 was split into patches 3...6 - dropped

[PATCHv6 01/14] ARM: OMAP3+: PM: VP: use uV for max and min voltage limits

2012-05-31 Thread Tero Kristo
routines to set a cap if the voltage is out of reach for the PMIC. Reported-by: Jon Hunter jon-hun...@ti.com Signed-off-by: Nishanth Menon n...@ti.com Signed-off-by: Vishwanath BS vishwanath...@ti.com Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/omap_twl.c | 17

[PATCHv6 02/14] ARM: OMAP: voltage: renamed vp_vddmin and vp_vddmax fields

2012-05-31 Thread Tero Kristo
These are now called vddmin and vddmax, as these fields will be used globally for selecting voltage ranges for a pmic channel, and not only for voltage processor. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/omap_twl.c | 28 ++-- arch/arm/mach

[PATCHv6 04/14] ARM: OMAP3: VC: calculate ramp times

2012-05-31 Thread Tero Kristo
, and OFF timings are used if PMIC signal (nsleep) is used to control all the off mode voltages at the same time. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/vc.c | 108 ++--- arch/arm/mach-omap2/vc.h |1 - 2 files changed, 91

[PATCHv6 05/14] ARM: OMAP4: voltage: add support for VOLTSETUP_x_OFF register

2012-05-31 Thread Tero Kristo
OMAP4 has two VOLTSETUP registers. One is controlling retention and sleep voltage setup times, the other one off mode setup times. Both of these need to be setup for stable behavior of the device. The code setting up the new register will be added in the next patch. Signed-off-by: Tero Kristo t

[PATCHv6 03/14] ARM: OMAP3+: voltage: introduce omap vc / vp params for voltagedomains

2012-05-31 Thread Tero Kristo
changed to use the new structs. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/omap_twl.c| 20 -- arch/arm/mach-omap2/vc.c | 35 ++--- arch/arm/mach-omap2/vc.h |7 + arch/arm/mach

[PATCHv6 07/14] ARM: OMAP: add support for oscillator setup

2012-05-31 Thread Tero Kristo
This contains startup and shutdown times for the oscillator. By default use ULONG_MAX. Oscillator setup is used for calculating and setting up latencies for sleep modes that disable oscillator. Based on a patch from Nishanth Menon n...@ti.com. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch

[PATCHv6 09/14] ARM: OMAP3+: voltage: use oscillator data to calculate setup times

2012-05-31 Thread Tero Kristo
We now use the previously defined oscillator setup / shutdown times to calculate the register values for CLKSETUP. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/vc.c | 62 ++ 1 files changed, 62 insertions(+), 0 deletions

[PATCHv6 10/14] ARM: OMAP: TWL: change the vddmin / vddmax voltages to spec

2012-05-31 Thread Tero Kristo
... 1500mV TWL6030 (SWCS045A) : 0V ... 2100mV Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/omap_twl.c | 27 ++- 1 files changed, 10 insertions(+), 17 deletions(-) diff --git a/arch/arm/mach-omap2/omap_twl.c b/arch/arm/mach-omap2/omap_twl.c index dca1d66

[PATCHv6 12/14] ARM: OMAP: beagle: set oscillator startup time to 10ms for rev c4

2012-05-31 Thread Tero Kristo
Based on the oscillator datasheet for this device. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/board-omap3beagle.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c

[PATCHv6 11/14] TEMP: ARM: OMAP3: beagle rev-c4: enable OPP6

2012-05-31 Thread Tero Kristo
Beagleboard rev-c4 has a speed sorted OMAP3530 chip which can run at 720MHz. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/board-omap3beagle.c | 29 + arch/arm/mach-omap2/opp3xxx_data.c |4 2 files changed, 33 insertions(+), 0

[PATCHv6 06/14] ARM: OMAP4: VC: calculate ramp times

2012-05-31 Thread Tero Kristo
OMAP4 VC code now uses voltage deltas + slew rates for calculating actual ramp times for voltage changes. Both retention / sleep + off mode voltage ramp times are setup at the same time during initialization. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/vc.c | 94

[PATCHv6 08/14] ARM: OMAP3+: vp: use new vp_params for calculating vddmin and vddmax

2012-05-31 Thread Tero Kristo
Now we select the vddmin and vddmax values based on both pmic and voltage processor data, this allows usage of different power ICs. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/vp.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach

[PATCHv6 13/14] ARM: OMAP3: vc: auto_ret / auto_off support

2012-05-31 Thread Tero Kristo
Voltage code will now enable / disable auto_ret / auto_off dynamically according to the voltagedomain usecounts. This is accomplished via the usage of the voltdm callback functions for sleep / wakeup. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/vc.c | 139

[PATCHv6 14/14] ARM: OMAP3+: voltage: remove unused volt_setup_time parameter

2012-05-31 Thread Tero Kristo
This is no longer needed as the ramp times are calculated from voltage deltas + slew rates. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/omap_twl.c |5 - arch/arm/mach-omap2/voltage.h |1 - 2 files changed, 0 insertions(+), 6 deletions(-) diff --git a/arch/arm

Re: [PATCHv3 8/9] ARM: OMAP3: prevent per_clkdm from attempting manual domain transitions

2012-06-01 Thread Tero Kristo
On Thu, 2012-05-31 at 18:40 -0500, Jon Hunter wrote: Hi Tero, On 05/31/2012 08:29 AM, Tero Kristo wrote: Previously, PER clock domain was always enabled, as the usecounts for this domain incorrectly always showed positive value. On HW level though, the domain enters idle as it is set

Re: [PATCHv3 2/9] ARM: OMAP3+: voltage/pwrdm/clkdm/clock add recursive usecount tracking

2012-06-04 Thread Tero Kristo
On Fri, 2012-06-01 at 04:27 -0600, Paul Walmsley wrote: On Fri, 1 Jun 2012, Menon, Nishanth wrote: On Thu, May 31, 2012 at 8:28 AM, Tero Kristo t-kri...@ti.com wrote: minor comment: +void pwrdm_clkdm_enable(struct powerdomain *pwrdm) snip +void pwrdm_clkdm_disable(struct powerdomain

Re: suspend broken on 3.5-rc1?

2012-06-08 Thread Tero Kristo
On Fri, 2012-06-08 at 17:55 +0530, Rajendra Nayak wrote: On Friday 08 June 2012 04:26 PM, Tony Lindgren wrote: * Rajendra Nayakrna...@ti.com [120608 03:40]: Hi, I don;t seem to be able to get suspend to work on 3.5-rc1 on my 4430 panda. I am not sure if its UART wakeups that are an

Re: [PATCH 05/11] ARM: OMAP2+: hwmod code/data: fix 32K sync timer

2012-06-08 Thread Tero Kristo
Hi Paul, There's a bug in this patch, see below. clip { @@ -1141,8 +1143,26 @@ static void _enable_sysc(struct omap_hwmod *oh) sf = oh-class-sysc-sysc_flags; if (sf SYSC_HAS_SIDLEMODE) { - idlemode = (oh-flags HWMOD_SWSUP_SIDLE) ? -

Re: [PATCH 00/11] ARM: OMAP: core/hwmod: first set of fixes for 3.5-rc

2012-06-08 Thread Tero Kristo
Hi Paul, Tested this set on top of v3.5-rc1 with omap3 / omap4 suspend + my omap4 core retention / dev-off patches. There are a couple of minor issues, like the bug in patch 5, and the fact that counter_32k hwmod data is broken for omap4. This fix is needed on omap4 to fix the counter_32k, if

[PATCHv6 0/7] ARM: OMAP4: core retention support

2012-06-11 Thread Tero Kristo
Hi, Changes compared to previous version: - moved basic omap4 pm errata support from dev-off set to this one - changed ordering of patches a bit (core ret enabled at last patch) - dropped DSP reset hack patch from set, as it is no longer needed - added arch specific hwmod_ops support, needed for

[PATCHv6 1/7] ARM: OMAP4: PM: add errata support

2012-06-11 Thread Tero Kristo
Added similar PM errata flag support as omap3 has. This should be used in similar manner, set the flags during init time, and check the flag values during runtime. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/pm.h |7 +++ arch/arm/mach-omap2/pm44xx.c |1 + 2

[PATCHv6 3/7] ARM: OMAP4: hwmod: flag hwmods/modules not supporting module level context status

2012-06-11 Thread Tero Kristo
already. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/omap_hwmod_44xx_data.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c index 86fc513..828e7b8 100644 --- a/arch

[PATCHv6 4/7] ARM: OMAP: hwmod: Add support for per hwmod/module context lost count

2012-06-11 Thread Tero Kristo
] Signed-off-by: Paul Walmsley p...@pwsan.com [t-kri...@ti.com: added support for arch specific hwmod ops, and changed the no context offset indicator to USHRT_MAX] Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/omap_hwmod.c | 70 -- arch

[PATCHv6 2/7] ARM: OMAP4460: Workaround for ROM bug because of CA9 r2pX GIC control register change.

2012-06-11 Thread Tero Kristo
interrupts. The BUG is applicable to only OMAP4460(r2pX) devices. OMAP4470 (also r2pX) is not affected by this bug because ROM code has been fixed. Signed-off-by: Santosh Shilimkar santosh.shilim...@ti.com Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/common.h

[PATCHv6 6/7] ARM: OMAP4: suspend: Program all domains to retention

2012-06-11 Thread Tero Kristo
From: Rajendra Nayak rna...@ti.com Remove the FIXME's in the suspend sequence since we now intend to support system level RET support. Signed-off-by: Rajendra Nayak rna...@ti.com Signed-off-by: Tero Kristo t-kri...@ti.com [Jean Pihet j-pi...@ti.com: ported on top of the functional power states

[PATCHv6 5/7] ARM: OMAP4: pwrdm: add support for reading prev logic and mem states

2012-06-11 Thread Tero Kristo
. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/powerdomain44xx.c | 59 + 1 files changed, 59 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/powerdomain44xx.c b/arch/arm/mach-omap2/powerdomain44xx.c index 030d10c..ab93f08

[PATCHv6 7/7] ARM: OMAP4: PM: put all domains to OSWR during suspend

2012-06-11 Thread Tero Kristo
Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/pm44xx.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/pm44xx.c b/arch/arm/mach-omap2/pm44xx.c index 1e845e8..eb3e073 100644 --- a/arch/arm/mach-omap2/pm44xx.c +++ b/arch/arm/mach

[PATCHv3 00/20] ARM: OMAP4: device off support

2012-06-12 Thread Tero Kristo
Hi, V3 consists of following changes: - ordering of patches changed (enable off-mode as last patch) - rebased on top of 3.5-rc2 - rebased on top of Jean Pihet's functional power state code - omap-secure driver has now its own CPU PM notifier: * moved dummy wakeup dispatcher call from

[PATCHv3 01/20] ARM: OMAP4: PM: powerdomain: Add HWSAR flag to L3INIT

2012-06-12 Thread Tero Kristo
explicitly. Note: Eventually, these custom function implementation will be abstracted and might be done in hwmod or in other layer. Signed-off-by: Santosh Shilimkar santosh.shilim...@ti.com Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/powerdomain44xx.c | 57

[PATCHv3 02/20] ARM: OMAP4: powerdomain: update mpu / core off counters during device off

2012-06-12 Thread Tero Kristo
also adds a clear for the same register in the omap4_pwrdm_clear_all_prev_pwrst function. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/powerdomain.c |4 +++ arch/arm/mach-omap2/powerdomain.h |4 +++ arch/arm/mach-omap2/powerdomain44xx.c | 39

[PATCHv3 03/20] ARM: OMAP4: PM: add support for device off

2012-06-12 Thread Tero Kristo
(e.g. suspend) programs core pwrdm target as OFF, the functional power state for the domain will be OSWR with the additional device off enabled. Previous power state information will reflect this also. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/powerdomain.c

[PATCHv3 04/20] ARM: OMAP4: PM: update ROM return address for OSWR and OFF

2012-06-12 Thread Tero Kristo
was written by: Carlos Leija cile...@ti.com Praneeth Bajjuri prane...@ti.com Bryan Buckley bryan.buck...@ti.com Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/include/mach/omap-secure.h |1 + arch/arm/mach-omap2/omap-secure.c | 36

[PATCHv3 05/20] OMAP4: PM: clockdomain: workaround for l4_secure_clkdm HWSUP

2012-06-12 Thread Tero Kristo
-by: Santosh Shilimkar santosh.shilim...@ti.com Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/omap-secure.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/omap-secure.c b/arch/arm/mach-omap2/omap-secure.c index 36ec5a5

[PATCHv3 07/20] ARM: OMAP4: secure: add support for device off

2012-06-12 Thread Tero Kristo
the GIC save context is enough. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/omap-secure.c | 48 +++- 1 files changed, 46 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/omap-secure.c b/arch/arm/mach-omap2/omap-secure.c index

[PATCHv3 06/20] ARM: OMAP4: secure: move GIC / wakeupgen save restore to secure CPU PM notifier

2012-06-12 Thread Tero Kristo
As secure driver now has CPU PM notifier, move the security involved tweaks from wakeupgen to here. This allows us to drop some runtime omap chip type checks away also, as wakeupgen CPU PM notifier is no longer needed at all on secure devices. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch

[PATCHv3 08/20] ARM: OMAP4: PM: add MPUSS power domain device off support

2012-06-12 Thread Tero Kristo
This patch adds device off support for MPUSS power domain. Device off support is overloaded on top of core pwrdm functional OFF powerstate, so the code must check the next core powerstate and set the save_state status accordingly. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach

[PATCHv3 09/20] ARM: OMAP4: PM: save/restore all DPLL settings in OFF mode

2012-06-12 Thread Tero Kristo
Menon n...@ti.com Signed-off-by: Rajendra Nayak rna...@ti.com Signed-off-by: Santosh Shilimkar santosh.shilim...@ti.com Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/cm44xx.h |5 + arch/arm/mach-omap2/dpll44xx.c| 225 + arch

[PATCHv3 12/20] ARM: OMAP4: PM: Work-around for ROM code BUG of IVAHD/TESLA

2012-06-12 Thread Tero Kristo
santosh.shilim...@ti.com [t-kri...@ti.com: added omap4 pm errata support] Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/omap-mpuss-lowpower.c | 52 + arch/arm/mach-omap2/pm.h |1 + arch/arm/mach-omap2/pm44xx.c | 11

[PATCHv3 13/20] ARM: OMAP4: PM: save/restore CM L3INSTR registers when MPU hits OSWR/OFF mode

2012-06-12 Thread Tero Kristo
rna...@ti.com Signed-off-by: Santosh Shilimkar santosh.shilim...@ti.com [t-kri...@ti.com: added omap4 pm errata support] Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/omap-mpuss-lowpower.c | 34 - arch/arm/mach-omap2/pm.h |1

[PATCHv3 15/20] ARM: OMAP4430: PM: workaround for DDR corruption on second CS

2012-06-12 Thread Tero Kristo
, the register configuration is not set properly, we apply the required workaround allowing the restore sequence to work properly. Signed-off-by: Santosh Shilimkar santosh.shilim...@ti.com [t-kri...@ti.com: moved workaround from omap-sar.c to pm44xx.c] Signed-off-by: Tero Kristo t-kri...@ti.com

[PATCHv3 10/20] ARM: OMAP4: PM: save/restore all CM1/2 settings in OFF mode

2012-06-12 Thread Tero Kristo
Haslam axelhas...@gmail.com Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/cm44xx.c | 328 + arch/arm/mach-omap2/cm44xx.h |2 + arch/arm/mach-omap2/omap-mpuss-lowpower.c |5 +- 3 files changed, 334 insertions(+), 1

[PATCHv3 11/20] ARM: OMAP4: PM: Add SAR backup support towards device OFF

2012-06-12 Thread Tero Kristo
Shilimkar santosh.shilim...@ti.com, updated with the auto generate feature by Tero Kristo t-kri...@ti.com. Contributions / cleanups to the original code were received from Rajeev Kulkarni raj...@ti.com, Nishanth Menon n...@ti.com, Axel Haslam axelhas...@gmail.com and Avinash.H.M avinas...@ti.com

[PATCHv3 19/20] ARM: OMAP4: PM: enable off mode by default

2012-06-12 Thread Tero Kristo
System will now enter device off by default during suspend. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/pm44xx.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/pm44xx.c b/arch/arm/mach-omap2/pm44xx.c index 341655e..8054afc

[PATCHv3 17/20] ARM: OMAP4: put cpu1 back to sleep if no wake request

2012-06-12 Thread Tero Kristo
If AUX_CORE_BOOT0 does not indicate wakeup request for cpu1, put it back to off. This is needed during wakeup from device off to prevent cpu1 from being stuck indefinitely in the wakeup loop and also to prevent wakeup problem on GP chips with device off mode. Signed-off-by: Tero Kristo t-kri

[PATCHv3 18/20] ARM: OMAP4460: wakeupgen: set GIC_CPU0 backup status flag always

2012-06-12 Thread Tero Kristo
on OMAP4470. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/omap-wakeupgen.c | 22 ++ arch/arm/mach-omap2/omap4-sar-layout.h |1 + arch/arm/mach-omap2/pm.h |1 + 3 files changed, 24 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach

[PATCHv3 16/20] TEMP: ARM: OMAP4: prevent voltage transitions

2012-06-12 Thread Tero Kristo
not prevent voltage scaling done by voltdm-scale / DVFS. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/pm44xx.c | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/pm44xx.c b/arch/arm/mach-omap2/pm44xx.c index

[PATCHv3 14/20] ARM: OMAP4: PM: Mark the PPI and SPI interrupts as non-secure for GP

2012-06-12 Thread Tero Kristo
Haslam axelhas...@gmail.com [t-kri...@ti.com: fixed commit message, merged multiple patches to one] Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/common.h |1 + arch/arm/mach-omap2/omap-wakeupgen.c | 22 ++ arch/arm/mach-omap2/omap4-common.c

[PATCHv3 20/20] ARM: OMAP4430: PM: errata i625, WUGEN lost for GP devices after OFF mode

2012-06-12 Thread Tero Kristo
by Mykola Oleksiienko and Konstantin Shlyakhovoy. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/pm.h |1 + arch/arm/mach-omap2/pm44xx.c | 12 +++- 2 files changed, 12 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/pm.h b/arch/arm/mach-omap2

Re: [PATCHv3 03/20] ARM: OMAP4: PM: add support for device off

2012-06-14 Thread Tero Kristo
. On Tue, Jun 12, 2012 at 5:31 PM, Tero Kristo t-kri...@ti.com wrote: On OMAP4+, device wide off-mode has its own enable mechanism in addition to powerdomain target states. This patch adds support for this on top of functional power states by overloading the OFF state for core pwrdm. On pwrdm

Re: [PATCHv3 03/20] ARM: OMAP4: PM: add support for device off

2012-06-14 Thread Tero Kristo
the pwrdm_ops struct). Okay, I made an alternative implementation. Compared to this: On Tue, Jun 12, 2012 at 5:31 PM, Tero Kristo t-kri...@ti.com wrote: On OMAP4+, device wide off-mode has its own enable mechanism in addition to powerdomain target states. This patch adds support for this on top

Re: New compiler warnings with v3.5-rc

2012-06-28 Thread Tero Kristo
probably added by: commit 49c008ecce1f9a549c12e8957668d60008ab0d79 Author: Tero Kristo t-kri...@ti.com Date: Mon Feb 20 12:26:08 2012 +0200 arm: omap3: twl: add external controllers for core voltage regulators Maybe you can put together a quick patch to fix these? Yea, I can do

[PATCH] ARM: OMAP2: twl-common: fix compiler warnings

2012-06-28 Thread Tero Kristo
but not used This patch moves the code in question behind ARCH specific flags and eliminates these warnings. Reported-by: Paul Walmsley p...@pwsan.com Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/twl-common.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git

[PATCH 0/3] PRCM chain interrupt handler

2011-06-09 Thread Tero Kristo
Hello, Following set contains PRCM chain interrupt handling for OMAP3/4. Contents of this set: - Patch 1 was initially made by Thomas Petazzoni I believe, I made some OMAP4 specific fixes on that one and updated this to conform to latest kernel APIs. This patch contains the main logic for

[PATCH 1/3] omap: prcm: switch to a chained IRQ handler mechanism

2011-06-09 Thread Tero Kristo
separate interrupts, and their handler is registered with IRQF_NO_SUSPEND, otherwise the IRQ gets disabled during suspend, which prevents resume. Patch tested on OMAP4 blaze board, no testing done on OMAP3. Signed-off-by: Tero Kristo t-kri...@ti.com Cc: Thomas Petazzoni thomas.petazz...@free

[PATCH 2/3] PRCM: Add support for PAD wakeup interrupts

2011-06-09 Thread Tero Kristo
interrupt will be triggered. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/prcm.c | 53 arch/arm/plat-omap/include/plat/prcm.h |3 ++ 2 files changed, 56 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/prcm.c b

[PATCH 3/3] HACK: OMAP: Serial: use PRCM wakeup events to enable clocks

2011-06-09 Thread Tero Kristo
This patch is just to test that the idea works generally, proper implementation should be done for the OMAP UART driver. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/pm44xx.c |4 arch/arm/mach-omap2/serial.c |3 +++ drivers/tty/serial/omap-serial.c

Re: [PATCH 3/3] HACK: OMAP: Serial: use PRCM wakeup events to enable clocks

2011-06-15 Thread Tero Kristo
On Tue, 2011-06-14 at 14:34 +0200, Govindraj wrote: On Thu, Jun 9, 2011 at 6:55 PM, Tero Kristo t-kri...@ti.com wrote: This patch is just to test that the idea works generally, proper implementation should be done for the OMAP UART driver. Hi Govindraj, Thanks for testing this out

Re: [PATCH 3/3] HACK: OMAP: Serial: use PRCM wakeup events to enable clocks

2011-06-16 Thread Tero Kristo
not need any modifications. I don't know what is the issue with OMAP3, and I can't debug it as I don't have OMAP3 HW yet. I should receive one in hopefully a couple of weeks though. -Tero On Tue, 2011-06-14 at 14:34 +0200, Govindraj wrote: On Thu, Jun 9, 2011 at 6:55 PM, Tero Kristo t-kri...@ti.com

Re: [PATCH 0/3] PRCM chain interrupt handler

2011-06-17 Thread Tero Kristo
On Thu, 2011-06-16 at 20:56 +0200, Hilman, Kevin wrote: Hi Tero, Tero Kristo t-kri...@ti.com writes: Following set contains PRCM chain interrupt handling for OMAP3/4. What does this series apply to? It doesn't seem to apply to mainline (v3.0-rc3) or l-o master. You are right

[PATCHv2 0/3] PRCM chain interrupt handler

2011-06-17 Thread Tero Kristo
This set applies on top of PM branch. Changes compared to previous set: - should now apply cleanly * removed pm44xx.c changes as the branch does not contain necessary support Texas Instruments Oy, Tekniikantie 12, 02150 Espoo. Y-tunnus: 0115040-6. Kotipaikka: Helsinki -- To unsubscribe

[PATCHv2 1/3] omap: prcm: switch to a chained IRQ handler mechanism

2011-06-17 Thread Tero Kristo
separate interrupts, and their handler is registered with IRQF_NO_SUSPEND, otherwise the IRQ gets disabled during suspend, which prevents resume. TODO: - add hooks to pm44xx.c Signed-off-by: Tero Kristo t-kri...@ti.com Cc: Thomas Petazzoni thomas.petazz...@free-electrons.com Cc: Avinash.H.M avinas

[PATCHv2 2/3] PRCM: Add support for PAD wakeup interrupts

2011-06-17 Thread Tero Kristo
interrupt will be triggered. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/prcm.c | 53 arch/arm/plat-omap/include/plat/prcm.h |1 + 2 files changed, 54 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/prcm.c b/arch

[PATCHv2 3/3] OMAP: serial: use chained interrupt handler for IO pad wakeup

2011-06-17 Thread Tero Kristo
Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/serial.c | 30 +++--- drivers/tty/serial/omap-serial.c |6 ++ 2 files changed, 17 insertions(+), 19 deletions(-) diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c index

[PATCHv3 0/6] PRCM chain handler

2011-06-22 Thread Tero Kristo
I was able to test this on OMAP3 beagleboard and got it working properly after some sweating. Version 3 changes: - Changed omap3 PRCM wakeup interrupt handler to be a dummy, wakeup irq clearing is now done when we are entering idle. This prevents PRCM interrupt hanging in case UART is

[PATCHv3 3/6] OMAP: PRCM: Added an api to get id for a PRCM event

2011-06-22 Thread Tero Kristo
This is required by OMAP3 as it needs to dynamically unmask events during idle cycle. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/prcm.c | 17 ++--- arch/arm/plat-omap/include/plat/prcm.h |1 + 2 files changed, 15 insertions(+), 3 deletions

[PATCHv3 2/6] PRCM: Add support for PAD wakeup interrupts

2011-06-22 Thread Tero Kristo
interrupt will be triggered. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/prcm.c | 50 arch/arm/plat-omap/include/plat/prcm.h |1 + 2 files changed, 51 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/prcm.c b/arch

[PATCHv3 5/6] OMAP3: Serial: Made serial to work properly with PRCM chain handler

2011-06-22 Thread Tero Kristo
Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/pm34xx.c | 19 --- arch/arm/mach-omap2/serial.c | 40 +--- 2 files changed, 21 insertions(+), 38 deletions(-) diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2

[PATCHv3 6/6] OMAP3: Serial tty: Added resume_idle calls to critical points

2011-06-22 Thread Tero Kristo
Any tty access should enable UART port first if it is idle. Signed-off-by: Tero Kristo t-kri...@ti.com --- drivers/tty/serial/omap-serial.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/drivers/tty/serial/omap-serial.c b/drivers/tty/serial/omap-serial.c index

[PATCHv3 4/6] OMAP3: PM: Use PRCM chain handler

2011-06-22 Thread Tero Kristo
to do this during this time. Changing the wakeup handling logic also fixes an issue with the chained PRCM serial interrupts, that prevents clearing of the UART wakeup status and hangs the device. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/pm34xx.c | 31

[PATCHv3 1/6] omap: prcm: switch to a chained IRQ handler mechanism

2011-06-22 Thread Tero Kristo
separate interrupts, and their handler is registered with IRQF_NO_SUSPEND, otherwise the IRQ gets disabled during suspend, which prevents resume. Patch tested on OMAP4 blaze board, no testing done on OMAP3. Signed-off-by: Tero Kristo t-kri...@ti.com Cc: Thomas Petazzoni thomas.petazz...@free

Re: [PATCHv3 5/6] OMAP3: Serial: Made serial to work properly with PRCM chain handler

2011-06-22 Thread Tero Kristo
() calls from omap_device.c. -Tero On Wed, 2011-06-22 at 18:42 +0200, Kristo, Tero wrote: Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/pm34xx.c | 19 --- arch/arm/mach-omap2/serial.c | 40 +--- 2 files changed, 21

Re: [PATCHv3 1/6] omap: prcm: switch to a chained IRQ handler mechanism

2011-06-23 Thread Tero Kristo
On Thu, 2011-06-23 at 01:53 +0200, Hilman, Kevin wrote: Hi Tero, Tero Kristo t-kri...@ti.com writes: Introduce a chained interrupt handler mechanism for the PRCM interrupt, so that individual PRCM event can cleanly be handled by handlers in separate drivers. We do this by introducing

Re: [PATCHv3 1/6] omap: prcm: switch to a chained IRQ handler mechanism

2011-06-23 Thread Tero Kristo
On Thu, 2011-06-23 at 10:19 +0200, Tony Lindgren wrote: * Tero Kristo t-kri...@ti.com [110622 09:38]: Introduce a chained interrupt handler mechanism for the PRCM interrupt, so that individual PRCM event can cleanly be handled by handlers in separate drivers. We do this by introducing PRCM

Re: [PATCHv3 5/6] OMAP3: Serial: Made serial to work properly with PRCM chain handler

2011-06-23 Thread Tero Kristo
On Thu, 2011-06-23 at 10:21 +0200, Tony Lindgren wrote: * Tero Kristo t-kri...@ti.com [110622 09:38]: @@ -550,6 +550,8 @@ static void omap_uart_idle_init(struct omap_uart_state *uart) ret = request_threaded_irq(uart-irq, NULL, omap_uart_interrupt

Re: [PATCH] regulator: twl6030: add support for vdd1, vdd2 and vdd3 regulators

2012-02-24 Thread Tero Kristo
On Thu, 2012-02-23 at 15:34 +, Mark Brown wrote: On Thu, Feb 23, 2012 at 01:05:09PM +0200, Tero Kristo wrote: +static int twl6030coresmps_set_voltage(struct regulator_dev *rdev, int min_uV, + int max_uV, unsigned *selector) +{ + struct twlreg_info *info = rdev_get_drvdata

Re: [PATCHv2 8/8] arm: omap3: prevent per_clkdm from attempting manual domain transitions

2012-02-24 Thread Tero Kristo
On Wed, 2012-02-22 at 14:37 -0800, Kevin Hilman wrote: Tero Kristo t-kri...@ti.com writes: On Thu, 2012-02-16 at 09:31 -0800, Kevin Hilman wrote: Tero Kristo t-kri...@ti.com writes: On Thu, 2012-02-16 at 21:15 +0530, Shilimkar, Santosh wrote: On Thu, Feb 16, 2012 at 8:53 PM, Tero

Re: [PATCH] regulator: twl6030: add support for vdd1, vdd2 and vdd3 regulators

2012-02-24 Thread Tero Kristo
On Fri, 2012-02-24 at 11:49 +, Mark Brown wrote: On Fri, Feb 24, 2012 at 11:38:09AM +0200, Tero Kristo wrote: On Thu, 2012-02-23 at 15:34 +, Mark Brown wrote: Since you're using min_uV as the register value you probably ought to be returning that as the selector too

Re: [PATCH] regulator: twl6030: add support for vdd1, vdd2 and vdd3 regulators

2012-02-24 Thread Tero Kristo
On Fri, 2012-02-24 at 13:24 +, Mark Brown wrote: On Fri, Feb 24, 2012 at 03:16:38PM +0200, Tero Kristo wrote: I still ain't quite sure how this would work, do you mean adding something like this: +static int twl6030smps_list_voltage(struct regulator_dev *rdev

Re: [PATCH] regulator: twl6030: add support for vdd1, vdd2 and vdd3 regulators

2012-02-24 Thread Tero Kristo
On Fri, 2012-02-24 at 14:01 +, Mark Brown wrote: On Fri, Feb 24, 2012 at 03:56:05PM +0200, Tero Kristo wrote: So, do you want me to also change the num_voltages value for the regulator from zero to be the same as max_uV, as we have this check within regulator/core: if (!ops

Re: [PATCH 3/6] ARM: OMAP3PLUS PM: Add IO Daisychain support via hwmod mux

2012-02-24 Thread Tero Kristo
On Thu, 2012-02-23 at 19:23 +0530, Shilimkar, Santosh wrote: On Thu, Feb 23, 2012 at 6:51 PM, Tero Kristo t-kri...@ti.com wrote: From: Vishwanath BS vishwanath...@ti.com IO Daisychain feature has to be triggered whenever there is a change in device's mux configuration (See section 3.9.4

Re: [PATCH] regulator: twl6030: add support for vdd1, vdd2 and vdd3 regulators

2012-02-24 Thread Tero Kristo
On Fri, 2012-02-24 at 14:34 +, Mark Brown wrote: On Fri, Feb 24, 2012 at 04:25:12PM +0200, Tero Kristo wrote: Still, setting selector in this case does nothing, as it is immediately overwritten by the regulator core by -1. This looks like a perfectly acceptable way to implement

Re: [PATCH] regulator: twl6030: add support for vdd1, vdd2 and vdd3 regulators

2012-02-24 Thread Tero Kristo
On Fri, 2012-02-24 at 14:50 +, Mark Brown wrote: On Fri, Feb 24, 2012 at 04:42:12PM +0200, Tero Kristo wrote: On Fri, 2012-02-24 at 14:34 +, Mark Brown wrote: Ah, so it is - we're fixing things up in the core. I'd forgotten we did that. So, no need to add list_voltage

[PATCHv2 0/6] ARM: OMAP4 core retention support

2012-02-24 Thread Tero Kristo
Changes compared to previous version: - patch2: changed timeout value to 100us (from 1000us) - patch2: added timeout after the WUCLKIN disable - some cosmetic tweaking to other patches Tested on omap4430 blaze board with EMU chip, suspend / resume ok. -Tero -- To unsubscribe from this list:

<    2   3   4   5   6   7   8   9   10   11   >