Re: context_loss_count error value

2011-05-25 Thread Tomi Valkeinen
On Tue, 2011-05-24 at 16:45 -0700, Kevin Hilman wrote: Hi Tomi, Tomi Valkeinen tomi.valkei...@ti.com writes: On Wed, 2011-05-18 at 17:41 +0300, Tomi Valkeinen wrote: On Wed, 2011-05-18 at 16:24 +0200, Kevin Hilman wrote: Looking closer at the code, a zero return happens only when

Re: [PATCH V4] OMAP3+: SR Layer Cleanup

2011-05-25 Thread Gulati, Shweta
Hi, On Tue, May 24, 2011 at 5:22 PM, Cousson, Benoit b-cous...@ti.com wrote: On 5/23/2011 6:40 AM, Gulati, Shweta wrote: Benoit, On Fri, May 20, 2011 at 7:19 PM, Cousson, Benoitb-cous...@ti.com  wrote: Hi Shweta, On 5/13/2011 8:27 AM, Gulati, Shweta wrote: To set sr ntarget values  for

Re: [PATCH] ARM: OMAP: L3 interconnect: Error reporting cleanups

2011-05-25 Thread Santosh Shilimkar
Tod, On 5/25/2011 8:20 AM, Todd Poynor wrote: * Move variable declarations from header file and make these static (the entire header file should probably go away). Infact the intial version posted on the list had all these structures in C file. After some comments on the list we moved them

[PATCH V2] PM: OPP: introduce function to free cpufreq table

2011-05-25 Thread Nishanth Menon
cpufreq table allocated by opp_init_cpufreq_table is better freed by OPP layer itself. This allows future modifications to the table handling to be transparent to the users. Signed-off-by: Nishanth Menon n...@ti.com --- V2: removed lock of free. V1: http://marc.info/?t=13061924171r=1w=2

Re: [PM-WIP_CPUFREQ][PATCH 4/6 v2] OMAP2: cpufreq: use clk_init_cpufreq_table if OPPs not available

2011-05-25 Thread Menon, Nishanth
On Tue, May 24, 2011 at 17:01, Kevin Hilman khil...@ti.com wrote: Menon, Nishanth n...@ti.com writes: On Thu, May 19, 2011 at 08:12, Kevin Hilman khil...@ti.com wrote: Nishanth Menon n...@ti.com writes: OMAP2 does not use OPP tables at the moment for DVFS. Currently, we depend on opp table

Re: Self modifying code in ARM 11 architectures

2011-05-25 Thread Vimal Singh
CC'ing correct ARM mailing list. On Tue, May 24, 2011 at 3:48 PM, Ashok Babu asho...@gmail.com wrote: Hi All, I am no success in booting up the ARM1176 processor with the linux-2.6.32 kernel. While googling about the ARM Harvard architecture, I came to know that we have to flush/invalidate

Re: context_loss_count error value

2011-05-25 Thread Tomi Valkeinen
On Tue, 2011-05-24 at 16:45 -0700, Kevin Hilman wrote: Hi Tomi, Tomi Valkeinen tomi.valkei...@ti.com writes: On Wed, 2011-05-18 at 17:41 +0300, Tomi Valkeinen wrote: On Wed, 2011-05-18 at 16:24 +0200, Kevin Hilman wrote: Looking closer at the code, a zero return happens only when

Re: [PATCH 1/2] OMAP4: HDMI: Add OMAP device for HDMI audio CPU DAI

2011-05-25 Thread Cousson, Benoit
On 5/24/2011 8:12 PM, Steve Calfee wrote: On 05/23/11 20:39, Ricardo Neri wrote: Hi Steve, Le mercredi 18 mai 2011 à 12:07 -0500, Steve Calfee a écrit : On 05/17/11 22:41, Peter Ujfalusi wrote: On Tuesday 17 May 2011 22:35:09 Steve Calfee wrote: I think the generally accepted method of

Re: Self modifying code in ARM 11 architectures

