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

2009-10-16 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 17/17] OMAP3: PM: Force disable OTG autoidle

2009-10-16 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 boot and after wakeup from off-mode. See omap erratas 1.164 and 1.165. Signed-off-by: Tero Kristo tero.kri...@nokia.com --- arch/arm/mach

[PATCH 04/17] OMAP3: PM: Do not enable IO wake-up on boot

2009-10-16 Thread Tero Kristo
From: Jouni Hogander jouni.hogan...@nokia.com IO wake-ups are enabled/disabled in idle loop. No need to enable them on boot. Signed-off-by: Jouni Hogander jouni.hogan...@nokia.com --- arch/arm/mach-omap2/pm34xx.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git

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

2009-10-16 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. Signed-off-by: Jouni Hogander jouni.hogan...@nokia.com --- arch/arm/mach-omap2/pm34xx.c | 36

[PATCH 12/17] OMAP2/3: Do not enable AUTOIDLE in interrupt controller

2009-10-16 Thread Tero Kristo
From: Jouni Hogander jouni.hogan...@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

[PATCH] OMAP3: GPIO: Added dynamic control logic for pad wakeups

2009-10-16 Thread Tero Kristo
From: Tero Kristo tero.kri...@nokia.com Pad wakeups are now enabled if the corresponding GPIO interrupt is enabled. Applies on top of PM branch. Signed-off-by: Tero Kristo tero.kri...@nokia.com Signed-off-by: Jouni Hogander jouni.hogan...@nokia.com --- arch/arm/plat-omap/gpio.c | 22

Re: [linux-pm] Issue: Runtime API usage in wake-up device irq_handler during wakeup from system-wide-suspend.

2011-09-07 Thread Tero Kristo
Hi, On Sat, 2011-08-27 at 21:42 +0200, Alan Stern wrote: On Sat, 27 Aug 2011, Santosh wrote: On Saturday 27 August 2011 07:31 PM, Alan Stern wrote: On Sat, 27 Aug 2011, Santosh wrote: I might be wrong here, but after discussion with Govindraj on this issue, it seems there is a

Re: [linux-pm] Issue: Runtime API usage in wake-up device irq_handler during wakeup from system-wide-suspend.

2011-09-07 Thread Tero Kristo
On Wed, 2011-09-07 at 19:59 +0200, Hilman, Kevin wrote: Tero Kristo t-kri...@ti.com writes: Hi, On Sat, 2011-08-27 at 21:42 +0200, Alan Stern wrote: On Sat, 27 Aug 2011, Santosh wrote: On Saturday 27 August 2011 07:31 PM, Alan Stern wrote: On Sat, 27 Aug 2011, Santosh wrote

[PATCHv7 0/9] PRCM chain handler

2011-09-08 Thread Tero Kristo
Hello, This is a preliminary review set for the PRCM chain handler driver work. This set is still missing the PRM hwmod interaction, which should replace patches 5 and 6. I am planning to post a new series as soon as this part is done (waiting for a little bit of help from Paul here.) Anyway,

[PATCHv7 3/9] OMAP2+: hwmod: Add API to check IO PAD wakeup status

2011-09-08 Thread Tero Kristo
From: R, Govindraj govindraj.r...@ti.com Add API to determine IO-PAD wakeup event status for a given hwmod dynamic_mux pad. Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/mux.c| 30 ++ arch/arm/mach-omap2/mux.h

[PATCHv7 2/9] OMAP2+: hwmod: Add API to enable IO ring wakeup.

2011-09-08 Thread Tero Kristo
From: R, Govindraj govindraj.r...@ti.com Add API to enable IO pad wakeup capability based on mux dynamic pad and wake_up enable flag available from hwmod_mux initialization. Use the wakeup_enable flag and enable wakeup capability for the given pads. Wakeup capability will be enabled/disabled

[PATCHv7 5/9] TEMP: power: omap-prm: added prcm events

2011-09-08 Thread Tero Kristo
Added wakeup and io event definitions for the PRCM interrupt handler. This should eventually be generated from PRM hwmod data. Signed-off-by: Tero Kristo t-kri...@ti.com --- drivers/power/omap_prm.c | 34 +++--- 1 files changed, 31 insertions(+), 3 deletions

[PATCHv7 1/9] power: add omap prm driver skeleton

