[PATCH 1/1] Added sleep support to UART

2008-05-29 Thread Tero Kristo
UART usage (e.g. serial console) now denies sleep for 5 seconds. This makes it possible to use serial console when dynamic idle is enabled. Also moved code from pm-debug.c to serial.c, and made pm24xx.c use this new implementation. Signed-off-by: Tero Kristo [EMAIL PROTECTED] --- arch/arm/mach

Dynamic idle support for UART

2008-05-29 Thread Tero Kristo
This hack will most importantly allow serial console usage when dynamic idle is enabled. Note! Functionality under 24xx configuration has not been verified! There may be some problems with CONFIG_PM_DEBUG flag enabled, most likely during the PM debug information dumps after / before

Second part for the UART hack (dependency)

2008-06-03 Thread Tero Kristo
This patch depends on the PM patch set sent by Jouni Hogander. Basically just a cosmetic modification to make fclk mask look more nice inside pm34xx.c. -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body of a message to [EMAIL PROTECTED] More majordomo info at

[PATCH 1/1] omap3_fclks_active() now uses generic serial clock check

2008-06-03 Thread Tero Kristo
Signed-off-by: Tero Kristo [EMAIL PROTECTED] --- arch/arm/mach-omap2/pm34xx.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c index ada87ba..2574586 100644 --- a/arch/arm/mach-omap2/pm34xx.c +++ b/arch/arm/mach

34xx off-mode support fixes

2008-07-03 Thread Tero Kristo
Hi, This patch set contains some experimental fixes for the cpu-idle support from Rajendra Nayak. With this patch set, all power domains enter OFF mode and recover from it, at least while using suspend and/or dynamic idle. If you are using these patches, you should disable CPU_IDLE support from

[PATCH] OMAP3: CPUIdle: prevent CORE from going off if doing so would reset an active clockdomain

2011-01-18 Thread Tero Kristo
On OMAP3 SoCs, if the CORE powerdomain enters off-mode, many other parts of the chip will be reset. If those parts of the chip are busy, the reset will disrupt them, causing unpredictable and generally undesirable results. Signed-off-by: Tero Kristo tero.kri...@nokia.com Cc: Paul Walmsley p

[PATCHv2] OMAP3: CPUIdle: prevent CORE from going off if doing so would reset an active clockdomain

2011-01-21 Thread Tero Kristo
), and it can occur for example in a case where some peripheral domain is in retention or inactive state and core enters off. This will result in the peripheral domain being reset. Signed-off-by: Tero Kristo tero.kri...@nokia.com Cc: Paul Walmsley p...@pwsan.com Cc: Kevin Hilman khil...@deeprootsystems.com

[PATCHv3 2/6] OMAP3: PM: Added support for INACTIVE and ON states for powerdomains

2010-01-15 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Previously omap_sram_idle() did not know about the difference between ON and INACTIVE states, which complicated the state handling in these cases. Now, the following changes are done in the idle logic: - Check for IO-chain arming is changed to reflect

[PATCHv3 5/6] OMAP: Powerdomains: Add support for checking if pwrdm/clkdm can idle

2010-01-15 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com pwrdm_can_idle(pwrdm) will check if the specified powerdomain can enter idle. This is done by checking all clockdomains under the powerdomain if they can idle also. omap2_clkdm_can_idle(clkdm) will check if the specified clockdomain can enter idle

[PATCHv3 6/6] OMAP3: CPUidle: Added peripheral pwrdm checks into bm check

2010-01-15 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Following checks are made (and their reasoning): - If CAM domain is active, prevent idle completely * CAM pwrdm does not have HW wakeup capability - If PER is likely to remain on, prevent PER off * Saves on unnecessary context save/restore - If CORE

[PATCHv3 3/6] OMAP3: CPUidle: Fixed support for ON / INACTIVE states

2010-01-15 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com New powerdomain code support for INACTIVE state removes the need to control clockdomains directly from cpuidle. Also, cpuidle state definitions can now directly support ON / INACTIVE simplifying the implementation. Signed-off-by: Tero Kristo tero.kri

[PATCHv3 0/6] Idle status patches revisited again

2010-01-15 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Improvements / fixes compared to previous version: - Added pwrdm next_state cache initialization to patch 1 - Fixed changelog for patch 1 - Added FCLK checks to patch 5 (now checks both idlest and fclk) - Added more info to changelog for patch 5 -Tero

[PATCHv3 4/6] OMAP3: PM: Removed pwrdm state hacking from omap_sram_idle

