Re: [PATCHV2 2/2] OMAP3630: Clock: Fixing HSDivider Limitation

2010-01-19 Thread Mike Turquette
be restored by writing a dummy value to the register different than what is in there, and then re-writing the desired value. This Work around is applicable for below HS Dividers. 1. DPLL3_M3 2. DPLL4_M2 3. DPLL4_M3 4. DPLL4_M4 5. DPLL4_M5 6. DPLL4_M6 Signed-off-by: Mike Turquette mturque...@ti.com

Re: [PATCH v2 1/6] omap3: pm: re-program the sleep state of TRITON resources by modifying the REMAP register

2010-01-21 Thread Mike Turquette
Lesly AM wrote: - Original Message - From: Mike Rapoport m...@compulab.co.il To: x0080...@ti.com Cc: linux-omap@vger.kernel.org; Nishanth Menon n...@ti.com; David Derrick dderr...@ti.com; Samuel Ortiz sa...@linux.intel.com Sent: Wednesday, January 20, 2010 8:58 PM Subject: Re: [PATCH

Re: [PATCH v2 1/6] omap3: pm: re-program the sleep state of TRITON resources by modifying the REMAP register

2010-01-22 Thread Mike Turquette
Kevin Hilman wrote: Mike Turquette mturque...@ti.com writes: Lesly AM wrote: [...] From: Mike Rapoport m...@compulab.co.il [...] Is it necessary to initialize the remap sleep twice? No. Sorry.. I didn't notice that Amit has already pushed this. The existing remap programming does

Re: [PATCH v2 4/6] omap3: pm: Generic TRITON power scripts for OMAP3 based boards

2010-01-26 Thread Mike Turquette
x0080...@ti.com wrote: From: Lesly A M x0080...@ti.com omap3: pm: Generic TRITON power scripts for OMAP3 based boards Copying the sleep/wakeup/warm_rest sequence voltsetup_time to a new twl430 script file, since these changes are specific to the power companion chip. This can be used by

Re: [PATCH] OMAP2/3: update default defconfig, towards smaller kernel

2010-02-01 Thread Mike Turquette
Kevin Hilman wrote: Kevin Hilman khil...@deeprootsystems.com writes: Update omap3_defconfig to work towards a minimal kernel by building most things as modules. Some drivers that cannot currently be built as modules and need to be fixed: - MMC: platform code uses MMC core regulator functions

[RFC] OMAP3: PM: disable twl4030 sleep sequence before reboot

2010-02-03 Thread Mike Turquette
When TWL4030 power scripts are enabled, the sleep script must be disabled before rebooting, if using DPLL3 reset. DPLL3 reset drives SYS_OFFMODE low, causing TWL4030 to initiate the sleep script. This script collapses VDD1 and VDD2 voltages, usually after the warm reset has happened but while

[PATCH 1/2] MFD: TWL4030: introduce remove_script function

2010-02-03 Thread Mike Turquette
New function twl4030_remove_script(u8 flags) takes a script type as defined in twl.h and prevents any script already loaded in that position from running. This is accomplished by programming SEQ_ADD_* to 0x3f, the END_OF_SCRIPT value, where SEQ_ADD_* is determined by flags. Signed-off-by: Mike

[PATCH 2/2] OMAP3: PM: remove TWL4030 A2S script before reboot

2010-02-03 Thread Mike Turquette
Dog reset or worse, an irrecoverable hang. Signed-off-by: Mike Turquette mturque...@ti.com --- arch/arm/mach-omap2/clock34xx.c | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/clock34xx.c b/arch/arm/mach-omap2/clock34xx.c index 0d30e53

Re: [PATCH 01/16] OMAP3: PM: Adding hwmod data for Smartreflex

2010-02-24 Thread Mike Turquette
Thara Gopinath wrote: This patch adds the hwmod strucutres and other hwmod data for OMAP3 Smartreflex IP's. Signed-off-by: Thara Gopinath th...@ti.com --- arch/arm/mach-omap2/omap_hwmod_34xx.h | 92 + 1 files changed, 92 insertions(+), 0 deletions(-) diff

Re: [PATCH 02/16] OMAP3: PM: Create list to keep track of various smartreflex instances.

2010-02-26 Thread Mike Turquette
Gopinath, Thara wrote: This patch removes the pointer sr1, sr2 in smartreflex.c and instead creatse a list for keeping track of multiple smartreflex instances.. This makes it scalable for next gen OMAPs where there are more than two smartreflex modules. Signed-off-by: Thara Gopinath

[PATCH] OMAP3: decrease cpufreq transition latency

2009-10-29 Thread Mike Turquette
consumption on Zoom2 was comparable to the old and unresponsive 10,000,000uS value while UI responsiveness was greatly improved. This patch applies against Tony's omap-fixes branch. Signed-off-by: Mike Turquette mturque...@ti.com --- arch/arm/plat-omap/cpu-omap.c |2 +- 1 files changed, 1

Re: [PATCH] omap-pm: Fixes behaviour of some shared resource framework functions

2009-10-29 Thread Mike Turquette
Kevin Hilman wrote: Dasgupta, Romit ro...@ti.com writes: Hello Benoit, One comment below: In fact, this is Mike who started that analysis. We discussed that internally and our point is that if the CPUFreq ondemand or conservative heuristic is not able to increase

Re: [PATCH] OMAP3: decrease cpufreq transition latency

2009-10-29 Thread Mike Turquette
Kevin Hilman wrote: Mike Turquette mturque...@gmail.com writes: Adjust OMAP3 frequency transition latency from 10,000,000uS to a more reasonable 300,000uS. This causes ondemand and conservative governors to sample CPU load more often resulting in more responsive behavior. Tested on Android

Re: [PATCH] Registering sgx device and it's platform specific data

2010-03-26 Thread Mike Turquette
Agarwal, Preshit wrote: In this patch SGX powervr_device is registered with it's platform specific data to provide information about setting constraint through omap_pm_set_min_bus_tput. This patch removes the requirement of EXPORT_SYMBOL for the omap_pm_set_min_bus_tput function.

[PATCH 0/4] OMAP: PM: introduce Adaptive Body-Bias LDO

2010-04-16 Thread Mike Turquette
This patch series introduces Forward Body-Bias (FBB), which is one technique possible using the Adaptive Body-Bias (ABB) LDO. FBB boosts voltage on VDD1 PMOS back gates which helps cold devices with weak silicon characteristics sustain voltage at high OPPs. All OMAP devices built on the 45nm

[PATCH 1/3] OMAP: PM: update PRM registers for ABB

2010-04-16 Thread Mike Turquette
, but these interrupts do not have to be enabled to poll on their corresponding status bits. Signed-off-by: Mike Turquette mturque...@ti.com --- arch/arm/mach-omap2/prm-regbits-34xx.h| 22 ++ arch/arm/mach-omap2/prm.h |6 ++ arch/arm/plat-omap/include/plat

[PATCH 2/3] OMAP3630: PM: implement Foward Body-Bias for OPP1G

2010-04-16 Thread Mike Turquette
of silicon characteristics and EFUSE values. ABB applies to all OMAP silicon based on 45nm process, which includes OMAP4. OMAP4 recommendations for ABB are not complete and will be added to voltscale_adaptive_body_bias in the future. Signed-off-by: Mike Turquette mturque...@ti.com --- arch/arm/mach

[PATCH 3/3] HACK: OMAP3630: PM: allow testing of DVFS FBB

2010-04-16 Thread Mike Turquette
transitions via cpufreq on top of pm-wip-sr and to test the FBB transitions that only happen @ 1GHz on 3630. Not-Signed-Off-By: Mike Turquette mturque...@ti.com --- arch/arm/mach-omap2/cpufreq34xx.c |8 arch/arm/mach-omap2/voltage.c |1 - 2 files changed, 4 insertions(+), 5

Re: [PATCH 2/3] OMAP3630: PM: implement Foward Body-Bias for OPP1G

2010-04-21 Thread Mike Turquette
Eduardo Valentin wrote: Hello Mike, On Fri, Apr 16, 2010 at 11:33:22PM +0200, ext Mike Turquette wrote: Introduces voltscale_adaptive_body_bias function to voltage.c. voltscale_adaptive_body_bias is called by omap_voltage_scale after a voltage transition has occured. Currently

Re: [PATCH 2/3] OMAP3630: PM: implement Foward Body-Bias for OPP1G

2010-04-21 Thread Mike Turquette
Paul Walmsley wrote: Hi Mike, some comments. On Fri, 16 Apr 2010, Mike Turquette wrote: Introduces voltscale_adaptive_body_bias function to voltage.c. voltscale_adaptive_body_bias is called by omap_voltage_scale after a voltage transition has occured. Currently voltscale_adaptive_body_bias

Re: [PATCH] OMAP3: PRCM interrupt: only check for enabled PRCM IRQs

2010-04-26 Thread Mike Turquette
Kevin Hilman wrote: While handling PRCM IRQs, mask out interrupts that are not enabled in PRM_IRQENABLE_MPU. If these are not masked out, non-enabled interrupts are caught and a WARN() is dumped. This was noticed using SmartReflex transitions which cause the VPx_* interrupts to be handled

Re: [PATCH] OMAP3: PRCM interrupt: only check for enabled PRCM IRQs

2010-04-26 Thread Mike Turquette
Turquette, Mike wrote: Kevin Hilman wrote: While handling PRCM IRQs, mask out interrupts that are not enabled in PRM_IRQENABLE_MPU. If these are not masked out, non-enabled interrupts are caught and a WARN() is dumped. This was noticed using SmartReflex transitions which cause the VPx_*

Re: [PATCH] OMAP3: PRCM interrupt: only check for enabled PRCM IRQs

2010-04-27 Thread Mike Turquette
Kevin Hilman wrote: commit cfabe8a950e252d26cdeb4a9bb11e2cabb2a50c6 Author: Kevin Hilman khil...@deeprootsystems.com Date: Mon Apr 26 14:59:09 2010 -0700 OMAP3: PRCM interrupt: only check and clear enabled PRCM IRQs While handling PRCM IRQs, mask out interrupts that are not

Re: [PATCH 2/3] OMAP3630: PM: implement Foward Body-Bias for OPP1G

2010-05-21 Thread Mike Turquette
Eduardo Valentin wrote: Hello Mike, On Fri, Apr 16, 2010 at 11:33:22PM +0200, ext Mike Turquette wrote: Introduces voltscale_adaptive_body_bias function to voltage.c. voltscale_adaptive_body_bias is called by omap_voltage_scale after a voltage transition has occured. Currently

Re: [PATCH] twl4030 reboot workaround

2010-07-28 Thread Mike Turquette
Mikko Rapeli wrote: From: Mikko Rapeli ext-mikko.rap...@nokia.com Original patch: http://marc.info/?l=linux-omapm=126522625032441w=2 I forgot about this one... Removes TWL4030 sleep script prior to rebooting, only on OMAP3. This is necessary since DPLL3 reset causes SYS_OFFMODE pin to go

Re: [PATCH v2] twl4030 reboot workaround

2010-07-30 Thread Mike Turquette
Gopinath, Thara wrote: -Original Message- From: linux-omap-ow...@vger.kernel.org [mailto:linux-omap-ow...@vger.kernel.org] On Behalf Of Mike Rapoport Sent: Friday, July 30, 2010 12:41 AM To: Mikko Rapeli Cc: linux-omap@vger.kernel.org; Turquette, Mike; sa...@linux.intel.com Subject:

Re: [PATCH] [ARM] omap: resource: Make resource_refresh() thread safe.

2009-09-10 Thread Mike Turquette
Kevin Hilman wrote: Mike Chan m...@android.com writes: Need to lock the res_mutex when traversing the res_list. Signed-off-by: Mike Chan m...@android.com Looks good, thanks. This patch causes a hang for me when transitioning to OFF mode. This was tested on the Android 2.6.29 tree and is

[PATCH] OMAP2+: clock: use clock's recalc in DPLL handling

2011-09-29 Thread Mike Turquette
. Reported-by: Misael Lopez Cruz misael.lo...@ti.com Signed-off-by: Mike Turquette mturque...@ti.com --- arch/arm/mach-omap2/dpll3xxx.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/dpll3xxx.c b/arch/arm/mach-omap2/dpll3xxx.c index f77022b

[PATCH v3 0/5] common clk framework

2011-11-21 Thread Mike Turquette
and clkdevs's list), which feels a bit wasteful. What else? .OMAP4 support will be posted to LOML and LAKML in a separate patchset, since others might be interested in seeing a full port. It is a total hack, and is not ready for a formal submission. Mike Turquette (5): clk: Kconfig: add entry

[PATCH v3 1/5] clk: Kconfig: add entry for HAVE_CLK_PREPARE

2011-11-21 Thread Mike Turquette
The common clk framework provides clk_prepare and clk_unprepare implementations. Create an entry for HAVE_CLK_PREPARE so that GENERIC_CLK can select it. Signed-off-by: Mike Turquette mturque...@linaro.org --- drivers/clk/Kconfig |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff

[PATCH v3 2/5] Documentation: common clk API

2011-11-21 Thread Mike Turquette
Provide documentation for the common clk structures and APIs. This code can be found in drivers/clk/ and include/linux/clk.h. Signed-off-by: Mike Turquette mturque...@linaro.org --- Documentation/clk.txt | 312 + 1 files changed, 312 insertions

[PATCH v3 3/5] clk: introduce the common clock framework

2011-11-21 Thread Mike Turquette
of Ben Herrenschmidt. Big thanks to both of them for kickstarting this effort. Signed-off-by: Mike Turquette mturque...@linaro.org --- drivers/clk/Kconfig |4 + drivers/clk/Makefile |1 + drivers/clk/clk.c| 538 ++ include/linux/clk.h

[PATCH v3 4/5] clk: basic gateable and fixed-rate clks

2011-11-21 Thread Mike Turquette
by Jamie Iles. Signed-off-by: Mike Turquette mturque...@linaro.org --- drivers/clk/Kconfig |7 ++ drivers/clk/Makefile|5 +- drivers/clk/clk-basic.c | 208 +++ include/linux/clk.h | 35 4 files changed, 253 insertions(+), 2

[PATCH v3 5/5] clk: export tree topology and clk data via sysfs

2011-11-21 Thread Mike Turquette
Introduces kobject support for the common struct clk, exports per-clk data via read-only callbacks and models the clk tree topology in sysfs. Also adds support for generating the clk tree in clk_init and migrating nodes when input sources are switches in clk_set_parent. Signed-off-by: Mike

Re: [PATCH v3 5/5] clk: export tree topology and clk data via sysfs

2011-11-22 Thread Mike Turquette
On Tue, Nov 22, 2011 at 5:07 AM, Arnd Bergmann arnd.bergm...@linaro.org wrote: On Tuesday 22 November 2011, Mike Turquette wrote: Introduces kobject support for the common struct clk, exports per-clk data via read-only callbacks and models the clk tree topology in sysfs. Also adds support

Re: [PATCH v3 5/5] clk: export tree topology and clk data via sysfs

2011-11-22 Thread Mike Turquette
On Tue, Nov 22, 2011 at 7:49 AM, Greg KH g...@kroah.com wrote: On Mon, Nov 21, 2011 at 05:40:47PM -0800, Mike Turquette wrote: Introduces kobject support for the common struct clk, exports per-clk data via read-only callbacks and models the clk tree topology in sysfs. Also adds support

Re: [PATCH v3 5/5] clk: export tree topology and clk data via sysfs

2011-11-22 Thread Mike Turquette
On Tue, Nov 22, 2011 at 8:37 AM, Grant Likely grant.lik...@secretlab.ca wrote: On Nov 21, 2011 6:43 PM, Mike Turquette mturque...@ti.com wrote: Introduces kobject support for the common struct clk, exports per-clk data via read-only callbacks and models the clk tree topology in sysfs. Also

Re: [PATCH v3 0/5] common clk framework

2011-11-22 Thread Mike Turquette
On Tue, Nov 22, 2011 at 9:45 AM, Russell King - ARM Linux li...@arm.linux.org.uk wrote: On Tue, Nov 22, 2011 at 07:42:59AM -0800, Greg KH wrote: On Mon, Nov 21, 2011 at 05:40:42PM -0800, Mike Turquette wrote:   .sysfs support.  Visualize your clk tree at /sys/clk!  Where would be a better

[PATCH 1/8] OMAP3630: PRM: add ABB PRM register definitions

2011-06-29 Thread Mike Turquette
OMAP3630 supports an Adaptive Body-Bias ldo as well as some MPU interrupts related to voltage control that are not present on OMAP34XX. This patch adds the offsets, register addresses, bitfield shifts and masks to support this feature. Signed-off-by: Mike Turquette mturque...@ti.com --- arch

[PATCH 3/8] OMAP3+: PRM: add tranxdone IRQ handlers for ABB

2011-06-29 Thread Mike Turquette
of the greater voltage scaling sequence. Signed-off-by: Nishanth Menon n...@ti.com Signed-off-by: Mike Turquette mturque...@ti.com --- arch/arm/mach-omap2/prm2xxx_3xxx.c | 35 ++- arch/arm/mach-omap2/prm2xxx_3xxx.h |3 ++ arch/arm/mach-omap2/prm44xx.c | 40

[PATCH 4/8] OMAP3+: ABB: Adaptive Body-Bias structures data

2011-06-29 Thread Mike Turquette
for 3630 and OMAP4. Not all voltage domains have an ABB ldo, and OMAP34xx does not have it at all; in such cases the voltage data will be marked with OMAP_ABB_NO_LDO. Signed-off-by: Mike Turquette mturque...@ti.com --- arch/arm/mach-omap2/Makefile |5 +- arch/arm/mach-omap2/abb.h

[PATCH 5/8] OMAP3+: OPP: add ABB data to voltage tables

2011-06-29 Thread Mike Turquette
-by: Mike Turquette mturque...@ti.com --- arch/arm/mach-omap2/omap_opp_data.h |5 ++- arch/arm/mach-omap2/opp3xxx_data.c | 37 ++- arch/arm/mach-omap2/opp4xxx_data.c | 25 --- arch/arm/mach-omap2/voltage.h |1 + 4 files changed

[PATCH 7/8] OMAP3+: ABB: initialization transition functions

2011-06-29 Thread Mike Turquette
Instruments, Inc. + * Mike Turquette mturque...@ti.com + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +#include linux/init.h +#include linux/delay.h

[PATCH 0/8] OMAP3+: Voltage: introduce Adaptive Body-Bias ldo suppport

2011-06-29 Thread Mike Turquette
and in the 4430 TRM in section 3.8.4.3 ABB LDOs Control and 3.10.4.2 Changing OPP. Tested on OMAP 4430 SDP. Built against Kevin's pm-wip/voltdm branch and compiled with omap2plus_defconfig. Mike Turquette (6): OMAP3630: PRM: add ABB PRM register definitions OMAP3+: ABB: Adaptive Body-Bias structures data

[PATCH 8/8] OMAP3+: Voltage: add ABB to voltage scaling

2011-06-29 Thread Mike Turquette
the vc_bypass and vp_forceupdate sequences. Signed-off-by: Mike Turquette mturque...@ti.com --- arch/arm/mach-omap2/vc.c | 10 -- arch/arm/mach-omap2/voltage.c |4 arch/arm/mach-omap2/vp.c |9 +++-- 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/arch

[PATCH 2/8] OMAP3+: PM: VP: generalize PRM interrupt helpers

2011-06-29 Thread Mike Turquette
warning as the variable does not need exporting: arch/arm/mach-omap2/prm2xxx_3xxx.c:172:22: warning: symbol 'omap3_prm_irqs' was not declared. Should it be static? Signed-off-by: Nishanth Menon n...@ti.com Signed-off-by: Mike Turquette mturque...@ti.com --- arch/arm/mach-omap2/prm2xxx_3xxx.c | 22

[PATCH 6/8] OMAP3+: Voltage: add ABB data to voltage domains

2011-06-29 Thread Mike Turquette
silicon. Signed-off-by: Mike Turquette mturque...@ti.com --- arch/arm/mach-omap2/voltage.h |1 + arch/arm/mach-omap2/voltagedomains3xxx_data.c |3 +++ arch/arm/mach-omap2/voltagedomains44xx_data.c |3 +++ 3 files changed, 7 insertions(+), 0 deletions(-) diff --git

[PATCH 3/5] ARM: omap: vc: .get_voltage callback

2012-10-03 Thread Mike Turquette
From: Mike Turquette mturque...@linaro.org Implement the voltdm-get_voltage callback for the voltage controller driver. This reads the DATA field corresponding to each VC and returns the voltage, after converting it from vsel format. If DATA is zero (the reset value) then the caller must

[PATCH 2/5] ARM: omap: introduce .get_voltage callback

2012-10-03 Thread Mike Turquette
From: Mike Turquette mturque...@linaro.org Introduces a new callback to struct voltagedomain for retrieving the voltage of the voltage domain from the hardware. This will be used to populate voltdm-nominal_volt during initialization of the voltage code instead of waiting for the first call

[PATCH 5/5] ARM: omap: initialize voltdm-nominal_volt

2012-10-03 Thread Mike Turquette
From: Mike Turquette mturque...@linaro.org Populate the .get_voltage callbacks for VC VP. Use these callbacks to populate voltdm-nominal_volt during boot sequence. This is useful for the Adaptive Body-Bias sequence coming in a subsequent series. Without this patch voltdm-nominal

[PATCH 1/5] ARM: omap: vc: replace data_shift with data_mask

2012-10-03 Thread Mike Turquette
From: Mike Turquette mturque...@linaro.org Signed-off-by: Mike Turquette mturque...@linaro.org --- arch/arm/mach-omap2/vc.c |2 +- arch/arm/mach-omap2/vc.h |2 +- arch/arm/mach-omap2/vc3xxx_data.c |2 +- arch/arm/mach-omap2/vc44xx_data.c |2 +- 4 files changed

[RFC][PATCH 0/5] Introduce .get_voltage callback into voltdm

2012-10-03 Thread Mike Turquette
From: Mike Turquette mturque...@linaro.org This series creates a new callback for struct voltagedomain, .get_voltage. This fetches the voltage from hardware, if possible, and returns it to the caller. We use this call to populate voltdm-nominal_volt at boot time. The need for this came out

[PATCH 4/5] ARM: omap: vp: .get_voltage callback

2012-10-03 Thread Mike Turquette
From: Mike Turquette mturque...@linaro.org Implement the voltdm-get_voltage callback for the voltage processor driver. This reads the INITVOLTAGE field corresponding to each VP and returns the voltage, after converting it from vsel format. If INITVOLTAGE is zero (the reset value

[RFC][PATCH v4? 0/7] Adaptive Body-Bias for OMAP

2012-10-03 Thread Mike Turquette
From: Mike Turquette mturque...@linaro.org Adaptive Body-Bias ldos are present for some voltage domains starting with OMAP3630. They have three modes of operation: * Bypass - the default, it just follows the vdd voltage * Foward Body-Bias - applies voltage bias to increase transistor

[PATCH 2/7] ARM: omap: add ABB PRM_IRQSTATUS handlers

2012-10-03 Thread Mike Turquette
previous discussion on the design of the ABB PRM handlers can be found here: http://article.gmane.org/gmane.linux.ports.arm.omap/63609 Signed-off-by: Mike Turquette mturque...@ti.com Signed-off-by: Mike Turquette mturque...@linaro.org --- arch/arm/mach-omap2/prm2xxx_3xxx.c | 36

[PATCH 1/7] ARM: omap: add 3630 PRM register definitions

2012-10-03 Thread Mike Turquette
OMAP3630 supports an Adaptive Body-Bias ldo as well as some MPU interrupts related to voltage control that are not present on OMAP34XX. This patch adds the offsets, register addresses, bitfield shifts and masks to support this feature. Signed-off-by: Mike Turquette mturque...@ti.com Signed-off

[PATCH 4/7] ARM: omap: opp: add ABB data to voltage tables

2012-10-03 Thread Mike Turquette
with OMAP_ABB_NO_LDO. Signed-off-by: Mike Turquette mturque...@ti.com Signed-off-by: Mike Turquette mturque...@linaro.org --- arch/arm/mach-omap2/omap_opp_data.h |5 ++-- arch/arm/mach-omap2/opp3xxx_data.c| 37 +++-- arch/arm/mach-omap2/opp4xxx_data.c| 25

[PATCH 3/7] ARM: omap: Adaptive Body-Bias structures data

2012-10-03 Thread Mike Turquette
will be marked with OMAP_ABB_NO_LDO. Signed-off-by: Mike Turquette mturque...@ti.com Signed-off-by: Mike Turquette mturque...@linaro.org --- arch/arm/mach-omap2/Makefile |6 ++- arch/arm/mach-omap2/abb.h | 85 arch/arm/mach-omap2/abb36xx_data.c

[PATCH 5/7] ARM: omap: voltage: per-voltage domain ABB data

2012-10-03 Thread Mike Turquette
This patch adds struct omap_abb_instance to struct voltagedomain and populates the data for those voltage domains that have an ABB ldo on both 36xx and 44xx silicon. Signed-off-by: Mike Turquette mturque...@ti.com Signed-off-by: Mike Turquette mturque...@linaro.org --- arch/arm/mach-omap2

[PATCH 7/7] ARM: omap: voltage: add ABB to voltage scaling

2012-10-03 Thread Mike Turquette
, voltdm_scale(). Signed-off-by: Mike Turquette mturque...@ti.com Signed-off-by: Mike Turquette mturque...@linaro.org --- arch/arm/mach-omap2/voltage.c | 28 ++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/voltage.c b/arch/arm/mach-omap2

[PATCH 6/7] ARM: omap: abb: init transition functions

2012-10-03 Thread Mike Turquette
which is needed after any voltage scaling operation. Note that this sequence will need to be revisited someday when the various SmartReflex AVS features, fixes and improvements are upstreamed and enabled for OMAP2+ kernels. Signed-off-by: Mike Turquette mturque...@ti.com Signed-off-by: Mike

Re: [RFC PATCH 2/2] ARM: OMAP4: clock: use omap4_clks_register API

2012-10-18 Thread Mike Turquette
Quoting Grygorii Strashko (2012-10-18 09:38:17) Remove OMAP443x and OMAP446x specific clocks from omap44xx_clks array and add corresponding set of clocks per each SoC: - struct omap_clk omap44xx_clks[]; - common clocks set for all OMAP4 - struct omap_clk omap443x_clks[]; - specific clocks

Re: RE: [RFC PATCH 2/2] ARM: OMAP4: clock: use omap4_clks_register API

2012-10-22 Thread Mike Turquette
From: Mike Turquette [mturque...@linaro.org] Sent: Thursday, October 18, 2012 8:53 PM To: Strashko, Grygorii; Paul Walmsley Cc: Hilman, Kevin; Tony Lindgren; linux-omap@vger.kernel.org; linux-arm-ker...@lists.infradead.org; Strashko, Grygorii Subject: Re: [RFC PATCH 2/2] ARM

Re: [RFC PATCH 09/11] ARM: OMAP4+: thermal: introduce bandgap temperature sensor

2012-05-29 Thread Mike Turquette
On 20120529-15:14, Cousson, Benoit wrote: On 5/28/2012 1:16 PM, Eduardo Valentin wrote: In fact I didn't touch the clk data on purpose and left the clock handling as is. On my side I didn't know how the clock struct would look like with DT, so, I didn't mess with it. Do you have a reference

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

2012-06-01 Thread Mike Turquette
On 20120601-17:37, 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 series retains the static clock

Re: [PATCH 04/29] ARM: omap: clk: use clk_prepare_enable and clk_disable_unprepare

2012-06-14 Thread Mike Turquette
On 20120614-18:16, Rajendra Nayak wrote: As we move to Common clk framework use clk_prepare_enable() instead of clk_enable() and similarly clk_disable_unprepare() instead of clk_disable() Based on initial changes from Mike turquette. Signed-off-by: Rajendra Nayak rna...@ti.com Hi

Re: [PATCH 01/29] clk: Add support for rate table based dividers

2012-06-18 Thread Mike Turquette
On 20120614-18:16, Rajendra Nayak wrote: diff --git a/drivers/clk/clk-divider.c b/drivers/clk/clk-divider.c index e548c43..e4911ee 100644 --- a/drivers/clk/clk-divider.c +++ b/drivers/clk/clk-divider.c @@ -32,30 +32,69 @@ #define div_mask(d) ((1 (d-width)) - 1) #define

Re: [PATCH 09/29] ARM: omap: clk: Nuke plat/clock.c reuse struct clk as clk_hw_omap

2012-06-18 Thread Mike Turquette
clk_hw_omap' which will then be used to define platform specific parameters. All usecounting/locking related variables from 'struct clk' are dropped as they will not be used with 'struct clk_hw_omap'. Based on the original changes from Mike Turquette. Signed-off-by: Rajendra Nayak rna

Re: [PATCH 05/11] OMAPDSS: add clk_prepare and clk_unprepare

2012-06-26 Thread Mike Turquette
On 20120625-16:14, Tomi Valkeinen wrote: A question about clk_prepare/unprepare, not directly related: let's say I have a driver for some HW block. The driver doesn't use clk functions, but uses runtime PM. The driver also sets pm_runtime_irq_safe(). Now, the driver can call

[PATCH v4 0/6] common clk framework

2011-12-13 Thread Mike Turquette
From: Mike Turquette mturque...@ti.com The common clk framework is an attempt to define a generic struct clk which most platforms can use to build a clk tree and perform a set of well-defined operations. The previous patchset, v3, can be found at, http://article.gmane.org/gmane.linux.kernel

[PATCH v4 1/6] clk: Kconfig: add entry for HAVE_CLK_PREPARE

2011-12-13 Thread Mike Turquette
The common clk framework provides clk_prepare and clk_unprepare implementations. Create an entry for HAVE_CLK_PREPARE so that GENERIC_CLK can select it. Signed-off-by: Mike Turquette mturque...@linaro.org Acked-by: Shawn Guo shawn@linaro.org --- drivers/clk/Kconfig |3 +++ 1 files

[PATCH v4 6/6] clk: export the clk tree topology to debugfs

2011-12-13 Thread Mike Turquette
: http://git.pengutronix.de/?p=imx/linux-2.6.git;a=commit;h=30aa15230747b3b92da16d841b1cf369f07192e7 Signed-off-by: Mike Turquette mturque...@linaro.org Cc: Yong Shen yong.s...@linaro.org Cc: Sascha Hauer s.ha...@pengutronix.de --- drivers/clk/Kconfig |9 +++ drivers/clk/clk.c | 176

[PATCH v4 2/6] Documentation: common clk API

2011-12-13 Thread Mike Turquette
Provide documentation for the common clk structures and APIs. This code can be found in drivers/clk/ and include/linux/clk.h. Signed-off-by: Mike Turquette mturque...@linaro.org Cc: Jeremy Kerr jeremy.k...@canonical.com --- Documentation/clk.txt | 312

[PATCH v4 3/6] clk: introduce the common clock framework

2011-12-13 Thread Mike Turquette
Herrenschmidt. Big thanks to both of them for kickstarting this effort. Signed-off-by: Mike Turquette mturque...@linaro.org Cc: Jeremy Kerr jeremy.k...@canonical.com --- drivers/clk/Kconfig |4 + drivers/clk/Makefile |1 + drivers/clk/clk.c| 564

[PATCH v4 5/6] clk: basic gateable and fixed-rate clks

2011-12-13 Thread Mike Turquette
and contribution by Jamie Iles. Signed-off-by: Mike Turquette mturque...@linaro.org Cc: Jeremy Kerr jeremy.k...@canonical.com Cc: Jamie Iles ja...@jamieiles.com --- drivers/clk/Kconfig |7 ++ drivers/clk/Makefile|5 +- drivers/clk/clk-basic.c | 208

[PATCH v4 4/6] clk: introduce rate change notifiers

2011-12-13 Thread Mike Turquette
in this implementation, such as use of SRCU notifers instead of blocking, and the use of a new .speculate_rate function pointer (similar .recalc_rate) for predicting rate changes down the sub-tree of clks. Signed-off-by: Mike Turquette mturque...@linaro.org Cc: Paul Walmsley p...@pwsan.com --- drivers/clk

[PATCH 0/7] RFC: convert OMAP to common struct clk

2011-12-13 Thread Mike Turquette
-pm This series will be followed up shortly with another set of patches for testing the clk rate change notifiers, parent propagation of rate changes and debugfs re-parenting. Mike Turquette (7): OMAP: Kconfig: select GENERIC_CLK HACK: omap4: clk: convert to common struct clk HACK: omap

[PATCH 1/7] OMAP: Kconfig: select GENERIC_CLK

2011-12-13 Thread Mike Turquette
From: Mike Turquette mturque...@linaro.org Signed-off-by: Mike Turquette mturque...@ti.com --- arch/arm/mach-omap2/Kconfig |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig index e1293aa..921451c 100644 --- a/arch

[PATCH 4/7] omap: hwmod: convert to use common struct clk

2011-12-13 Thread Mike Turquette
-off-by: Mike Turquette mturque...@ti.com --- arch/arm/mach-omap2/omap_hwmod.c | 54 - 1 files changed, 41 insertions(+), 13 deletions(-) diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c index 207a2ff..3e533c7 100644 --- a/arch

[PATCH 5/7] omap: panda: use clk_prepare in ehci init

2011-12-13 Thread Mike Turquette
Signed-off-by: Mike Turquette mturque...@ti.com --- arch/arm/mach-omap2/board-omap4panda.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/board-omap4panda.c b/arch/arm/mach-omap2/board-omap4panda.c index a8c2c42..3864d31 100644 --- a/arch/arm/mach

[PATCH 6/7] omap: dss: use clk_prepare in dss reset

2011-12-13 Thread Mike Turquette
Signed-off-by: Mike Turquette mturque...@ti.com --- arch/arm/mach-omap2/display.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/display.c b/arch/arm/mach-omap2/display.c index dce9905..21f8fcc 100644 --- a/arch/arm/mach-omap2/display.c +++ b/arch

[PATCH 7/7] HACK: comment WARN_ON in _clkdm_clk_hwmod_disable

2011-12-13 Thread Mike Turquette
Not-signed-off-by: Mike Turquette mturque...@ti.com --- arch/arm/mach-omap2/clockdomain.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/clockdomain.c b/arch/arm/mach-omap2/clockdomain.c index ad07689..825248b 100644 --- a/arch/arm/mach-omap2

[PATCH 0/6] HACK: OMAP: testing common clk features

2011-12-13 Thread Mike Turquette
=refs/heads/v3.2-rc5-clkv4-omap-pm-testing git://git.linaro.org/people/mturquette/linux.git v3.2-rc5-clkv4-omap-pm-testing Linus Walleij (1): smp_twd: Reconfigure clockevents after cpufreq change Mike Turquette (5): HACK: omap: opp: add fake 400MHz OPP to bypass MPU omap: clk: .round_rate

[PATCH 2/6] omap: clk: .round_rate for propagating to parents

2011-12-13 Thread Mike Turquette
up to the clk's parent. Not-signed-off-by: Mike Turquette mturque...@ti.com --- arch/arm/mach-omap2/clkt_clksel.c |8 arch/arm/mach-omap2/clock.h |2 ++ 2 files changed, 10 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/clkt_clksel.c b/arch/arm/mach-omap2

[PATCH 3/6] HACK: omap: clk: add mpu_periphclk clk node

2011-12-13 Thread Mike Turquette
From: Mike Turquette mturque...@linaro.org The ARM periphclk drives various peripherals for the MPU including the TWD and local timers. This patch creates the missing clk tree data to represent this relationship: dpll_mpu_ck | dpll_mpu_m2_ck (divide by 1) | mpu_clk (divide by 1

[PATCH 4/6] HACK: cpufreq: omap: change mpu_clk's rate

2011-12-13 Thread Mike Turquette
simplies passing up a rate change request to the parent. Not for merging, just to get discussion going around the common clk patches and future OMAP adaptations. Not-signed-off-by: Mike Turquette mturque...@ti.com --- drivers/cpufreq/omap-cpufreq.c |2 +- 1 files changed, 1 insertions(+), 1

[PATCH 1/6] HACK: omap: opp: add fake 400MHz OPP to bypass MPU

2011-12-13 Thread Mike Turquette
(with 38.4MHz SYS_CLK). Using CPUfreq to set the MPU to this rate puts the MPU into Low Power Bypass, which triggers the __clk_reparent code in drivers/clk/clk.c, which migrates the dpll_mpu_ck directory (and all of its subdirs) to the div_mpu_hs_clk dir under dpll_core_ck. Not-signed-off-by: Mike

[PATCH 5/6] smp_twd: Reconfigure clockevents after cpufreq change

2011-12-13 Thread Mike Turquette
From: Linus Walleij (address hidden) The localtimer's clock changes with the cpu clock. After a cpufreq transition, update the clockevent's frequency and reprogram the next clock event. Adds a clock called smp_twd that is used to determine the twd frequency, which can also be used at init time

[PATCH 6/6] HACK: arm: reprogram twd based on clk notifier

2011-12-13 Thread Mike Turquette
From: Mike Turquette mturque...@linaro.org As a proof-of-concept, convert the existing smp_twd code to use clk notifiers in place of CPUfreq notifiers. This works out nicely for Cortex-A9 MPcore designs that scale all CPUs at the same frequency. For chips which can scale frequency independently

[PATCH 01/26] ARM: OMAP: clock: Nuke plat/clock.c reuse struct clk as clk_hw_omap

2012-11-07 Thread Mike Turquette
' which will then be used to define platform specific parameters. All usecounting/locking related variables from 'struct clk' are dropped as they will not be used with 'struct clk_hw_omap'. Based on the original changes from Mike Turquette. Signed-off-by: Rajendra Nayak rna...@ti.com Signed-off

[PATCH 03/26] ARM: OMAP4: clock: Convert to common clk

2012-11-07 Thread Mike Turquette
From: Mike Turquette mturque...@linaro.org Convert all OMAP4 specific platform files to use COMMON clk and keep all the changes under the CONFIG_COMMON_CLK macro check so it does not break any existing code. At a later point switch to COMMON clk and get rid of all old/legacy code. This converts

[PATCH v2 00/26] Move OMAP2+ over to common clk framework

2012-11-07 Thread Mike Turquette
From: Mike Turquette mturque...@linaro.org Hi all, This series is based on top of Paul's PRM/CM clean-up work. It is a refresh of the patches Rajendra sent out a while back[1], with the addition of several fixes for PM regressions[2] across several platforms. I have tested on OMAP4430 Panda

[PATCH 05/26] ARM: OMAP2: clock: Convert to common clk

2012-11-07 Thread Mike Turquette
-by: Rajendra Nayak rna...@ti.com Signed-off-by: Mike Turquette mturque...@ti.com --- arch/arm/mach-omap2/clkt2xxx_apll.c | 51 ++ arch/arm/mach-omap2/clkt2xxx_dpll.c | 16 +++- arch/arm/mach-omap2/clkt2xxx_dpllcore.c | 22 +++ arch/arm/mach

[PATCH 09/26] ARM: OMAP2+: hwmod: Invoke init_clkdm before other init functions

2012-11-07 Thread Mike Turquette
From: Vaibhav Hiremath hvaib...@ti.com Without this kernel would crash, since clkdm inside omap_hwmod is accessed in some of the init funtion like, _init_main_clk. So call init_clkdm before _init_main_clk(). Signed-off-by: Vaibhav Hiremath hvaib...@ti.com Signed-off-by: Mike Turquette mturque

[PATCH 11/26] ARM: OMAP2+: clock: add OMAP CCF convenience macros to mach-omap2/clock.h

2012-11-07 Thread Mike Turquette
of these were created by Rajendra Nayak and Mike Turquette, as far as I know. Signed-off-by: Paul Walmsley p...@pwsan.com Signed-off-by: Mike Turquette mturque...@ti.com [mturque...@ti.com: added DEFINE_CLK_OMAP_HSDIVIDER macro] Cc: Rajendra Nayak rna...@ti.com --- arch/arm/mach-omap2/clock.h | 77

[PATCH 10/26] ARM: OMAP: clock: Get rid of some clkdm assocations within clks

2012-11-07 Thread Mike Turquette
of the changes in this patch; modified patch description] Signed-off-by: Paul Walmsley p...@pwsan.com Signed-off-by: Mike Turquette mturque...@ti.com --- arch/arm/mach-omap2/clock2420_data.c | 10 -- arch/arm/mach-omap2/clock2430_data.c | 10 -- arch/arm/mach-omap2/clock3xxx_data.c

[PATCH 13/26] ARM: AM33XX: clock: add clock data in common clock format

2012-11-07 Thread Mike Turquette
[p...@pwsan.com: replace omap2_init_clksel_parent() with omap2_clksel_find_parent_index(); modified to not use the AM33xx common clock data yet; updated patch description; reflowed the macros; updated DEFINE_STRUCT_CLK_HW_OMAP usage to include clkdm_name] Signed-off-by: Mike Turquette mturque

[PATCH 16/26] ARM: OMAP: clock: Switch to COMMON clk

2012-11-07 Thread Mike Turquette
ARCH_OMAP2PLUS_TYPICAL to the per-SoC and per-arch Kconfig sections] Signed-off-by: Mike Turquette mturque...@ti.com [mturque...@ti.com: fixed up #ifdef mismatch in clock.h in previous patch which drops that change from this patch] --- arch/arm/mach-omap2/Kconfig |5 + arch/arm/mach-omap2/Makefile

[PATCH 17/26] ARM: OMAP: hwmod: Cleanup !CONFIG_COMMON_CLK parts

2012-11-07 Thread Mike Turquette
From: Rajendra Nayak rna...@ti.com Clean all #ifdef's added as part of fixing the clkdm accesses from hwmod. Signed-off-by: Rajendra Nayak rna...@ti.com Signed-off-by: Mike Turquette mturque...@ti.com --- arch/arm/mach-omap2/omap_hwmod.c | 18 ++ 1 file changed, 2 insertions

[PATCH 04/26] ARM: OMAP3: clock: Convert to common clk

2012-11-07 Thread Mike Turquette
-by: Rajendra Nayak rna...@ti.com Signed-off-by: Mike Turquette mturque...@ti.com --- arch/arm/mach-omap2/clkt34xx_dpll3m2.c | 13 arch/arm/mach-omap2/clkt_iclk.c| 13 arch/arm/mach-omap2/clock.h| 22 -- arch/arm/mach-omap2/clock34xx.c| 51

  1   2   3   >