[PATCH PM] OMAP: UART: Add sysfs interface for adjusting UART sleep timeout

2008-12-09 Thread Jouni Hogander
This patch makes it possible to change uart sleep timeout. New sysfs entry is added (/sys/devices/platform/serial8250.0/sleep_timeout) Also default timeout is increased to 5 second to make serial console more usable. Original patch was written by Tero Kristo some time ago. Signed-off-by: Jouni

[PATCH 1/2] SDTI: Fix sdti to use right clocks from clockfw

2009-01-08 Thread Jouni Hogander
SDTI uses pclk and pclkx2 instead of emu_per_alwon_ck. This patch fixes sdti to use those clocks. Signed-off-by: Jouni Hogander --- drivers/misc/sti/sdti.c | 47 +-- 1 files changed, 37 insertions(+), 10 deletions(-) diff --git a/drivers/misc/sti

[PATCH 2/2] OMAP3: PM: Emu_pwrdm is switched off by hardware even when sdti is in use

2009-01-08 Thread Jouni Hogander
dm is switched off on boot by software when it is not used. Signed-off-by: Jouni Hogander --- arch/arm/mach-omap2/clockdomains.h |6 +- arch/arm/mach-omap2/pm34xx.c | 11 ++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/clockdomains.h b/arc

[PATCH 0/2] SDTI fixes

2009-01-08 Thread Jouni Hogander
These patches fixes the problem with sdti-console, where it stops to work after PM is initialized. arch/arm/mach-omap2/clockdomains.h |6 +++- arch/arm/mach-omap2/pm34xx.c | 12 +++-- drivers/misc/sti/sdti.c| 48 - 3 files changed, 52

[PATCH PM 0/1] OMAP3: MCSPI: Fix to spi save/restore

2009-02-03 Thread Jouni Hogander
There is a bug in SPI save/restore. This patch is supposed to fix that. omap2_mcspi.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordom

[PATCH PM 1/1] OMAP3 McSPI: Fix to restore chconf for all CSs

2009-02-03 Thread Jouni Hogander
This patch saves/restores chconf0 for all CSs instead of only for CS0 Signed-off-by: Jouni Hogander --- drivers/spi/omap2_mcspi.c | 14 +++--- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/spi/omap2_mcspi.c b/drivers/spi/omap2_mcspi.c index a7ee3b7..45632dd

[PATCH PM 0/1] OMAP3: PM: Fix to prcm save/restore

2009-02-05 Thread Jouni Hogander
This patch should fix the problem in locking DPLL2 after wake-up from OFF mode: clock: dpll2_ck failed transition to 'locked' clock: dpll2_ck failed transition to 'locked' clock: dpll2_ck failed transition to 'locked' clock: dpll2_ck failed transition to 'locked' prcm.c |6 +- 1 file chang

[PATCH PM 1/1] OMAP3: PM: Save and restore also CM_CLKSEL1_PLL_IVA2

2009-02-05 Thread Jouni Hogander
CM_CLKSEL1_PLL_IVA2 is not saved/restored currently. This patch is adding save and restore for it. Signed-off-by: Jouni Hogander --- arch/arm/mach-omap2/prcm.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/prcm.c b/arch/arm/mach-omap2/prcm.c

[PATCH 1/1] OMAP3: CLOCK: Remove few unnecessary clocks

2009-02-20 Thread Jouni Hogander
dpllx_m2x2_ck parent is dpllx_m2_ck. So remove few useless clocks and and use right parent for dpllx_m2x2_ck. Signed-off-by: Jouni Hogander --- arch/arm/mach-omap2/clock34xx.h | 31 ++- 1 files changed, 2 insertions(+), 29 deletions(-) diff --git a/arch/arm/mach

[PATCH] OMAP3: GPIO: Enable debounce clock only when debounce is enabled v3.