2010-01-15 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Following hacks will be moved inside cpuidle in subsequent patch: - CAM domain prevents idle completely - PER should not go OFF if core remains active This simplifies the design and allows cpuidle to keep better track of which power states system

[PATCHv3 1/6] OMAP: Powerdomains: Add support for INACTIVE state on pwrdm level

2010-01-15 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Currently only ON, RET and OFF are supported, and ON is arguably broken as it allows the powerdomain to enter INACTIVE state unless idle is prevented. Now, pwrdm code prevents idle if ON is selected, and also adds support for INACTIVE. This simplifies

[PATCHv4 5/8] OMAP3: PM: Removed pwrdm state hacking from omap_sram_idle

2010-01-22 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Following hacks will be moved inside cpuidle in subsequent patch: - CAM domain prevents idle completely - PER should not go OFF if core remains active This simplifies the design and allows cpuidle to keep better track of which power states system

[PATCHv4 8/8] OMAP3: CPUidle: Added peripheral pwrdm checks into bm check

2010-01-22 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Following checks are made (and their reasoning): - If CAM domain is active, prevent idle completely * CAM pwrdm does not have HW wakeup capability - If PER is likely to remain on, prevent PER off * Saves on unnecessary context save/restore - If CORE

[PATCHv4 4/8] OMAP3: CPUidle: Fixed support for ON / INACTIVE states

2010-01-22 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com New powerdomain code support for INACTIVE state removes the need to control clockdomains directly from cpuidle. Also, cpuidle state definitions can now directly support ON / INACTIVE simplifying the implementation. Signed-off-by: Tero Kristo tero.kri

[PATCHv4 1/8] OMAP3: Clockdomain: Added API for checking if HWSUP is enabled

2010-01-22 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com omap2_clkdm_get_hwsup(clkdm) can be used to check if automatic HW transitions for the domain are enabled or not. This is needed for the powerdomain code that adds support for INACTIVE state, as it needs to disable HWSUP on the fly for ON state, and re

[PATCHv4 2/8] OMAP: Powerdomains: Add support for INACTIVE state on pwrdm level

2010-01-22 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Currently only ON, RET and OFF are supported, and ON is arguably broken as it allows the powerdomain to enter INACTIVE state unless idle is prevented. Now, pwrdm code prevents idle if ON is selected and hardware supervised mode for the underlying

[PATCHv4 6/8] OMAP3: Clock: Added IDLEST definitions for SGX

2010-01-22 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Added definitions for OMAP3430ES2_ST_SGX_SHIFT and OMAP3430ES2_ST_SGX_MASK as these were missing. Signed-off-by: Tero Kristo tero.kri...@nokia.com --- arch/arm/mach-omap2/cm-regbits-34xx.h |4 1 files changed, 4 insertions(+), 0 deletions

[PATCHv4 3/8] OMAP3: PM: Added support for INACTIVE and ON states for powerdomains

2010-01-22 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Previously omap_sram_idle() did not know about the difference between ON and INACTIVE states, which complicated the state handling in these cases. Now, the following changes are done in the idle logic: - Check for IO-chain arming is changed to reflect

[PATCHv4 7/8] OMAP: Powerdomains: Add support for checking if pwrdm/clkdm can idle

2010-01-22 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com pwrdm_can_idle(pwrdm) will check if the specified powerdomain can enter idle. This is done by checking all clockdomains under the powerdomain if they can idle also. omap2_clkdm_can_idle(clkdm) will check if the specified clockdomain can enter idle

[PATCH] OMAP3: Serial: Improved sleep logic

2010-02-02 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Only RX interrupt will now kick the sleep prevent timer. In addition, TX fifo status is checked before disabling clocks, this will prevent occasional garbage being printed on serial line. Smartidle is also disabled while entering idle if we have data

[PATCHv5 0/9] Idlestatus patches

2010-02-02 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Improvements compared to previous version: - Removed hacks from generic powerdomain code, instead added support routines for OMAP3, which are used by pm34xx.c and cpuidle34xx.c, these support routines only touch mpu, core and neon powerdomains - Bug

[PATCHv5 2/9] OMAP3: PM: Added support for INACTIVE and ON states in omap_sram_idle

2010-02-02 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Previously omap_sram_idle() did not know about the difference between ON and INACTIVE states, which complicated the state handling in these cases. Now, the following changes are done in the idle logic: - Check for IO-chain arming is changed to reflect

