[PATCHv2] mfd: twl4030: Fix mismatch in mutex lock-unlock

2011-07-11 Thread Sanjeev Premi
A mutex is locked on entry into twl4030_madc_conversion(). Immediate return on some error conditions leaves the mutex locked. This patch ensures that mutex is always unlocked before leaving the function. Signed-off-by: Sanjeev Premi pr...@ti.com Cc: Keerthy j-keer...@ti.com Cc: Samuel Ortiz sa

[PATCH] mfd: twl4030: Fix mismatch in mutex lock-unlock

2011-07-08 Thread Sanjeev Premi
A mutex is locked on entry into twl4030_madc_conversion(). Immediate return on some error conditions leaves the mutex locked. This patch ensures that mutex is always unlocked before leaving the function. Signed-off-by: Sanjeev Premi pr...@ti.com Cc: Keerthy j-keer...@ti.com --- Compile tested

[PATCHv2] omap3: beagle: Use GPTIMER1 for clockevents

2011-06-27 Thread Sanjeev Premi
#7 at http://elinux.org/BeagleBoard#Errata Signed-off-by: Sanjeev Premi pr...@ti.com Reviewed-by: Paul Walmsley p...@pwsan.com Cc: Hrishikesh Bhandiwad hrishikes...@ti.com Cc: Thomas Weber we...@corscience.de Cc: Jason Lam l...@ema-tech.com Cc: Gregoire Gentil grego...@gentil.com --- Changes since

[PATCH] omap3: beagle: Use GPTIMERi 1 for clockevents

2011-06-24 Thread Sanjeev Premi
://thread.gmane.org/gmane.comp.hardware.beagleboard.general/91 [2] Errata #7 at http://elinux.org/BeagleBoard#Errata Signed-off-by: Sanjeev Premi pr...@ti.com Cc: Paul Walmsley p...@pwsan.com --- * The patch has been boot tested with Beagleboard-XM. Verified that GPTIMER1 is indeed being used

[PATCH 0/2] omap2+: pm: Fix code syntax and BogoMIPS

2011-06-24 Thread Sanjeev Premi
: rebuild PM from branches Sanjeev Premi (2): omap2+: pm: Use if...else instead of goto omap2+: pm: cpufreq: Fix loops_per_jiffy calculation arch/arm/mach-omap2/omap2plus-cpufreq.c | 51 -- 1 files changed, 14 insertions(+), 37 deletions(-) -- 1.7.2.2

[PATCHv2] omap2+: pm: cpufreq: Fix loops_per_jiffy calculation

2011-06-24 Thread Sanjeev Premi
-by: Sanjeev Premi pr...@ti.com --- Changes since v1: * loops_per_jiffy are updated when CONFIG_SMP is true. * leverage definition of for_each_cpu() Tested on OMAP3EVM with and without CONFIG_SMP. Since the log is rather long, will be posting the log in a follow-up mail. arch/arm/mach

[RFC] omap3: pm: Downgrade WARN for no wakeup source

2011-06-08 Thread Sanjeev Premi
was found in kernel version 2.6.32 running on AM3703 (no IVA2), it is still relevant. This patch also fixes the comment that attributes current behavior to race with interrupt handler on IVA2. Signed-off-by: Sanjeev Premi pr...@ti.com --- Quoting specific instances, on entry into the ISR

[PATCH] OMAP3: pm: Boot message is not an error, remove it

2011-05-18 Thread Sanjeev Premi
It shows up on the console despite using silent in the bootargs. Signed-off-by: Sanjeev Premi pr...@ti.com Cc: jhnik...@gmail.com --- v2: Changed the subject. Removed the print altogether v1: Convert printk to pr_info arch/arm/mach-omap2/pm34xx.c |2 -- 1 files changed, 0

[PATCH] omap3: boot message is not an error

2011-05-17 Thread Sanjeev Premi
With current level, it shows up on the console despite using 'silent' in bootargs. Signed-off-by: Sanjeev Premi pr...@ti.com --- 1) Couldn't find better text on commit message. Any suggestions? 2) Though pm34xx.x is changed, the change itself is no related to power management. Hence

[PATCH] omap:pm: Fix boot-time errors with debugfs disabled

2011-05-12 Thread Sanjeev Premi
vdd_debugfs_init: Unable to create debugfs directory for vdd_core This patch fixes these errors by enclosing code related to debugfs in #ifdef CONFIG_DEBUG_FS..#endif. Boot tested on OMAP3EVM. Signed-off-by: Sanjeev Premi pr...@ti.com --- Patch was created and tested on the pm branch at commit

[PATCH] ASoC: omap-mcbsp: Remove restrictive checks for cpu type

