[PATCH v3] OMAP2+: UART: Add mechanism to probe uart pins and configure rx wakeup

2012-05-11 Thread Govindraj.R
From: Govindraj.R govindraj.r...@ti.com The commit (bce492c0 ARM: OMAP2+: UART: Fix incorrect population of default uart pads) removed default uart pads that where getting populated and which was making rx pin wakeup capable. If uart pads were used in different mode by any other module

[PATCH v2] OMAP2+: UART: Add mechanism to probe uart pins and configure rx wakeup

2012-05-10 Thread Govindraj.R
From: Govindraj.R govindraj.r...@ti.com The commit (bce492c0 ARM: OMAP2+: UART: Fix incorrect population of default uart pads) removed default uart pads that where getting populated and which was making rx pin wakeup capable. If uart pads was used in different mode by any other module

[PATCH v4 0/2] ARM: omap_hwmod: add api to enable/disable module level wakeup

2012-05-08 Thread Govindraj.R
From: Govindraj.R govindraj.r...@ti.com On omap2/3 module level wakeup is handled using PM_WKEN registers. Expand the hwmod framework to handle the module level wakeup enable registers. Patch series based on: git://git.pwsan.com/linux-2.6 hwmod_soc_conditional_cleanup_3.5 Tested on Beagle-xm

[PATCH v4 1/2] ARM: OMAP2/3: omap_hwmod: Add api to enable/disable module level wakeup events

2012-05-08 Thread Govindraj.R
From: Govindraj.R govindraj.r...@ti.com On 24xx/34xx/36xx Module level wakeup events are enabled/disabled using PM_WKEN1_CORE/PM_WKEN_PER regs. Add soc specific api to control the module level wakeup mechanism in hwmod layer. omap_hwmod_enable/disable_wakeup is used from serial.c which should

[PATCH v4 2/2] ARM: omap3: pm: Remove uart module level wakeup configurations

2012-05-08 Thread Govindraj.R
From: Govindraj.R govindraj.r...@ti.com The uart module level wakeups enabling and disabling are now handled from uart driver itself remove the uart module level configurations from pm code. Cc: Paul Walmsley p...@pwsan.com Cc: Kevin Hilman khil...@ti.com Cc: Benoit Cousson b-cous...@ti.com Cc

[PATCH 1/2 v4] ARM: OMAP2+: omap_hwmod: Add api to enable/disable module level wakeup events

2012-04-25 Thread Govindraj.R
From: Govindraj.R govindraj.r...@ti.com On 24xx/34xx/36xx Module level wakeup events are enabled/disabled using PM_WKEN1_CORE/PM_WKEN_PER regs. Add api to control the module level wakeup mechanism from info provided from hwmod data. omap_hwmod_enable/disable_wakeup is used from serial.c which

[PATCH v3 1/2] ARM: OMAP2+: omap_hwmod: Add api to enable/disable module level wakeup events

2012-04-24 Thread Govindraj.R
From: Govindraj.R govindraj.r...@ti.com On 24xx/34xx/36xx Module level wakeup events are enabled/disabled using PM_WKEN1_CORE/PM_WKEN_PER regs. Add api to control the module level wakeup mechanism from info provided from hwmod data. omap_hwmod_enable/disable_wakeup is used from serial.c which

[PATCH v3 2/2] ARM: omap3: pm: Remove uart module level wakeup configurations

2012-04-24 Thread Govindraj.R
From: Govindraj.R govindraj.r...@ti.com The uart module level wakeups enabling and disabling are now handled from uart driver itself remove the uart module level configurations from pm code. Cc: Paul Walmsley p...@pwsan.com Cc: Kevin Hilman khil...@ti.com Cc: Benoit Cousson b-cous...@ti.com Cc

[PATCH v3 0/2] ARM: omap_hwmod: add api to enable/disable module level wakeup

2012-04-24 Thread Govindraj.R
From: Govindraj.R govindraj.r...@ti.com On omap2/3 module level wakeup is handled using PM_WKEN registers. Expand the hwmod framework to handle the module level wakeup enable registers. Tested on Beagle-xm by enabling and disabling uart wakeups from sysfs Series depends on following patches

[PATCH] tty: omap-serial: configure wakeup mechanism based on port usage.

2012-04-23 Thread Govindraj.R
From: Govindraj.R govindraj.r...@ti.com With set_wakeup port ops availability from serial_core layer which will be called when port is opened with state as true indicating the wakeups can be enabled for this port and state as false while port shutdown where we can disable the wakeups. But wakeup

[PATCH] tty: serial_core: Add mechanism to identify port closure.

2012-04-20 Thread Govindraj.R
From: Govindraj.R govindraj.r...@ti.com Currently all low level uart driver register to serial_core layer this core layer exposes various serial uart ops. Currently the core layer provides startup and shutdown hooks to low level driver, but in port suspend case the shutdown gets called from

[PATCH v2 0/3] ARM: omap_hwmod: add api to enable/disable module level wakeup