[PATCHv5 1/9] OMAP3: PM: Added support functions for omap3 pwrdm handling

2010-02-02 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Added omap3_pwrdm_set_next_pwrst and omap3_pwrdm_read_next_pwrst. These functions add support for INACTIVE and ON states to the standard OMAP powerdomain functions, and add caching logic for the next state. These functions are used in subsequent patches

[PATCHv5 6/9] OMAP: Powerdomains: Add support for checking if pwrdm/clkdm can idle

2010-02-02 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com pwrdm_can_idle(pwrdm) will check if the specified powerdomain can enter idle. This is done by checking all clockdomains under the powerdomain if they can idle also. omap2_clkdm_can_idle(clkdm) will check if the specified clockdomain can enter idle

[PATCHv5 3/9] OMAP3: CPUidle: Fixed support for ON / INACTIVE states

2010-02-02 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com New powerdomain support code for INACTIVE state removes the need to control clockdomains directly from cpuidle. Also, cpuidle state definitions can now directly support ON / INACTIVE simplifying the implementation. Signed-off-by: Tero Kristo tero.kri

[PATCHv5 5/9] OMAP3: Clock: Added IDLEST definitions for SGX

2010-02-02 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Added definitions for OMAP3430ES2_ST_SGX_SHIFT and OMAP3430ES2_ST_SGX_MASK as these were missing. Signed-off-by: Tero Kristo tero.kri...@nokia.com --- arch/arm/mach-omap2/cm-regbits-34xx.h |4 1 files changed, 4 insertions(+), 0 deletions

[PATCHv5 7/9] OMAP3: CPUidle: Added peripheral pwrdm checks into bm check

2010-02-02 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Following checks are made (and their reasoning): - If CAM domain is active, prevent idle completely * CAM pwrdm does not have HW wakeup capability - If PER is likely to remain on, prevent PER off * Saves on unnecessary context save/restore - If CORE

[PATCHv5 9/9] OMAP3: PM: Added support for suspending to INACTIVE state

2010-02-02 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com With the new support functions this is now possible. Suspending to INACTIVE is useful for testing purposes. Signed-off-by: Tero Kristo tero.kri...@nokia.com --- arch/arm/mach-omap2/pm34xx.c | 11 ++- 1 files changed, 6 insertions(+), 5 deletions

[PATCHv5 4/9] OMAP3: PM: Removed pwrdm state hacking from omap_sram_idle

2010-02-02 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Following hacks will be moved inside cpuidle in subsequent patch: - CAM domain prevents idle completely - PER should not go OFF if core remains active This simplifies the design and allows cpuidle to keep better track of which power states system

[PATCHv5 8/9] OMAP3: CPUidle: Fixed off-mode support to fall-back to proper C state

2010-02-02 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com If off-mode is disabled, cpuidle now falls back to proper C state. Previously the state was just simply hacked inside omap3_enter_idle which resulted in wrong state residencies to be reported. Signed-off-by: Tero Kristo tero.kri...@nokia.com --- arch/arm

[PATCH] OMAP3: Serial: Improved sleep logic

2010-02-10 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com This patch contains following improvements: - Only RX interrupt will now kick the sleep prevent timer - TX fifo status is checked before disabling clocks, this will prevent on-going transmission to be cut - Smartidle is disabled while entering idle if we

[PATCHv3] OMAP3: Serial: Improved sleep logic

2010-02-11 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com This patch contains following improvements: - Only RX interrupt will now kick the sleep prevent timer - TX fifo status is checked before disabling clocks, this will prevent on-going transmission to be cut - Smartidle is disabled while entering idle if we

[PATCHv4] OMAP3: Serial: Improved sleep logic

2010-02-12 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com This patch contains following improvements: - Only RX interrupt will now kick the sleep prevent timer - TX fifo status is checked before disabling clocks, this will prevent on-going transmission to be cut - Smartidle is now enabled/disabled only while

[PATCHv6 2/9] OMAP3: PM: Added support for INACTIVE and ON states in omap_sram_idle

2010-02-12 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Previously omap_sram_idle() did not know about the difference between ON and INACTIVE states, which complicated the state handling in these cases. Now, the following changes are done in the idle logic: - Check for IO-chain arming is changed to reflect

[PATCHv6 3/9] OMAP3: CPUidle: Fixed support for ON / INACTIVE states

2010-02-12 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com New powerdomain support code for INACTIVE state removes the need to control clockdomains directly from cpuidle. Also, cpuidle state definitions can now directly support ON / INACTIVE simplifying the implementation. Signed-off-by: Tero Kristo tero.kri