2011-09-08 Thread Tero Kristo
This driver will eventually support OMAP soc PRM module features, e.g. PRCM chain interrupts. Signed-off-by: Tero Kristo t-kri...@ti.com --- drivers/power/Kconfig|7 drivers/power/Makefile |1 + drivers/power/omap_prm.c | 83 ++ 3

[PATCHv7 4/9] power: omap-prm: added prcm chain interrupt handler

2011-09-08 Thread Tero Kristo
The implementation in this patch still requires the irq_setup to be done properly, and also lacks the supported interrupts. These will be added in separate patches. Signed-off-by: Tero Kristo t-kri...@ti.com --- drivers/power/omap_prm.c | 214

[PATCHv7 7/9] OMAP2+: mux: add support for PAD wakeup interrupts

2011-09-08 Thread Tero Kristo
OMAP mux now provides a service routine to parse pending wakeup events and to call registered ISR whenever active wakeups are detected. This routine is called directly from PRCM interrupt handler. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/mux.c | 37

[PATCHv7 6/9] TEMP: power: omap-prm: added omap3 static init

2011-09-08 Thread Tero Kristo
This is a temporary hack until PRM hwmod data is available. Signed-off-by: Tero Kristo t-kri...@ti.com --- drivers/power/omap_prm.c | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/power/omap_prm.c b/drivers/power/omap_prm.c index ce0a872..7d59d92 100644

[PATCHv7 8/9] omap3: pm: split prcm and wakeup event handling

2011-09-08 Thread Tero Kristo
Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/mux.c|3 +- arch/arm/mach-omap2/pm34xx.c | 104 +++--- 2 files changed, 39 insertions(+), 68 deletions(-) diff --git a/arch/arm/mach-omap2/mux.c b/arch/arm/mach-omap2/mux.c index

[PATCHv7 9/9] TEMP: serial: added mux support

2011-09-08 Thread Tero Kristo
Just for PRCM chain handler testing purposes. This should be replaced with a proper implementation. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/serial.c | 71 - 1 files changed, 69 insertions(+), 2 deletions(-) diff --git a/arch

[PATCH] irq: call also chip-irq_mask from irq_disable

2011-09-14 Thread Tero Kristo
-by: Tero Kristo t-kri...@ti.com --- kernel/irq/chip.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c index d5a3009..15597f1 100644 --- a/kernel/irq/chip.c +++ b/kernel/irq/chip.c @@ -198,10 +198,11 @@ void irq_enable(struct

Re: [PATCH] irq: call also chip-irq_mask from irq_disable

2011-09-14 Thread Tero Kristo
, as there are two alternative chip specific functions for this task, chip-irq_disable and chip-irq_mask. Added alternative path for chip-irq_disable also. Signed-off-by: Tero Kristo t-kri...@ti.com --- kernel/irq/chip.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git

Re: [PATCHv6 01/11] omap: prcm: switch to a chained IRQ handler mechanism

2011-09-14 Thread Tero Kristo
On Wed, 2011-09-14 at 14:10 +0200, Paul Walmsley wrote: Hello Tero, On Fri, 2 Sep 2011, Tero Kristo wrote: On Fri, 2011-09-02 at 11:20 +0200, Paul Walmsley wrote: If it would help, I'd be happy to do a first draft of the OMAP3430 PRM hwmod data. If you can do this it would

[PATCHv8 07/16] OMAP2+: mux: add support for PAD wakeup interrupts

2011-09-16 Thread Tero Kristo
OMAP mux now provides a service routine to parse pending wakeup events and to call registered ISR whenever active wakeups are detected. This routine is called directly from PRCM interrupt handler. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/mux.c | 38

[PATCHv8 08/16] omap3: pm: use prcm chain handler

2011-09-16 Thread Tero Kristo
PM interrupt handling is now done through the PRCM chain handler. The interrupt handling logic is also split in two parts, to server IO and WKUP events separately. This allows us to handle IO chain events in a clean way. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/pm34xx.c

[PATCHv8 09/16] TEMP: serial: added mux support

2011-09-16 Thread Tero Kristo
Just for PRCM chain handler testing purposes. This should be replaced with a proper implementation. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/serial.c | 71 - 1 files changed, 69 insertions(+), 2 deletions(-) diff --git a/arch

[PATCHv8 12/16] TEMP: OMAP3: pm: remove serial resume / idle calls from idle path

2011-09-16 Thread Tero Kristo
This is no longer needed as it will be handled within serial driver itself. This part should be properly handled with serial runtime support. Signed-off-by: Tero Kristo t-kri...@ti.com Cc: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/pm34xx.c | 19 --- 1 files

[PATCHv8] 00/16] OMAP PRCM chain handler driver