2011-05-11 Thread Sanjeev Premi
Current checks for cpu type were too restrictive leading to failures for other silicons in same family. The problem was found while testing audio playback on AM37x and AM35x processors. But should exist on OMAP36xx as well. Signed-off-by: Sanjeev Premi pr...@ti.com cc: Mark Brown broo

[PATCHv3] omap3: alsa-soc: Remove restrictive checks for cpu type

2011-04-12 Thread Sanjeev Premi
Current checks for cpu type were too restrictive leading to failures for other silicons in same family. The problem was found while testing audio playback on AM37x and AM35x processors. But should exist on OMAP36xx as well. Signed-off-by: Sanjeev Premi pr...@ti.com --- Changes in v3:: None

[PATCH 1/2] omap3: voltage: remove unnecessary param passing

2011-03-17 Thread Sanjeev Premi
It is not necessary to pass the params prm_mod and prm_irqst_mod to omap_voltage_early_init(). Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2/voltage.c | 18 ++ arch/arm/mach-omap2/voltage.h |3 +-- arch/arm/mach-omap2

[PATCH 2/2] omap3: voltage: fix variable type and name

2011-03-17 Thread Sanjeev Premi
PRM_IRQSTATUS_MPU offset. Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2/voltage.c | 18 +- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/arm/mach-omap2/voltage.c b/arch/arm/mach-omap2/voltage.c index ce3098a..c686eca 100644 --- a/arch/arm

[RFCv2 0/2] Support TPS65023 with AM35x

2011-03-16 Thread Sanjeev Premi
-up of voltage layer, attempt to rebase against new baseline would only delay the intended feedback. Sanjeev Premi (2): OMAP3: Add support for TPS65023 (AM35x only) AM35x: voltage: Basic initialization arch/arm/mach-omap2/Makefile|3 +- arch/arm/mach-omap2/pm.c|1

[RFCv2 1/2] OMAP3: Add support for TPS65023 (AM35x only)

2011-03-16 Thread Sanjeev Premi
This patch adds support for TPS65023 used with OMAP3 devices. The PMIC is currently hooked to AM35x devices, but can easily be extended for other OMAP3 devices. Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2/Makefile|3 +- arch/arm/mach-omap2/pm.c|1

[RFCv2 2/2] AM35x: voltage: Basic initialization

2011-03-16 Thread Sanjeev Premi
This patch adds the basic initialization of voltage layer for AM35x. Since AM35x doesn't support voltage scaling, Many functions emply fucntions have been defined to plug into existing voltage layer. Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2/voltage.c | 110

[PATCHv2] omap3: alsa-soc: Remove restrictive checks for cpu type

2011-03-16 Thread Sanjeev Premi
Current checks for cpu type were too restrictive leading to failures for other silicons in same family. The problem was found while testing audio playback on AM37x and AM35x processors. But should exist on OMAP36xx as well. Signed-off-by: Sanjeev Premi pr...@ti.com --- Changes in this version

[PATCH] omap3: alsa-soc: Remove restrictive check for cpu type

2011-03-14 Thread Sanjeev Premi
Current check for cpu type is too restrictive leading to failures for other silicons in same family. The problem was found while testing audio playback on AM37x and AM35x processors. But should exist on OMAP36xx as well. Signed-off-by: Sanjeev Premi pr...@ti.com --- sound/soc/omap/omap-mcbsp.c

[RFC] AM35x: Workaround to use generic OMAP3 hwmods

2011-02-25 Thread Sanjeev Premi
, this workaround can be considered. Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 66 +++- 1 files changed, 65 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c b/arch/arm/mach-omap2

[PATCH] omap2plus: Remove auto selection on PMICs

2011-02-23 Thread Sanjeev Premi
and can easily be added to configuration for any board, there should be no compile/run-time impact. Signed-off-by: Sanjeev Premi pr...@ti.com --- Compiled omap2plus-defconfig and boot tested on OMAP3EVM Rev G. arch/arm/mach-omap2/Kconfig |3 --- drivers/mfd/Kconfig |4 ++-- 2 files

[RFC 0/3] Support TPS65023 with AM35xx

2011-02-23 Thread Sanjeev Premi
Intent of this series is to solicit feedback on on adding basic support for AM3517 and TPS65023. This is definitely not the complete support, but wanted to get early comments while i continue to work. Sanjeev Premi (3): omap: voltage: Allow custom vp_init() implementation am35xx: voltage

[RFC 2/3] am35xx: voltage: Add basic initialization

2011-02-23 Thread Sanjeev Premi
This patch adds basic initialization in the voltage layer for AM35xx processors. In absence of AVS, functions vp_init() and vc_init() are empty. Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2/voltage.c | 45 - 1 files changed, 44