2012-04-20 Thread Govindraj.R
From: Govindraj.R govindraj.r...@ti.com On omap2/3 module level wakeup is handled using PM_WKEN registers. Expand the hwmod framework to handle the module level wakeup enable registers. Tested on Beagle-xm by enabling and disabling uart wakeups from sysfs Series depends on following patch

[PATCH v2 1/3] ARM: OMAP2+: omap_hwmod: Add interface to incorporate module level wakeup

2012-04-20 Thread Govindraj.R
From: Govindraj.R govindraj.r...@ti.com On 24xx/34xx/36xx Module level wakeup events are enabled/disabled using PM_WKEN1_CORE/PM_WKEN_PER regs. The module level wakeups are enabled by default, by PRM soft reset default value of PM_WKEN reg is all one's which means all module level wakeups

[PATCH v2 2/3] ARM: OMAP2+: omap_hwmod: Add api to enable/disable module level wakeup events

2012-04-20 Thread Govindraj.R
From: Govindraj.R govindraj.r...@ti.com On 24xx/34xx/36xx Module level wakeup events are enabled/disabled using PM_WKEN1_CORE/PM_WKEN_PER regs. Add api to control the module level wakeup mechanism from info provided from hwmod data. If module level wakeups are available from hwmod data

[PATCH v2 3/3] ARM: omap3: pm: Remove uart module level wakeup configurations

2012-04-20 Thread Govindraj.R
From: Govindraj.R govindraj.r...@ti.com The uart module level wakeups enabling and disabling are now handled from uart driver itself remove the uart module level configurations from pm code. Cc: Paul Walmsley p...@pwsan.com Cc: Kevin Hilman khil...@ti.com Cc: Benoit Cousson b-cous...@ti.com Cc

[PATCH] tty: omap-serial: Keep the wakeup mechanism enabled by default

2012-04-16 Thread Govindraj.R
From: Govindraj.R govindraj.r...@ti.com The wakeups can be left enabled by default and should be disabled only when disabled from sysfs and while entering suspend. Thanks to Kevin Hilman khil...@ti.com for suggesting this. Discussion References: http://www.spinics.net/lists/linux-omap/msg67764

[PATCH 2/2] ARM: OMAP2+: omap_hwmod: Add api to enable/disable module level wakeup events

2012-04-16 Thread Govindraj.R
From: Govindraj.R govindraj.r...@ti.com On 24xx/34xx/36xx Module level wakeup events are enabled/disabled using PM_WKEN1_CORE/PM_WKEN_PER regs. Add api to control the module level wakeup mechanism from info provided from hwmod data. If module level wakeups are available from hwmod data

[PATCH 0/2] ARM: omap_hwmod: add api to enable/disable module level wakeup

2012-04-16 Thread Govindraj.R
From: Govindraj.R govindraj.r...@ti.com On omap2/3 module level wakeup is handled using PM_WKEN registers. Expand the hwmod framework to handle the module level wakeup enable registers. Tested on Beagle-xm by enabling and disabling uart wakeups from sysfs Series depends on following patch

[PATCH 1/2] ARM: OMAP2+: omap_hwmod: Add interface to incorporate module level wakeup

2012-04-16 Thread Govindraj.R
From: Govindraj.R govindraj.r...@ti.com On 24xx/34xx/36xx Module level wakeup events are enabled/disabled using PM_WKEN1_CORE/PM_WKEN_PER regs. The module level wakeups are enabled by default from bootloader, however the wakeups can be enabled/disabled using sysfs entry example for uart: echo

[GIT PULL]: omap-serial updates for 3.4-rc

2012-04-10 Thread Govindraj.R
, Govindraj.R The following changes since commit 0034102808e0dbbf3a2394b82b1bb40b5778de9e: Linux 3.4-rc2 (2012-04-07 18:30:41 -0700) are available in the git repository at: git://gitorious.org/linux-3-x/omap-serial.git for_3.4/uart_fixes for you to fetch changes up

[PATCH 0/2] OMAP2+: UART: Fix usage of default mux pads

2012-04-10 Thread Govindraj.R
From: Govindraj.R govindraj.r...@ti.com We populating default uart mux pins if no mux data is provided by board files. But were not probing the availability of uart pins in tx/rx mode i.e. mux mode0. If particular pin is used for any other purpose then default pads were breaking those peripherals

[PATCH 1/2] OMAP2+: UART: Fix incorrect population of default uart pads

2012-04-10 Thread Govindraj.R
From: Govindraj.R govindraj.r...@ti.com The following commit: (7496ba3 ARM: OMAP2+: UART: Add default mux for all uarts) added default pads for all uarts. But not all boards tend to use all uarts and most of unused uart pins are muxed for other purpose. This commit breaks the modules which where

[PATCH 2/2] OMAP2+: UART: Add mechanism to probe uart pins and configure rx wakeup