2011-09-16 Thread Tero Kristo
Hello, This patch set is the version 8 for the OMAP PRCM chain interrupt handler. The driver is providing a chain handler for PRCM interrupt events, which can be then individually used by different drivers. Currently PRCM interrupt is owned by the PM core code and it is impossible for other users

[PATCHv8 13/16] TEMP: OMAP3: serial: made serial to work properly with PRCM chain handler

2011-09-16 Thread Tero Kristo
This patch is just a temporary hack to allow serial to work properly with the PRCM chain handler. Should be replaced with a proper implementation by serial runtime PM support. Signed-off-by: Tero Kristo t-kri...@ti.com Cc: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/serial.c

[PATCHv8 02/16] OMAP2+: hwmod: Add API to enable IO ring wakeup.

2011-09-16 Thread Tero Kristo
From: R, Govindraj govindraj.r...@ti.com Add API to enable IO pad wakeup capability based on mux dynamic pad and wake_up enable flag available from hwmod_mux initialization. Use the wakeup_enable flag and enable wakeup capability for the given pads. Wakeup capability will be enabled/disabled

[PATCHv8 14/16] TEMP: OMAP: serial: remove padconf hacks

2011-09-16 Thread Tero Kristo
These are no longer needed as omap_hwmod takes care of multiplexing of pads. Should be handled properly with serial runtime PM support patches. Signed-off-by: Tero Kristo t-kri...@ti.com Cc: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/serial.c | 25 + 1

[PATCHv8 01/16] power: add omap prm driver skeleton

2011-09-16 Thread Tero Kristo
This driver will eventually support OMAP soc PRM module features, e.g. PRCM chain interrupts. Signed-off-by: Tero Kristo t-kri...@ti.com Cc: Paul Walmsley p...@pwsan.com Cc: Kevin Hilman khil...@ti.com --- drivers/power/Kconfig|7 drivers/power/Makefile |1 + drivers/power

[PATCHv8 05/16] TEMP: OMAP4xxx: hwmod data: add PRM hwmod

2011-09-16 Thread Tero Kristo
This patch is temporary until Benoit can provide final version. Signed-off-by: Tero Kristo t-kri...@ti.com Cc: Benoit Cousson b-cous...@ti.com --- arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 65 1 files changed, 65 insertions(+), 0 deletions(-) diff --git a/arch

[PATCHv8 03/16] OMAP2+: hwmod: Add API to check IO PAD wakeup status

2011-09-16 Thread Tero Kristo
From: R, Govindraj govindraj.r...@ti.com Add API to determine IO-PAD wakeup event status for a given hwmod dynamic_mux pad. Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/mux.c| 30 ++ arch/arm/mach-omap2/mux.h

[PATCHv8 06/16] power: omap-prm: added chain interrupt handler

2011-09-16 Thread Tero Kristo
. PRCM interrupts have two priority levels, high or normal. High priority is needed for IO event handling, so that we can be sure that IO events are processed before other events. This reduces latency for IO event customers and also prevents incorrect ack sequence on OMAP3. Signed-off-by: Tero Kristo t

[PATCHv8 10/16] TEMP: 4430sdp: use common serial init with mux support

2011-09-16 Thread Tero Kristo
Temporary testing related patch, not meant for integration. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/board-4430sdp.c | 12 +--- 1 files changed, 1 insertions(+), 11 deletions(-) diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board

[PATCHv8 11/16] TEMP: mux: added trace for io wkup event

2011-09-16 Thread Tero Kristo
Temporary patch for testing purposes, not meant for integration. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/mux.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/mux.c b/arch/arm/mach-omap2/mux.c index 9127273..5b38f1e 100644

[PATCHv8 04/16] TEMP: OMAP3xxx: hwmod data: add PRM hwmod

2011-09-16 Thread Tero Kristo
This patch is temporary until Paul can provide a final version. Signed-off-by: Tero Kristo t-kri...@ti.com Cc: Paul Walmsley p...@pwsan.com --- arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 56 1 files changed, 56 insertions(+), 0 deletions(-) diff --git a/arch/arm

[PATCHv8 15/16] OMAP3: pm: do not enable PRCM MPU interrupts manually