[PATCHv6 5/9] OMAP3: Clock: Added IDLEST definitions for SGX

2010-02-12 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Added definitions for OMAP3430ES2_ST_SGX_SHIFT and OMAP3430ES2_ST_SGX_MASK as these were missing. Signed-off-by: Tero Kristo tero.kri...@nokia.com --- arch/arm/mach-omap2/cm-regbits-34xx.h |4 1 files changed, 4 insertions(+), 0 deletions

[PATCHv6 4/9] OMAP3: PM: Removed pwrdm state hacking from omap_sram_idle

2010-02-12 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Following hacks will be moved inside cpuidle in subsequent patch: - CAM domain prevents idle completely - PER should not go OFF if core remains active This simplifies the design and allows cpuidle to keep better track of which power states system

[PATCHv6 6/9] OMAP: Powerdomains: Add support for checking if pwrdm/clkdm can idle

2010-02-12 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com pwrdm_can_idle(pwrdm) will check if the specified powerdomain can enter idle. This is done by checking all clockdomains under the powerdomain if they can idle also. omap2_clkdm_can_idle(clkdm) will check if the specified clockdomain can enter idle

[PATCHv6 9/9] OMAP3: PM: Added support for suspending to INACTIVE state

2010-02-12 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com With the new support functions this is now possible. Suspending to INACTIVE is useful for testing purposes. Signed-off-by: Tero Kristo tero.kri...@nokia.com --- arch/arm/mach-omap2/pm34xx.c | 11 ++- 1 files changed, 6 insertions(+), 5 deletions

[PATCHv6 7/9] OMAP3: CPUidle: Added peripheral pwrdm checks into bm check

2010-02-12 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Following checks are made (and their reasoning): - If CAM domain is active, prevent idle completely * CAM pwrdm does not have HW wakeup capability - If PER is likely to remain on, prevent PER off * Saves on unnecessary context save/restore - If CORE

[PATCHv5] OMAP3: Serial: Improved sleep logic

2010-02-17 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com This patch contains following improvements: - Only RX interrupt will now kick the sleep prevent timer - TX fifo status is checked before disabling clocks, this will prevent on-going transmission to be cut - Smartidle is now enabled/disabled only while

[PATCHv6] OMAP3: Serial: Improved sleep logic

2010-02-25 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com This patch contains following improvements: - Only RX interrupt will now kick the sleep prevent timer - TX fifo status is checked before disabling clocks, this will prevent on-going transmission to be cut - Smartidle is now enabled/disabled only while

[PATCHv2 0/11] Misc fixes [for PM branch]

2009-10-23 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com This set is now missing following patches compared to the previous set: - IVA2 suspend fix - Dynamic check for core target state - Block core off when DSS active - Next state check for IVA2, USB and PER - USBHOST powerdomain force to sleep after warm reset

[PATCH 02/11] OMAP3: Disable Smartreflex before pwrdm enters RET

2009-10-23 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Smartreflex for the corresponding powerdomain (MPU/CORE) must be disabled before the domain enters retention, otherwise the device may hang. This is caused by overlapping smartreflex / auto retention command on the voltage channel resulting in incorrect

[PATCH 04/11] OMAP3: PM: Ack pending interrupts before entering suspend

2009-10-23 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Suspending drivers may still generate interrupts just before their suspend is completed. Any pending interrupts here will prevent sleep. Signed-off-by: Tero Kristo tero.kri...@nokia.com --- arch/arm/mach-omap2/irq.c |6 ++ arch/arm

[PATCH 03/11] OMAP2/3: DMTIMER: Clear pending interrupts when stopping a timer

2009-10-23 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com OMAP GP timers keep running for a few cycles after they are stopped, which can cause the timer to expire and generate an interrupt. The pending interrupt will prevent e.g. OMAP from entering suspend, thus we ack it manually. Signed-off-by: Tero Kristo

[PATCH 06/11] OMAP3: PM: Disable interrupt controller AUTOIDLE before WFI

2009-10-23 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com OMAP interrupt controller goes to unknown state when there is right combination of l3,l4 sleep/wake-up transitions, l4 autoidle in interrupt controller and some interrupt. When this happens, interrupts are not delivered to ARM anymore and ARM will remain

[PATCH 07/11] OMAP3: Fixed ARM aux ctrl register save/restore