2012-04-10 Thread Govindraj.R
From: Govindraj.R govindraj.r...@ti.com Default pad populating procedure should first probe whether the uart pins are available as uart tx/rx pins if yes then we can configure them and use rx pin for wakeup capability. Utilise the mux api available to probe the availability of mux pins in uart

[PATCH v3] OMAP2+: UART: Remove cpu checks for populating errata flags

2012-04-03 Thread Govindraj.R
From: Govindraj.R govindraj.r...@ti.com Currently the errata is populated based on cpu checks this can be removed and replaced with module version check of uart ip block. MVR reg is provided within the uart reg map use the same to populate the errata and thus now errata population and handling

[PATCH] omap2+: pm: fix compilation break.

2012-03-29 Thread Govindraj.R
From: Govindraj.R govindraj.r...@ti.com Fix the compilation break observed on latest mainline. Fixes below compilation break: arch/arm/mach-omap2/pm.c: In function 'omap_pm_begin': arch/arm/mach-omap2/pm.c:239: error: implicit declaration of function 'disable_hlt' arch/arm/mach-omap2/pm.c

[RESEND PATCH] ARM :OMAP2+: UART: Remove some of uart default pads

2012-03-21 Thread Govindraj.R
From: Govindraj.R govindraj.r...@ti.com The following commit: (7496ba3 ARM: OMAP2+: UART: Add default mux for all uarts) added default pads for all uarts. But not all boards tend to use all uarts and most of unused uart pins are muxed for other purpose. This commit breaks the modules which where

[PATCH 0/3] OMAP2+: UART: Enable tx wakeup + remove cpu checks

2012-03-21 Thread Govindraj.R
From: Govindraj.R govindraj.r...@ti.com Based on Linux-OMAP tree uart branch. (git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap.git remotes/origin/uart) * Removes the cpu checks wherever possible and use version reg for populating features and errata's * enable tx wakeup

[PATCH 1/3] OMAP2+: UART: Remove cpu checks for populating errata flags

2012-03-21 Thread Govindraj.R
From: Govindraj.R govindraj.r...@ti.com Currently the errata is populated based on cpu checks this can be removed and replaced with module version check of uart ip block. MVR reg is provided within the uart reg map use the same to populate the errata and thus now errata population and handling

[PATCH 3/3] OMAP2+: UART: replace omap34xx/omap4xx cpu checks with not omap24xx

2012-03-21 Thread Govindraj.R
From: Govindraj.R govindraj.r...@ti.com Minor cleanup, replace all omap34xx/omap44xx cpu checks with cpu is not omap24xx check. Cc: Paul Walmsley p...@pwsan.com Cc: Felipe Balbi ba...@ti.com Cc: Kevin Hilman khil...@ti.com Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2

[PATCH 2/3] OMAP2+: UART: enable tx wakeup bit for wer reg

2012-03-21 Thread Govindraj.R
From: Govindraj.R govindraj.r...@ti.com From omap36xx onwards the module wakeup enable reg wer has TX wakeup bit available enable the same by populating the necessary tx wakeup flag for the applicable module ip blocks and use the same while configuaring wer reg. Also wer is not context restored

[PATCH] omap_hwmod: Allow io_ring wakeup configuration for all modules.

2012-03-07 Thread Govindraj.R
From: Govindraj.R govindraj.r...@ti.com Some modules doesn't have SYSC_HAS_ENAWAKEUP bit available (ex: usb host uhh module) in absence of this flag omap_hwmod_enable/disable_wakeup avoids configuring pad mux wakeup capability. Configure sysc if SYSC_HAS_ENAWAKEUP is available and for other

[PATCH] omap3_beagle: init uart2 for beagle rev AX/BX only