2008-09-16 Thread Jouni Hogander
domain aren't capable to generate wake-up if PER domain is in sleep state. For this iopad wake-up should be used and needed pad configuration should be done. Enabling iopad wake-up for gpio pads is left for bootloader or omap mux configuration in kernel. Signed-off-by: Jouni Hogander <[EMAIL

[PATCH PM-0] OMAP3: I2C: Implement i2c save/restore

2008-09-17 Thread Jouni Hogander
Save and restore needed registers instead of re-init. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- drivers/i2c/busses/i2c-omap.c | 47 +++-- 1 files changed, 31 insertions(+), 16 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drive

[PATCH PM-0] OMAP3: PM: Remove extra prcm save from idle loop

2008-09-18 Thread Jouni Hogander
Prcm registers are saved two times in case of core OFF. First one can be removed. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/pm34xx.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach

[PATCH PM-20081106] OMAP3: UART: Make sure that uart clocks are enabled when needed

2008-11-12 Thread Jouni Hogander
Current implementation makes it possible that printouts are written into UART while its clocks are disabled. This causes freeze. This patch contains possible fix for this. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/pm34xx.c |6 ++ arch/ar

[PATCH] OMAP3: PM: Check in set_pwrdm_state that target state is supported by pwrdm

2008-11-14 Thread Jouni Hogander
Check that wanted sleep state is supported by powerdomain. If it is not supported, then use next lowest supported state. Check also on suspend that state of pwrdm was lower or equal. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/pm34xx.c |9 +++-- 1

[PATCH] OMAP3: PM: Check in set_pwrdm_state that target state is supported by pwrdm v2

2008-11-17 Thread Jouni Hogander
Check that wanted sleep state is supported by powerdomain. If it is not supported, then use next lowest supported state. Check also on suspend that state of pwrdm was lower or equal. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/pm34xx.c |9 +++-- 1

[PATCH PM-20081106 3/3] OMAP2: PM: Fix omap2 build

2008-11-18 Thread Jouni Hogander
This patch fixes build in case of omap2. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/pm.h |4 arch/arm/mach-omap2/pm24xx.c |4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/pm.h b/arch/arm/mach-omap

[PATCH PM-20081106 1/3] OMAP3: PM: Do not build suspend code if SUSPEND is not enabled

2008-11-18 Thread Jouni Hogander
Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/pm34xx.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c index d2330c4..d499dc7 100644 --- a/arch/arm/mach-omap2/pm34xx.c +++

[PATCH PM-20081106 2/3] OMAP: PM: Build fails if PM is not enabled

2008-11-18 Thread Jouni Hogander
This patch fixes build in case if PM is not enabled Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/control.c |6 -- arch/arm/mach-omap2/serial.c | 32 +++- arch/arm/plat-omap/Kconfig |3 ++-

[PATCH] OMAP: MCSPI: Enable mcspi wake-up

2008-11-18 Thread Jouni Hogander
Currently mcspi wake-ups are not enabled. This might cause case where OMAP is not waking up on mcspi events. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- drivers/spi/omap2_mcspi.c | 11 +-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/drive

[PATCH] OMAP: MCSPI: Enable mcspi wake-up v2.

2008-11-18 Thread Jouni Hogander
Currently mcspi wake-ups are not enabled. This might cause case where OMAP is not waking up on mcspi events. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- drivers/spi/omap2_mcspi.c | 11 +-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/drive

[PATCH PM-20081106] OMAP: PM: Few fixes to uart clock handling

2008-11-19 Thread Jouni Hogander
Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/serial.c | 11 +-- 1 files changed, 1 insertions(+), 10 deletions(-) diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c index ef30d8d..b06b797 100644 --- a/arch/arm/mach-omap2/serial.c

[PATCH PM-20081119] OMAP: PM: Check both, IOPAD and UART wakeup always

2008-11-20 Thread Jouni Hogander
Uart RX might not always generate IOPAD wake-up. E.g. IOPAD is not enabled or core was not in sleep state. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/serial.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/seri

[PATCH] OMAP: SERIAL: Provide function to enable/disable uart clocks