2009-10-23 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Current value is stored on SDRAM and it is written back during wakeup. Previously a static value of 0x72 was written there. Signed-off-by: Tero Kristo tero.kri...@nokia.com Signed-off-by: Jouni Hogander jouni.hogan...@nokia.com --- arch/arm/mach-omap2

[PATCH 08/11] OMAP3: PM: Disabled I2C4 repeated start operation mode

2009-10-23 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Repeated start forces I2C4 pads low during idle, which increases power consumption through external pull-ups. On the other hand, this change increases I2C4 command latencies a bit. Signed-off-by: Tero Kristo tero.kri...@nokia.com --- arch/arm/mach-omap2

[PATCH 05/11] OMAP3: PM: Enable system control module autoidle

2009-10-23 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com This saves some power. Signed-off-by: Mika Westerberg ext-mika.1.westerb...@nokia.com --- arch/arm/mach-omap2/pm34xx.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c

[PATCH 09/11] OMAP3: PM: Added support for L2 aux ctrl register save and restore

2009-10-23 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com This patch adds a save and restore mechanism for ARM L2 auxiliary control register. This feature is enabled via Kconfig option OMAP3_L2_AUX_SECURE_SAVE_RESTORE and the service ID for PPA can be provided via option OMAP3_L2_AUX_SECURE_SERVICE_SET_ID

[PATCH 10/11] OMAP3: PM: Write voltage and clock setup times dynamically in idle loop

2009-10-23 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com It is suggested by TI (SWPA152 February 2009) to write clksetup, voltsetup_time1, voltsetup_time2, voltsetup2 dynamically in idle loop. This allows us to optimize the voltage + clock setup times according to the used power save mode. Signed-off-by: Tero

[PATCH 01/11] OMAP3: PM: Fixed padconf save done check

2009-10-23 Thread Tero Kristo
From: Carlos Chinea carlos.chi...@nokia.com Previously the operator precedence dictated that the delay loop was exited immediately, potentially causing off-mode to be entered too soon. Signed-off-by: Carlos Chinea carlos.chi...@nokia.com Signed-off-by: Jouni Hogander jouni.hogan...@nokia.com ---

[PATCH 2/2] OMAP3: CPUidle: Fixed timer resolution

2009-10-26 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Previously used u32 as temporary data storage that wraps around at 4.294s. Signed-off-by: Tero Kristo tero.kri...@nokia.com --- arch/arm/mach-omap2/cpuidle34xx.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2

[PATCH 1/2] OMAP3: PM: Check BM for C2 state

2009-10-26 Thread Tero Kristo
From: De-Schrijver Peter peter.de-schrij...@nokia.com C2 can't be entered while we have bus activity. Signed-off-by: Peter 'p2' De Schrijver peter.de-schrij...@nokia.com --- arch/arm/mach-omap2/cpuidle34xx.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git

[PATCH 0/2] OMAP3: Cpuidle fixes