2012-03-06 Thread Govindraj.R
From: Govindraj.R govindraj.r...@ti.com All beagle boards rev AX/BX have external usb hubs connected to ehci interface, external hub/peripheral uses a nreset sequence for which uart2_rx.gpio_147 pin in mux mode4(USB2HS_nRST) is used on all beagle boards expect rev Ax/BX. (Reference to all beagle

[PATCH] omap3_beagle: Init only uart3 used for console

2012-03-05 Thread Govindraj.R
From: Govindraj.R govindraj.r...@ti.com On beagle some of uart mux lines are used for other purpose so init only uart3. Uart2 rx line clashes with gpio_147 used for usb ehci phy reset. Initializing uart2 pad_mux lines can break ehci module on beagle xm. (gpio_147 is available on uart2_rx

[PATCH 0/2] mfd: omap-usb-host: Minor omap-usb host fixes

2012-02-15 Thread Govindraj.R
From: Govindraj.R govindraj.r...@ti.com Minor fixes, boot tested on panda with ehci enabled. Patches based on 3.3-rc3 Govindraj.R (2): mfd: omap-usb-host: Remove magic numbers for dev dma mask mfd: omap-usb-host: Move usbhs init before allocing child dev drivers/mfd/omap-usb-host.c |7

[PATCH 1/2] mfd: omap-usb-host: Remove magic numbers for dev dma mask

2012-02-15 Thread Govindraj.R
From: Govindraj.R govindraj.r...@ti.com Remove the hardcoded magic values for dma mask and use the dma mask macros available. CC: Felipe Balbi ba...@ti.com CC: Alan Stern st...@rowland.harvard.edu Signed-off-by: Govindraj.R govindraj.r...@ti.com --- drivers/mfd/omap-usb-host.c |4 ++-- 1

[PATCH 2/2] mfd: omap-usb-host: Move usbhs init before allocing child dev

2012-02-15 Thread Govindraj.R
From: Govindraj.R govindraj.r...@ti.com There could be possible race condition where the host dev's are alloced and added to platform dev just before usbhs_init. Just move usbhs_init before adding child dev. CC: Felipe Balbi ba...@ti.com CC: Alan Stern st...@rowland.harvard.edu Signed-off

[RFC PATCH] OMAP: UART: Enable tx wakeup bit in wer

2012-01-24 Thread Govindraj.R
From: Govindraj.R govindraj.r...@ti.com On omap3630 onwards uart wer reg has bit 7 for tx wakeup enable. Without this bit set some uart sluggishness might be seen while printing data on console, response is better when enabling this bit. Tested with Beagle XM (OMAP3630) Cc: Kevin Hilman khil

[PATCH v8 00/20] OMAP2+: UART: Runtime adaptation + cleanup

2011-11-11 Thread Govindraj.R
with uart3 as console uart and pm-ret checked] BeagleBoard XM Rev C(3630): retention, off_mode, system_wide suspend is tested. Deepak K (1): OMAP2+: UART: Allow UART parameters to be configured from board file. Govindraj.R (18): OMAP2+: UART: cleanup + remove uart pm specific API OMAP2+: UART

[PATCH v8 05/20] OMAP2+: UART: Remove mapbase/membase fields from pdata.

2011-11-11 Thread Govindraj.R
The mapbase (start_address), membase(io_remap cookie) part of pdata struct omap_uart_port_info are removed as this should be derived within driver. Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/serial.c |2 -- arch/arm/plat-omap/include/plat/omap

[PATCH v8 02/20] OMAP2+: UART: cleanup 8250 console driver support

2011-11-11 Thread Govindraj.R
needed for 8250 autoconf. Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/serial.c | 97 -- 1 files changed, 0 insertions(+), 97 deletions(-) diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c index 8254067

[PATCH v8 08/20] OMAP2+: UART: Ensure all reg values configured are available from port structure

2011-11-11 Thread Govindraj.R
Add missing uart regs to uart_port structure which can be used in context restore. Store dll, dlh, mdr1, scr, efr, lcr, mcr reg values into uart_port structure while configuring individual port in termios function. Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/plat-omap/include

[PATCH v8 03/20] OMAP2+: UART: Cleanup part of clock gating mechanism for uart

2011-11-11 Thread Govindraj.R
. Removes the following: * timer related info from local uart_state struct * the code used to set timeout value from sysfs. * irqflags used to set shared irq handler. * un-used function omap_uart_check_wakeup. Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/serial.c

[PATCH v8 09/20] OMAP2+: UART: Remove uart reset function.

2011-11-11 Thread Govindraj.R
Remove the uart reset function which is configuring the TX empty irq which can now be handled within omap-serial driver. Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/serial.c | 14 -- arch/arm/plat-omap/include/plat/omap-serial.h |2

[PATCH v8 07/20] OMAP2+: UART: Remove context_save and move context restore to driver

2011-11-11 Thread Govindraj.R
in serial.c and had no info on uart state thus we needed context save and restore in serial.c With runtime conversion and clock gating done within uart driver context restore can be done from regs value available from uart_omap_port structure. Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm

[PATCH v8 04/20] OMAP2+: UART: Add default mux for all uarts.

2011-11-11 Thread Govindraj.R
and use the default pads from serial.c file. Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/board-3430sdp.c| 100 + arch/arm/mach-omap2/board-4430sdp.c| 68 +-- arch/arm/mach-omap2/board-omap4panda.c | 68 +-- arch/arm

[PATCH v8 06/20] OMAP2+: UART: Add runtime pm support for omap-serial driver

2011-11-11 Thread Govindraj.R
a...@linux.intel.com Signed-off-by: Govindraj.R govindraj.r...@ti.com --- drivers/tty/serial/omap-serial.c | 122 ++ 1 files changed, 109 insertions(+), 13 deletions(-) diff --git a/drivers/tty/serial/omap-serial.c b/drivers/tty/serial/omap-serial.c index 31f0cbf

[PATCH v8 01/20] OMAP2+: UART: cleanup + remove uart pm specific API

2011-11-11 Thread Govindraj.R
is_suspending check used to acquire console_lock. Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/pm24xx.c | 18 arch/arm/mach-omap2/pm34xx.c | 32 --- arch/arm/mach-omap2/serial.c | 65

[PATCH v8 10/20] OMAP2+: UART: Get context loss count to context restore

2011-11-11 Thread Govindraj.R
Avoid unconditional context restore every time we gate uart clocks. Check whether context loss happened based on which we can context restore uart regs from uart_port structure. Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/serial.c |2 ++ arch/arm

[PATCH v8 11/20] OMAP2+: UART: Move errata handling from serial.c to omap-serial

2011-11-11 Thread Govindraj.R
. Corrected errata id from chapter reference 2.15 to errata id i291. Removed errata and dma_enabled fields from omap_uart_state struct as they are no more needed with errata handling done within omap-serial. Acked-by: Alan Cox a...@linux.intel.com Signed-off-by: Govindraj.R govindraj.r...@ti.com

[PATCH v8 12/20] OMAP2+: UART: Add wakeup mechanism for omap-uarts

2011-11-11 Thread Govindraj.R
in serial.c which was handling PM_WKST reg. Irq_chaing(PRM_DRIVER) is used to wakeup uart after uart clocks are gated using pad wakeup mechanism. Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/serial.c | 96 +++- arch/arm/plat-omap

[PATCH v8 13/20] OMAP2+: UART: Remove old and unused clocks handling funcs

2011-11-11 Thread Govindraj.R
With runtime adaptation done remove clock_enable/disbale API's Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/serial.c | 36 1 files changed, 0 insertions(+), 36 deletions(-) diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm

[PATCH v8 14/20] OMAP2+: UART: Allow UART parameters to be configured from board file.

2011-11-11 Thread Govindraj.R
...@ti.com Signed-off-by: Jon Hunter jon-hun...@ti.com Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/board-n8x0.c |6 +- arch/arm/mach-omap2/serial.c | 56 - arch/arm/plat-omap/include/plat/omap-serial.h |7

[PATCH v8 16/20] OMAP2+: UART: remove temporary variable used to count uart instance

2011-11-11 Thread Govindraj.R
Reuse the num_uarts variable itself to count number of uarts. Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/serial.c |7 ++- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c index 5c6c48f

[PATCH v8 17/20] OMAP2+: UART: Use custom activate func for console uart.

2011-11-11 Thread Govindraj.R
bootup and then enable them back and reset pm_latency ops to default ops. Thanks to Kevin Hilman khil...@ti.com for suggesting this approach. Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/serial.c | 86 + 1 files changed, 61

[PATCH v8 15/20] OMAP2+: UART: Make the RX_TIMEOUT for DMA configurable for each UART

2011-11-11 Thread Govindraj.R
UART so that this value can be optimised for power savings. Acked-by: Kevin Hilman khil...@ti.com Signed-off-by: Jon Hunter jon-hun...@ti.com Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/serial.c |5 - arch/arm/plat-omap/include/plat/omap

[PATCH v8 19/20] OMAP2+: UART: Do not gate uart clocks if used for debug_prints

2011-11-11 Thread Govindraj.R
by adding debug word in bootarg or by setting loglevel=10 Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/serial.c | 11 ++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c index 5d910ef

[PATCH v8 18/20] OMAP2+: UART: Avoid uart idling on suspend for no_console_suspend usecase

2011-11-11 Thread Govindraj.R
. omap_device_disable_idle_on_suspend API was used on all uarts since the uart driver was not runtime adapted, now with runtime adaptation we can re-use this API only for no_console_suspend use cases. Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/serial.c |8 +++- 1 files

[PATCH v8 20/20] OMAP2+: UART: Remove omap_uart_can_sleep and add pm_qos

2011-11-11 Thread Govindraj.R
any pending qos jobs in work queue while suspending. Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/cpuidle34xx.c |5 --- arch/arm/mach-omap2/pm24xx.c |2 - arch/arm/mach-omap2/pm34xx.c | 10 --- arch/arm/mach

[PATCH] OMAP2+: Fix compilation break when cpuidle pm is selected

2011-11-10 Thread Govindraj.R
When cpuidle pm is selected the following compilation break is seen fix the same. arch/arm/mach-omap2/cpuidle34xx.c:312: error: 'THIS_MODULE' undeclared here (not in a function) make[1]: *** [arch/arm/mach-omap2/cpuidle34xx.o] Error 1 Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch

[PATCH] OMAP2+: Fix Compilation error when omap_l3_noc built as module

2011-11-09 Thread Govindraj.R
Fix below compilation failure on mainline kernel 3.2-rc1 when omap_l3_noc.c is built as module. arch/arm/mach-omap2/omap_l3_noc.c:240: error: expected ',' or ';' before 'MODULE_DEVICE_TABLE' Signed-off-by: Govindraj.R govindraj.r...@ti.com Acked-by: Santosh Shilimkar santosh.shilim...@ti.com

[PATCH] OMAP2+: Fix Compilation break on current mainline

2011-11-07 Thread Govindraj.R
:250: error: 'THIS_MODULE' undeclared here (not in a function) make[1]: *** [arch/arm/mach-omap2/omap_l3_noc.o] Error 1 make: *** [arch/arm/mach-omap2] Error 2 Signed-off-by: Govindraj.R govindraj.r...@ti.com --- Sorry for the noise if this is already fixed. arch/arm/mach-omap2/omap_l3_noc.c |3

[PATCH] OMAP2+: Fix Compilation error on current mainline

2011-11-07 Thread Govindraj.R
-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/omap_l3_noc.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/omap_l3_noc.c b/arch/arm/mach-omap2/omap_l3_noc.c index c8b1bef..c2cc196 100644 --- a/arch/arm/mach-omap2/omap_l3_noc.c +++ b/arch

[PATCH v7 12/21] OMAP2+: UART: Add wakeup mechanism for omap-uarts

2011-10-18 Thread Govindraj.R
in serial.c which was handling PM_WKST reg. Irq_chaing(PRM_DRIVER) is used to wakeup uart after uart clocks are gated using pad wakeup mechanism. Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/serial.c | 96 +++- arch/arm/plat-omap

[PATCH v7 16/21] OMAP2+: UART: Remove custom activate funcs and use generic funcs.

2011-10-18 Thread Govindraj.R
The custom hwmod activate and deactivate funcs does hwmod_enable and idle same can be done with omap_device generic API's. Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/serial.c | 18 ++ 1 files changed, 2 insertions(+), 16 deletions(-) diff --git

[PATCH v6 00/16] OMAP2+: UART: Runtime adaptation + cleanup

2011-09-30 Thread Govindraj.R
-4430/PANDA-4460: Boot tested. Deepak K (1): OMAP2+: UART: Allow UART parameters to be configured from board file. Govindraj.R (14): OMAP2+: hwmod: Add API to enable IO ring wakeup. OMAP2+: hwmod: Add API to check IO PAD wakeup status OMAP2+: UART: cleanup + remove uart pm specific API

[PATCH v6 02/16] OMAP2+: hwmod: Add API to check IO PAD wakeup status

2011-09-30 Thread Govindraj.R
Add API to determine IO-PAD wakeup event status for a given hwmod dynamic_mux pad. Wake up event set will be cleared on pad mux_read. Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/mux.c| 30 ++ arch/arm/mach-omap2/mux.h

[PATCH v6 08/16] OMAP2+: UART: Store certain reg values to port structure

2011-09-30 Thread Govindraj.R
In preparation to runtime conversion add missing uart regs to port structure which can be used in context restore. Also ensuring all uart reg info's are part of port structure. Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/plat-omap/include/plat/omap-serial.h |3 ++ drivers

[PATCH v6 01/16] OMAP2+: hwmod: Add API to enable IO ring wakeup.

2011-09-30 Thread Govindraj.R
wakeup_flag is set or cleared. Call the omap_hwmod_set_ioring_wakeup from hwmod_wakeup_enable/disable. Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/omap_hwmod.c | 59 ++ 1 files changed, 59 insertions(+), 0 deletions(-) diff

[PATCH v6 03/16] OMAP2+: UART: cleanup + remove uart pm specific API

2011-09-30 Thread Govindraj.R
-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/pm24xx.c | 18 arch/arm/mach-omap2/pm34xx.c | 23 -- arch/arm/mach-omap2/serial.c | 65 -- arch/arm/plat-omap/include/plat/serial.h |4 -- 4 files

[PATCH v6 06/16] OMAP2+: UART: Remove certain feilds from omap_uart_state struct

2011-09-30 Thread Govindraj.R
are removed as this is handled within driver. Errata field is also moved to pdata. These changes are done to cleanup serial.c file and prepare for runtime changes. Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/serial.c | 132

[PATCH v6 07/16] OMAP2+: UART: Add default mux for all uarts.

2011-09-30 Thread Govindraj.R
file are same as the default pad values populated in serial.c. Remove pad values from 3430sdp/4430sdp/omap4panda board file and use the default pads from serial.c file. Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/board-3430sdp.c| 100 + arch/arm/mach

[PATCH v6 09/16] OMAP2+: UART: Add runtime pm support for omap-serial driver

2011-09-30 Thread Govindraj.R
a...@linux.intel.com Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/serial.c | 206 ++-- arch/arm/plat-omap/include/plat/omap-serial.h |5 + drivers/tty/serial/omap-serial.c | 169 +++-- 3 files changed, 179

[PATCH v6 04/16] OMAP2+: UART: cleanup 8250 console driver support

2011-09-30 Thread Govindraj.R
necessary to support 8250 support and remove all config bindings done to keep 8250 backward compatibility while adding omap-serial driver. Remove omap_uart_reset needed for 8250 autoconf. Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/serial.c | 111

[PATCH v6 05/16] OMAP2+: UART: Cleanup part of clock gating mechanism for uart

2011-09-30 Thread Govindraj.R
the code used to set timeout value from sysfs. Remove un-used function omap_uart_check_wakeup. Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/serial.c | 116 + arch/arm/plat-omap/include/plat/omap-serial.h |1 - arch/arm/plat-omap

[PATCH v6 10/16] OMAP2+: UART: Modify omap_uart_can_sleep function

2011-09-30 Thread Govindraj.R
can be auto gated this can make response on uart slower. This behaviour was observed only on some of OMAP3 boards(beagleboard xm rev c). Reported-by: Tero Kristo t-kri...@ti.com Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/serial.c | 21 + 1 files

[PATCH v6 15/16] OMAP2+: UART: Enable back uart clocks with runtime API for early console

2011-09-30 Thread Govindraj.R
. Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/serial.c | 26 arch/arm/plat-omap/include/plat/omap-serial.h |1 + drivers/tty/serial/omap-serial.c |1 + 3 files changed, 11 insertions(+), 17 deletions(-) diff

[PATCH v6 16/16] OMAP2+: UART: Do not gate uart clocks if used for debug_prints

2011-09-30 Thread Govindraj.R
-by: Govindraj.R govindraj.r...@ti.com --- More details on this topic and experiments done listed here: http://www.spinics.net/lists/linux-serial/msg04128.html arch/arm/mach-omap2/serial.c | 19 ++- 1 files changed, 18 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2

[PATCH v6 14/16] OMAP2+: UART: Take console_lock in suspend path if not taken

2011-09-30 Thread Govindraj.R
if omap console is defined. omap-serial can be built as module without console support. Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/plat-omap/include/plat/omap-serial.h |1 + drivers/tty/serial/omap-serial.c | 20 ++-- 2 files changed, 19

[PATCH v6 13/16] OMAP2+: UART: Make the RX_TIMEOUT for DMA configurable for each UART

2011-09-30 Thread Govindraj.R
UART so that this value can be optimised for power savings. Acked-by: Kevin Hilman khil...@ti.com Signed-off-by: Jon Hunter jon-hun...@ti.com Signed-off-by: Govindraj.R govindraj.r...@ti.com --- This patch is derived from a custom 2.6.35 kernel Available here: http://git.omapzoom.org/?p=kernel

[PATCH v6 11/16] OMAP2+: UART: Move errata handling from serial.c to omap-serial

2011-09-30 Thread Govindraj.R
. Corrected errata id from chapter reference 2.15 to errata id i291. Acked-by: Alan Cox a...@linux.intel.com Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/serial.c | 78 + arch/arm/plat-omap/include/plat/omap-serial.h |5

[PATCH v6 12/16] OMAP2+: UART: Allow UART parameters to be configured from board file.

2011-09-30 Thread Govindraj.R
...@ti.com Signed-off-by: Jon Hunter jon-hun...@ti.com Signed-off-by: Govindraj.R govindraj.r...@ti.com --- This patch is derived and reworked from a custom 2.6.35 kernel Available here: http://git.omapzoom.org/?p=kernel/omap.git; a=commitdiff;h=584ef316542f77312be7ba96a0f3013c8f64852b; hp

[PATCH v5 00/15] OMAP2+: Serial: Runtime adaptation + cleanup

2011-09-21 Thread Govindraj.R
: Allow UART parameters to be configured from board file. Govindraj.R (13): OMAP2+: hwmod: Add API to enable IO ring wakeup. OMAP2+: hwmod: Add API to check IO PAD wakeup status OMAP2+: UART: cleanup + remove uart pm specific API OMAP2+: UART: cleanup 8250 console driver support OMAP2+: UART

[PATCH v5 01/15] OMAP2+: hwmod: Add API to enable IO ring wakeup.

2011-09-21 Thread Govindraj.R
wakeup_flag is set or cleared. Call the omap_hwmod_set_ioring_wakeup from hwmod_wakeup_enable/disable. Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/omap_hwmod.c | 59 ++ 1 files changed, 59 insertions(+), 0 deletions(-) diff

[PATCH v5 02/15] OMAP2+: hwmod: Add API to check IO PAD wakeup status

2011-09-21 Thread Govindraj.R
Add API to determine IO-PAD wakeup event status for a given hwmod dynamic_mux pad. Wake up event set will be cleared on pad mux_read. Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/mux.c| 30 ++ arch/arm/mach-omap2/mux.h

[PATCH v5 05/15] OMAP2+: UART: Cleanup part of clock gating mechanism for uart

2011-09-21 Thread Govindraj.R
the code used to set timeout value from sysfs. Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/serial.c | 116 + arch/arm/plat-omap/include/plat/omap-serial.h |1 - 2 files changed, 1 insertions(+), 116 deletions(-) diff --git a/arch

[PATCH v5 04/15] OMAP2+: UART: cleanup 8250 console driver support

2011-09-21 Thread Govindraj.R
necessary to support 8250 support and remove all config bindings done to keep 8250 backward compatibility while adding omap-serial driver. Remove omap_uart_reset needed for 8250 autoconf. Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/serial.c | 111

[PATCH v5 03/15] OMAP2+: UART: cleanup + remove uart pm specific API

2011-09-21 Thread Govindraj.R
be gated within driver using runtime funcs and be woken up using irq_chaining from omap_prm driver. 5.) Remove console_locking from idle path as clock gating is done withing driver itself with runtime API. Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/pm24xx.c