2008-04-30 Thread Jouni Hogander
This patch adds common function to enable/disable omap2/3 uart clocks. Enabled uarts are passed by bootloader in atags and clocks for these enabled uarts are touched. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/serial.c

[PATCH 1/9] 24XX: PM: Move pm.c to pm24xx.c and sleep.S to sleep24xx.S

2008-05-16 Thread Jouni Hogander
Rename filenames to prepare 34XX additions. Compile omap2 code only if CONFIG_ARCH_OMAP2 is defined. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/Makefile|4 +- arch/arm/mach-omap2/pm.c| 845 --- arch/ar

[PATCH 4/9] OMAP: Add new function to check wether there is irq pending

2008-05-16 Thread Jouni Hogander
Add common omap2/3 function to check wether there is irq pending. Switch to use it in omap2 pm code instead of its own. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/irq.c| 29 +++-- arch/arm/mach-omap2/pm24xx.c

[PATCH 2/9] 24XX: PM: Move debugging related code to pm-debug.c

2008-05-16 Thread Jouni Hogander
Move debugging and serial console handling to pm-debug.c. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/Makefile |2 + arch/arm/mach-omap2/pm-debug.c | 275 arch/arm/mach-omap2/pm.h | 31 + arch/ar

[PATCH 6/9] 34XX: Suspend: Use same naming convention in sleep34xx.S as in sleep24XX.S

2008-05-16 Thread Jouni Hogander
OMAP34XX_PRM_REGADDR style definitions. Add omap34xx_cpu_suspend and omap34xx_cpu_suspend_sz to include/asm-arm/arch-omap/pm.h Do necessary modifications to be able to use arch/arm/mach-omap2/prm.h and include/asm-arm/arch-omap/control.h ins asm files. Signed-off-by: Jouni Hogander <[EMAIL PROTEC

[PATCH 3/9] PM: Add pm.c file for omap2 and omap3 common code

2008-05-16 Thread Jouni Hogander
Add pm.c file for common code and move handling of sleep_while_idle attribute and sleep_block to it. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/Makefile |2 + arch/arm/mach-omap2/pm.c | 91 ++ arch/arm/mach

[PATCH 5/9] 34XX: Suspend: Take suspend sram code from ti cdp kernel

2008-05-16 Thread Jouni Hogander
From: Karthik Dasu <[EMAIL PROTECTED]> Take sram code from ti cdp kernel for 34XX suspend. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/sleep34xx.S | 534 +++ 1 files changed, 534 insertions(+), 0 deletions(-) create

[PATCH 7/9] 34XX: Add miscellaneous definitions related to 34xx

2008-05-16 Thread Jouni Hogander
Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/cm-regbits-34xx.h |7 +++ arch/arm/mach-omap2/prm-regbits-34xx.h |9 + arch/arm/mach-omap2/prm.h | 24 +--- include/asm-arm/arch-omap/irqs.h |1 + 4

[PATCH 9/9] OMAP3430SDP: Enable config options CONFIG_OMAP_RESET_CLOCKS and CONFIG_SUSPEND

2008-05-16 Thread Jouni Hogander
Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/configs/omap_3430sdp_defconfig |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/configs/omap_3430sdp_defconfig b/arch/arm/configs/omap_3430sdp_defconfig index 0fef29d..9e4af26 100644 --- a/ar

[PATCH 8/9] 34XX: PM: Initial version of suspend and dynamic retention

2008-05-16 Thread Jouni Hogander
This is initial version of suspend and dynamic retention for 34xx. Omap is tried to put to full retention on suspend and pm_idle. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/Makefile |3 + arch/arm/mach-omap2/pm.c |4 +- arch/arm/mach-omap

[PATCH 02/10] 34XX: PM: Workaround for uart clocks

2008-05-16 Thread Jouni Hogander
This patch is needed until we have uart driver which disables uart clocks when they are not needed. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/pm34xx.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/pm34xx.c

[PATCH 01/10] 34XX: PM: Workaround for taking care of gpio clocks

2008-05-16 Thread Jouni Hogander
In omap3 gpios 2-6 are in per domain. Clocks for these should be disabled. This patch is needed until gpio driver disables gpio clocks when they are not needed. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/pm34xx.c | 48 +++

[PATCH 03/10] 34XX: PM: Workaround for missing smartreflex driver

2008-05-16 Thread Jouni Hogander
This workaround is needed because we don't have smartreflex driver. These configurations are taken from TI's reference code. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/pm34xx.c | 67 ++ drivers/i2c/chip

[PATCH 08/10] 34XX: PM: Workaround to disable mmc

2008-05-16 Thread Jouni Hogander
Current hsmmc is not pm friendly. Disable it because it prevents omap3 retention Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/configs/omap_3430sdp_defconfig |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/configs/omap_3430sdp_defconfig

[PATCH 05/10] 34XX: PM: Workaround to enable autoidle for clocks and plls

2008-05-16 Thread Jouni Hogander
This workaround enables autoidle for interface clocks and plls. Also automatic control of external oscillator through sys_clkreq is enabled. I think these should be done by clockfw. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/pm34xx.c

[PATCH 09/10] 34XX: PM: Workaround for non-existing usb clockdomain

2008-05-16 Thread Jouni Hogander
There is no usb clkdm in core powerdomain in chip revisions greater that es1, but hw supervised mode needs to be enabled for it. Othervise core powerdomain wont enter retention. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/pm34xx.c |9 + 1 files c

[PATCH 07/10] 34XX: PM: Workaround to check wether any fck is active before entering sleep

2008-05-16 Thread Jouni Hogander
This workaround shouldn't be needed when all drivers are configuring their sysconfig registers properly and setting their requirements through omap-pm-srf. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/pm34xx.c | 39 +

[PATCH 10/10] 34XX: PM: Workaround to mask uart clocks when checking active clocks

2008-05-16 Thread Jouni Hogander
This workaround mask uart clocks when checking for active clocks. This has an effect that serial console stops to work as dynamic sleep is enabled. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/pm34xx.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)