2011-09-16 Thread Tero Kristo
This is handled automatically by the PRCM chain interrupt mechanism now. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/pm34xx.c |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c index

[PATCHv8 16/16] TEMP: OMAP device: change pr_warnings to pr_debugs

2011-09-16 Thread Tero Kristo
Prevents a hang when omap_device would want to print something for serial console device while enabling / disabling its clocks. Should be handled properly by serial runtime PM support. Signed-off-by: Tero Kristo t-kri...@ti.com Cc: Govindraj.R govindraj.r...@ti.com --- arch/arm/plat-omap

[PATCHv9 00/18] omap PRCM chain handler

2011-09-23 Thread Tero Kristo
Hello, Following set contains the version 9 of this work. This patch set contains a number of patches tagged as 'TEMP', they are only meant for testing purposes and to provide proof of concept. Most of the 'TEMP' patches are related to UART runtime handling and they will be replaced by work done

[PATCHv9 01/18] OMAP2+: hwmod: Add API to enable IO ring wakeup.

2011-09-23 Thread Tero Kristo
From: R, Govindraj govindraj.r...@ti.com Add API to enable IO pad wakeup capability based on mux dynamic pad and wake_up enable flag available from hwmod_mux initialization. Use the wakeup_enable flag and enable wakeup capability for the given pads. Wakeup capability will be enabled/disabled

[PATCHv9 02/18] OMAP2+: hwmod: Add API to check IO PAD wakeup status

2011-09-23 Thread Tero Kristo
From: R, Govindraj govindraj.r...@ti.com Add API to determine IO-PAD wakeup event status for a given hwmod dynamic_mux pad. Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/mux.c| 30 ++ arch/arm/mach-omap2/mux.h

[PATCHv9 06/18] mfd: omap-prm: added chain interrupt handler

2011-09-23 Thread Tero Kristo
-by: Tero Kristo t-kri...@ti.com Cc: Paul Walmsley p...@pwsan.com Cc: Kevin Hilman khil...@ti.com Cc: Avinash.H.M avinas...@ti.com Cc: Cousson, Benoit b-cous...@ti.com Cc: Tony Lindgren t...@atomide.com Cc: Govindraj.R govindraj.r...@ti.com Cc: Samuel Ortiz sa...@linux.intel.com --- drivers/mfd/omap

[PATCHv9 09/18] omap3: pm: use prcm chain handler

2011-09-23 Thread Tero Kristo
PM interrupt handling is now done through the PRCM chain handler. The interrupt handling logic is also split in two parts, to server IO and WKUP events separately. This allows us to handle IO chain events in a clean way. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/pm34xx.c

[PATCHv9 13/18] TEMP: 4430sdp: use common serial init with mux support

2011-09-23 Thread Tero Kristo
Temporary testing related patch, not meant for integration. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/board-4430sdp.c | 12 +--- 1 files changed, 1 insertions(+), 11 deletions(-) diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board

[PATCHv9 10/18] OMAP3: pm: do not enable PRCM MPU interrupts manually

2011-09-23 Thread Tero Kristo
This is handled automatically by the PRCM chain interrupt mechanism now. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/pm34xx.c |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c index

[PATCHv9 18/18] TEMP: OMAP device: change pr_warnings to pr_debugs

2011-09-23 Thread Tero Kristo
Prevents a hang when omap_device would want to print something for serial console device while enabling / disabling its clocks. Should be handled properly by serial runtime PM support. Signed-off-by: Tero Kristo t-kri...@ti.com Cc: Govindraj.R govindraj.r...@ti.com --- arch/arm/plat-omap

[PATCHv9 17/18] TEMP: OMAP: serial: remove padconf hacks

2011-09-23 Thread Tero Kristo
These are no longer needed as omap_hwmod takes care of multiplexing of pads. Should be handled properly with serial runtime PM support patches. Signed-off-by: Tero Kristo t-kri...@ti.com Cc: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/serial.c | 25 + 1

[PATCHv9 16/18] TEMP: OMAP3: serial: made serial to work properly with PRCM chain handler

2011-09-23 Thread Tero Kristo
This patch is just a temporary hack to allow serial to work properly with the PRCM chain handler. Should be replaced with a proper implementation by serial runtime PM support. Signed-off-by: Tero Kristo t-kri...@ti.com Cc: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/serial.c

[PATCHv9 15/18] TEMP: OMAP3: pm: remove serial resume / idle calls from idle path