[PATCH v5 06/15] OMAP2+: UART: Remove certain feilds from omap_uart_state struct

2011-09-21 Thread Govindraj.R
are removed as this is handled within driver. Errata field is also moved to pdata. These changes are done to cleanup serial.c file and prepare for runtime changes. Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/serial.c | 132

[PATCH v5 08/15] OMAP2+: UART: Store certain reg values to port structure

2011-09-21 Thread Govindraj.R
In preparation to runtime conversion add missing uart regs to port structure which can be used in context restore. Also ensuring all uart reg info's are part of port structure. Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/plat-omap/include/plat/omap-serial.h |3 ++ drivers

[PATCH v5 07/15] OMAP2+: UART: Add default mux for all uarts.

2011-09-21 Thread Govindraj.R
in serial.c. Remove pad values from 3430 board file and use the default pads from serial.c file. Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/board-3430sdp.c | 100 +-- arch/arm/mach-omap2/serial.c| 190 +++ 2

[PATCH v5 09/15] OMAP2+: UART: Add runtime pm support for omap-serial driver

2011-09-21 Thread Govindraj.R
a...@linux.intel.com Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/serial.c | 206 ++-- arch/arm/plat-omap/include/plat/omap-serial.h |5 + drivers/tty/serial/omap-serial.c | 169 +++-- 3 files changed, 179