[PATCH 04/10] PRCM: Workaround for pwrdn_x control

2008-05-16 Thread Jouni Hogander
Clock path should be powered down only after all it's clients are properly disabled. Generally we don't have working implementation for checking wether some clock is enabled or disabled. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/clock.c |7

[PATCH 06/10] 34XX: PM: Workaround to reset all wkdeps

2008-05-16 Thread Jouni Hogander
This workaround is needed until powerdomain code resets wkdeps. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/pm34xx.c | 20 ++-- 1 files changed, 18 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach

[PATCH] PRCM: OMAP3: Fix to wrongly modified omap2_clk_wait_ready

2008-06-09 Thread Jouni Hogander
omap2_clk_wait_ready was wrongly modified to check registers contents. This fix changes it back to check addresses. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/clock.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach

[PATCH 1/8] 34XX: PM: Workaround for taking care of gpio clocks

2008-06-17 Thread Jouni Hogander
In omap3 gpios 2-6 are in per domain. Clocks for these should be disabled. This patch is needed until gpio driver disables gpio clocks when they are not needed. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/pm34xx.c | 48 +++

[PATCH 3/8] 34XX: PM: Workaround for missing smartreflex driver

2008-06-17 Thread Jouni Hogander
This workaround is needed because we don't have smartreflex driver. These configurations are taken from TI's reference code. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/pm34xx.c | 74 ++ drivers/i2c/chip

[PATCH 2/8] PRCM: Workaround for pwrdn_x control

2008-06-17 Thread Jouni Hogander
Clock path should be powered down only after all it's clients are properly disabled. Generally we don't have working implementation for checking wether some clock is enabled or disabled. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/clock.c | 11

[PATCH 5/8] 34XX: PM: Workaround to reset all wkdeps