2011-05-25 Thread Uwe Kleine-König
Hello, On Wed, May 25, 2011 at 01:18:37PM +0530, Vimal Singh wrote: CC'ing correct ARM mailing list. On Tue, May 24, 2011 at 3:48 PM, Ashok Babu asho...@gmail.com wrote: Hi All, I am no success in booting up the ARM1176 processor with the linux-2.6.32 kernel. While googling about

Re: [PATCH 10/13] OMAP3: PM: export the v7_flush_dcache_all API to modules

2011-05-25 Thread Jean Pihet
Hi Santosh, On Thu, May 19, 2011 at 10:04 AM, Santosh Shilimkar santosh.shilim...@ti.com wrote: On 5/18/2011 11:02 PM, jean.pi...@newoldbits.com wrote: From: Jean Pihetj-pi...@ti.com Provide the the assembly function v7_flush_dcache_all to the OMAP3 PM module, under CONFIG_CPU_V7.

RE: [PATCH v3] OMAP2/3: hwmod: fix the i2c-reset timeout during bootup

2011-05-25 Thread Koyamangalath, Abhilash
On Thu, May 19, 2011 at 06:05:21PM +0530, Koyamangalath, Abhilash wrote: I have tried the patch on am37x evm and the i2c soft-reset time-out issue doesn't seem to go off for me. Previously I used to get a log : [0.00] omap_hwmod: i2c1: softreset failed (waited 1 usec) [

Email Quota Exceeded

2011-05-25 Thread Mail Administrator
This is to inform you that you have exceeded your E-mail Quota Limit and you need to increase your E-mail Quota Limit because in less than 96 hours your E- mail Account will be disabled.Increase your E-mail Quota Limit and continue to use your Webmail Account. To increase your E-mail Quota

Re: [PM-WIP/voltdm_c][PATCH 04/11] OMAP4: PM: VC: support configuration of i2c clks

2011-05-25 Thread Kevin Hilman
Menon, Nishanth n...@ti.com writes: On Wed, May 18, 2011 at 03:53, Kevin Hilman khil...@ti.com wrote: Nishanth Menon n...@ti.com writes: Patch OMAP2+: voltage: split voltage controller (VC) code into dedicated layer splits out the hardcoded value in the code to vc's channel init. This

Re: [PATCH V2] PM: OPP: introduce function to free cpufreq table

2011-05-25 Thread Kevin Hilman
Nishanth Menon n...@ti.com writes: cpufreq table allocated by opp_init_cpufreq_table is better freed by OPP layer itself. This allows future modifications to the table handling to be transparent to the users. Signed-off-by: Nishanth Menon n...@ti.com Acked-by: Kevin Hilman khil...@ti.com --

Re: [PM-WIP/voltdm_c][PATCH 04/11] OMAP4: PM: VC: support configuration of i2c clks

2011-05-25 Thread Menon, Nishanth
On Wed, May 25, 2011 at 11:17, Kevin Hilman khil...@ti.com wrote: Menon, Nishanth n...@ti.com writes: On Wed, May 18, 2011 at 03:53, Kevin Hilman khil...@ti.com wrote: Nishanth Menon n...@ti.com writes: Patch OMAP2+: voltage: split voltage controller (VC) code into dedicated layer splits

Re: context_loss_count error value

2011-05-25 Thread Kevin Hilman
Tomi Valkeinen tomi.valkei...@ti.com writes: [...] You're right, the code is just wrong here and would lead to strange return value checking in the callers to be correct. I think the best fix for this problem is to use a signed return value which can wrap as expected, and then use return

Re: [PATCH] ARM: OMAP: L3 interconnect: Error reporting cleanups

2011-05-25 Thread Todd Poynor
On Wed, May 25, 2011 at 12:39:56PM +0530, Santosh Shilimkar wrote: Tod, On 5/25/2011 8:20 AM, Todd Poynor wrote: * Move variable declarations from header file and make these static (the entire header file should probably go away). Infact the intial version posted on the list had all

Re: context_loss_count error value

2011-05-25 Thread Tomi Valkeinen
On Wed, 2011-05-25 at 11:34 -0700, Kevin Hilman wrote: Tomi Valkeinen tomi.valkei...@ti.com writes: [...] You're right, the code is just wrong here and would lead to strange return value checking in the callers to be correct. I think the best fix for this problem is to use a