[RFC 3/3] am35xx: pm: Hook-up with TPS65023

2011-02-23 Thread Sanjeev Premi
Add glue logic to hook-up AM35x processors with TPS65023. Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2/am3517_tps.c | 96 ++ 1 files changed, 96 insertions(+), 0 deletions(-) create mode 100644 arch/arm/mach-omap2/am3517_tps.c diff

[RFC 1/3] omap: voltage: Allow custom vp_init() implementation

2011-02-23 Thread Sanjeev Premi
Current implementation expects AVS to be available on the processor - by default. May not be true. This patch allows the vp_init() to be implemented per processor (or family) - same as vc_init(). Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2/voltage.c |6 +- 1 files

[RFC] omap3: Allow dynamic (de)selection of HWMODs

2011-02-22 Thread Sanjeev Premi
silicon variant. It eliminates the need to define CHIP_IS_xxx for each variant. Continuation of ongoing discussion[1] but this time with actual code. [1] http://marc.info/?l=linux-omapm=129838265800443w=2 Signed-off-by: Sanjeev Premi pr...@ti.com --- This patch contains changes to add

[PATCH 0/2] omap3: minor clean-up in flash related code

2011-02-15 Thread Sanjeev Premi
Changes include: - fixing typos - using pr_err() instead of printk Sanjeev Premi (2): omap3: fix minor typos omap3: flash: use pr_err instead of printk arch/arm/mach-omap2/board-flash.c | 19 --- 1 files changed, 8 insertions(+), 11 deletions(-) -- 1.7.2.2

[PATCH 1/2] omap3: fix minor typos

2011-02-15 Thread Sanjeev Premi
This patch fixes typos that were remaining after the file and functions were renamed. Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2/board-flash.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/board-flash.c b/arch/arm/mach

[PATCH 2/2] omap3: flash: use pr_err instead of printk

2011-02-15 Thread Sanjeev Premi
Change all occurences of printf() to pr_err(). Includes minor formatting changes as result of this change. Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2/board-flash.c | 15 ++- 1 files changed, 6 insertions(+), 9 deletions(-) diff --git a/arch/arm/mach-omap2

[PATCH] omap3: fix compile-time warnings

2011-02-11 Thread Sanjeev Premi
: 'mpu_24xx_wkdeps' defined but not used arch/arm/mach-omap2/clockdomains2xxx_3xxx_data.c:147: warning: 'core_24xx_wkdeps' defined but not used The problem should be noticed when building for other OMAP3 platforms (only) as well. Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2

[PATCH 0/1] omap3: pm: CM_AUTOIDLE_PLL isn't restored on wakeup from off state