2011-09-23 Thread Tero Kristo
This is no longer needed as it will be handled within serial driver itself. This part should be properly handled with serial runtime support. Signed-off-by: Tero Kristo t-kri...@ti.com Cc: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/pm34xx.c | 19 --- 1 files

[PATCHv9 12/18] TEMP: serial: added mux support

2011-09-23 Thread Tero Kristo
Just for PRCM chain handler testing purposes. This should be replaced with a proper implementation. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/serial.c | 71 - 1 files changed, 69 insertions(+), 2 deletions(-) diff --git a/arch

[PATCHv9 11/18] omap3+: add omap prm driver initialization

2011-09-23 Thread Tero Kristo
OMAP PRM driver is initialized based on availability of PRM hwmods. This patch will sequentially check for a list of known PRM hwmods and will add an omap device if any is found. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/devices.c | 46

[PATCHv9 14/18] TEMP: mux: added trace for io wkup event

2011-09-23 Thread Tero Kristo
Temporary patch for testing purposes, not meant for integration. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/mux.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/mux.c b/arch/arm/mach-omap2/mux.c index b27c061..642fe3f 100644

[PATCHv9 07/18] mfd: omap-prm: added suspend prepare and complete callbacks

2011-09-23 Thread Tero Kristo
These are needed because runtime PM is disabled during suspend, and it is bad if we get interrupts from the PRCM chain handler during it. Now, PRCM interrupt forwarding is disabled until the suspend-complete, which makes sure that all the needed drivers are up. Signed-off-by: Tero Kristo t-kri

[PATCHv9 05/18] mfd: omap-prm: add driver skeleton

2011-09-23 Thread Tero Kristo
This driver will eventually support OMAP soc PRM module features, e.g. PRCM chain interrupts and voltage processor / controller. This patch only adds basic skeleton for the driver that can be probed for omap3 and omap4. Signed-off-by: Tero Kristo t-kri...@ti.com Cc: Paul Walmsley p...@pwsan.com

[PATCHv9 08/18] OMAP2+: mux: add support for PAD wakeup interrupts

2011-09-23 Thread Tero Kristo
OMAP mux now provides a service routine to parse pending wakeup events and to call registered ISR whenever active wakeups are detected. This routine is called directly from PRCM interrupt handler. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/mux.c | 38

[PATCHv9 03/18] TEMP: OMAP3xxx: hwmod data: add PRM hwmod

2011-09-23 Thread Tero Kristo
This patch is temporary until Paul can provide a final version. Signed-off-by: Tero Kristo t-kri...@ti.com Cc: Paul Walmsley p...@pwsan.com --- arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 56 1 files changed, 56 insertions(+), 0 deletions(-) diff --git a/arch/arm

[PATCHv9 04/18] TEMP: OMAP4xxx: hwmod data: add PRM hwmod

2011-09-23 Thread Tero Kristo
This patch is temporary until Benoit can provide final version. Signed-off-by: Tero Kristo t-kri...@ti.com Cc: Benoit Cousson b-cous...@ti.com --- arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 65 1 files changed, 65 insertions(+), 0 deletions(-) diff --git a/arch

RE: [PATCH 2/5 v11] arm: omap: usb: ehci and ohci hwmod structures for omap3