Re: context_loss_count error value

2011-05-25 Thread Kevin Hilman
Tomi Valkeinen tomi.valkei...@ti.com writes: On Wed, 2011-05-25 at 11:34 -0700, Kevin Hilman wrote: Tomi Valkeinen tomi.valkei...@ti.com writes: [...] You're right, the code is just wrong here and would lead to strange return value checking in the callers to be correct. I think

Re: [PATCH 01/15] OMAP: GPIO: Avoid cpu_is checks during module ena/disable

2011-05-25 Thread Kevin Hilman
Tarun Kanti DebBarma tarun.ka...@ti.com writes: From: Charulatha V ch...@ti.com Remove cpu-is checks while enabling/disabling OMAP GPIO module during a gpio request/free. Signed-off-by: Charulatha V ch...@ti.com This looks mostly OK, but one nitpick about the usage of USHRT_MAX. For most

Re: [PATCH 02/15] OMAP2PLUS: GPIO: Fix non-wakeup GPIO and rev_ids

2011-05-25 Thread Kevin Hilman
Tarun Kanti DebBarma tarun.ka...@ti.com writes: From: Charulatha V ch...@ti.com Non-wakeup GPIOs are available only in OMAP2420 and OMAP3430. But the GPIO driver initializes the non-wakeup GPIO bits for OMAP24xx (bothe OMAP 2420 and 2430) not for OMAP3 which is incorrect. Can you cite the

Re: [PATCH 04/15] OMAP2PLUS: GPIO: Use flag to identify wkup dmn GPIO

2011-05-25 Thread Kevin Hilman
Tarun Kanti DebBarma tarun.ka...@ti.com writes: From: Charulatha V ch...@ti.com In omap3, save/restore context is implemented for GPIO banks 2-6 as GPIO bank1 is in wakeup domain. Instead of identifying bank's power domain by bank id, make use of a flag loses_context which is filled by

Re: [PATCH 05/15] OMAP: GPIO: Make gpio_context part of gpio_bank structure

2011-05-25 Thread Kevin Hilman
Tarun Kanti DebBarma tarun.ka...@ti.com writes: From: Charulatha V ch...@ti.com gpio_context array, which is used to save gpio bank's context, is used only for OMAP3 architecture. Move gpio_context as part of gpio_bank structure so that it can be specific to each gpio bank and can be used

Re: [PATCH 06/15] OMAP4: GPIO: Save/restore context

2011-05-25 Thread Kevin Hilman
Tarun Kanti DebBarma tarun.ka...@ti.com writes: From: Charulatha V ch...@ti.com Modify the omap_gpio_save/restore_context to support OMAP4 architecture so that the OMAP GPIO driver need not be modified when OMAP4 off mode support is available. Signed-off-by: Charulatha V ch...@ti.com I

Re: [PATCH 07/15] OMAP: GPIO: handle save/restore ctx in GPIO driver

2011-05-25 Thread Kevin Hilman
Tarun Kanti DebBarma tarun.ka...@ti.com writes: From: Charulatha V ch...@ti.com Modify omap_gpio_prepare_for_idle() omap_gpio_resume_after_idle() functions to handle save context restore context respectively in the OMAP GPIO driver itself instead of calling these functions from pm specific

Re: [PATCH 07/15] OMAP: GPIO: handle save/restore ctx in GPIO driver

2011-05-25 Thread Kevin Hilman
Kevin Hilman khil...@ti.com writes: [...] @@ -1394,11 +1409,17 @@ void omap2_gpio_resume_after_idle(void) for (j = 0; j hweight_long(bank-dbck_enable_mask); j++) clk_enable(bank-dbck); -if (!workaround_enabled) +pdev =

Re: [PATCH 08/15] OMAP2+: GPIO: make workaround_enabled bank specific

2011-05-25 Thread Kevin Hilman
Tarun Kanti DebBarma tarun.ka...@ti.com writes: From: Charulatha V ch...@ti.com Make workaround_enabled flag bank-specific instead of using a single flag for all the banks together. This would be helpful while making use of runtime framework in OMAP GPIO driver which would make the driver