2009-10-26 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Following patches apply on top of PM branch. They implement a couple of small fixes for cpuidle. Timer resolution patch probably does not change anything until kernel cpuidle is fixed to support longer timers (there are some pending patches

[PATCH 4/4] RX51: Fix SDRAM RFR timings calculation

2009-10-26 Thread Tero Kristo
From: Kalle Jokiniemi kalle.jokini...@digia.com sdrc_ps_to_ticks introduced some unnecessary rounding error to SDRC_RFR value calculation. Fixed by adding 10^3 more accuracy before division and skipping the sdrc_ps_to_ticks call. Problem-reported-by: Jukka S. Laitinen jukka.s.laiti...@nokia.com

[PATCH 1/4] RX51: Add SDRAM configs for different OPPs

2009-10-26 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com This modification is needed by DVFS. Signed-off-by: Tero Kristo tero.kri...@nokia.com Signed-off-by: Jouni Hogander jouni.hogan...@nokia.com --- arch/arm/mach-omap2/board-rx51-sdram.c | 84 ++-- 1 files changed, 47 insertions

[PATCH 0/4] RX51: SDRAM settings changes

2009-10-26 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Following patch set fixes a few issues with current RX51 board SDRAM settings. Applies on top of PM branch. -Tero -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body of a message to majord...@vger.kernel.org More majordomo

[PATCH 3/4] RX51: SDRC: change timing values to follow generic memory requirements

2009-10-26 Thread Tero Kristo
From: Onkalo Samu.P samu.p.onk...@nokia.com Current memory parameters are slightly off-spec. Also, a couple of unused functions removed from code. Signed-off-by: Samu Onkalo samu.p.onk...@nokia.com --- arch/arm/mach-omap2/board-rx51-sdram.c | 130 ++-- 1 files

[PATCH 2/4] RX51: SDRAM: Cleanup the init code

2009-10-26 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Removed a few unused functions + macro definitions + variables from the code. Signed-off-by: Tero Kristo tero.kri...@nokia.com --- arch/arm/mach-omap2/board-rx51-sdram.c | 51 1 files changed, 0 insertions(+), 51

[PATCH] RX51: Add SDRAM init

2009-10-27 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com This patch adds board specific SDRAM init for RX51. This patch is a collaboration of work from following people: Juha Yrjola: Original code Lauri Leukkunen: Port to RX51 Tero Kristo: Support for multiple OPP:s, merge of patches Samu Onkalo: Fixed SDRAM

[PATCH] OMAP3: Clock: Fixed dpll3_m2x2 rate calculation

2009-10-28 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Current calculation does not take into account any changes to M2 divisor, and thus when we change VDD2 OPP, dpll3_m2x2 rate does not change. Fixed by re-routing dpll3_m2x2 parent to dpll3_m2. Signed-off-by: Tero Kristo tero.kri...@nokia.com --- arch/arm

[PATCH 1/5] OMAP3: Fixed ARM aux ctrl register save/restore

2009-11-12 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Current value is stored on SDRAM and it is written back during wakeup. Previously a static value of 0x72 was written there. Signed-off-by: Tero Kristo tero.kri...@nokia.com --- arch/arm/mach-omap2/sleep34xx.S | 13 + 1 files changed, 9

[PATCH 4/5] OMAP3: PM: Write voltage and clock setup times dynamically in idle loop

2009-11-12 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com It is suggested by TI (SWPA152 February 2009) to write clksetup, voltsetup_time1, voltsetup_time2, voltsetup2 dynamically in idle loop. This allows us to optimize the voltage + clock setup times according to the used power save mode. Signed-off-by: Tero

[PATCH 5/5] OMAP3: PM: Disable OTG autoidle when waking up from off-mode

2009-11-12 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com OMAP3 sleep can be prevented in some cases where OTG autoidle is enabled. This patch force disables autoidle during wakeup from off-mode. See omap errata 1.164. This fix can't be done in driver level, as off-mode entry resets and enables the autoidle bit

[PATCH 3/5] OMAP3: PM: Added support for L2 aux ctrl register save and restore

2009-11-12 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com This patch adds a save and restore mechanism for ARM L2 auxiliary control register. The feature is enabled by default for GP devices, but for HS/EMU devices the user must enable the service and define the PPA service ID to be used for setting L2 aux ctrl

[PATCHv3 0/5] Misc fixes [for PM branch]

2009-11-12 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com This set contains following changes compared to previous one: 1) Removed accepted patches 2) ARM aux ctrl and L2 aux ctrl register save/restore uses now arm_context as save area 3) Added more detail to I2C4 repeated start disable fix description 4

[PATCH 2/5] OMAP3: PM: Disabled I2C4 repeated start operation mode

2009-11-12 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Repeated start forces I2C4 pads low during idle, which increases power consumption through external pull-ups. On the other hand, this change increases I2C4 command latencies somewhat due to additional master code sent in the beginning of each I2C4 command

[PATCH 0/6] Idle status patches revisited

2009-11-12 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Following set implements checks for idle states of powerdomains, and changes target cpuidle state according to those. This also includes as a cleanup removal of some hacks from omap_sram_idle(), and also introduces INACTIVE / ON state support

[PATCH 4/6] OMAP3: PM: Removed PER + CORE state hacking from omap_sram_idle

2009-11-12 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com This should be moved inside cpuidle to simplify design. Signed-off-by: Tero Kristo tero.kri...@nokia.com --- arch/arm/mach-omap2/pm34xx.c | 18 ++ 1 files changed, 2 insertions(+), 16 deletions(-) diff --git a/arch/arm/mach-omap2

[PATCH 2/6] OMAP3: PM: Added support for INACTIVE and ON states for powerdomains

2009-11-12 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Previously omap_sram_idle() did not know about the difference between ON and INACTIVE states, which complicated the state handling in these cases. Signed-off-by: Tero Kristo tero.kri...@nokia.com --- arch/arm/mach-omap2/pm34xx.c | 14 +++--- 1