2011-09-27 Thread Tero Kristo
Walmsley; Tero Kristo; b-cous...@ti.com; ba...@ti.com; part...@india.ti.com Cc: linux-...@vger.kernel.org; linux-omap@vger.kernel.org; linux- ker...@vger.kernel.org; gadi...@ti.com; sa...@linux.intel.com; t...@atomide.com; khil...@ti.com; johns...@us.ibm.com; vishwanath...@ti.com Subject: Re: [PATCH

Re: [PATCH 2/5 v11] arm: omap: usb: ehci and ohci hwmod structures for omap3

2011-09-27 Thread Tero Kristo
On Tue, 2011-09-27 at 15:24 +0200, Balbi, Felipe wrote: Hi, On Tue, Sep 27, 2011 at 06:48:35PM +0530, Munegowda, Keshava wrote: So, you would need a mechanism to do something like this: pad a or b wakeup detected - irq0 pad c or d wakeup detected - irq1? yes, if get something

Re: [PATCHv5 1/4] regulator: omap smps regulator driver

2011-09-28 Thread Tero Kristo
On Tue, 2011-09-27 at 22:06 +0200, Hilman, Kevin wrote: Tero Kristo t-kri...@ti.com writes: OMAP SMPS regulator driver provides access to OMAP voltage processor controlled regulators. These include VDD_MPU and VDD_CORE for OMAP3 and additionally VDD_IVA for OMAP4. SMPS regulators use

[PATCHv3 00/11] voltage domain cleanup

2011-10-05 Thread Tero Kristo
This set contains following changes compared to v2: - split into several patches for easier handling - added a couple of patches from Nishanth Menon (01, 05) - vddmin / vddmax are now defined for both pmic and omap, max of vddmin and min of vddmax is used - clock setup / pmic setup times

[PATCHv3 01/11] OMAP3+: PM: VP: use uV for max and min voltage limits

2011-10-05 Thread Tero Kristo
From: Nishanth Menon n...@ti.com Every PMIC has it's own eccentricities, For example, one of the PMIC has MSB set to 1 for a specific function - voltage enable! using an hardcoded value specific for TWL when copied over to such an implementation causes the system to crash as the MSB bit was 0 and

[PATCHv3 02/11] omap: voltage: add definitions for omap_vp_param and omap_vc_param

2011-10-05 Thread Tero Kristo
These are used to contain omap specific minimum and maximum voltages for domains, and also operating voltages for different power modes. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/voltage.h | 18 ++ 1 files changed, 14 insertions(+), 4 deletions(-) diff

[PATCHv3 04/11] omap4: add vp and vc parameter data

2011-10-05 Thread Tero Kristo
Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/omap_opp_data.h |6 arch/arm/mach-omap2/opp4xxx_data.c| 40 + arch/arm/mach-omap2/voltagedomains44xx_data.c |8 + 3 files changed, 54 insertions(+), 0 deletions

[PATCHv3 03/11] omap3: add vp and vc parameter data

2011-10-05 Thread Tero Kristo
Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/omap_opp_data.h |9 arch/arm/mach-omap2/opp3xxx_data.c| 52 + arch/arm/mach-omap2/voltagedomains3xxx_data.c |8 3 files changed, 69 insertions(+), 0 deletions

[PATCHv3 05/11] OMAP2+: PM: provide mechanism to describe overall behavior of osc and PMIC.

2011-10-05 Thread Tero Kristo
From: Nishanth Menon n...@ti.com We currently have mechanisms in place to describe the PMIC per rail, however we also need to configure the system for situations such as OFF mode, where, oscillator switch off and on time, and similar durations for PMIC also tends to play a major factor. Introduce

[PATCHv3 06/11] omap3+: vc: use new vc_params and vp_params in parameter calculations

2011-10-05 Thread Tero Kristo
Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/vc.c | 166 ++ 1 files changed, 138 insertions(+), 28 deletions(-) diff --git a/arch/arm/mach-omap2/vc.c b/arch/arm/mach-omap2/vc.c index 16fa912..c50e598 100644 --- a/arch/arm/mach

[PATCHv3 07/11] omap3+: vp: use new vp_params for calculating vddmin and vddmax

2011-10-05 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 |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/arch/arm

[PATCHv3 10/11] omap3+: use lp params for calculating clock setup times

2011-10-05 Thread Tero Kristo
Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/vc.c | 47 +- 1 files changed, 46 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/vc.c b/arch/arm/mach-omap2/vc.c index c50e598..ee0edf3 100644 --- a/arch/arm/mach

[PATCHv3 11/11] omap4: use lp params for calculating pmic setup times

2011-10-05 Thread Tero Kristo
Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/vc.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/vc.c b/arch/arm/mach-omap2/vc.c index ee0edf3..badf28b 100644 --- a/arch/arm/mach-omap2/vc.c +++ b/arch/arm/mach-omap2/vc.c

[PATCHv3 09/11] omap4: twl: added pmic startup / shutdown times

2011-10-05 Thread Tero Kristo
Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/omap_twl.c | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/omap_twl.c b/arch/arm/mach-omap2/omap_twl.c index 62ed050..c095cf2 100644 --- a/arch/arm/mach-omap2

[PATCHv3 08/11] omap3+: voltage: remove obsolete parameters

2011-10-05 Thread Tero Kristo
Voltages for different operating modes are now provided by vc_params. Oscillator setup times are handled as board specific. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/omap_twl.c | 25 - arch/arm/mach-omap2/vc.h |1 - 2 files changed, 0

[RFC 0/1] change prcm chain handler to support pad to irq mapping

2011-10-28 Thread Tero Kristo
Hi, The following patch supports pad to irq mapping for the PRCM IO wakeups. This patch applies on top of the PRCM chain handler set (v9) from me. Any comments welcome, I will most likely add this to the next version of the PRCM chain set, but will send this as an RFC for now. -Tero Texas

[RFC] omap: mux: add support for selecting mpu_irq for each wakeup pad

2011-10-28 Thread Tero Kristo
to omap_hwmod_pad_route_irq(hwmod, pad, irq). Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/mux.c| 53 +++--- arch/arm/mach-omap2/omap_hwmod.c |7 --- arch/arm/plat-omap/include/plat/omap_hwmod.h |4 ++ 3 files

Re: [PATCH 2/5 v11] arm: omap: usb: ehci and ohci hwmod structures for omap3

2011-10-28 Thread Tero Kristo
Hi Again, I created a new version of the patch which should be better than this hack, I'll send it as an RFC to the l-o list in a bit. On Thu, 2011-10-13 at 13:49 +0200, Munegowda, Keshava wrote: On Thu, Oct 13, 2011 at 4:58 PM, Tero Kristo t-kri...@ti.com wrote: On Thu, 2011-10-13 at 09:12

Re: [PATCHv3 10/11] omap3+: use lp params for calculating clock setup times

2011-11-15 Thread Tero Kristo
Hi Kevin, Thanks for the comments and sorry for a bit late reply. I was busy with other stuff but can work on this again. Anyway, all your comments to all of the patches make sense, and I will apply the changes to the next version of the set, also merging some of the patches back together again.

Re: [PATCHv9 07/18] mfd: omap-prm: added suspend prepare and complete callbacks

2011-11-21 Thread Tero Kristo
Hi Kevin, On Fri, 2011-11-18 at 11:02 -0800, Kevin Hilman wrote: Tero Kristo t-kri...@ti.com writes: These are needed because runtime PM is disabled during suspend, and it is bad if we get interrupts from the PRCM chain handler during it. Now, PRCM interrupt forwarding is disabled until

Re: [PATCHv9 06/18] mfd: omap-prm: added chain interrupt handler

2011-11-21 Thread Tero Kristo
On Fri, 2011-11-18 at 21:18 +0200, Felipe Balbi wrote: Hi, On Thu, Nov 17, 2011 at 02:34:46PM -0800, Kevin Hilman wrote: 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

[PATCHv4 00/15] voltdm cleanup + auto-ret / auto-off support

2011-11-25 Thread Tero Kristo
Hi, Changes compared to previous version: - merged most of the voltagedomain cleanup fixes to patch 2 - moved pmic latencies to omap_voltdm_pmic struct - renamed omap_lp_params to omap2_oscillator as it only contains osc info now - major changes to usecount support (patch 11+, needed for

[PATCHv4 01/15] OMAP3+: PM: VP: use uV for max and min voltage limits

2011-11-25 Thread Tero Kristo
From: Nishanth Menon n...@ti.com Every PMIC has it's own eccentricities, For example, one of the PMIC has MSB set to 1 for a specific function - voltage enable! using an hardcoded value specific for TWL when copied over to such an implementation causes the system to crash as the MSB bit was 0 and

[PATCHv4 03/15] omap: voltage: add definition for pmic startup / shutdown times

2011-11-25 Thread Tero Kristo
This is applied when PMIC is entering or leaving a sleep mode. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/voltage.h |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/voltage.h b/arch/arm/mach-omap2/voltage.h index 3afd1fc

[PATCHv4 04/15] omap4: add pmic startup / shutdown times

2011-11-25 Thread Tero Kristo
Both startup and shutdown take 500us at maximum, value taken from TWL6030 data manual. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/omap_twl.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/omap_twl.c b/arch/arm/mach-omap2

[PATCHv4 02/15] omap3+: voltage: parameter segregation

2011-11-25 Thread Tero Kristo
domain code is changed to use these. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/omap_opp_data.h | 15 ++ arch/arm/mach-omap2/omap_twl.c| 25 arch/arm/mach-omap2/opp3xxx_data.c| 52 +++ arch/arm/mach-omap2/opp4xxx_data.c

[PATCHv4 06/15] omap3+: vp: use new vp_params for calculating vddmin and vddmax

2011-11-25 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

[PATCHv4 05/15] omap: add support for oscillator setup

2011-11-25 Thread Tero Kristo
This contains startup and shutdown times for the oscillator. By default use MAX_INT. Oscillator setup is used for calculating and setting up latencies for sleep modes that disable oscillator. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/pm.c | 27

[PATCHv4 07/15] omap3+: voltage: use oscillator data to calculate setup times

2011-11-25 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 | 46 ++ 1 files changed, 46 insertions(+), 0 deletions

[PATCHv4 08/15] omap4: use pmic params for calculating pmic setup times

2011-11-25 Thread Tero Kristo
As voltdm-pmic now contains startup and shutdown times for PMIC, use these for calculating the fields in the PMICSETUPTIME register. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/vc.c | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/arch

[PATCHv4 09/15] TEMP: OMAP3: beagle rev-c4: enable OPP6

2011-11-25 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

[PATCHv4 12/15] vc: omap3: auto_ret / auto_off support

2011-11-25 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 | 91

[PATCHv4 13/15] omap3: fix usecount tracking

2011-11-25 Thread Tero Kristo
handled within idle loop to allow mpu_iva domain to transition smoothly. After this patch, usecount numbers for core, per and mpu_iva domains reach zero when domain is ready to idle (i.e. just before wfi.) Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/clock3xxx_data.c

[PATCHv4 11/15] omap3+: voltage/pwrdm/clkdm/clock add recursive usecount tracking

2011-11-25 Thread Tero Kristo
and voltagedomain levels. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/clkt_iclk.c | 11 + arch/arm/mach-omap2/clockdomain.c | 38 +- arch/arm/mach-omap2/clockdomain.h |3 ++ arch/arm/mach-omap2/powerdomain.c

[PATCHv4 15/15] omap: pm: wait for domain wakeup if changing state of idle domain

2011-11-25 Thread Tero Kristo
If we are switching the state of an idle powerdomain, we must wait for the wakeup to complete before attempting to switch to the new state, otherwise the powerdomain may not be ready for the switch and will fail. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/pm.c |1 + 1

[PATCHv4 10/15] omap: beagle: set oscillator startup time to 10ms for rev c4

2011-11-25 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

[PATCHv4 14/15] omap3: voltage: fix channel configuration

2011-11-25 Thread Tero Kristo
OMAP3 uses the default settings for VDD1 channel, otherwise the settings will overlap with VDD2 and attempting to modify VDD1 voltage will actually change VDD2 voltage. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/vc.c |5 - arch/arm/mach-omap2

[PATCHv6 0/6] OMAP: SMPS support for TWL regulators

2011-11-25 Thread Tero Kristo
Hello, Unfortunately the previous version of this work (SMPS regulator was a separate driver) was rejected by the omap maintainers, thus I am sending a new version. This implementation is going somewhat back towards the original version, we are having an external controller that replaces the

[PATCHv6 1/6] regulator: core: add support for external get/set_voltage

2011-11-25 Thread Tero Kristo
hardware. Signed-off-by: Tero Kristo t-kri...@ti.com Cc: Mark Brown broo...@opensource.wolfsonmicro.com Cc: Liam Girdwood l...@ti.com Cc: Graeme Gregory g...@slimlogic.co.uk --- drivers/regulator/core.c | 61 ++- include/linux/regulator/consumer.h | 20

[PATCHv6 2/6] omap3: add common twl configurations for vdd1 and vdd2

2011-11-25 Thread Tero Kristo
VDD1 and VDD2 are the core voltage regulators on OMAP3. VDD1 is used to control MPU/IVA voltage, and VDD2 is used for CORE. These regulators are needed by DVFS. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/twl-common.c | 36 1 files

[PATCHv6 3/6] TEMP: OMAP3: beagle rev-c4: enable OPP6

2011-11-25 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 5/6] omap3: voltage: fix channel configuration

2011-11-25 Thread Tero Kristo
OMAP3 uses the default settings for VDD1 channel, otherwise the settings will overlap with VDD2 and attempting to modify VDD1 voltage will actually change VDD2 voltage. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/vc.c |5 - arch/arm/mach-omap2

[PATCHv6 6/6] omap3: voltage: add external controller for VDD1 and VDD2

2011-11-25 Thread Tero Kristo
VDD1 and VDD2 will now use voltage controller when regulator voltage is changed. Signed-off-by: Tero Kristo t-kri...@ti.com --- arch/arm/mach-omap2/omap_twl.c | 21 + 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/omap_twl.c b/arch/arm

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