[PATCH v5 11/15] OMAP2+: UART: Allow UART parameters to be configured from board file.

2011-09-21 Thread Govindraj.R
...@ti.com Signed-off-by: Jon Hunter jon-hun...@ti.com Signed-off-by: Govindraj.R govindraj.r...@ti.com --- This patch is derived and reworked from a custom 2.6.35 kernel Available here: http://git.omapzoom.org/?p=kernel/omap.git; a=commitdiff;h=584ef316542f77312be7ba96a0f3013c8f64852b; hp

[PATCH v5 10/15] OMAP2+: UART: Move errata handling from serial.c to omap-serial

2011-09-21 Thread Govindraj.R
. Corrected errata id from chapter reference 2.15 to errata id i291. Acked-by: Alan Cox a...@linux.intel.com Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/serial.c | 78 + arch/arm/plat-omap/include/plat/omap-serial.h |5

[PATCH v5 13/15] OMAP2+: UART: Take console_lock in suspend path if not taken

2011-09-21 Thread Govindraj.R
if omap console is defined. omap-serial can be built as module without console support. Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/plat-omap/include/plat/omap-serial.h |1 + drivers/tty/serial/omap-serial.c | 20 ++-- 2 files changed, 19

[PATCH v5 15/15] OMAP2+: UART: Do not gate uart clocks if used for debug_prints