[PATCH 6/6] OMAP3: CPUidle: Added peripheral pwrdm checks into bm check

2009-11-12 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Following checks are made (and their reasoning): - If CAM domain is active, prevent idle completely * CAM pwrdm does not have HW wakeup capability - If PER is likely to remain on, prevent PER off * Saves on unnecessary context save/restore - If CORE

[PATCH 1/6] OMAP: Powerdomains: Add support for INACTIVE state on pwrdm level

2009-11-12 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Currently only ON, RET and OFF are supported, and ON is arguably broken as it allows the powerdomain to enter INACTIVE state unless idle is prevented. Now, pwrdm code prevents idle if ON is selected, and also adds support for INACTIVE. This simplifies

[PATCH 3/6] OMAP3: CPUidle: Fixed support for ON / INACTIVE states

2009-11-12 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com New powerdomain code support for INACTIVE state removes the need to control clockdomains directly from cpuidle. Also, cpuidle state definitions can now directly support ON / INACTIVE simplifying the implementation. Signed-off-by: Tero Kristo tero.kri

[PATCH 5/6] OMAP: Powerdomains: Add support for checking if pwrdm can idle

2009-11-12 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com pwrdm_can_idle(pwrdm) will check if the specified powerdomain can enter idle. This is done by checking the current fclk enable bits. This call can be used e.g. inside cpuidle to decide which power states core and mpu should enter during idle

[PATCH 0/2] VFP context save/restore support for OMAP3

2009-11-19 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com These two patches add support for VFP context save and restore. These patches are a collaboration from several people (listed in CC), I have mainly split the original patch in two parts (one generic ARM, one for OMAP3 PM), and optimized the code a bit

[PATCH 2/2] OMAP3: Implemented VFP restore/save context

2009-11-19 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com VFP save context is called before MPU/NEON off. Restore is not needed as the next VFP trap will restore context automatically. Uses the support routine implemented in arch/arm/vfp/vfpmodule.c. Signed-off-by: Tero Kristo tero.kri...@nokia.com Cc: Vishwanath

[PATCH 1/2] ARM: Implemented support for VFP PM context saving

2009-11-19 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com In some ARM architectures, like OMAP3, the VFP context can be lost during dynamic sleep cycle. For this purpose, there is now a function vfp_pm_save_context() that should be called before the VFP is assumed to lose context. Next VFP trap will then restore

[PATCH 2/2] OMAP3: Implemented VFP restore/save context

2009-11-24 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com VFP save context is called before MPU/NEON off. Restore is not needed as the next VFP trap will restore context automatically. Uses the support routine implemented in arch/arm/vfp/vfpmodule.c. Signed-off-by: Tero Kristo tero.kri...@nokia.com Acked-by: Tony

[PATCH 0/2] VFP save/restore for OMAP3

2009-11-24 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Hi, The following two patches are needed by OMAP3 to save/restore VFP context during off-mode. Patch 1 adds generic support inside ARM VFP code, and the second one adds the necessary hooks into OMAP3 power management code. --Tero -- To unsubscribe from

[PATCH 1/2] ARM: Implemented support for VFP PM context saving

2009-11-24 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com In some ARM architectures, like OMAP3, the VFP context can be lost during dynamic sleep cycle. For this purpose, there is now a function vfp_pm_save_context() that should be called before the VFP is assumed to lose context. Next VFP trap will then restore

[PATCHv2 2/2] OMAP3: Implemented VFP restore/save context

2009-12-03 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com VFP save context is called before MPU/NEON off. Restore is not needed as the next VFP trap will restore context automatically. Uses the support routine implemented in arch/arm/vfp/vfpmodule.c. Signed-off-by: Tero Kristo tero.kri...@nokia.com Cc: Vishwanath

[PATCHv2 1/2] ARM: VFP: Fixed suspend and added context save support

2009-12-03 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com In some ARM architectures, like OMAP3, the VFP context can be lost during dynamic sleep cycle. For this purpose, there is now a function vfp_pm_save_context() that should be called before the VFP is assumed to lose context. Next VFP trap will then restore

[PATCHv2 0/2] VFP context save/restore for OMAP3

2009-12-03 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Contains following fixes compared to previous version: - vfp_pm_suspend uses the same routine as context save - uses get_cpu / put_cpu to get current CPU id - removed restore context call completely from OMAP3 idle (not needed) -- To unsubscribe from

[PATCHv2 2/6] OMAP3: PM: Added support for INACTIVE and ON states for powerdomains

