[PATCH 0/6] ARM: OMAP4: Add PMU Support

2012-05-09 Thread Jon Hunter
From: Jon Hunter This series adds PMU support for OMAP4 devices. This is based upon Will Deacons series [1]. This series attempts to fix the management of the EMU power domain so that PMU can be enabled at runtime and low-power states are not prevented when PMU is not in-use. The fix is based

[PATCH 1/6] Re-map the CTIs IRQs from MPU to DEBUGSS

2012-05-09 Thread Jon Hunter
From: Jon Hunter In order to use the CTI interrupts inconjunction with the DEBUGSS we need to re-map the CTI IRQs to the DEBUGSS HWMOD. This is based upon Benoit Cousson's patch [1]. [1] http://lists.infradead.org/pipermail/linux-arm-kernel/2011-November/073319.html Cc: Ming Lei Cc:

[PATCH 2/6] arm: omap4: create pmu device via hwmod

2012-05-09 Thread Jon Hunter
: Kevin Hilman Signed-off-by: Ming Lei Signed-off-by: Will Deacon Signed-off-by: Jon Hunter --- arch/arm/mach-omap2/devices.c | 61 ++--- 1 files changed, 57 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2

[PATCH 3/6] arm: omap4: support pmu

2012-05-09 Thread Jon Hunter
Shilimkar Cc: Woodruff Richard Cc: Ming Lei Cc: Will Deacon Cc: Benoit Cousson Cc: Paul Walmsley Cc: Kevin Hilman Signed-off-by: Ming Lei Signed-off-by: Will Deacon Signed-off-by: Jon Hunter --- arch/arm/mach-omap2/devices.c | 60 +++- arch/arm

[PATCH 4/6] ARM: OMAP4: PMU: Add runtime PM support

2012-05-09 Thread Jon Hunter
From: Jon Hunter This patch is based upon Ming Lei's patch to add runtime PM support for OMAP4 [1]. In Ming's original patch the CTI interrupts were being enabled during runtime when the PMU was used but they were only configured once during init. Therefore move the configuration

[PATCH 5/6] ARM: OMAP4: CLKDM: Update supported transition modes

2012-05-09 Thread Jon Hunter
From: Jon Hunter For OMAP3+ devices, the clock domains (CLKDMs) support one or more of the following transition modes ... NO_SLEEP (0x0) - A clock domain sleep transition is never initiated, irrespective of the hardware conditions. SW_SLEEP (0x1) - A software-forced sleep

[PATCH 6/6] ARM: OMAP4: Prevent EMU power domain transitioning to OFF when in-use

2012-05-09 Thread Jon Hunter
From: Jon Hunter On the OMAP4 devices the EMU power domain is configured in hardware so that its next power state is OFF. This cannot be overriden by software and this means that when ever the EMU clock domain automatically transitions to the idle state, the power domain will transition to OFF

Re: oprofile and ARM A9 hardware counter

2012-05-09 Thread Jon Hunter
Hi All, On 05/09/2012 02:28 PM, Jon Hunter wrote: [...] >>>>> No hacking intended here, just getting the flags correct ;-) >>>>> >>>>> So let me start from the beginning ... >>>>> >>>>> 1. I agree that for the EMU CD

Re: oprofile and ARM A9 hardware counter

2012-05-10 Thread Jon Hunter
Hi Will, On 05/10/2012 03:44 AM, Will Deacon wrote: > On Wed, May 09, 2012 at 10:45:08PM +0100, Jon Hunter wrote: >> Hi All, > > Hi Jon, > >> I have posted my latest series here [1] based upon that from Will [2] >> which attempts to fix the EMU CD based upon the

Re: oprofile and ARM A9 hardware counter

2012-05-10 Thread Jon Hunter
Hi Kevin, On 05/10/2012 09:12 AM, Kevin Hilman wrote: > Jon Hunter writes: > > [...] > >> I have posted my latest series here [1] based upon that from Will [2] >> which attempts to fix the EMU CD based upon the inputs from this thread. >> It is working on my o

Re: oprofile and ARM A9 hardware counter

2012-05-11 Thread Jon Hunter
Hi Will On 05/11/2012 07:25 AM, Will Deacon wrote: > On Thu, May 10, 2012 at 07:55:01PM +0100, Jon Hunter wrote: >> Hi Will, > > Hi Jon, > >> For my testing I have just been reading the PM_EMU_PWRSTST register which >> shows the power state of the EMU power dom

Re: oprofile and ARM A9 hardware counter

2012-05-11 Thread Jon Hunter
Hi Will, On 05/11/2012 08:49 AM, Will Deacon wrote: > On Fri, May 11, 2012 at 02:47:17PM +0100, Jon Hunter wrote: >> On 05/11/2012 07:25 AM, Will Deacon wrote: >>> I figured I may as well take perf for a spin and see how I got on. The good >>> news is that the hwm

Re: oprofile and ARM A9 hardware counter

2012-05-11 Thread Jon Hunter
Hi Will, On 05/11/2012 10:02 AM, Will Deacon wrote: > On Fri, May 11, 2012 at 03:52:59PM +0100, Jon Hunter wrote: >> Hi Will, > > Hello, > >> On 05/11/2012 08:49 AM, Will Deacon wrote: >>> I enabled OMAP3 debug peripherals, so I selected CPU_HAS_PMU that

Re: oprofile and ARM A9 hardware counter

