[PATCHv5 04/11] OMAP2+: hwmod: add support for PAD wakeup interrupts

2011-07-05 Thread Tero Kristo
OMAP hwmod 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 --- arch/arm/mach-omap2/omap_hwmod.c | 19

[PATCHv5 05/11] TEMP: OMAP3: pm: remove serial resume / idle calls from idle path

2011-07-05 Thread Tero Kristo
This is no longer needed as it will be handled within serial driver itself. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/pm34xx.c | 19 --- 1 files changed, 0 insertions(+), 19 deletions(-) diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c index

[PATCHv5 06/11] TEMP: OMAP3: serial: made serial to work properly with PRCM chain handler

2011-07-05 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. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/serial.c | 28 +--- drivers/tty/serial/omap-serial.c |8

[PATCHv5 10/11] TEMP: OMAP3: pm: disable / enable PRCM chain interrupts during wakeup from suspend

2011-07-05 Thread Tero Kristo
This prevents system hang while attempting to access suspended console. Should most likely be fixed with proper console locking. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/pm34xx.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/pm34xx.c b

[PATCHv5 09/11] TEMP: OMAP: serial: remove padconf hacks

2011-07-05 Thread Tero Kristo
These are no longer needed as omap_hwmod takes care of multiplexing of pads. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/serial.c | 25 + 1 files changed, 1 insertions(+), 24 deletions(-) diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c

[PATCHv5 11/11] OMAP3: pm: do not enable PRCM MPU interrupts manually

2011-07-05 Thread Tero Kristo
This is handled automatically by the PRCM chain interrupt mechanism now. Signed-off-by: Tero Kristo --- 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 34feff4..8b05f14

[PATCHv5 08/11] TEMP: OMAP device: change pr_warnings to pr_debugs

2011-07-05 Thread Tero Kristo
Prevents a hang when omap_device would want to print something for serial console device while enabling / disabling its clocks. Signed-off-by: Tero Kristo --- arch/arm/plat-omap/omap_device.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/plat-omap

[PATCHv5 07/11] TEMP: serial: added mux support

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

Re: [PATCHv5 01/11] OMAP: prcm: switch to a chained IRQ handler mechanism