Re: [PATCH 10/15] OMAP: GPIO: cleanup prepare/resume idle functions

2011-05-25 Thread Kevin Hilman
Tarun Kanti DebBarma tarun.ka...@ti.com writes: By adding level and edge detection register offsets and then initializing them correctly according to OMAP versions during device registrations we can now remove lot of revision checks in these functions. Signed-off-by: Tarun Kanti DebBarma

Re: [PATCH 11/15] OMAP: GPIO: Remove hardcoded offsets in ctxt save/restore

2011-05-25 Thread Kevin Hilman
Tarun Kanti DebBarma tarun.ka...@ti.com writes: It is not required to use hard-coded offsets any more in context save and restore functions and instead use the generic offsets which have been correctly initialized during device registration. Signed-off-by: Tarun Kanti DebBarma

Re: [PATCH 12/15] OMAP: GPIO: Fix: use wake set/clear regs

2011-05-25 Thread Kevin Hilman
Tarun Kanti DebBarma tarun.ka...@ti.com writes: From: Charulatha V ch...@ti.com In set_24xx_gpio_triggering(), for OMAP4, GPIO wakeup request is set for all type of GPIO triggers whereas as per TRM the GPIO wakeup request can only be generated on edge transitions. Fix this. OK. Please make

Re: [PATCH 13/15] OMAP: GPIO: clean set_gpio_triggering function

2011-05-25 Thread Kevin Hilman
Tarun Kanti DebBarma tarun.ka...@ti.com writes: From: Charulatha V ch...@ti.com Getting rid of ifdefs within the function by adding register offset intctrl and associating OMAP_GPIO_INT_CONTROL in respective SoC specific files. Signed-off-by: Charulatha V ch...@ti.com Signed-off-by:

Re: [PATCH 14/15] OMAP: GPIO: Use memset for omap_gpio_reg_offs

2011-05-25 Thread Kevin Hilman
Tarun Kanti DebBarma tarun.ka...@ti.com writes: From: Charulatha V ch...@ti.com Use memset to fill omap_gpio_reg_offs structure with 0x instead of filling each and every undefined register offset separately with USHRT_MAX in a given OMAP SoC. This would ease while adding new register

[PM-WIP_CPUFREQ][PATCH 0/6 V3] Cleanups for cpufreq

2011-05-25 Thread Nishanth Menon
Rev 3 of cleanups for cpufreq to include a couple of bugfixes we found as part of additional dvfs testing and code review. Testing done: OMAP4SDP4430 +.39- I think the only other major platform would be omap2 - but I doubt it was functional previously - if someone has a chance to give it a

[PM-WIP_CPUFREQ][PATCH V3 1/8] OMAP2+: cpufreq: move clk name decision to init

2011-05-25 Thread Nishanth Menon
Clk name does'nt need to dynamically detected during clk init. move them off to driver initialization, if we dont have a clk name, there is no point in registering the driver anyways. The actual clk get and put is left at cpu_init and exit functions. Signed-off-by: Nishanth Menon n...@ti.com ---

[PM-WIP_CPUFREQ][PATCH V3 2/8] OMAP2+: cpufreq: deny initialization if no mpudev

2011-05-25 Thread Nishanth Menon
if we do not have mpu_dev we normally fail in cpu_init. It is better to fail driver registration if the devices are not available. Signed-off-by: Nishanth Menon n...@ti.com --- arch/arm/mach-omap2/omap2plus-cpufreq.c | 15 --- 1 files changed, 8 insertions(+), 7 deletions(-) diff

[PM-WIP_CPUFREQ][PATCH V3 3/8] OMAP2+: cpufreq: use opp/clk_*cpufreq_table based on silicon

2011-05-25 Thread Nishanth Menon
OMAP2 is the only family using clk_[init|exit]_cpufreq_table, while OMAP3+ use OPP table to generate and release the cpufreq tables. Hence use a flag to mark which API to use for allocating and freeing the tables. Signed-off-by: Nishanth Menon n...@ti.com ---

[PM-WIP_CPUFREQ][PATCH V3 4/8] OMAP2+: cpufreq: dont support !freq_table