2011-02-10 Thread Sanjeev Premi
[ 80.567687] PM: Syncing filesystems ... done. [ 80.573822] Freezing user space processes ... (elapsed 0.01 seconds) done. [snip]...removed more verbose text...[/snip] [ 86.272399] PM: resume of devices complete after 501.953 msecs [ 86.282165] Restarting tasks ... done. Sanjeev Premi (1

[PATCH 1/1] omap3: Save and restore CM_AUTOIDLE_PLL across off mode

2011-02-10 Thread Sanjeev Premi
. Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2/cm2xxx_3xxx.c | 13 + arch/arm/mach-omap2/pm34xx.c | 25 - 2 files changed, 37 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/cm2xxx_3xxx.c b/arch/arm/mach-omap2

[PATCHv5] omap3: Add basic support for 720MHz part

2011-02-09 Thread Sanjeev Premi
: This should be done for identified parts only. Else, the device could be damaged permanently. Signed-off-by: Sanjeev Premi pr...@ti.com Reviewed-by: G, Manjunath Kondaiah manj...@ti.com --- Since v4: Updated the commit text addressing comments from Kevin Hilman (khil...@ti.com). Since v3: 1

[PATCHv5] omap3: Add basic support for 720MHz part

2011-01-27 Thread Sanjeev Premi
: This should be done for identified parts only. Else, the device could be damaged permanently. Signed-off-by: Sanjeev Premi pr...@ti.com Reviewed-by: G, Manjunath Kondaiah manj...@ti.com --- Since v4: Updated the commit text addressing comments from Kevin Hilman (khil...@ti.com). Since v3: 1

[PATCHv4] omap3: Add basic support for 720MHz part

2011-01-20 Thread Sanjeev Premi
* Ensure that OPP is conditionally enabled. * Check for presence of IVA before attempting to enable the corresponding OPP. [1] http://focus.ti.com/lit/ug/spruff1d/spruff1d.pdf Signed-off-by: Sanjeev Premi pr...@ti.com --- Since v3: 1) Minor changes to comments and braces. Since v2: 1) pr_xxx

[PATCH] omap3: Add basic support for 720MHz part

2011-01-17 Thread Sanjeev Premi
* Ensure that OPP is conditionally enabled. * Check for presence of IVA before attempting to enable the corresponding OPP. [1] http://focus.ti.com/lit/ug/spruff1d/spruff1d.pdf Signed-off-by: Sanjeev Premi pr...@ti.com --- Since v2: 1) pr_xxx() - dev_xxx() functions - suggested by Manjunath

[PATCHv2] omap3: Add basic support for 720MHz part

2011-01-12 Thread Sanjeev Premi
* Ensure that OPP is conditionally enabled. [1] http://focus.ti.com/lit/ug/spruff1d/spruff1d.pdf Signed-off-by: Sanjeev Premi pr...@ti.com --- Since last revision: 1) Using opp_enable() to enable the OPP after the OPP table has been initialized. 2) Starting at 3 levels of indent, the statements had

[PATCH] omap3: Add basic support for 720MHz part

2011-01-07 Thread Sanjeev Premi
/spruff1d.pdf Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2/control.h |7 +++ arch/arm/mach-omap2/id.c | 10 ++ arch/arm/mach-omap2/opp3xxx_data.c| 19 ++- arch/arm/plat-omap/include/plat/cpu.h |2 ++ 4 files changed

[RFC] omap3: Enable SmartReflex calculations for 720MHz

2011-01-07 Thread Sanjeev Premi
a FIXME which is added to illustrate the calculations; and express need for a mechanism to get nValues for each OPP. Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2/sr_device.c | 54 + arch/arm/mach-omap2/voltage.c |1 + arch

[PATCHv2 0/1] omap2/3: Update revision identification

2010-09-24 Thread Sanjeev Premi
these processors: * OMAP3630 ES1.1 * OMAP3530 ES3.1 * AM3517 ES1.0 * AM3517 ES1.1 Sanjeev Premi (1): omap2/3: Update revision identification arch/arm/mach-omap2/id.c | 72 ++--- arch/arm/plat-omap/include/plat/cpu.h | 36 2 files

[PATCHv2 1/1] omap2/3: Update revision identification

2010-09-24 Thread Sanjeev Premi
The existing definitions for cpu revision used upper nibble in the bits[15:08]. With OMAP3630, definitions use lower nibble. This patch unifies the definitions to start at lower nibble. [1] http://marc.info/?t=12816173915r=1w=2 Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach

[PATCH] omap: OMAP_IOMMU not visible in menuconfig

2010-09-08 Thread Sanjeev Premi
The menu option to select CONFIG_OMAP_IOMMU was not visible in the menuconfig due to missing description. Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/plat-omap/Kconfig |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/plat-omap/Kconfig b/arch/arm/plat

[PATCH 0/1] omap: fix section mismatch errors

2010-08-16 Thread Sanjeev Premi
, *_sht, *_ops, *_probe, *_probe_one, *_console, Sanjeev Premi (1): omap: fix section mismatch errors arch/arm/mach-omap2/board-2430sdp.c |2 +- arch/arm/mach-omap2/board-apollon.c |2 +- arch/arm/mach-omap2/board-cm-t35.c |8 arch/arm/mach-omap2

[PATCH 1/1] omap: fix section mismatch errors

2010-08-16 Thread Sanjeev Premi
This patch fixes miltiple section mismatch errors observed with the latest master. Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2/board-2430sdp.c |2 +- arch/arm/mach-omap2/board-apollon.c |2 +- arch/arm/mach-omap2/board-cm-t35.c |8

[PATCH 1/1] omap2/3: Update revision identification

2010-08-16 Thread Sanjeev Premi
The existing definitions for cpu revision used upper nibble in the bits[15:08]. With OMAP3630, definitions use lower nibble. This patch unifies the definitions to start at lower nibble. [1] http://marc.info/?t=12816173915r=1w=2 Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach

[PATCHv2] omap2: fix assorted compiler warnings

2010-08-10 Thread Sanjeev Premi
-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2/board-omap4panda.c |2 -- arch/arm/mach-omap2/mux.c |2 +- arch/arm/plat-omap/gpio.c |4 ++-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-omap2/board-omap4panda.c b/arch/arm/mach

[PATCH] omap3: Remove non-existent config option

2010-07-22 Thread Sanjeev Premi
yogesh_mara...@ti.com Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2/omap-iommu.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/omap-iommu.c b/arch/arm/mach-omap2/omap-iommu.c index f5a1aad..bb8c01d 100644 --- a/arch/arm/mach-omap2/omap

[PATCH] omap: Add macros to evaluate cpu revision

2010-07-21 Thread Sanjeev Premi
This patch adds macros to evaluate the cpu revision. These macros increase readability by reducing the repetitive code when multiple silicon and their revisions have to be tested. Example usage would be: if (cpu_rev_eq(omap34xx, ES_1_0)) Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm

[PATCH] omap2: fix assorted compiler warnings

2010-07-13 Thread Sanjeev Premi
-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2/board-omap4panda.c |2 -- arch/arm/mach-omap2/mux.c |2 +- arch/arm/plat-omap/gpio.c |4 ++-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-omap2/board-omap4panda.c b/arch/arm/mach

[PATCHv1 0/1] omap3: pm: Delink OPP layer from cpufreq

2010-05-31 Thread Sanjeev Premi
. It will be a separate patch when I submit it next. [1] http://marc.info/?l=linux-omapm=127495955603835w=2 Sanjeev Premi (1): omap3: pm: Delink opp layer and cpufreq arch/arm/mach-omap2/Makefile |6 +- arch/arm/mach-omap2/board-omap3evm.c |2 +- arch/arm/mach-omap2

[PATCHv1 1/1] omap3: pm: Delink opp layer and cpufreq

2010-05-31 Thread Sanjeev Premi
The OPP layer was contained in the CONFIG_CPU_FREQ. This patch removes this containment relation. Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2/Makefile |6 +- arch/arm/mach-omap2/board-omap3evm.c |2 +- arch/arm/mach-omap2/cpufreq34xx.c | 164

[PATCH] omap3: Increase limit on bootarg 'mpurate'

2010-05-27 Thread Sanjeev Premi
The value of mpurate is currently expected to be less than 1000 when specified in MHz. This patch raises this limit to 2000 to support 1GHz capable processors. The new limit should be reasonable for quite some time. Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/plat-omap/clock.c |3

[PATCHv2] omap3: Increase limit on bootarg 'mpurate'

2010-05-27 Thread Sanjeev Premi
The value of mpurate is currently expected to be less than 1000 when specified in MHz. This patch raises this limit to 2000 to support 1GHz capable processors. The new limit should be reasonable for quite some time. Signed-off-by: Sanjeev Premi pr...@ti.com --- v2: Removed a newline introduced

[PATCH] omap: Macros for comapring si revisions

2010-03-24 Thread Sanjeev Premi
last patch[1], the real change is to make macros/ functions more parameterized. [1] http://marc.info/?l=linux-omapm=126322767404669w=2 Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/plat-omap/include/plat/cpu.h | 150 + 1 files changed, 150 insertions

[RFC] omap3: Fix incorrect restore pointer

2010-03-19 Thread Sanjeev Premi
patch after testing. Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2/control.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/control.c b/arch/arm/mach-omap2/control.c index 43f8a33..575593b 100644 --- a/arch/arm/mach-omap2

[PATCH] OMAP3EVM: PM: Update defconfig

2010-02-17 Thread Sanjeev Premi
This patch updates the omap3_evm_defconfig to select CONFIG_PM_DEBUG and CONFIG_DEBUG_FS. Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/configs/omap3_evm_defconfig |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/configs/omap3_evm_defconfig b/arch

[PATCHv2] OMAP3EVM: PM: Update defconfig

2010-02-17 Thread Sanjeev Premi
This patch updates the omap3_evm_defconfig to select these options: * CONFIG_PM_DEBUG * CONFIG_DEBUG_FS * CONFIG_OMAP_SMARTREFLEX Signed-off-by: Sanjeev Premi pr...@ti.com --- Found that SmartReflex was disabled as well. Didn't feel need for a different patch for same. arch/arm

[PATCH 1/3] omap3evm: Add mux settings for keypad

2010-02-05 Thread Sanjeev Premi
This patch sets SYS_NIRQ for keypad input. It also sets the same as a wakeup event from OFF mode. Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2/board-omap3evm.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/board-omap3evm.c b

[PATCH 2/3] omap3evm: Fixes after moving to matrix_keypad

2010-02-05 Thread Sanjeev Premi
The keypad was not working properly after migrating to matrix_keypad. Swapped the row, col fields of the KEY() macro in the keymap definition to get it working again. Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2/board-omap3evm.c | 27 +++ 1 files

[PATCH 3/3] omap3evm: Configure GPIO175 for touchscreen PEN_IRQ

2010-02-05 Thread Sanjeev Premi
GPIO175 is used for PEN_IRQ on the EVM. This patch sets the mux settings for the same. Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2/board-omap3evm.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/board-omap3evm.c b/arch/arm

[PATCH 1/3] omap3evm: Add mux settings for keypad

2010-02-04 Thread Sanjeev Premi
This patch sets SYS_NIRQ for keypad input. It also sets the same as a wakeup event from OFF mode. Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2/board-omap3evm.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/board-omap3evm.c b

[PATCH 2/3] omap3evm: Fixes after moving to matrix_keypad

2010-02-04 Thread Sanjeev Premi
The keypad was not working properly after migrating to matrix_keypad. Swapped the row, col fields of the KEY() macro in the keymap definition to get it working again. Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2/board-omap3evm.c | 27 +++ 1 files

[PATCH 3/3] omap3evm: Configure GPIO175 for touchscreen PEN_IRQ

2010-02-04 Thread Sanjeev Premi
GPIO175 is used for PEN_IRQ on the EVM. This patch sets the mux settings for the same. Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2/board-omap3evm.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/board-omap3evm.c b/arch/arm

[PATCH 1/3] twl4030: keypad: Add suspend-resume functions

2010-02-04 Thread Sanjeev Premi
This patch adds suspend, resume functions to the TWL4030 keypad driver when CONFIG_PM is selected. Signed-off-by: Sanjeev Premi pr...@ti.com --- drivers/input/keyboard/twl4030_keypad.c | 18 ++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/drivers/input

[PATCH 2/3] twl4030: keypad: Hooks for board specific suspend-resume

2010-02-04 Thread Sanjeev Premi
This patch adds hooks to support board specific implementation during the suspend and resume operations. The TWL4030 can be connected to multiple boards. Without these hooks, board specific macros will be required in a generic driver. Signed-off-by: Sanjeev Premi pr...@ti.com --- drivers/input

[PATCH 0/3] twl4030: keypad: Support for suspend-resume

2010-02-04 Thread Sanjeev Premi
: keypad: Hooks for board specific suspend-resume The complete set has been tested on linux-omap/pm (c6348aa). All testing done on OMAP3EVM. Sanjeev Premi (3): twl4030: keypad: Add suspend-resume functions twl4030: keypad: Hooks for board specific suspend-resume OMAP3: PM: Wakeup from

[PATCHv2] omap3: Check return values for clk_get()

2010-01-28 Thread Sanjeev Premi
This patch checks if clk_get() returned success for the clocks used in function omap2_clk_arch_init(). This version incorporates review comments from Kevin Hilman and Paul Walmsley. Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2/clock34xx.c | 16 1 files

[PATCHv3 0/1] Common mechanism to identify Si revision

2010-01-08 Thread Sanjeev Premi
or signature. But final outcome was bit messy and aborting it (for now). [1] http://marc.info/?l=linux-omapm=125476176410106w=2 [2] http://marc.info/?l=linux-omapm=125197467922935w=2 Sanjeev Premi (1): omap3: Add macros for comparing si revision arch/arm/mach-omap2/clock34xx.c |2

[PATCH 1/1] omap3: Add macros for comparing si revision

2010-01-08 Thread Sanjeev Premi
-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2/clock34xx.c |2 +- arch/arm/mach-omap2/clock34xx_data.c |6 ++- arch/arm/mach-omap2/control.c |7 ++-- arch/arm/mach-omap2/id.c | 13 +++ arch/arm/mach-omap2/pm34xx.c | 35

[PATCH] omap3: Check return values for clk_get

2010-01-08 Thread Sanjeev Premi
This patch checks if clk_get() returned success for the clocks used in function omap2_clk_arch_init(). Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2/clock34xx.c | 25 +++-- 1 files changed, 23 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach

[PATCH] omap2/3: mtd: fix compile warning

2009-12-29 Thread Sanjeev Premi
This patch fixes following compile warning: drivers/mtd/nand/omap2.c:508: warning: passing argumen t 2 of 'omap_nand_dma_transfer' discards qualifiers fr om pointer target type Signed-off-by: Sanjeev Premi pr...@ti.com --- drivers/mtd/nand/omap2.c |2 +- 1 files changed, 1 insertions(+), 1

[PATCH] omap35x: Fix OMAP35XX_REV() macros

2009-12-10 Thread Sanjeev Premi
revision is detected for OMAP35xx devices. Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/plat-omap/include/plat/cpu.h | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/plat-omap/include/plat/cpu.h b/arch/arm/plat-omap/include/plat/cpu.h index

[PATCH] AM35xx: Update the macro names

2009-12-09 Thread Sanjeev Premi
Devices AM3505 and AM3517 will be more commonly available. Also, with more devices planned in this family, it is better to rename the macros to follow cpu_is_amXXX() naming. Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2/id.c |4 ++-- arch/arm/plat-omap

[PATCH] omap3: Fix macros for 3515 and 3525 inversion

2009-12-09 Thread Sanjeev Premi
From: Sergey Lapin slapi...@gmail.com The macros for detecting the cpu had same inversion problem fixed in earlier patch. [1] omap3: id code detection 3525 vs 3515 Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/plat-omap/include/plat/cpu.h |8 1 files changed, 4

[PATCH v2] AM35xx: Update the macro names

2009-12-09 Thread Sanjeev Premi
Devices AM3505 and AM3517 will be more commonly available. Also, with more devices planned in this family, it is better to rename the macros to follow cpu_is_amXXX() naming. Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2/id.c |6 +++--- arch/arm/plat-omap

[PATCHv2 0/1] omap3: cpuidle: Update statistics for correct state

2009-11-24 Thread Sanjeev Premi
loosing readability. Sanjeev Premi (1): omap3: cpuidle: Update statistics for correct state arch/arm/mach-omap2/cpuidle34xx.c | 98 ++--- arch/arm/mach-omap2/pm.h |1 + arch/arm/mach-omap2/pm34xx.c |4 ++ 3 files changed, 95 insertions(+), 8

[PATCHv2 1/1] omap3: cpuidle: Update statistics for correct state

2009-11-24 Thread Sanjeev Premi
'enable_off_mode' is '0'. The states are valid once 'enable_off_mode' is set to '1'. Added function next_valid_state() to check if current state is valid; else get the next valid state. It is called from omap3_enter_idle_bm(). Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2

[PATCH] omap3: sr: Update ON voltage levels based on VSEL

2009-11-23 Thread Sanjeev Premi
The settings for ON voltage level in the registers PRM_VC_CMD_VAL_0,1 was not updated based on OPP table. Once the MPU resumes from OFF mode (during idle OR suspend) the VDD1 voltage always returns to 1.2V. This patch programs the value based on current OPP. Signed-off-by: Sanjeev Premi pr

[PATCH] OMAP3: id code detection 3525 vs 3515

2009-11-23 Thread Sanjeev Premi
From: Sergey Lapin sla...@ossfans.org The runtime detection of OMAP3515 and OMAP3525 was reversed. Signed-off-by: Sergey Lapin sla...@ossfans.org Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2/id.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH v2] omap3: Change the default silicon