2011-07-05 Thread Tero Kristo
On Tue, 2011-07-05 at 13:18 +0200, Balbi, Felipe wrote: > Hi, > > On Tue, Jul 05, 2011 at 01:27:47PM +0300, Tero Kristo wrote: > > @@ -854,20 +802,35 @@ static int __init omap3_pm_init(void) > > /* XXX prcm_setup_regs needs to be before enabling hw > > * super

[RFC 0/4] TWL external controller support

2011-07-08 Thread Tero Kristo
Hello, Following patches add an external controller support for TWL SMPS regulators. This is needed because OMAP has voltage processor support which provides interface to control a few regulators (VDD1 / VDD2 for OMAP3), and this is shared with smartreflex. These patches work in a way that twl re

[RFC 1/4] twl-regulator: extend for SMPS regulators and external controllers

2011-07-08 Thread Tero Kristo
is isn't possible since the OMAP voltage layer isn't initialized when the regulator is instantiated. * Make the twl-regulator driver actually work with VDD1/VDD2 when no external controller is attached (i.e, when the OMAP voltage layer code is disabled). Signed-off-by: Ter

[RFC 3/4] omap: attach external controller to VDD1/VDD2

2011-07-08 Thread Tero Kristo
off-by: Tero Kristo --- arch/arm/mach-omap2/voltage.c | 37 + arch/arm/mach-omap2/voltage.h |4 +++ arch/arm/mach-omap2/voltagedomains3xxx_data.c |2 + 3 files changed, 43 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach

[RFC 2/4] omap3beagle: Instantiate VDD1 and VDD2 regulators

2011-07-08 Thread Tero Kristo
From: Thomas Petazzoni Instantiate the VDD1 and VDD2 regulators and connect them to their respective consumers: mpu.0 for VDD1 and l3_main.0 for VDD2. TODO: * As these instantiations will be identical for all OMAP3 boards, find a way of sharing them throughout the different OMAP3 boards. S

[RFC 4/4] OMAP3: beagle rev-c4: enable OPP6

2011-07-08 Thread Tero Kristo
Beagleboard rev-c4 has a speed sorted OMAP3530 chip which can run at 720MHz. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/board-omap3beagle.c | 32 +++ arch/arm/mach-omap2/opp3xxx_data.c |4 +++ 2 files changed, 36 insertions(+), 0 deletions(-) diff

Re: [RFC 0/4] TWL external controller support

2011-07-11 Thread Tero Kristo
On Sat, 2011-07-09 at 12:56 +0200, Mark Brown wrote: > On Sat, Jul 09, 2011 at 01:40:08PM +0300, Felipe Balbi wrote: > > > a hack for a hack... what's the difference ? If it's only to solve a > > limitation temporarily anyways... although it would be better to discuss > > how to add such support t

Re: [RFC 0/4] TWL external controller support

2011-07-11 Thread Tero Kristo
On Mon, 2011-07-11 at 12:05 +0200, Mark Brown wrote: > On Mon, Jul 11, 2011 at 11:23:11AM +0300, Tero Kristo wrote: > > On Sat, 2011-07-09 at 12:56 +0200, Mark Brown wrote: > > > On Sat, Jul 09, 2011 at 01:40:08PM +0300, Felipe Balbi wrote: > > > > I'm comple

Re: [RFC 0/4] TWL external controller support

2011-07-11 Thread Tero Kristo
On Mon, 2011-07-11 at 14:11 +0200, Mark Brown wrote: > On Mon, Jul 11, 2011 at 01:48:59PM +0300, Tero Kristo wrote: > > On Mon, 2011-07-11 at 12:05 +0200, Mark Brown wrote: > > > > No. Why do you want these regulators to have anything to do with the > > > TWL403

[PATCHv2 0/5] OMAP SMPS regulator driver

2011-07-13 Thread Tero Kristo
Hello, Based on the comments for the previous version of this set, I implemented a regulator driver for the OMAP SMPS now. It could actually be moved under arch/arm/mach-omap2/ directory instead of drivers/regulator, I think it should work from there also. This would also require less hacking for

[PATCHv2 2/5] regulator: omap smps regulator driver

2011-07-13 Thread Tero Kristo
OMAP SMPS regulator driver provides access to OMAP voltage processor controlled regulators. These include VDD1 and VDD2 for OMAP3 and additionally VDD3 for OMAP4. SMPS regulators use the OMAP voltage layer for the actual voltage regulation operations. Signed-off-by: Tero Kristo --- drivers

[PATCHv2 1/5] OMAP: move voltage.h and vp.h under platform include directory

2011-07-13 Thread Tero Kristo
This is needed so that these include files can be accessed from drivers. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/omap_opp_data.h |3 +- arch/arm/mach-omap2/omap_twl.c|2 +- arch/arm/mach-omap2/pm.c |2 +- arch/arm/mach-omap2

[PATCHv2 3/5] omap3: beagle: instantiate smps regulators

2011-07-13 Thread Tero Kristo
VDD1 and VDD2 are now available. This requires SMPS regulator driver to work. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/board-omap3beagle.c | 53 +++ 1 files changed, 53 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b

[PATCHv2 4/5] TEMP: OMAP3: beagle rev-c4: enable OPP6

2011-07-13 Thread Tero Kristo
Beagleboard rev-c4 has a speed sorted OMAP3530 chip which can run at 720MHz. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/board-omap3beagle.c | 32 +++ arch/arm/mach-omap2/opp3xxx_data.c |4 +++ 2 files changed, 36 insertions(+), 0 deletions(-) diff

[PATCHv2 5/5] omap: voltage: changed parameter of omap_voltage_lookup to const

2011-07-13 Thread Tero Kristo
This fixes a couple of compilation warnings with OMAP SMPS regulator driver. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/voltage.c |2 +- arch/arm/plat-omap/include/plat/voltage.h |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach

Re: [PATCHv2 2/5] regulator: omap smps regulator driver

2011-07-13 Thread Tero Kristo
On Wed, 2011-07-13 at 16:40 +0200, Mark Brown wrote: > On Wed, Jul 13, 2011 at 05:00:35PM +0300, Tero Kristo wrote: > > > +config REGULATOR_OMAP_SMPS > > + tristate "TI OMAP SMPS Power Regulators" > > + depends on (ARCH_OMAP3 || ARCH_OMAP4) && PM &

RE: [PATCHv2 4/5] TEMP: OMAP3: beagle rev-c4: enable OPP6

2011-07-14 Thread Tero Kristo
oard rev-c4 has a speed sorted OMAP3530 chip which can > > run at 720MHz. > > > > Signed-off-by: Tero Kristo > > --- > > arch/arm/mach-omap2/board-omap3beagle.c | 32 > > +++ > > arch/arm/mach-omap2/opp3xxx_data.c |

Re: [PATCHv2 2/5] regulator: omap smps regulator driver

2011-07-14 Thread Tero Kristo
On Thu, 2011-07-14 at 08:29 +0200, Todd Poynor wrote: > On Wed, Jul 13, 2011 at 05:00:35PM +0300, Tero Kristo wrote: > > OMAP SMPS regulator driver provides access to OMAP voltage processor > > controlled regulators. These include VDD1 and VDD2 for OMAP3 and > > additional

Re: [PATCHv2 0/5] OMAP SMPS regulator driver

2011-07-14 Thread Tero Kristo
On Thu, 2011-07-14 at 02:22 +0200, Hilman, Kevin wrote: > Hi Tero, > > Tero Kristo writes: > > > Based on the comments for the previous version of this set, I implemented > > a regulator driver for the OMAP SMPS now. > > Could you rebase this on my pm-wip/voltdm

Re: [PATCHv2 2/5] regulator: omap smps regulator driver

2011-07-14 Thread Tero Kristo
On Thu, 2011-07-14 at 00:55 +0200, Mark Brown wrote: > On Wed, Jul 13, 2011 at 06:53:45PM +0300, Tero Kristo wrote: > > On Wed, 2011-07-13 at 16:40 +0200, Mark Brown wrote: > > > > I do strongly prefer the idiom of just registering all the regulators > > > even if th

Re: [PATCHv5 01/11] OMAP: prcm: switch to a chained IRQ handler mechanism

2011-07-18 Thread Tero Kristo
On Fri, 2011-07-15 at 18:40 +0200, Todd Poynor wrote: > On Tue, Jul 05, 2011 at 01:27:47PM +0300, Tero Kristo wrote: > > Introduce a chained interrupt handler mechanism for the PRCM > > interrupt, so that individual PRCM event can cleanly be handled by > > handlers in separat

[PATCHv3 0/6] OMAP SMPS regulator driver

2011-07-18 Thread Tero Kristo
Hello, Main changes compared to v2: - cleanup should now work better - register all available regulators always, if no initdata => readonly - added board init support functionality to twl-common - constraints not touched by the driver anymore Tested on omap3 beagle. -Tero Texas Instruments Oy

[PATCHv3 1/6] OMAP: move voltage.h and vp.h under platform include directory

2011-07-18 Thread Tero Kristo
This is needed so that these include files can be accessed from drivers. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/voltage.h | 180 - arch/arm/mach-omap2/vp.h | 128 arch/arm/plat-omap/include/plat

[PATCHv3 2/6] omap: voltage: change code to use new location of voltage.h and vp.h

2011-07-18 Thread Tero Kristo
These are now under plat-omap/include/plat. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/io.c |2 +- arch/arm/mach-omap2/omap_opp_data.h |3 +-- arch/arm/mach-omap2/omap_twl.c|2 +- arch/arm/mach-omap2/pm.c

[PATCHv3 3/6] regulator: omap smps regulator driver

2011-07-18 Thread Tero Kristo
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 the OMAP voltage layer for the actual voltage regulation operations. Signed-off-by: Tero Kristo Cc

[PATCHv3 5/6] omap3: beagleboard: add SMPS regulators

2011-07-18 Thread Tero Kristo
This is using the common API defined in twl-common. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/board-omap3beagle.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c index 32f5f89

[PATCHv3 4/6] omap3: pmic: add API to get common SMPS regulators

2011-07-18 Thread Tero Kristo
omap3_pmic_get_smps_config can now be used to get regulator configuration for MPU and CORE SMPS regulators. This should be expanded later to add IVA SMPS regulator for OMAP4. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/twl-common.c | 62 ++ arch/arm

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

2011-07-18 Thread Tero Kristo
Beagleboard rev-c4 has a speed sorted OMAP3530 chip which can run at 720MHz. This is a temporary patch for supporting this set only, do not integrate. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/board-omap3beagle.c | 32 +++ arch/arm/mach-omap2

Re: [PATCHv3 0/6] OMAP SMPS regulator driver

2011-07-18 Thread Tero Kristo
On Mon, 2011-07-18 at 19:35 +0200, Kristo, Tero wrote: > Hello, > > Main changes compared to v2: > > - cleanup should now work better > - register all available regulators always, if no initdata => readonly > - added board init support functionality to twl-common > - constraints not touched by th

Re: [PATCHv3 2/6] omap: voltage: change code to use new location of voltage.h and vp.h

2011-07-19 Thread Tero Kristo
On Mon, 2011-07-18 at 20:16 +0200, Balbi, Felipe wrote: > Hi, > > On Mon, Jul 18, 2011 at 08:35:18PM +0300, Tero Kristo wrote: > > These are now under plat-omap/include/plat. > > > > Signed-off-by: Tero Kristo > > this has to be folded into previous patch,

Re: [PATCHv3 1/6] OMAP: move voltage.h and vp.h under platform include directory

2011-07-19 Thread Tero Kristo
On Mon, 2011-07-18 at 20:16 +0200, Balbi, Felipe wrote: > Hi, > > On Mon, Jul 18, 2011 at 08:35:17PM +0300, Tero Kristo wrote: > > This is needed so that these include files can be accessed from drivers. > > > > Signed-off-by: Tero Kristo > > --- &

Re: [PATCHv3 3/6] regulator: omap smps regulator driver

2011-07-19 Thread Tero Kristo
On Tue, 2011-07-19 at 01:40 +0200, Hilman, Kevin wrote: > Felipe Balbi writes: > > > On Mon, Jul 18, 2011 at 08:35:19PM +0300, Tero Kristo wrote: > >> diff --git a/drivers/regulator/omap-smps-regulator.c > >> b/drivers/regulator/omap-smps-regulator.c > >>

Re: [PATCHv3 3/6] regulator: omap smps regulator driver

2011-07-19 Thread Tero Kristo
On Mon, 2011-07-18 at 20:22 +0200, Balbi, Felipe wrote: > Hi, > > On Mon, Jul 18, 2011 at 08:35:19PM +0300, Tero Kristo wrote: > > diff --git a/drivers/regulator/omap-smps-regulator.c > > b/drivers/regulator/omap-smps-regulator.c > > new file mode 100644 > > in

Re: [PATCHv3 4/6] omap3: pmic: add API to get common SMPS regulators

2011-07-19 Thread Tero Kristo
On Mon, 2011-07-18 at 20:23 +0200, Balbi, Felipe wrote: > Hi, > > On Mon, Jul 18, 2011 at 08:35:20PM +0300, Tero Kristo wrote: > > diff --git a/arch/arm/mach-omap2/twl-common.h > > b/arch/arm/mach-omap2/twl-common.h > > index 5e83a5b..fde8467 100644 > > --- a

Re: [PATCHv3 3/6] regulator: omap smps regulator driver

2011-07-19 Thread Tero Kristo
On Tue, 2011-07-19 at 17:38 +0200, Mark Brown wrote: > On Mon, Jul 18, 2011 at 08:35:19PM +0300, Tero Kristo wrote: > > OMAP SMPS regulator driver provides access to OMAP voltage processor > > controlled regulators. These include VDD_MPU and VDD_CORE for OMAP3 and > > add

Re: [PATCHv5 05/11] TEMP: OMAP3: pm: remove serial resume / idle calls from idle path

2011-07-25 Thread Tero Kristo
On Sat, 2011-07-23 at 01:51 +0200, Balbi, Felipe wrote: > Hi, > > On Tue, Jul 05, 2011 at 01:27:51PM +0300, Tero Kristo wrote: > > This is no longer needed as it will be handled within serial driver itself. > > > > Signed-off-by: Tero Kristo > > isn't

[PATCHv7 00/11] PRCM chain handler

2011-07-25 Thread Tero Kristo
Hello, Changes compared to previous set: - moved OMAP3/OMAP4 specific code under prm.c files - dropped most of the event definitions for now, and just left wkup and io events in - PRCM events are now defined as a common struct under prcm.c - moved mux handling routines from omap_hwmod.c to m

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

2011-07-25 Thread Tero Kristo
From: R, Govindraj 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 during hwmod idle transit

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

2011-07-25 Thread Tero Kristo
From: R, Govindraj Add API to determine IO-PAD wakeup event status for a given hwmod dynamic_mux pad. Signed-off-by: Govindraj.R --- arch/arm/mach-omap2/mux.c| 30 ++ arch/arm/mach-omap2/mux.h| 13 +++ arch/arm/mach-om

[PATCHv6 04/11] OMAP2+: mux: add support for PAD wakeup interrupts

2011-07-25 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 --- arch/arm/mach-omap2/mux.c | 27 +++ arch

[PATCHv6 05/11] TEMP: OMAP3: pm: remove serial resume / idle calls from idle path

2011-07-25 Thread Tero Kristo
This is no longer needed as it will be handled within serial driver itself. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/pm34xx.c | 19 --- 1 files changed, 0 insertions(+), 19 deletions(-) diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c index

[PATCHv6 07/11] TEMP: serial: added mux support

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

[PATCHv6 06/11] TEMP: OMAP3: serial: made serial to work properly with PRCM chain handler

2011-07-25 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. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/serial.c | 28 +--- drivers/tty/serial/omap-serial.c |8

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

2011-07-25 Thread Tero Kristo
SoC on which we are running, keeping only the ones that are actually useful. All the logic is written to be generic with regard to OMAP3/OMAP4, even though OMAP3 has single PRCM event registers and OMAP4 has two PRCM event registers. Patch tested on OMAP3 beagleboard. Signed-off-by: Tero Kristo Cc

[PATCHv6 08/11] TEMP: OMAP device: change pr_warnings to pr_debugs

2011-07-25 Thread Tero Kristo
Prevents a hang when omap_device would want to print something for serial console device while enabling / disabling its clocks. Signed-off-by: Tero Kristo --- arch/arm/plat-omap/omap_device.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/plat-omap

[PATCHv6 09/11] TEMP: OMAP: serial: remove padconf hacks

2011-07-25 Thread Tero Kristo
These are no longer needed as omap_hwmod takes care of multiplexing of pads. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/serial.c | 25 + 1 files changed, 1 insertions(+), 24 deletions(-) diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c

[PATCHv6 10/11] TEMP: OMAP3: pm: disable / enable PRCM chain interrupts during wakeup from suspend

2011-07-25 Thread Tero Kristo
This prevents system hang while attempting to access suspended console. Should most likely be fixed with proper console locking. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/pm34xx.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/pm34xx.c b

[PATCHv6 11/11] OMAP3: pm: do not enable PRCM MPU interrupts manually

2011-07-25 Thread Tero Kristo
This is handled automatically by the PRCM chain interrupt mechanism now. Signed-off-by: Tero Kristo --- 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 b071857..926e13c

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

2011-07-26 Thread Tero Kristo
On Mon, 2011-07-25 at 19:03 +0200, Balbi, Felipe wrote: > Hi, > > On Mon, Jul 25, 2011 at 07:36:01PM +0300, Tero Kristo wrote: > > Introduce a chained interrupt handler mechanism for the PRCM > > interrupt, so that individual PRCM event can cleanly be handled by > > h

[PATCHv4 0/4] OMAP SMPS regulator driver

2011-07-28 Thread Tero Kristo
Hello, This version has following changes: - does not move voltage.h under plat-omap anymore, instead creates a stub voltage.h under plat-omap with minimal support required - platform device registration is now done from voltage.c, no need for board file changes anymore - Kconfig option does

[PATCHv4 1/4] omap: voltage: add a stub header file

2011-07-28 Thread Tero Kristo
Needed as some of the voltage layer functionality is accessed from the SMPS regulator driver. Signed-off-by: Tero Kristo --- arch/arm/plat-omap/include/plat/voltage.h | 20 1 files changed, 20 insertions(+), 0 deletions(-) create mode 100644 arch/arm/plat-omap/include

[PATCHv4 3/4] omap: smps: add smps regulator init to voltage.c

2011-07-28 Thread Tero Kristo
All voltagedomains that have support for vc and vp are now automatically registered with SMPS regulator driver. Voltage.c builds a platform device structure for this purpose during late init. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/voltage.c | 68

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

2011-07-28 Thread Tero Kristo
Beagleboard rev-c4 has a speed sorted OMAP3530 chip which can run at 720MHz. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/board-omap3beagle.c | 32 +++ arch/arm/mach-omap2/opp3xxx_data.c |4 +++ 2 files changed, 36 insertions(+), 0 deletions(-) diff

[PATCHv4 2/4] regulator: omap smps regulator driver

2011-07-28 Thread Tero Kristo
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 the OMAP voltage layer for the actual voltage regulation operations. Signed-off-by: Tero Kristo Cc

[RFC 0/2] voltage / oscillator parameter segregation

2011-08-03 Thread Tero Kristo
Hi, Following patch attemps to separate some board specific parameters from the core PM code. These parameters can then be specified in the board files. Some things missing from this work currently are hooks from the sleep code to select proper setup times based on the sleep mode... and well, the

[RFC 1/2] OMAP3+: voltage / oscillator parameter segregation

2011-08-03 Thread Tero Kristo
oscillator setup time declaration Todo: split patch into more easily manageable parts. Applies on top of pm/wip/voltdm branch, based on work done by Vishwanath Sripathy. Signed-off-by: Tero Kristo Cc: Vishwanath Sripathy --- arch/arm/mach-omap2/omap_opp_data.h | 15 +++ arch/arm/mach

[RFC 2/2] TEMP: OMAP3: beagle: added dummy vdd ramp up and clock setup times

2011-08-03 Thread Tero Kristo
This patch provided just as an example, actual times should be measured for the board. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/board-omap3beagle.c | 36 +++ 1 files changed, 36 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/board

RE: [RFC 1/2] OMAP3+: voltage / oscillator parameter segregation

2011-08-05 Thread Tero Kristo
On Thu, 2011-08-04 at 15:57 +0200, Sripathy, Vishwanath wrote: > > Texas Instruments Oy, Tekniikantie 12, 02150 Espoo. Y-tunnus: 0115040-6. Kotipaikka: Helsinki -Original Message- > > From: Tero Kristo [mailto:t-kri...@ti.com] > > Sent: Wednesday, August 03, 2011 8:5

[RFCv2 2/2] TEMP: OMAP3: beagle: added dummy clock setup times

2011-08-05 Thread Tero Kristo
This patch provided just as an example, actual time should be checked from the datasheet. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/board-omap3beagle.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm

[RFCv2 1/2] OMAP3+: voltage / oscillator parameter segregation

2011-08-05 Thread Tero Kristo
Vishwanath Sripathy. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/omap_opp_data.h | 15 ++ arch/arm/mach-omap2/omap_twl.c| 25 arch/arm/mach-omap2/opp3xxx_data.c| 62 arch/arm/mach-omap2/opp4xxx_data.c| 47 ++ arch

Re: [PATCHv4 3/4] omap: smps: add smps regulator init to voltage.c

2011-08-29 Thread Tero Kristo
Hi Kevin, Sorry for bit late reply, I've been on holiday during last 3 weeks. On Sat, 2011-08-06 at 01:37 +0200, Hilman, Kevin wrote: > Tero Kristo writes: > > > All voltagedomains that have support for vc and vp are now automatically > > registered with SMPS regulator d

Re: [PATCHv4 3/4] omap: smps: add smps regulator init to voltage.c

2011-08-29 Thread Tero Kristo
On Fri, 2011-08-05 at 23:54 +0200, Hilman, Kevin wrote: > Tero Kristo writes: > > > All voltagedomains that have support for vc and vp are now automatically > > registered with SMPS regulator driver. Voltage.c builds a platform device > > structure for this

Re: [PATCHv4 3/4] omap: smps: add smps regulator init to voltage.c

2011-08-29 Thread Tero Kristo
On Fri, 2011-08-05 at 23:52 +0200, Hilman, Kevin wrote: > Tero Kristo writes: > > > All voltagedomains that have support for vc and vp are now automatically > > registered with SMPS regulator driver. Voltage.c builds a platform device > > structure for this

[PATCHv5 0/4] omap smps regulator driver

2011-08-31 Thread Tero Kristo
Hello, Changes compared to previous version of this set: - dropped stub header file patch as it is integrated to voltm branch already - PATCH 1: * fixed section mismatch * changed consumer supply naming to match with omap PM code better * refreshed so that it applies cleanly on latest codeb

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

2011-08-31 Thread Tero Kristo
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 the OMAP voltage layer for the actual voltage regulation operations. Signed-off-by: Tero Kristo Cc

[PATCHv5 4/4] TEMP: OMAP3: beagle rev-c4: enable OPP6

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

[PATCHv5 3/4] omap: smps: add smps regulator init to voltage.c

2011-08-31 Thread Tero Kristo
All voltagedomains that have support for vc and vp are now automatically registered with SMPS regulator driver. Voltage.c builds a platform device structure for this purpose during late init. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/voltage.c | 81

[PATCHv5 2/4] omap: voltage: added mapping from voltagedomains to processor devices

2011-08-31 Thread Tero Kristo
This is needed so that SMPS regulators can be properly mapped to corresponding processor devices. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/voltage.h |2 ++ arch/arm/mach-omap2/voltagedomains3xxx_data.c |2 ++ arch/arm/mach-omap2/voltagedomains44xx_data.c |3

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

2011-09-01 Thread Tero Kristo
Hey Paul, I've been looking at this now and got one question below. Otherwise your comments look okay to me and I can work with those. On Fri, 2011-08-26 at 11:12 +0200, Paul Walmsley wrote: > Hello Tero, > > a few comments on this patch: > > On Mon, 25 Jul 201

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

2011-09-02 Thread Tero Kristo
Hi Paul, On Fri, 2011-09-02 at 11:20 +0200, Paul Walmsley wrote: > Hi Tero, > > On Thu, 1 Sep 2011, Tero Kristo wrote: > > > I've been looking at this now and got one question below. Otherwise your > > comments look okay to me and I can work with those. > >

[PATCH 03/19] ARM: OMAP4: PM: powerdomain: Add HWSAR flag to L3INIT

2012-04-20 Thread Tero Kristo
, these custom function implementation will be abstracted and might be done in hwmod or in other layer. Signed-off-by: Santosh Shilimkar Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/powerdomain44xx.c | 41 +++ arch/arm/mach-omap2/powerdomains44xx_data.c

[PATCH 06/19] ARM: OMAP4: Auto generate SAR layout contents

2012-04-20 Thread Tero Kristo
IO address for save / restore sar_layout_generate() parses this info and stores the resulting data to a list of sar_ram_entry structs, which in turn will be used by sar_save. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/omap-sar.c | 290

[PATCH 04/19] ARM: OMAP4: Add SAR ROM base address

2012-04-20 Thread Tero Kristo
Added in preparation for device off mode. SAR ROM contains the mapping from SAR RAM to IO registers, and this will eventually be parsed during init time to do the reverse before device off. Signed-off-by: Tero Kristo --- arch/arm/plat-omap/include/plat/omap44xx.h |1 + 1 files changed, 1

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

2012-04-20 Thread Tero Kristo
Added similar PM errata flag support as omap3 has. A few errata flags will be added in subsequent patches. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/pm.h |7 +++ arch/arm/mach-omap2/pm44xx.c |1 + 2 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm

[PATCH 01/19] ARM: OMAP4: PM: save/restore all DPLL settings in OFF mode

2012-04-20 Thread Tero Kristo
d-off-by: Rajendra Nayak Signed-off-by: Santosh Shilimkar Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/cm44xx.h |5 + arch/arm/mach-omap2/dpll44xx.c | 271 2 files changed, 276 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-

[PATCH 10/19] ARM: OMAP4: PM: Work-around for ROM code BUG of IVAHD/TESLA

2012-04-20 Thread Tero Kristo
limitation, MPU OFF alone is not targeted without device OFF to avoid IVAHD and TESLA execution impact Signed-off-by: Rajendra Nayak Signed-off-by: Santosh Shilimkar [t-kri...@ti.com: added omap4 pm errata support] Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/omap-mpuss-lowpower.c | 53

[PATCH 05/19] ARM: OMAP4: PM: Add SAR backup support towards device OFF

2012-04-20 Thread Tero Kristo
needed with subsequent patches that generate the layouts based on SAR ROM contents, also dropped unnecessary dmm-44xx.h header file.] Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/Makefile |2 +- arch/arm/mach-omap2/cm1_44xx.h |2 + arch/arm/mach-omap2

[PATCH 07/19] ARM: OMAP4: SAR: generate overwrite data based on SAR ROM contents

2012-04-20 Thread Tero Kristo
omap_sar_overwrite() now uses offsets detected during init time from the SAR ROM contents. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/omap-sar.c | 158 1 files changed, 112 insertions(+), 46 deletions(-) diff --git a/arch/arm/mach-omap2/omap

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

2012-04-20 Thread Tero Kristo
save_secure_all needs l3_main_3_ick and l4_secure_clkdm enabled, otherwise the secure ROM code will crash. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/omap-wakeupgen.c | 20 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/omap

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

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

[PATCH 16/19] TEMP: ARM: OMAP4: prevent voltage transitions

2012-04-20 Thread Tero Kristo
not prevent voltage scaling done by voltdm->scale / DVFS. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/pm44xx.c | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/pm44xx.c b/arch/arm/mach-omap2/pm44xx.c index d4d18d9..e678

[PATCH 13/19] ARM: OMAP4: PM: Mark the PPI and SPI interrupts as non-secure for GP

2012-04-20 Thread Tero Kristo
...@ti.com: fixed commit message, merged multiple patches to one] Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/common.h |1 + arch/arm/mach-omap2/omap-wakeupgen.c | 21 + arch/arm/mach-omap2/omap4-common.c |5 + arch/arm/mach-omap2/omap4-sar

[PATCH 18/19] ARM: OMAP4460: wakeupgen: set GIC_CPU0 backup status flag always

2012-04-20 Thread Tero Kristo
OMAP4470. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/omap-wakeupgen.c | 14 ++ arch/arm/mach-omap2/omap4-sar-layout.h |1 + 2 files changed, 15 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/omap-wakeupgen.c b/arch/arm/mach-omap2/omap-wakeupgen.c index

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

2012-04-20 Thread Tero Kristo
powerdomain struct for context loss register, which is checked during pwrdm_post_transition to see if a device off type context loss has happened. If this is the case, the counters + timers for OFF state are touched instead of RETENTION. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/omap-mpuss

[PATCH 15/19] ARM: OMAP4430: PM: workaround for DDR corruption on second CS

2012-04-20 Thread Tero Kristo
uration is not set properly, we apply the required workaround allowing the restore sequence to work properly. Signed-off-by: Santosh Shilimkar [t-kri...@ti.com: moved workaround from omap-sar.c to pm44xx.c] Signed-off-by: Tero Kristo --- .../include/mach/ctrl_module_wkup_44xx.h |2 +

[PATCH 12/19] ARM: OMAP4: PM: update ROM return address for OSWR and OFF

2012-04-20 Thread Tero Kristo
neeth Bajjuri Signed-off-by: Bryan Buckley [t-kri...@ti.com: merged the two patches into one] Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/include/mach/omap-secure.h |1 + arch/arm/mach-omap2/omap-mpuss-lowpower.c | 13 + 2 files changed, 14 insertions(+), 0 deletions(-)

[PATCH 08/19] ARM: OMAP4: PM: Add device-off support

2012-04-20 Thread Tero Kristo
able_off_mode (conversely echo '0' will disable it as well). Signed-off-by: Santosh Shilimkar [t-kri...@ti.com: largely re-structured the code] Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/omap-mpuss-lowpower.c | 24 ++- arch/arm/mach-omap2/omap-wakeupgen.c | 47 +++

[PATCH 11/19] ARM: OMAP4: PM: save/restore CM L3INSTR registers when MPU hits OSWR/OFF mode

2012-04-20 Thread Tero Kristo
errata support] Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/omap-mpuss-lowpower.c | 35 - arch/arm/mach-omap2/pm.h |1 + arch/arm/mach-omap2/pm44xx.c |8 ++ 3 files changed, 43 insertions(+), 1 deletions(-) diff --git

Re: [PATCH 00/19] ARM: OMAP4 device off support

2012-04-20 Thread Tero Kristo
On Fri, 2012-04-20 at 17:50 +0530, T Krishnamoorthy, Balaji wrote: > On Fri, Apr 20, 2012 at 3:03 PM, Tero Kristo wrote: > > Hi, > > > > First version for this work. Applies on top of mainline + iochain set + > > OMAP4 core retention set. Working tree available here: &g

Re: [PATCH 00/19] ARM: OMAP4 device off support

2012-04-20 Thread Tero Kristo
On Fri, 2012-04-20 at 06:55 -0700, Kevin Hilman wrote: > Tero Kristo writes: > > [...] > > >> I tried your branch on gp/emu devices but could not reproduce this issue. > >> My observation is that while resuming, omap_hsmmc.1 eMMC is > >> trying to turn o

Re: [PATCH 00/19] ARM: OMAP4 device off support

2012-04-20 Thread Tero Kristo
On Fri, 2012-04-20 at 20:21 +0530, Datta, Shubhrajyoti wrote: > On Fri, Apr 20, 2012 at 8:13 PM, Tero Kristo wrote: > > On Fri, 2012-04-20 at 06:55 -0700, Kevin Hilman wrote: > >> Tero Kristo writes: > >> > >> [...] > >> > >> >> I trie

RE: OMAP3EVM not booting on l-o master

2012-04-23 Thread Tero Kristo
map3beagle and it works with that one.) -Tero >From 26733dd988ccc9e72355a39e01b2d6e9215a892d Mon Sep 17 00:00:00 2001 From: Tero Kristo Date: Mon, 23 Apr 2012 12:14:46 +0300 Subject: [PATCH] ARM: OMAP3: PM: move wakeup event ack to hwmod_io handler PRCM IO interrupts are handled with a shared inter

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