2008-06-17 Thread Jouni Hogander
This workaround is needed until powerdomain code resets wkdeps. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/pm34xx.c | 20 ++-- 1 files changed, 18 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach

[PATCH 6/8] 34XX: PM: Workaround to check wether any fck is active before entering sleep

2008-06-17 Thread Jouni Hogander
This workaround shouldn't be needed when all drivers are configuring their sysconfig registers properly and setting their requirements through omap-pm-srf. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/pm34xx.c | 39 +

[PATCH 8/8] Added sleep support to UART

2008-06-17 Thread Jouni Hogander
x27;t enter retention. Also moved code from pm-debug.c to serial.c, and made pm24xx.c use this new implementation. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/pm-debug.c | 132 arch/arm/mach-omap2/pm.c | 37 +++

[PATCH 4/8] 34XX: PM: Workaround to enable autoidle for clocks and plls

2008-06-17 Thread Jouni Hogander
This workaround enables autoidle for interface clocks and plls. Also automatic control of external oscillator through sys_clkreq is enabled. I think these should be done by clockfw. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/pm34xx.c

[PATCH 7/8] 34XX: PM: Workaround to disable mmc

2008-06-17 Thread Jouni Hogander
Current hsmmc is not pm friendly. Disable it because it prevents omap3 retention Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/configs/omap_3430sdp_defconfig |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/configs/omap_3430sdp_defconfig

[PATCH] PRCM: 34XX: Fix wrong shift value used in dpll4_m4x2_ck enable bit

2008-06-24 Thread Jouni Hogander
Enable bit for dpll4_m4x2_ck is OMAP3430_PWRDN_DSS1_SHIFT instead of OMAP3430_PWRDN_CAM_SHIFT. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/clock34xx.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/clock34xx.h

[PATCH 0/7] 34XX: PM: Workarounds to get omap3 to retention 3rd.

2008-06-25 Thread Jouni Hogander
Hi, This patch set contains all workarounds that are needed to get omap3 to retention. Also patch from Tero Kristo to get PM to work if using serial console is included in this set. Basically all patches in this set should be reverted one by one as correct fixes are implemented and applied. This

[PATCH 3/7] 34XX: PM: Workaround to reset all wkdeps

2008-06-25 Thread Jouni Hogander
This workaround is needed until powerdomain code resets wkdeps. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/pm34xx.c | 20 ++-- 1 files changed, 18 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach

[PATCH 1/7] 34XX: PM: Workaround to build omap hsmmc as a module

2008-06-25 Thread Jouni Hogander
Current omap hsmmc driver is not pm friendly. Build it as a module because it prevents omap3 retention. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/configs/omap_3430sdp_defconfig |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/c

[PATCH 6/7] 34XX: PM: Workaround for taking care of gpio clocks

2008-06-25 Thread Jouni Hogander
In omap3 gpios 2-6 are in per domain. Clocks for these should be disabled. This patch is needed until gpio driver disables gpio clocks. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/pm34xx.c| 15 +++- arch/arm/mach-omap2/sleep34xx.S

[PATCH 2/7] 34XX: PM: Workaround to enable autoidle for clocks and plls

2008-06-25 Thread Jouni Hogander
This workaround enables autoidle for interface clocks and plls. Also automatic control of external oscillator through sys_clkreq is enabled. I think these should be done by clockfw. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/pm34xx.c

[PATCH 4/7] 34XX: PM: Workaround to check wether any fck is active before entering sleep

2008-06-25 Thread Jouni Hogander
This workaround shouldn't be needed when all drivers are configuring their sysconfig registers properly and using their clocks properly. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/pm34xx.c | 31 +++ 1 files changed, 31 inser

[PATCH 5/7] OMAP: PM: Add new sysfs option for disabling clocks when entering idle

2008-06-25 Thread Jouni Hogander
There are drivers that are not disabling their clocks (gpio & uart). These clocks need to be disabled if retention/off state is wanted when idling. Before disabling them in idle loop this option needs to be checked. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-

[PATCH 7/7] Added sleep support to UART