2009-11-13 Thread Sanjeev Premi
Currently the default silicon - in absence of identification - is set to OMAP3630 ES1.0. Though, condition may/should not arise; but the default should be latest in the most common silicon variant - currently OMAP3430 ES3.1. Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2/id.c

[PATCH 0/4] OMAP3:PM: T2 keypad: Wakeup with support for OFF mode

2009-11-09 Thread Sanjeev Premi
duplication also gets addressed). Either of these alternatives can be taken as a separate patch. OR, as follow-up to last 2 patches in this series. Thoughts? Sanjeev Premi (4): OMAP3: PM: Add suspend-resume to TWL4030 keypad OMAP3: PM: T2 keypad: Add board specific suspend-resume functions

[PATCH 1/4] OMAP3: PM: Add suspend-resume to TWL4030 keypad

2009-11-09 Thread Sanjeev Premi
This patch adds suspend, resume functions to the TWL4030 keypad driver when CONFIG_PM is selected. Signed-off-by: Sanjeev Premi pr...@ti.com --- drivers/input/keyboard/twl4030_keypad.c | 18 ++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/drivers/input

[PATCH 2/4] OMAP3: PM: T2 keypad: Add board specific suspend-resume functions

2009-11-09 Thread Sanjeev Premi
This patch adds hooks to support board specific implementation during the suspend and resume operations. The TWL4030 can be connected to multiple boards. Without these hooks, board specific macros will be required in a generic driver. Signed-off-by: Sanjeev Premi pr...@ti.com --- drivers/input