2012-05-11 Thread Jon Hunter
Hi Will, On 05/11/2012 11:38 AM, Will Deacon wrote: > On Fri, May 11, 2012 at 05:31:47PM +0100, Jon Hunter wrote: >> Can you send me your .config? > > Sent off-list. > >> At the same time, maybe just try "make omap2plus_defconfig" and enable >> the OMA

Re: [PATCH 5/6] ARM: OMAP4: CLKDM: Update supported transition modes

2012-05-15 Thread Jon Hunter
Hi Santosh, Benoit, On 05/10/2012 01:54 AM, Santosh Shilimkar wrote: > On Thursday 10 May 2012 03:06 AM, Jon Hunter wrote: >> From: Jon Hunter >> >> For OMAP3+ devices, the clock domains (CLKDMs) support one or more of the >> following transition modes ... >> &

Re: [PATCH 4/6] ARM: OMAP4: PMU: Add runtime PM support

2012-05-15 Thread Jon Hunter
Hi Ming, On 05/14/2012 11:53 PM, Ming Lei wrote: > On Thu, May 10, 2012 at 5:35 AM, Jon Hunter wrote: >> From: Jon Hunter >> >> This patch is based upon Ming Lei's patch to add runtime PM support for OMAP4 >> [1]. In Ming's original patch the CTI interrupts

[PATCH 0/9] ARM: OMAP: DMTIMER clean-up in preparation for device-tree