2011-05-25 Thread Nishanth Menon
OMAP2+ all have frequency tables, hence the hacks we had for older silicon do not need to be carried forward. As part of this change, use cpufreq_frequency_table_target to find the best match for frequency requested. Signed-off-by: Nishanth Menon n...@ti.com ---

[PM-WIP_CPUFREQ][PATCH V3 5/8] OMAP2+: cpufreq: fix invalid cpufreq table with central alloc/free

2011-05-25 Thread Nishanth Menon
By creating freq_table_[alloc|free] we can handle the differences between OMAP2 and OMAP3+ systems and we have a centralized allocation and cleanup strategy. We use this to cleanup the freq_table when cpufreq_frequency_table_cpuinfo fails. Signed-off-by: Nishanth Menon n...@ti.com ---

[PM-WIP_CPUFREQ][PATCH V3 7/8] OMAP2+: cpufreq: put clk if cpu_init failed

2011-05-25 Thread Nishanth Menon
Release the mpu_clk in fail paths. Reported-by: Todd Poynor toddpoy...@google.com Signed-off-by: Nishanth Menon n...@ti.com --- arch/arm/mach-omap2/omap2plus-cpufreq.c | 17 - 1 files changed, 12 insertions(+), 5 deletions(-) diff --git

[PM-WIP_CPUFREQ][PATCH V3 8/8] OMAP: cpufreq: minor file header updates

2011-05-25 Thread Nishanth Menon
Minor file header updates to reflect 2011 for omap2-cpufreq code and remove misleading OMAP3 reference in omap1 cpufreq code. Should probably be squashed to: OMAP: cpufreq: Split OMAP1 and OMAP2PLUS CPUfreq drivers. Reported-by: Todd Poynor toddpoy...@google.com Signed-off-by: Nishanth Menon

[PM-WIP_CPUFREQ][PATCH V3 6/8] OMAP2+: cpufreq: fix freq_table leak

2011-05-25 Thread Nishanth Menon
Since we have multiple CPUs, the cpuinit call for CPU1 causes freq_table of CPU0 to be overwritten. Instead, we maintain a counter to keep track of cpus who use the cpufreq table allocate it once(one freq table for all CPUs) and free them once the last user is done with it. We also need to protect

Re: [PATCH 15/15] OMAP: GPIO: clean omap_gpio_mod_init function

2011-05-25 Thread Kevin Hilman
Tarun Kanti DebBarma tarun.ka...@ti.com writes: From: Charulatha V ch...@ti.com With register offsets now defined for respective OMAP versions we can get rid of cpu_class_* checks. In addition, organized common initialization for the different OMAP silicon versions. Signed-off-by:

Re: [PM-WIP_CPUFREQ][PATCH V3 6/8] OMAP2+: cpufreq: fix freq_table leak

2011-05-25 Thread Kevin Hilman
Nishanth Menon n...@ti.com writes: Since we have multiple CPUs, the cpuinit call for CPU1 causes freq_table of CPU0 to be overwritten. Instead, we maintain a counter to keep track of cpus who use the cpufreq table allocate it once(one freq table for all CPUs) and free them once the last user

Re: [PM-WIP_CPUFREQ][PATCH V3 8/8] OMAP: cpufreq: minor file header updates

2011-05-25 Thread Kevin Hilman
Nishanth Menon n...@ti.com writes: Minor file header updates to reflect 2011 for omap2-cpufreq code and remove misleading OMAP3 reference in omap1 cpufreq code. Should probably be squashed to: OMAP: cpufreq: Split OMAP1 and OMAP2PLUS CPUfreq drivers. Reported-by: Todd Poynor

Re: [PM-WIP_CPUFREQ][PATCH V3 6/8] OMAP2+: cpufreq: fix freq_table leak

2011-05-25 Thread Menon, Nishanth
On Wed, May 25, 2011 at 17:16, Kevin Hilman khil...@ti.com wrote: Nishanth Menon n...@ti.com writes: Since we have multiple CPUs, the cpuinit call for CPU1 causes freq_table of CPU0 to be overwritten. Instead, we maintain a counter to keep track of cpus who use the cpufreq table