[PATCH 3/4] OMAP3: PM: Wakeup from T2 keypad with OFF mode

2009-11-09 Thread Sanjeev Premi
This patch allows wakeup from T2 keypad when OFF mode is hit during suspend. Tested on OMAP3EVM. Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2/board-omap3evm.c | 89 ++ 1 files changed, 89 insertions(+), 0 deletions(-) diff --git a/arch/arm

[PATCH 4/4] OMAP3: PM: Extend T2 wakeup support to 3430SDP

2009-11-09 Thread Sanjeev Premi
This extends the wakeup support to the 3430 SDP platform. Only compile tested. Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2/board-3430sdp.c | 89 +++ 1 files changed, 89 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/board

[PATCH 0/2] omap3evm: enable keypad

2009-11-03 Thread Sanjeev Premi
This patch set enables the keypad in the default configuration. It also adds it as wake-up source from suspend. It has been created and tested against latest for-next branch. Sanjeev Premi (2): omap3evm: Enable keypad in defconfig omap3evm: Add keypad as wakeup source arch/arm/configs

[PATCH 1/2] omap3evm: Enable keypad in defconfig

2009-11-03 Thread Sanjeev Premi
Enable the TWL4030/TPS65590 keypad in the default configuration. Also updated the section with related config options in .config for easy diff. Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/configs/omap3_evm_defconfig | 12 +--- 1 files changed, 9 insertions(+), 3 deletions