2009-12-04 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Previously omap_sram_idle() did not know about the difference between ON and INACTIVE states, which complicated the state handling in these cases. Now, the following changes are done in the idle logic: - Check for IO-chain arming is changed to reflect

[PATCHv2 0/6] Idle status patches revisited

2009-12-04 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Improvements compared to previous set: - Fixed wrong pwrdm state check on IO chain arming on patch 2 - Improved changelog on patch 2 4 - Moved FCLK checks inside clockdomain code from powerdomain code in patch 5 - Some style changes on patch 6 Still, I

[PATCHv2 1/6] OMAP: Powerdomains: Add support for INACTIVE state on pwrdm level

2009-12-04 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Currently only ON, RET and OFF are supported, and ON is arguably broken as it allows the powerdomain to enter INACTIVE state unless idle is prevented. Now, pwrdm code prevents idle if ON is selected, and also adds support for INACTIVE. This simplifies

[PATCHv2 4/6] OMAP3: PM: Removed pwrdm state hacking from omap_sram_idle

2009-12-04 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Following hacks will be moved inside cpuidle in subsequent patch: - CAM domain prevents idle completely - PER should not go OFF if core remains active This simplifies the design and allows cpuidle to keep better track of which power states system

[PATCHv2 5/6] OMAP: Powerdomains: Add support for checking if pwrdm/clkdm can idle

2009-12-04 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com pwrdm_can_idle(pwrdm) will check if the specified powerdomain can enter idle. This is done by checking all clockdomains under the powerdomain if they can idle also. omap2_clkdm_can_idle(clkdm) will check if the specified clockdomain can enter idle

[PATCHv2 3/6] OMAP3: CPUidle: Fixed support for ON / INACTIVE states

2009-12-04 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com New powerdomain code support for INACTIVE state removes the need to control clockdomains directly from cpuidle. Also, cpuidle state definitions can now directly support ON / INACTIVE simplifying the implementation. Signed-off-by: Tero Kristo tero.kri

[PATCHv2 6/6] OMAP3: CPUidle: Added peripheral pwrdm checks into bm check

2009-12-04 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Following checks are made (and their reasoning): - If CAM domain is active, prevent idle completely * CAM pwrdm does not have HW wakeup capability - If PER is likely to remain on, prevent PER off * Saves on unnecessary context save/restore - If CORE

[PATCH] Smartreflex: Avoid unnecessary spam

2009-12-08 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Current warning messages will be constantly printed out during normal operation if smartreflex autocompensation is disabled. Signed-off-by: Tero Kristo tero.kri...@nokia.com --- arch/arm/mach-omap2/smartreflex.c | 10 +- 1 files changed, 1

[PATCH] PM: Fix a bug with noncore dpll rate calculation

2008-11-19 Thread Tero Kristo
Noncore dpll can enter autoidle state, in which case the rate calculation fails. Fixed by checking dpll mode instead of idle status. Signed-off-by: Tero Kristo [EMAIL PROTECTED] --- arch/arm/mach-omap2/clock.c | 16 +++- arch/arm/mach-omap2/cm-regbits-34xx.h |2 ++ 2

[PATCH] PM: Added three PLL registers to the PRCM context save

2008-11-19 Thread Tero Kristo
These registers are now also saved: CM_CLKSEL4 CM_CLKEN CM_CLKEN2 Signed-off-by: Tero Kristo [EMAIL PROTECTED] --- arch/arm/mach-omap2/prcm.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/prcm.c b/arch/arm/mach

[PATCH] OMAP3: Fixes for suspend / resume GPIO wake-up handling

2008-11-26 Thread Tero Kristo
Signed-off-by: Tero Kristo [EMAIL PROTECTED] --- arch/arm/plat-omap/gpio.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/plat-omap/gpio.c b/arch/arm/plat-omap/gpio.c index f4ec3af..62349fd 100644 --- a/arch/arm/plat-omap/gpio.c +++ b/arch/arm/plat-omap

[PATCH] PM: Added suspend target state control to debugfs for OMAP3

2008-11-26 Thread Tero Kristo
Target state can be read / programmed via files under: [debugfs]/pm_debug/[pwrdm]/suspend Signed-off-by: Tero Kristo [EMAIL PROTECTED] --- arch/arm/mach-omap2/pm-debug.c | 30 -- arch/arm/mach-omap2/pm.h |4 arch/arm/mach-omap2/pm34xx.c | 24

  1   2   3   4   5   6   7   8   9   10   >