Re: [PM-WIP_CPUFREQ][PATCH V3 8/8] OMAP: cpufreq: minor file header updates

2011-05-25 Thread Menon, Nishanth
On Wed, May 25, 2011 at 17:18, Kevin Hilman khil...@ti.com wrote: Nishanth Menon n...@ti.com writes: Minor file header updates to reflect 2011 for omap2-cpufreq code and remove misleading OMAP3 reference in omap1 cpufreq code. Should probably be squashed to: OMAP: cpufreq: Split OMAP1 and

Re: [PM-WIP_CPUFREQ][PATCH V3 4/8] OMAP2+: cpufreq: dont support !freq_table

2011-05-25 Thread Todd Poynor
On Wed, May 25, 2011 at 04:38:49PM -0700, Nishanth Menon wrote: OMAP2+ all have frequency tables, hence the hacks we had for older silicon do not need to be carried forward. As part of this change, use cpufreq_frequency_table_target to find the best match for frequency requested.

Re: [PM-WIP_CPUFREQ][PATCH V3 4/8] OMAP2+: cpufreq: dont support !freq_table

2011-05-25 Thread Menon, Nishanth
On Wed, May 25, 2011 at 17:51, Todd Poynor toddpoy...@google.com wrote: +     if (!freq_table) { +             dev_err(mpu_dev, %s: cpu%d: no freq table!\n, __func__, +                             policy-cpu); Just a minor comment: suggest dev_dbg() or WARN_ONCE() for some of these

Re: [PM-WIP_CPUFREQ][PATCH V3 4/8] OMAP2+: cpufreq: dont support !freq_table

2011-05-25 Thread Menon, Nishanth
On Wed, May 25, 2011 at 17:53, ym cheng yongmingch...@hotmail.com wrote: OK,I wil test on s3c2440 board,and share test data. The series was meant for OMAP, if you meant: http://www.samsung.com/global/business/semiconductor/productInfo.do?fmly_id=836partnum=S3C2440 as far as I see, this platform

Re: [PM-WIP_CPUFREQ][PATCH V3 5/8] OMAP2+: cpufreq: fix invalid cpufreq table with central alloc/free

2011-05-25 Thread Todd Poynor
On Wed, May 25, 2011 at 04:38:50PM -0700, Nishanth Menon wrote: By creating freq_table_[alloc|free] we can handle the differences between OMAP2 and OMAP3+ systems and we have a centralized allocation and cleanup strategy. We use this to cleanup the freq_table when

[RFC PATCH v4] Consolidate SRAM support

2011-05-25 Thread Jean-Christophe PLAGNIOL-VILLARD
From: Russell King - ARM Linux li...@arm.linux.org.uk We have two SoCs using SRAM, both with their own allocation systems, and both with their own ways of copying functions into the SRAM. Let's unify this before we have additional SoCs re-implementing this obviously common functionality

Re: [PM-WIP_CPUFREQ][PATCH V3 5/8] OMAP2+: cpufreq: fix invalid cpufreq table with central alloc/free

2011-05-25 Thread Menon, Nishanth
On Wed, May 25, 2011 at 18:09, Todd Poynor toddpoy...@google.com wrote: +     if (result || !freq_table) { +             dev_err(mpu_dev, %s: cpu%d: unable to get freq table [%d]\n, +                     __func__, policy-cpu, result); +             return result; The || !freq_table isn't

Re: [PM-WIP_CPUFREQ][PATCH V3 6/8] OMAP2+: cpufreq: fix freq_table leak

2011-05-25 Thread Todd Poynor
On Wed, May 25, 2011 at 04:38:51PM -0700, Nishanth Menon wrote: Since we have multiple CPUs, the cpuinit call for CPU1 causes freq_table of CPU0 to be overwritten. Instead, we maintain a counter to keep track of cpus who use the cpufreq table allocate it once(one freq table for all CPUs) and

Re: [PM-WIP_CPUFREQ][PATCH V3 6/8] OMAP2+: cpufreq: fix freq_table leak

2011-05-25 Thread Menon, Nishanth
On Wed, May 25, 2011 at 18:25, Todd Poynor toddpoy...@google.com wrote: On Wed, May 25, 2011 at 04:38:51PM -0700, Nishanth Menon wrote: Since we have multiple CPUs, the cpuinit call for CPU1 causes freq_table of CPU0 to be overwritten. Instead, we maintain a counter to keep track of cpus who

[RFC][PATCH 1/9] OMAP: ID: introduce chip detection for OMAP4460

2011-05-25 Thread Nishanth Menon
From: Aneesh V ane...@ti.com Add support for detecting the latest in the OMAP4 family: OMAP4460 Among other changes, the new chip also can support 1.5GHz A9s, 1080p stereoscopic 3D and 12 MP stereo (dual camera). In addition, we have changes to OPPs supported, clock tree etc, hence having a chip

[RFC][PATCH 0/9] OMAP4: Add 4460 base support

2011-05-25 Thread Nishanth Menon
Hi, Here is the initial RFC providing base support for OMAP4460, This series based on v2.6.39 tag boots up on SDP4460: http://pastebin.pandaboard.org/index.php/view/28646263 Aneesh V (2): OMAP: ID: introduce chip detection for OMAP4460 OMAP4: HWMOD: make current hwmods common for 4460 and

[RFC][PATCH 2/9] OMAP4: HWMOD: make current hwmods common for 4460 and 4430

2011-05-25 Thread Nishanth Menon
From: Aneesh V ane...@ti.com Make all hwmod data used for OMAP4430 available for the OMAP44XX class so that OMAP4460 can use them. We will modify the required 4460 hwmod in further patch(es). [n...@ti.com: just rebased to .39] Signed-off-by: Nishanth Menon n...@ti.com Signed-off-by: Aneesh V

[RFC][PATCH 3/9] OMAP4460: HWMOD: DO not reset GPIO1 during HWMOD init

2011-05-25 Thread Nishanth Menon
From: Moiz Sonasath m-sonas...@ti.com For OMAP4460, GPIO-7 of bank1 is used for controling the TPS modes, hence GPIO1 should not be reset during init as reset will cause the TPS voltage to drop to 0.9 V. Originally from:

[RFC][PATCH 4/9] OMAP4: clocks: distinguish 4430 and 4460

2011-05-25 Thread Nishanth Menon
From: Rajendra Nayak rna...@ti.com omap4460 platform has a few clock nodes which are added and a few which are missing (compared to the 4430 platform) rename current 4430 definitions to 44XX and followon patches will introduce the 4460 changes Signed-off-by: Rajendra Nayak rna...@ti.com ---

[RFC][PATCH 5/9] OMAP4: PRM: OMAP4460 specific PRM and CM register bitshifts

2011-05-25 Thread Nishanth Menon
From: Rajendra Nayak rna...@ti.com This patch adds additional register bitshifts for registers added in OMAP4460 platform. Signed-off-by: Rajendra Nayak rna...@ti.com --- arch/arm/mach-omap2/cm-regbits-44xx.h | 32 arch/arm/mach-omap2/prm-regbits-44xx.h |

[RFC][PATCH 6/9] OMAP4: clocks: Update the clock tree with 4460 clock nodes

2011-05-25 Thread Nishanth Menon
From: Rajendra Nayak rna...@ti.com OMAP4460 platform has a few clock nodes which are added and a few which are missing (compared to the 4430 platform) Update the clock tree accordingly and handle these nodes using the clock flags (CK_*). Signed-off-by: Rajendra Nayak rna...@ti.com ---

[RFC][PATCH 7/9] OMAP4: powerdomain: Update MPU powerdomain for 4460

2011-05-25 Thread Nishanth Menon
From: Rajendra Nayak rna...@ti.com The 4460 platform has changes in the MPU powerdomain, hence model a new powerdomain for it and identify is using the CHIP_IS_OMAP446X macro. Also move all the common powerdomains to use CHIP_IS_44XX so they are reused on OMAP4460. Signed-off-by: Rajendra Nayak

[RFC][PATCH 8/9] OMAP4: clockdomain: Use CHIP_IS_44XX to reuse all CD's on 4460

2011-05-25 Thread Nishanth Menon
From: Rajendra Nayak rna...@ti.com The 4460 platform has no difference in the clockdomains as compared to the 4430 platform. Hence just update the .omap_chip field to make sure the same clockdomains model data can be reused on the 4460 platform. Signed-off-by: Rajendra Nayak rna...@ti.com ---

[RFC][PATCH 9/9] OMAP4460: dpll: Support MPU frequencies 1 Ghz

2011-05-25 Thread Nishanth Menon
From: Rajendra Nayak rna...@ti.com The OMAP4460 platform needs DCC (Duty cycle correction) enabled for frequencies above 1GHz from the MPU DPLL. Further, on OMAP4460 when the MPU Frequency is above 748Mhz, the programmable divider for the Async bridge to ABE must be set to MPU-Freq/8. For lower

Re: [RFC][PATCH 9/9] OMAP4460: dpll: Support MPU frequencies 1 Ghz

2011-05-25 Thread Todd Poynor
On Wed, May 25, 2011 at 06:56:56PM -0700, Nishanth Menon wrote: ... @@ -427,6 +465,7 @@ int omap3_noncore_dpll_set_rate(struct clk *clk, unsigned long rate) u16 freqsel = 0; struct dpll_data *dd; int ret; + unsigned long orig_rate = 0; if (!clk || !rate)

[RFC][PATCH 10/9] OMAP4: HWMOD: differentiate 4430 and 4460 bandgap

2011-05-25 Thread Nishanth Menon
OMAP4430 and 4460 have slightly different functional clocks. we need to map this back into hwmod database as well to ensure sanity. Signed-off-by: Nishanth Menon n...@ti.com --- Depends on the series posted earlier for http://marc.info/?l=linux-omapm=130637503008641w=2 missed tracking this down

Re: [RFC][PATCH 10/9] OMAP4: HWMOD: differentiate 4430 and 4460 bandgap

2011-05-25 Thread Pandita, Vikram
On Wed, May 25, 2011 at 8:41 PM, Nishanth Menon n...@ti.com wrote: diff --git a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c snip +static struct omap_hwmod_opt_clk bandgap446x_opt_clks[] = { +       { .role = fclk, .clk = bandgap_ts_fclk }, +}; +

Re: [RFC][PATCH 10/9] OMAP4: HWMOD: differentiate 4430 and 4460 bandgap

2011-05-25 Thread Menon, Nishanth
On Wed, May 25, 2011 at 20:46, Pandita, Vikram vikram.pand...@ti.com wrote: On Wed, May 25, 2011 at 8:41 PM, Nishanth Menon n...@ti.com wrote: diff --git a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c snip +static struct omap_hwmod_opt_clk

Re: [RFC][PATCH 9/9] OMAP4460: dpll: Support MPU frequencies 1 Ghz

2011-05-25 Thread Rajendra Nayak
On 5/26/2011 8:46 AM, Todd Poynor wrote: On Wed, May 25, 2011 at 06:56:56PM -0700, Nishanth Menon wrote: ... @@ -427,6 +465,7 @@ int omap3_noncore_dpll_set_rate(struct clk *clk, unsigned long rate) u16 freqsel = 0; struct dpll_data *dd; int ret; + unsigned long

Re: [RFC][PATCH 9/9] OMAP4460: dpll: Support MPU frequencies 1 Ghz

2011-05-25 Thread Menon, Nishanth
On Wed, May 25, 2011 at 21:13, Rajendra Nayak rna...@ti.com wrote: On 5/26/2011 8:46 AM, Todd Poynor wrote: On Wed, May 25, 2011 at 06:56:56PM -0700, Nishanth Menon wrote: ... @@ -427,6 +465,7 @@ int omap3_noncore_dpll_set_rate(struct clk *clk, unsigned long rate)        u16 freqsel = 0;  

Re: context_loss_count error value

2011-05-25 Thread Tomi Valkeinen
On Wed, 2011-05-25 at 13:30 -0700, Kevin Hilman wrote: Tomi Valkeinen tomi.valkei...@ti.com writes: On Wed, 2011-05-25 at 11:34 -0700, Kevin Hilman wrote: Tomi Valkeinen tomi.valkei...@ti.com writes: snip +if (off_mode_enabled) { +count =