[PATCH 2/2] omap3evm: Add keypad as wakeup source

2009-11-03 Thread Sanjeev Premi
Add keypad as wakeup source from 'suspend' state. Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2/board-omap3evm.c | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/board-omap3evm.c b/arch/arm/mach-omap2/board-omap3evm.c

[PATCH] OMAP3: PM: Remove duplicate code blocks

2009-11-02 Thread Sanjeev Premi
This patch removes code blocks that are repeated in function prcm_setup_regs(). Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2/pm34xx.c | 18 -- 1 files changed, 0 insertions(+), 18 deletions(-) diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2

[PATCH] omap3: Change the default silicon

2009-10-29 Thread Sanjeev Premi
Currently the default silicon - in absence of identification - is set to OMAP3630 ES1.0. Though, condition may/should not arise; but the default should be latest in the most common silicon variant - currently OMAP3430 ES3.1. Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2/id.c

[PATCH] omap3: Fix macro definitions

2009-10-28 Thread Sanjeev Premi
This fix avoids the compile errors in specific cases. Found the problem while creating the v2 patch for AM35xx. Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/plat-omap/include/plat/cpu.h |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/plat-omap

[PATCH v2] AM35xx: Runtime detection of the device

2009-10-28 Thread Sanjeev Premi
Add support to detect AM3505/AM3517 devices at runtime. Also updates the CPU names printed during boot. Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2/id.c | 36 +++- arch/arm/plat-omap/include/plat/cpu.h | 12 +++ 2 files