2012-05-15 Thread Jon Hunter
From: Jon Hunter In order to migrate the dmtimer driver to support device-tree I found that it was first necessary to clean-up the timer platform data. The goal of this series is to simplify the timer platform data structure from ... struct dmtimer_platform_data { int (*set_timer_src

[PATCH 1/9] ARM: OMAP: Remove unnecessary clk structure

2012-05-15 Thread Jon Hunter
From: Jon Hunter In the plat/dmtimer.h there is a structure named "clk" declared. This structure is not used and appears to be left over from previous code. Hence, remove this unused structure. Verified that both omap1 and omap2plus kernel configurations build with this change. Sig

[PATCH 2/9] ARM: OMAP2+: Remove unused max number of timers definition

2012-05-15 Thread Jon Hunter
From: Jon Hunter The OMAP2+ timer code has a definition for the maximum number of timers that OMAP2+ devices have. This defintion is not used anywhere in the code and appears to be left over. Furthermore the definition is not accurate for OMAP4 devices that only have 11 timers available because

[PATCH 3/9] ARM: OMAP2+: Add dmtimer platform function to reserve systimers

2012-05-15 Thread Jon Hunter
From: Jon Hunter During early boot, two timers are reserved by the kernel as system timers (for clocksource and clockevents). These timers are marked as reserved and the dmtimer driver is notified which timers have been reserved via the platform data information. For OMAP2+ devices the timers

[PATCH 4/9] ARM: OMAP: Represent timer features using HWMOD flags

2012-05-15 Thread Jon Hunter
From: Jon Hunter Although the OMAP timers share a common hardware design, there are some differences between the timer instances in a given device. For example, a timer maybe in a power domain that can be powered-of, so can lose its logic state and need restoring where as another may be in power

[PATCH 5/9] ARM: OMAP2+: HWMOD: Correct timer device attributes

2012-05-15 Thread Jon Hunter
From: Jon Hunter Fix the following issues with the timer device attributes for OMAP2+ devices: 1. For OMAP24xx devices, timers 2-8 have the ALWAYS-ON attribute indicating that these timers are in an ALWAYS-ON power domain. This is not the case only timer1 is in an ALWAYS-ON power domain

[PATCH 7/9] ARM: OMAP: Remove loses_context variable from timer platform data

2012-05-15 Thread Jon Hunter
From: Jon Hunter The platform data variable loses_context is used to determine if the timer may lose its logic state during power transitions and so needs to be restored. This information is also provided in the HWMOD device attributes for OMAP2+ devices via the OMAP_TIMER_ALWON flag. When this

[PATCH 8/9] ARM: OMAP: Remove timer function pointer for context loss counter

2012-05-15 Thread Jon Hunter
From: Jon Hunter For OMAP2+ devices, a function pointer that returns the number of times a timer power domain has lost context is passed to the dmtimer driver. This function pointer is only populated for OMAP2+ devices and it is pointing to a platform function. Given that this is a platform

[PATCH 9/9] ARM: OMAP: Add flag to indicate if a timer needs a manual reset

2012-05-15 Thread Jon Hunter
From: Jon Hunter For OMAP1 devices, it is necessary to perform a manual reset of the timer. Currently, this is indicating by setting the "needs_manual_reset" variable in the platform data. Instead of using an extra variable to indicate this add a new timer capabilities flag to indicat

[PATCH 6/9] ARM: OMAP2+: Fix external clock support for dmtimers

2012-05-15 Thread Jon Hunter
From: Jon Hunter Currently, the dmtimer determines whether an timer can support an external clock source (sys_altclk) for driving the timer by the IP version. Only OMAP24xx devices can support an external clock source, but the IP version between OMAP24xx and OMAP3xxx is common and so this

Re: [PATCH V3 1/2] of: Add generic device tree DMA helpers

2012-05-15 Thread Jon Hunter
Hi Jassi, On 05/12/2012 08:40 AM, Jassi Brar wrote: > On 12 May 2012 05:21, Stephen Warren wrote: >> On 05/11/2012 03:06 PM, Jassi Brar wrote: >>> On 12 May 2012 00:58, Stephen Warren wrote: On 05/10/2012 01:59 PM, Jassi Brar wrote: >> ... >> client0: i2s { >> /* has 2 DMA request

Re: [PATCH V3 1/2] of: Add generic device tree DMA helpers

2012-05-15 Thread Jon Hunter
Hi Jassi, On 05/04/2012 02:01 PM, Jassi Brar wrote: > On 4 May 2012 20:47, Jon Hunter wrote: >> Hi Jassi, >> >> On 05/04/2012 01:56 AM, Jassi Brar wrote: >>> On 1 May 2012 02:47, Jon Hunter wrote: >>>> From: Jon Hunter >>>> >>>

Re: [PATCH V3 1/2] of: Add generic device tree DMA helpers

2012-05-16 Thread Jon Hunter
Hi Jassi, On 05/16/2012 07:37 AM, Jassi Brar wrote: > Hi Jon, > > On 16 May 2012 06:41, Jon Hunter wrote: >> On 05/04/2012 02:01 PM, Jassi Brar wrote: >>> >>> + i2c1: i2c@1 { >>> + ... >

Re: [PATCH 0/9] ARM: OMAP: DMTIMER clean-up in preparation for device-tree

2012-05-16 Thread Jon Hunter
Hi Benoit, On 05/16/2012 04:28 AM, Cousson, Benoit wrote: > Hi Jon, > > On 5/16/2012 1:35 AM, Jon Hunter wrote: >> From: Jon Hunter >> >> In order to migrate the dmtimer driver to support device-tree I found >> that it >> was first necessary to clean-up th

Re: [PATCH V3 1/2] of: Add generic device tree DMA helpers

2012-05-16 Thread Jon Hunter
On 05/16/2012 08:15 AM, Jon Hunter wrote: > Hi Jassi, > > On 05/16/2012 07:37 AM, Jassi Brar wrote: >> Hi Jon, >> >> On 16 May 2012 06:41, Jon Hunter wrote: >>> On 05/04/2012 02:01 PM, Jassi Brar wrote: >>>> >>>> + i2c1: i2c@1 {

Re: [PATCH V3 1/2] of: Add generic device tree DMA helpers

2012-05-16 Thread Jon Hunter
On 05/16/2012 10:44 AM, Stephen Warren wrote: > On 05/16/2012 07:15 AM, Jon Hunter wrote: >> Hi Jassi, >> >> On 05/16/2012 07:37 AM, Jassi Brar wrote: >>> Hi Jon, >>> >>> On 16 May 2012 06:41, Jon Hunter wrote: >>>> On 05/04/2012

Re: [PATCH V3 1/2] of: Add generic device tree DMA helpers

2012-05-16 Thread Jon Hunter
On 05/16/2012 11:22 AM, Jassi Brar wrote: [...] > OK, my guts feel people might be interested in what's cooking on > my side. I started with the binding text first and then would write > code based upon that approach. > > The following might be tweaked as I look deeper into client and DMAC > dr

Re: [PATCH V3 1/2] of: Add generic device tree DMA helpers

2012-05-16 Thread Jon Hunter
On 05/16/2012 11:16 AM, Jassi Brar wrote: > On 16 May 2012 21:31, Jon Hunter wrote: >> On 05/16/2012 08:15 AM, Jon Hunter wrote: >>> Hi Jassi, >>> >>> On 05/16/2012 07:37 AM, Jassi Brar wrote: >>>> Hi Jon, >>>> >>>> On 1

Re: [PATCH V3 1/2] of: Add generic device tree DMA helpers

2012-05-16 Thread Jon Hunter
On 05/16/2012 12:24 PM, Jassi Brar wrote: > On 16 May 2012 22:42, Jon Hunter wrote: > >>>> What is still unclear to me, is if you use this token approach how >>>> readable is the device-tree? For example, if you have a client that can >>>> use one

Re: [PATCH V3 1/2] of: Add generic device tree DMA helpers

2012-05-16 Thread Jon Hunter
On 05/16/2012 12:46 PM, Stephen Warren wrote: > On 05/16/2012 11:37 AM, Jon Hunter wrote: >> >> >> On 05/16/2012 12:24 PM, Jassi Brar wrote: >>> On 16 May 2012 22:42, Jon Hunter wrote: >>> >>>>>> What is still unclear to me, is if you

Re: [PATCH 0/9] ARM: OMAP: DMTIMER clean-up in preparation for device-tree

2012-05-16 Thread Jon Hunter
Hi Benoit, On 05/16/2012 04:28 AM, Cousson, Benoit wrote: > Hi Jon, > > On 5/16/2012 1:35 AM, Jon Hunter wrote: >> From: Jon Hunter >> >> In order to migrate the dmtimer driver to support device-tree I found >> that it >> was first necessary to clean-up th

Re: [PATCH 0/9] ARM: OMAP: DMTIMER clean-up in preparation for device-tree

2012-05-17 Thread Jon Hunter
Hi Paul, On 05/16/2012 06:30 PM, Paul Walmsley wrote: > Hello Jon, > > On Wed, 16 May 2012, Jon Hunter wrote: > >> I have been looking into this and in order to get rid for the above >> function pointer we would need to move at a minimum the following >> functions

Re: [PATCH 0/9] ARM: OMAP: DMTIMER clean-up in preparation for device-tree

2012-05-17 Thread Jon Hunter
Hi Tarun, On 05/17/2012 12:07 AM, DebBarma, Tarun Kanti wrote: > On Thu, May 17, 2012 at 1:44 AM, Jon Hunter wrote: >> Hi Benoit, >> >> On 05/16/2012 04:28 AM, Cousson, Benoit wrote: >>> Hi Jon, >>> >>> On 5/16/2012 1:35 AM, Jon Hunter wrote: >

Re: [PATCH 3/6] arm: omap4: support pmu

2012-05-18 Thread Jon Hunter
Hi Ming, On 05/16/2012 05:12 AM, Ming Lei wrote: > On Thu, May 10, 2012 at 5:35 AM, Jon Hunter wrote: > >> + >> + /*configure CTI0 for pmu irq routing*/ >> + cti_init(&omap4_cti[0], base0, OMAP44XX_IRQ_CTI0, 6); >> + cti_unlock(&oma

Re: [PATCH 2/6] arm: omap4: create pmu device via hwmod

2012-05-18 Thread Jon Hunter
Hi Benoit, On 05/10/2012 04:56 AM, Cousson, Benoit wrote: > Hi Jon & Ming, > > On 5/9/2012 11:35 PM, Jon Hunter wrote: >> From: Ming Lei >> >> The following modules is required to be enabled before configuring >> cross trigger interface for enabling pmu ir

Re: [PATCH 6/9] ARM: OMAP2+: Fix external clock support for dmtimers

2012-05-22 Thread Jon Hunter
Hi Benoit, On 05/21/2012 11:58 AM, Cousson, Benoit wrote: > Hi Jon, > > On 5/16/2012 1:35 AM, Jon Hunter wrote: >> From: Jon Hunter >> >> Currently, the dmtimer determines whether an timer can support an >> external >> clock source (sys_altclk) for dr

[PATCH 0/5] ARM: OMAP: Fix OMAP1 dmtimer support

2012-05-22 Thread Jon Hunter
From: Jon Hunter OMAP1 dmtimer support is currently broken. When a dmtimer is requested by the omap_dm_timer_request() function fails to allocate a dmtimer because the call to clk_get() inside omap_dm_timer_prepare fails. The clk_get() fails simply because the clock data for the OMAP1 dmtimers

[PATCH 2/5] ARM: OMAP2+: Remove omap2_clk_set_parent function

2012-05-22 Thread Jon Hunter
From: Jon Hunter The function omap2_clk_set_parent is just a wrapper for the omap_clksel_set_parent() function. Now we have moved the omap_clksel_set_parent() function into the plat-omap directory for all OMAP devices to use, we should just use this function directly and we can eliminate the

[PATCH 3/5] ARM: OMAP2+: Simplify dmtimer clock aliases

2012-05-22 Thread Jon Hunter
From: Jon Hunter The OMAP dmtimer driver allows you to dynamically configure the functional clock that drives the timer logic. The dmtimer driver uses the device name and a "con-id" string to search for the appropriate functional clock. Currently, we define a clock alias for each

[PATCH 4/5] ARM: OMAP1: Add dmtimer clock data

2012-05-22 Thread Jon Hunter
From: Jon Hunter Add clock data for the 8 dmtimers present on OMAP16xx (including OMAP5912) and OMAP17xx devices. These timers support 3 different clock sources which are the 32kHz clock, ARMXOR clock and an external clock source. Signed-off-by: Jon Hunter --- arch/arm/mach-omap1/clock_data.c

[PATCH 5/5] ARM: OMAP: For all OMAP devices use clock framework to set dmtimer clock source

2012-05-22 Thread Jon Hunter
From: Jon Hunter OMAP1 and OMAP2+ devices had architecture specific functions for configuring the dmtimer clock source. This was simply because the OMAP1 devices did not support the clock framework for dynamically setting a clock's parent. Now OMAP1 can use the clock framework to set the p

Re: [PATCH 0/9] ARM: OMAP: DMTIMER clean-up in preparation for device-tree

2012-05-22 Thread Jon Hunter
Hi Tony, Paul, On 05/17/2012 11:48 AM, Paul Walmsley wrote: > On Thu, 17 May 2012, Jon Hunter wrote: > >> Yes that's right. What is your preference here, the options are ... >> >> 1. Move the clkt_clksel.c file to arch/arm/plat-omap and change the >> omap2_x

Re: [PATCH 4/5] ARM: OMAP1: Add dmtimer clock data

2012-05-22 Thread Jon Hunter
On 05/22/2012 03:17 PM, Jon Hunter wrote: > From: Jon Hunter > > Add clock data for the 8 dmtimers present on OMAP16xx (including OMAP5912) > and OMAP17xx devices. These timers support 3 different clock sources which > are the 32kHz clock, ARMXOR clock and an external clock so

Re: [PATCH 5/5] ARM: OMAP: For all OMAP devices use clock framework to set dmtimer clock source

2012-05-22 Thread Jon Hunter
On 05/22/2012 03:17 PM, Jon Hunter wrote: > From: Jon Hunter > > OMAP1 and OMAP2+ devices had architecture specific functions for configuring > the dmtimer clock source. This was simply because the OMAP1 devices did not > support the clock framework for dynamically setting a cloc

Re: [PATCH 0/3] omap3/omap4: add device tree support for wdt

2012-05-29 Thread Jon Hunter
Hi Xiao Jiang, On 05/25/2012 05:42 AM, jgq...@gmail.com wrote: > From: Xiao Jiang > > This series can be applied to dt branch of linux-omap tree. Thanks for sending this! > Since omap24xx series has different wdt base addr (omap2420: 0x48022000 and > omap2430: 0x49016000) per commit 2817142f31

Re: [PATCH 1/3] arm/dts: add wdt node for omap3 and omap4

2012-05-29 Thread Jon Hunter
On 05/25/2012 05:42 AM, jgq...@gmail.com wrote: > From: Xiao Jiang > > Add wdt node to support dt. > > Signed-off-by: Xiao Jiang > --- > arch/arm/boot/dts/omap3.dtsi |5 + > arch/arm/boot/dts/omap4.dtsi |5 + > 2 files changed, 10 insertions(+), 0 deletions(-) > > diff --git

Re: [PATCH 2/3] OMAP: avoid build wdt platform device if with dt support

2012-05-29 Thread Jon Hunter
uot;wd_timer2"; > char *dev_name = "omap_wdt"; > > - if (!cpu_class_is_omap2()) > + if (!cpu_class_is_omap2() || of_have_populated_dt()) > return 0; > > oh = omap_hwmod_lookup(oh_name); Reviewed-by: Jon Hunter Cheers Jon --

Re: [PATCH 3/3] watchdog: omap_wdt: add device tree support

2012-05-29 Thread Jon Hunter
On 05/25/2012 05:42 AM, jgq...@gmail.com wrote: > From: Xiao Jiang > > Add device table for omap_wdt to support dt. > > Signed-off-by: Xiao Jiang > --- > drivers/watchdog/omap_wdt.c |8 > 1 files changed, 8 insertions(+), 0 deletions(-) > > diff --git a/drivers/watchdog/omap_wdt

Re: [PATCH 4/6] ARM: OMAP4: PMU: Add runtime PM support

2012-05-29 Thread Jon Hunter
Hi Kevin, On 05/29/2012 04:17 PM, Kevin Hilman wrote: > Jon Hunter writes: > >> From: Jon Hunter >> >> This patch is based upon Ming Lei's patch to add runtime PM support for OMAP4 >> [1]. In Ming's original patch the CTI interrupts were being enabled

Re: [PATCH 4/6] ARM: OMAP4: PMU: Add runtime PM support

2012-05-29 Thread Jon Hunter
Hi Kevin, On 05/29/2012 05:07 PM, Jon Hunter wrote: > Hi Kevin, > > On 05/29/2012 04:17 PM, Kevin Hilman wrote: >> Jon Hunter writes: >> >>> From: Jon Hunter >>> >>> This patch is based upon Ming Lei's patch to add runtime PM support for

Re: [PATCH 1/3] arm/dts: add wdt node for omap3 and omap4

2012-05-30 Thread Jon Hunter
On 05/29/2012 10:19 PM, Xiao Jiang wrote: > Jon Hunter wrote: >> On 05/25/2012 05:42 AM, jgq...@gmail.com wrote: >> >>> From: Xiao Jiang >>> >>> Add wdt node to support dt. >>> >>> Signed-off-by: Xiao Jiang >>> --- >&g

Re: [PATCH 3/3] watchdog: omap_wdt: add device tree support

2012-05-30 Thread Jon Hunter
Hi Benoit, On 05/30/2012 02:54 AM, Cousson, Benoit wrote: > On 5/30/2012 5:18 AM, Xiao Jiang wrote: >> Jon Hunter wrote: >>> On 05/25/2012 05:42 AM, jgq...@gmail.com wrote: >>>> From: Xiao Jiang >>>> >>>> Add device table for omap_

Re: [PATCH 3/3] watchdog: omap_wdt: add device tree support

2012-05-30 Thread Jon Hunter
Hi Benoit, On 05/30/2012 10:30 AM, Cousson, Benoit wrote: > Hi Jon, > > On 5/30/2012 5:03 PM, Jon Hunter wrote: >> Hi Benoit, >> >> On 05/30/2012 02:54 AM, Cousson, Benoit wrote: >>> On 5/30/2012 5:18 AM, Xiao Jiang wrote: >>>> Jon Hunter wrote

Re: [PATCH 1/3] arm/dts: add wdt node for omap3 and omap4

2012-05-31 Thread Jon Hunter
On 05/31/2012 12:51 AM, Xiao Jiang wrote: > Hi Jon and Benoit, >>> Thanks for reminding, how about below patch? >>> >>> diff --git a/Documentation/devicetree/bindings/watchdog/omap-wdt.txt >>> b/Documentation/devicetree/bindings/watchdog/omap-wdt.txt >>> new file mode 100644 >>> index 000..427

Re: [PATCH 4/6] ARM: OMAP4: PMU: Add runtime PM support

2012-05-31 Thread Jon Hunter
Hi Kevin, On 05/30/2012 04:50 PM, Kevin Hilman wrote: [...] > I'm guessing you probably know my thoughts since you've already thought > through how this should probably look. > > Basically, I don't like the result when we have to hack around missing > runtime PM support for a driver, so IMO, th

Re: [PATCH 4/6] ARM: OMAP4: PMU: Add runtime PM support

2012-05-31 Thread Jon Hunter
Hi Will, On 05/30/2012 08:29 PM, Will Deacon wrote: > Hi Kevin, > > On Wed, May 30, 2012 at 10:50:01PM +0100, Kevin Hilman wrote: >> Basically, I don't like the result when we have to hack around missing >> runtime PM support for a driver, so IMO, the driver should be updated. >> >> IOW, it looks

Re: [PATCH 4/6] ARM: OMAP4: PMU: Add runtime PM support

2012-05-31 Thread Jon Hunter
on OMAP for some quick testing. However, I would need to make sure this does not break compilation without runtime PM enabled. Let me know your thoughts. Cheers Jon >From b111bcb24737e070ee1ce7ea3d1deb60a4d6f266 Mon Sep 17 00:00:00 2001 From: Jon Hunter Date: Thu, 31 May 2012 13:05:20 -0500 S

Re: [PATCH 4/6] ARM: OMAP4: PMU: Add runtime PM support

2012-05-31 Thread Jon Hunter
On 05/31/2012 10:05 AM, Jon Hunter wrote: > Hi Will, > > On 05/30/2012 08:29 PM, Will Deacon wrote: >> Hi Kevin, >> >> On Wed, May 30, 2012 at 10:50:01PM +0100, Kevin Hilman wrote: >>> Basically, I don't like the result when we have to hack around missin

Re: [PATCH 4/6] ARM: OMAP4: PMU: Add runtime PM support

2012-05-31 Thread Jon Hunter
Hi Kevin, On 05/31/2012 03:42 PM, Kevin Hilman wrote: > Jon Hunter writes: > >> Hi Kevin, Will, >> >> On 05/30/2012 08:29 PM, Will Deacon wrote: >>> Hi Kevin, >>> >>> On Wed, May 30, 2012 at 10:50:01PM +0100, Kevin Hilman wrote: >>&

Re: [PATCH 4/6] ARM: OMAP4: PMU: Add runtime PM support

2012-05-31 Thread Jon Hunter
Hi Kevin, On 05/31/2012 05:36 PM, Kevin Hilman wrote: > Jon Hunter writes: > >> Hi Kevin, >> >> On 05/31/2012 03:42 PM, Kevin Hilman wrote: >>> Jon Hunter writes: >>> >>>> Hi Kevin, Will, >>>> >>>> On 05/30/2012 08

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

2012-05-31 Thread Jon Hunter
Hi Tero, On 05/31/2012 08:29 AM, Tero Kristo wrote: > Previously, PER clock domain was always enabled, as the usecounts > for this domain incorrectly always showed positive value. On HW > level though, the domain enters idle as it is set in HW supervised > mode. Now, when the usecounts reflect rea

Re: [PATCHv2 0/3] omap3 and omap4: add device tree support for wdt

2012-06-01 Thread Jon Hunter
rs/watchdog/omap_wdt.c|7 +++ > 5 files changed, 32 insertions(+), 1 deletions(-) > create mode 100644 Documentation/devicetree/bindings/watchdog/omap-wdt.txt Thanks! Looks good to me. Reviewed-by: Jon Hunter Cheers Jon -- To unsubscribe from this list: se

Re: [PATCH 4/6] ARM: OMAP4: PMU: Add runtime PM support

2012-06-01 Thread Jon Hunter
On 05/31/2012 07:27 PM, Kevin Hilman wrote: > Jon Hunter writes: > >> Hi Kevin, >> >> On 05/31/2012 05:36 PM, Kevin Hilman wrote: >>> Jon Hunter writes: >>> >>>> Hi Kevin, >>>> >>>> On 05/31/2012 03:42

Re: [RFC 00/24] Move OMAP2+ over to use COMMON clock

2012-06-01 Thread Jon Hunter
Hi Rajendra, Paul, On 06/01/2012 07:07 AM, Rajendra Nayak wrote: > Hi, > > This RFC series is based of Mikes' latest clk-next. I will > rebase it once 3.5-rc1 is out and post with more testing thats > in progress. Meanwhile, the RFC is for me to get some early > feedback on the patches. > > This

Re: [RFC 00/24] Move OMAP2+ over to use COMMON clock

2012-06-01 Thread Jon Hunter
Hi Rajendra, On 06/01/2012 07:07 AM, Rajendra Nayak wrote: > Hi, > > This RFC series is based of Mikes' latest clk-next. I will > rebase it once 3.5-rc1 is out and post with more testing thats > in progress. Meanwhile, the RFC is for me to get some early > feedback on the patches. > > This serie

Re: [RFC 00/24] Move OMAP2+ over to use COMMON clock

2012-06-04 Thread Jon Hunter
Hi Rajendra, On 06/04/2012 03:52 AM, Rajendra Nayak wrote: > Hi Jon, > > On Saturday 02 June 2012 04:57 AM, Jon Hunter wrote: >> Hi Rajendra, >> >> On 06/01/2012 07:07 AM, Rajendra Nayak wrote: >>> Hi, >>> >>> This RFC series is based of Mik

Re: [RFC 05/24] ARM: omap: clk: Nuke plat clock.c & clock.h if CONFIG_COMMON_CLK

2012-06-04 Thread Jon Hunter
Hi Rajendra, On 06/01/2012 07:07 AM, Rajendra Nayak wrote: > Moving to COMMON clk, plat/clock.c and plat/clock.h files will no > longer be used. Move whatever is useful for OMAP2+ for implementing > platform code into mach/clock.h. > > plat/clock.c which has most of usecounting/locking infrastruc

Re: [PATCH 0/9] ARM: OMAP: DMTIMER clean-up in preparation for device-tree

2012-06-04 Thread Jon Hunter
Hi Benoit, On 05/16/2012 04:28 AM, Cousson, Benoit wrote: > Hi Jon, > > On 5/16/2012 1:35 AM, Jon Hunter wrote: >> From: Jon Hunter >> >> In order to migrate the dmtimer driver to support device-tree I found >> that it >> was first necessary to clean-up th

Re: [RFC 05/24] ARM: omap: clk: Nuke plat clock.c & clock.h if CONFIG_COMMON_CLK

2012-06-04 Thread Jon Hunter
On 06/04/2012 09:16 AM, Rajendra Nayak wrote: > >>> +/* struct clksel_rate.flags possibilities */ >>> +#define RATE_IN_242X(1<< 0) >>> +#define RATE_IN_243X(1<< 1) >>> +#define RATE_IN_3430ES1(1<< 2)/* 3430ES1 rates only */ >>> +#define RATE_IN_3430ES2PLUS(1<<

[PATCH V2 00/11] ARM: OMAP: DMTIMER clean-up and fixes in preparation for device-tree

2012-06-04 Thread Jon Hunter
Beagle and OMAP4460 PANDA. Jon Hunter (11): ARM: OMAP: Remove unnecessary clk structure ARM: OMAP2+: Remove unused max number of timers definition ARM: OMAP2+: Add dmtimer platform function to reserve systimers ARM: OMAP: Add DMTIMER capability variable to represent timer features

[PATCH V2 01/11] ARM: OMAP: Remove unnecessary clk structure

2012-06-04 Thread Jon Hunter
In the plat/dmtimer.h there is a structure named "clk" declared. This structure is not used and appears to be left over from previous code. Hence, remove this unused structure. Verified that both omap1 and omap2plus kernel configurations build with this change. Signed-off-by:

[PATCH V2 02/11] ARM: OMAP2+: Remove unused max number of timers definition

2012-06-04 Thread Jon Hunter
reserved as a secure timer. Therefore, remove this definition. Signed-off-by: Jon Hunter --- arch/arm/mach-omap2/timer.c |3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm/mach-omap2/timer.c b/arch/arm/mach-omap2/timer.c index 840929b..c030dfe 100644 --- a/arch/arm/mach-omap2

[PATCH V2 04/11] ARM: OMAP: Add DMTIMER capability variable to represent timer features

2012-06-04 Thread Jon Hunter
ever, such attributes do not need to be queried at runtime and we can look up the attributes via HWMOD or device-tree. This changes a new "capability" variable to the platform data and timer structure so we can start removing and simplifying the platform data structure. Signed-off-by: Jon H

[PATCH V2 03/11] ARM: OMAP2+: Add dmtimer platform function to reserve systimers

2012-06-04 Thread Jon Hunter
"reserved" member from the timer platform data. This seemed like the simpler approach and so was implemented here. Signed-off-by: Jon Hunter --- arch/arm/mach-omap2/timer.c |9 ++--- arch/arm/plat-omap/dmtimer.c | 18 +- arch/arm

[PATCH V2 05/11] ARM: OMAP2+: HWMOD: Correct timer device attributes

2012-06-04 Thread Jon Hunter
. Signed-off-by: Jon Hunter --- arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c |7 --- arch/arm/mach-omap2/omap_hwmod_3xxx_data.c |8 +--- arch/arm/mach-omap2/omap_hwmod_44xx_data.c |6 -- 3 files changed, 1 insertion(+), 20 deletions(-) diff --git a/arch/arm

[PATCH V2 06/11] ARM: OMAP1: Fix dmtimer support

2012-06-04 Thread Jon Hunter
se for the same purpose in omap_dm_timer_stop(). Signed-off-by: Jon Hunter --- arch/arm/plat-omap/dmtimer.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/arch/arm/plat-omap/dmtimer.c b/arch/arm/plat-omap/dmtimer.c index 30742d8e6..d284b5d 100644 --- a/arc

[PATCH V2 07/11] ARM: OMAP2+: Fix external clock support for dmtimers

2012-06-04 Thread Jon Hunter
minate the "timer_ip_version" variable passed as part of the platform data and simplify the code. We can also remove the timer IP version from the HWMOD data because the dmtimer driver uses the TIDR register to determine the IP version. Signed-off-by: Jon Hunter --- arch/arm/mach-omap2/omap_hwmod

[PATCH V2 08/11] ARM: OMAP: Remove loses_context variable from timer platform data

2012-06-04 Thread Jon Hunter
timer will not lose context. So use the HWMOD device attributes to determine this. For OMAP1 devices, loses_context is never set and so set the OMAP_TIMER_ALWON flag for OMAP1 timers to ensure that code is equivalent. Signed-off-by: Jon Hunter --- arch/arm/mach-omap1/timer.c |1

[PATCH V2 09/11] ARM: OMAP: Remove timer function pointer for context loss counter

2012-06-04 Thread Jon Hunter
simplifies the dmtimer migration to device-tree. Signed-off-by: Jon Hunter --- arch/arm/mach-omap1/timer.c |4 ++-- arch/arm/mach-omap2/timer.c |3 --- arch/arm/plat-omap/dmtimer.c | 26 ++ arch/arm/plat-omap/include/plat

[PATCH V2 10/11] ARM: OMAP2+: Move dmtimer clock set function to dmtimer driver

2012-06-04 Thread Jon Hunter
uld specify an architecture specific function for setting the clock source via the platform data set_dmtimer_src() function pointer. Signed-off-by: Jon Hunter --- arch/arm/mach-omap2/timer.c | 56 - arch/arm/plat-omap/dmtimer.c |

[PATCH V2 11/11] ARM: OMAP2+: Simplify dmtimer clock aliases

2012-06-04 Thread Jon Hunter
2 only) an external clock. By defining a unique con-id name for each of these (timer_32k_ck, timer_sys_ck and timer_ext_ck) we can eliminate a lot of the clock aliases for timers. This reduces code, speeds-up searches and clock initialisation time. Signed-off-by: Jon Hunter --- arch/arm/

Re: [PATCH V2 00/11] ARM: OMAP: DMTIMER clean-up and fixes in preparation for device-tree

2012-06-04 Thread Jon Hunter
On 06/04/2012 12:22 PM, Jon Hunter wrote: > In order to migrate the dmtimer driver to support device-tree I found that it > was first necessary to clean-up the timer platform data. The goal of this > series is to simplify the timer platform data structure from ... &g

Re: [PATCH V2 09/11] ARM: OMAP: Remove timer function pointer for context loss counter

2012-06-04 Thread Jon Hunter
On 06/04/2012 12:22 PM, Jon Hunter wrote: > For OMAP2+ devices, a function pointer that returns the number of times a > timer > power domain has lost context is passed to the dmtimer driver. This function > pointer is only populated for OMAP2+ devices and it is pointing to a platfor

[PATCH V3 00/12] ARM: OMAP: DMTIMER clean-up and fixes in preparation for device-tree

2012-06-04 Thread Jon Hunter
:-( V2: - Fix OMAP1 dmtimer support which currently broken. Requesting a timer fails because clk_get() is called and this is not support for OMAP1 devices. - Only use "set_timer_src" function pointer for OMAP1 devices. Jon Hunter (12): ARM: OMAP: Remove unnecessary clk structure

[PATCH V3 03/12] ARM: OMAP2+: Add dmtimer platform function to reserve systimers

2012-06-04 Thread Jon Hunter
remove the "reserved" member from the timer platform data. This seemed like the simpler approach and so was implemented here. Signed-off-by: Jon Hunter --- arch/arm/mach-omap2/timer.c |9 ++--- arch/arm/plat-omap/dmtimer.c | 18 +- arc

[PATCH V3 02/12] ARM: OMAP2+: Remove unused max number of timers definition

2012-06-04 Thread Jon Hunter
reserved as a secure timer and for OMAP3 devices the 12th timer is not available on secure devices. Therefore, remove this definition. Signed-off-by: Jon Hunter --- arch/arm/mach-omap2/timer.c |3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm/mach-omap2/timer.c b/arch/arm/mach

[PATCH V3 01/12] ARM: OMAP: Remove unnecessary clk structure

2012-06-04 Thread Jon Hunter
In the plat/dmtimer.h there is a structure named "clk" declared. This structure is not used and appears to be left over from previous code. Hence, remove this unused structure. Verified that both omap1 and omap2plus kernel configurations build with this change. Signed-off-by:

[PATCH V3 04/12] ARM: OMAP: Add DMTIMER capability variable to represent timer features

2012-06-04 Thread Jon Hunter
ever, such attributes do not need to be queried at runtime and we can look up the attributes via HWMOD or device-tree. This changes a new "capability" variable to the platform data and timer structure so we can start removing and simplifying the platform data structure. Signed-off-by: Jon H

[PATCH V3 05/12] ARM: OMAP2+: HWMOD: Correct timer device attributes

2012-06-04 Thread Jon Hunter
domain. Signed-off-by: Jon Hunter --- arch/arm/mach-omap2/omap_hwmod_2xxx_ipblock_data.c |7 --- arch/arm/mach-omap2/omap_hwmod_3xxx_data.c |8 +--- arch/arm/mach-omap2/omap_hwmod_44xx_data.c |6 -- 3 files changed, 1 insertion(+), 20 deletions(-) diff --git

[PATCH V3 06/12] ARM: OMAP1: Fix dmtimer support

2012-06-04 Thread Jon Hunter
se for the same purpose in omap_dm_timer_stop(). Signed-off-by: Jon Hunter --- arch/arm/plat-omap/dmtimer.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/arch/arm/plat-omap/dmtimer.c b/arch/arm/plat-omap/dmtimer.c index 30742d8e6..d284b5d 100644 --- a/arc

[PATCH V3 08/12] ARM: OMAP: Remove loses_context variable from timer platform data

2012-06-04 Thread Jon Hunter
timer will not lose context. So use the HWMOD device attributes to determine this. For OMAP1 devices, loses_context is never set and so set the OMAP_TIMER_ALWON flag for OMAP1 timers to ensure that code is equivalent. Signed-off-by: Jon Hunter --- arch/arm/mach-omap1/timer.c |1

[PATCH V3 07/12] ARM: OMAP2+: Fix external clock support for dmtimers

2012-06-04 Thread Jon Hunter
minate the "timer_ip_version" variable passed as part of the platform data and simplify the code. We can also remove the timer IP version from the HWMOD data because the dmtimer driver uses the TIDR register to determine the IP version. Signed-off-by: Jon Hunter --- arch/arm/mach-omap2/omap_hwmod

[PATCH V3 09/12] ARM: OMAP: Remove timer function pointer for context loss counter

2012-06-04 Thread Jon Hunter
simplifies the dmtimer migration to device-tree. Signed-off-by: Jon Hunter --- arch/arm/mach-omap2/timer.c |3 --- arch/arm/plat-omap/dmtimer.c | 17 +++-- arch/arm/plat-omap/include/plat/dmtimer.h |3 --- 3 files changed, 7 insertions(+), 16 deletions

[PATCH V3 10/12] ARM: OMAP: Add flag to indicate if a timer needs a manual reset

2012-06-04 Thread Jon Hunter
remove the "needs_manual_reset" member from the platform data. Signed-off-by: Jon Hunter --- arch/arm/mach-omap1/timer.c |4 ++-- arch/arm/plat-omap/dmtimer.c |9 +++-- arch/arm/plat-omap/include/plat/dmtimer.h |1 + 3 files changed, 6 insertions(+),

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