2011-09-21 Thread Govindraj.R
-by: Govindraj.R govindraj.r...@ti.com --- More details on this topic and experiments done listed here: http://www.spinics.net/lists/linux-serial/msg04128.html arch/arm/mach-omap2/serial.c | 18 +- 1 files changed, 17 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/serial.c

[PATCH v5 14/15] OMAP2+: UART: Enable back uart clocks with runtime API for early console

2011-09-21 Thread Govindraj.R
-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/serial.c | 26 arch/arm/plat-omap/include/plat/omap-serial.h |1 + drivers/tty/serial/omap-serial.c |1 + 3 files changed, 11 insertions(+), 17 deletions(-) diff

[PATCH v5 12/15] OMAP2+: UART: Make the RX_TIMEOUT for DMA configurable for each UART

2011-09-21 Thread Govindraj.R
UART so that this value can be optimised for power savings. Acked-by: Kevin Hilman khil...@ti.com Signed-off-by: Jon Hunter jon-hun...@ti.com Signed-off-by: Govindraj.R govindraj.r...@ti.com --- This patch is derived from a custom 2.6.35 kernel Available here: http://git.omapzoom.org/?p=kernel

[PATCH v4 08/11] Serial: OMAP2+: Move erratum handling from serial.c

2011-09-07 Thread Govindraj.R
Move the erratum handling mechanism from serial.c to driver file and utilise the same func in driver file. Acked-by: Alan Cox a...@linux.intel.com Signed-off-by: Govindraj.R govindraj.r...@ti.com --- drivers/tty/serial/omap-serial.c | 58 ++--- 1 files changed

[PATCH v4 06/11] Serial: OMAP: Store certain reg values to port structure

2011-09-07 Thread Govindraj.R
In preparation to runtime conversion add missing uart regs to port structure which can be used in context restore. Also ensuring all uart reg info's are part of port structure. Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/plat-omap/include/plat/omap-serial.h |3 ++ drivers

[PATCH v4 05/11] OMAP2+: Serial: Add default mux for all uarts.

2011-09-07 Thread Govindraj.R
Add default mux data for all uart's if mux info is not passed from board file to avoid breaking any board support. Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/serial.c | 132 ++ 1 files changed, 132 insertions(+), 0 deletions

  1   2   3   >