[PATCH 0/2] Introduce support for AM35xx

2009-10-27 Thread Sanjeev Premi
?title=Applications_Processors_Crossreference [4] http://marc.info/?l=linux-omapm=125615009412281w=2 The patches have been created against omap-next branch. Sanjeev Premi (2): AM35xx: Runtime detection of the device AM35xx: Define the AM3517EVM board arch/arm/mach-omap2/Kconfig

[PATCH 1/2] AM35xx: Runtime detection of the device

2009-10-27 Thread Sanjeev Premi
Add support to detect AM3505/AM3517 devices at runtime. Also updates the CPU names printed during boot. Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2/id.c | 43 arch/arm/plat-omap/include/plat/cpu.h | 12 + 2 files

[PATCH 2/2] AM35xx: Define the AM3517EVM board

2009-10-27 Thread Sanjeev Premi
Add support for the AM3517 EVM board. This EVM supports AM3505 and AM3517 devices. Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2/Kconfig |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig index

[PATCH] OMAP35x: Add support for 720MHz part

2009-10-12 Thread Sanjeev Premi
This patch adds support for ARM running at 720MHz part. The 720MHz capability can be probed run-time by reading the PRODID.SKUID[3:0] at 0x4830A20C. [1] http://focus.ti.com/lit/ug/spruff1d/spruff1d.pdf Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2/clock34xx.c

[PATCHv2 0/1] Runtime detection of OMAP35x variants

2009-10-09 Thread Sanjeev Premi
; return; } + omap_revision = OMAP3430_REV_ES1_0; + return; Print during boot-up: ... Memory policy: ECC disabled, Data cache writeback OMAP3430/3530 ES1.0 ... Sanjeev Premi (1): Runtime detection of OMAP35x devices arch/arm/mach

[PATCHv2 1/1] Runtime detection of OMAP35x devices

2009-10-09 Thread Sanjeev Premi
Add runtime check for these OMAP35x variations based on the detected Si features: OMAP3503, OMAP3515, OMAP3525 and OMA3530. Also, delayed the call to pr_info() into actual variant is detected in omap3_cpuinfo() Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/mach-omap2/id.c

[PATCH] Beagle: CONFIG_ISP1301_OMAP redefined in defconfig

2009-10-05 Thread Sanjeev Premi
The symbol CONFIG_ISP1301_OMAP was defined twice in the defconfig. This was causing the warning: arch/arm/configs/omap3_beagle_defconfig:972:warning: override: reassigning to symbol ISP1301_OMAP Signed-off-by: Sanjeev Premi pr...@ti.com --- arch/arm/configs/omap3_beagle_defconfig |1 - 1

[PATCHv3 0/1] Runtime detection of Si features

2009-10-01 Thread Sanjeev Premi
This version is essentially same patch as [1]; but refreshed against the tip (2bf0f78). The change in text corresponding to the closing #endif in cpu.h required change in the last line of the patch. [1] http://patchwork.kernel.org/patch/41989/ Sanjeev Premi (1): Runtime detection of Si

  1   2   >