2008-06-25 Thread Jouni Hogander
x27;t enter retention. Also moved code from pm-debug.c to serial.c, and made pm24xx.c use this new implementation. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/pm-debug.c | 132 arch/arm/mach-omap2/pm.h |8 -- ar

[PATCH 3/6] OMAP: PM: Add new sysfs option for disabling clocks when entering idle

2008-06-30 Thread Jouni Hogander
There are drivers that are not disabling their clocks (gpio & uart). These clocks need to be disabled if retention/off state is wanted when idling. Before disabling them in idle loop this option needs to be checked. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-

[PATCH 5/6] Added sleep support to UART

2008-06-30 Thread Jouni Hogander
x27;t enter retention. Also moved code from pm-debug.c to serial.c, and made pm24xx.c use this new implementation. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/pm-debug.c | 132 arch/arm/mach-omap2/pm.h |8 -- ar

[PATCH 2/6] 34XX: PM: Workaround to check wether any fck is active before entering sleep

2008-06-30 Thread Jouni Hogander
This workaround shouldn't be needed when all drivers are configuring their sysconfig registers properly and using their clocks properly. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/pm34xx.c | 31 +++ 1 files changed, 31 inser

[PATCH 4/6] 34XX: PM: Workaround for taking care of gpio clocks

2008-06-30 Thread Jouni Hogander
by leaving icks active. PER domain still enters retention together with MPU. When this happens IOPAD wake up mechanism is used for gpios. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/pm34xx.c | 58 +++-- 1 files chang

[PATCH 1/6] 34XX: PM: Workaround to reset all wkdeps

2008-06-30 Thread Jouni Hogander
This workaround is needed until powerdomain code resets wkdeps. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/pm34xx.c | 20 ++-- 1 files changed, 18 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach

[PATCH 6/6] 34XX: PM: Workaround to enable autoidle for clocks and plls

2008-06-30 Thread Jouni Hogander
: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/pm34xx.c | 120 ++ 1 files changed, 120 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c index e1799a5..2008665 100644 --- a/arch/ar

[PATCH] OMAP: DISPC: Fix to disable also interface clocks

2008-07-01 Thread Jouni Hogander
Leaving interface clocks enabled causes dss pwrdm to stay in active state when mpu is in active state. This fix puts dss to sleep state when it is not needed. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- drivers/video/omap/dispc.c | 17 + 1 files changed, 5 inse

[PATCH 1/1] OMAP: DISPC: Fix to disable also interface clocks. 2nd.

2008-07-01 Thread Jouni Hogander
Leaving interface clocks enabled causes dss pwrdm to stay in active state when mpu is in active state. This fix puts dss to sleep state when it is not needed. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- drivers/video/omap/dispc.c | 16 1 files changed, 4 inse

[RFC] OMAP3: CPUIDLE & PM: Modifications and fixes

2008-07-08 Thread Jouni Hogander
Make sure that order in idle loop is such that clocks are _really_ enabled before accessing registers (serial & gpio). This patch is meant to be applied on top of "OMAP3 CPUidle patches" patch set and "OMAP3 CPUidle patches - fixes" patch sent by Rajendra Nayak. Sig

[RFC] OMAP3: CPUIDLE & PM: Modifications and fixes. Suspend part.

2008-07-08 Thread Jouni Hogander
With this suspend also works. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/pm34xx.c | 32 ++-- 1 files changed, 6 insertions(+), 26 deletions(-) diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c index 1

[PATCH] OMAP3: CPUIDLE & PM: check_bm fix.

2008-07-08 Thread Jouni Hogander
This patch fixes problems with uart usage. omap3_enter_idle_bm was select C5 and C6 states even if there was "bus activity. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/cpuidle34xx.c | 23 +++ arch/arm/mach-omap2/pm34xx.c |2

[RFC] OMAP3: CPUIDLE & PM: Fix slow serial-console

2008-07-09 Thread Jouni Hogander
This patch fixes slowness on serial console. This patch superseeds "OMAP3: CPUIDLE & PM: check_bm fix". --- arch/arm/mach-omap2/cpuidle34xx.c |3 ++- arch/arm/mach-omap2/pm34xx.c |2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-omap2/cpuidle34xx.c b

[PATCH 2/4] PM: Workaround for taking care of gpio clocks

2008-08-14 Thread Jouni Hogander
by leaving icks active. PER domain still enters retention together with MPU. When this happens IOPAD wake up mechanism is used for gpios. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/pm34xx.c | 54 +- 1 files chang

[PATCH 1/4] 34XX: PM: Workaround to check wether any fck is active before entering sleep

2008-08-14 Thread Jouni Hogander
This workaround shouldn't be needed when all drivers are configuring their sysconfig registers properly and using their clocks properly. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/pm34xx.c | 37 + 1 files changed, 37

[PATCH 3/4] Added sleep support to UART

2008-08-14 Thread Jouni Hogander
x27;t enter retention. Also moved code from pm-debug.c to serial.c, and made pm24xx.c use this new implementation. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/pm-debug.c | 132 -- arch/arm/mach-omap2/pm.h |7

[PATCH 4/4] 34XX: PM: Workaround to enable autoidle for clocks and plls

2008-08-14 Thread Jouni Hogander
From: ext Jouni Hogander <[EMAIL PROTECTED]> This workaround enables autoidle for interface clocks and plls. Also automatic control of external oscillator through sys_clkreq is enabled. Proper fix to this is to generalize omap3_dpll_allow_idle, omap3_dpll_deny_idle, omap3_dpll_autoidle_re

[PATCH 1/4] 34XX: PM: Workaround to check wether any fck is active before entering sleep

2008-08-15 Thread Jouni Hogander
This workaround shouldn't be needed when all drivers are configuring their sysconfig registers properly and using their clocks properly. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/pm34xx.c | 37 + 1 files changed, 37

[PATCH 4/4] 34XX: PM: Workaround to enable autoidle for clocks and plls

2008-08-15 Thread Jouni Hogander
From: ext Jouni Hogander <[EMAIL PROTECTED]> This workaround enables autoidle for interface clocks and plls. Also automatic control of external oscillator through sys_clkreq is enabled. Proper fix to this is to generalize omap3_dpll_allow_idle, omap3_dpll_deny_idle, omap3_dpll_autoidle_re

[PATCH 2/4] PM: Workaround for taking care of gpio clocks

2008-08-15 Thread Jouni Hogander
by leaving icks active. PER domain still enters retention together with MPU. When this happens IOPAD wake up mechanism is used for gpios. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/pm34xx.c | 54 +- 1 files chang

[PATCH 3/4] Added sleep support to UART

2008-08-15 Thread Jouni Hogander
x27;t enter retention. Also moved code from pm-debug.c to serial.c, and made pm24xx.c use this new implementation. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- arch/arm/mach-omap2/pm-debug.c | 132 -- arch/arm/mach-omap2/pm.h |7

[PATCH] OMAP: DISPC: Fix to disable also interface clocks.

2008-08-15 Thread Jouni Hogander
-by: Jouni Hogander <[EMAIL PROTECTED]> --- drivers/video/omap/dispc.c | 23 ++- 1 files changed, 10 insertions(+), 13 deletions(-) diff --git a/drivers/video/omap/dispc.c b/drivers/video/omap/dispc.c index 3d64314..99bf355 100644 --- a/drivers/video/omap/dispc.c +++ b/d

[PATCH] OMAP: DISPC: Enable dispc wake up capability

2008-08-15 Thread Jouni Hogander
Without wakeup enable omap doesn't wake up on dispc interrupts. This causes problems in a case where mpu is in sleep state and dispc interrupt fires. Signed-off-by: Jouni Hogander <[EMAIL PROTECTED]> --- drivers/video/omap/dispc.c |4 ++-- 1 files changed, 2 insertions(+),