[RFC PATCH 14/18] OMAP: GPIO: Remove CONFIG_ARCH_OMAP16XX/OMAP2+ defines

2011-04-22 Thread Charulatha V
Suspend/resume/wakeup capabilities are supported only in OMAP16xx and OMAP2PLUS SoCs. Handle this by using a flag suspend_resume_support in pdata. This requires calling omap_gpio_sysinit() as part of probe instead of having this function as an arch_initcall Signed-off-by: Charulatha V ch

[RFC PATCH 10/18] OMAP: GPIO: cleanup set wakeup/suspend/resume funcs

2011-04-22 Thread Charulatha V
Avoid the usage of cpu_is* checks and CONFIG_ARCH_OMAP* checks from _set_gpio_wakeup and gpio suspend/resume functions. Signed-off-by: Charulatha V ch...@ti.com --- arch/arm/plat-omap/gpio.c | 109 ++--- 1 files changed, 33 insertions(+), 76 deletions

[RFC PATCH 03/18] OMAP: GPIO: Move gpio_get_index() to mach-omap

2011-04-22 Thread Charulatha V
gpio_get_index() uses cpu_is* checks. Move this function from plat-omap/gpio.c to SoC specific GPIO files in mach-omap*/ and use pdata to pass the function pointer. Signed-off-by: Charulatha V ch...@ti.com --- arch/arm/mach-omap1/gpio15xx.c | 14 ++ arch/arm/mach-omap1

[RFC PATCH 16/18] OMAP: GPIO: move omap_gpio_mod_init to mach-omap

2011-04-22 Thread Charulatha V
remove all the unsused register offset macros. Signed-off-by: Charulatha V ch...@ti.com --- arch/arm/mach-omap1/gpio15xx.c |7 ++ arch/arm/mach-omap1/gpio16xx.c | 24 + arch/arm/mach-omap1/gpio7xx.c |7 ++ arch/arm/mach-omap2/gpio.c | 31

[RFC PATCH 06/18] OMAP: GPIO: cleanup set trigger func

2011-04-22 Thread Charulatha V
-off-by: Charulatha V ch...@ti.com --- arch/arm/mach-omap1/gpio15xx.c | 17 ++ arch/arm/mach-omap1/gpio16xx.c | 37 + arch/arm/mach-omap1/gpio7xx.c | 19 +++ arch/arm/mach-omap2/gpio.c | 31 arch/arm/plat-omap/gpio.c | 264

[RFC PATCH 11/18] OMAP: GPIO: Remove dependency on gpio_bank_count

2011-04-22 Thread Charulatha V
be removed in one of the patches in this series Signed-off-by: Charulatha V ch...@ti.com --- arch/arm/mach-omap1/gpio15xx.c |1 - arch/arm/mach-omap1/gpio16xx.c |2 - arch/arm/mach-omap1/gpio7xx.c |2 - arch/arm/mach-omap2/gpio.c |1 + arch/arm

[RFC PATCH 17/18] OMAP: GPIO: use dev_err* instead of printk

2011-04-22 Thread Charulatha V
Use dev_info()/dev_err() instead of printk in OMAP GPIO driver Signed-off-by: Charulatha V ch...@ti.com --- arch/arm/plat-omap/gpio.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/plat-omap/gpio.c b/arch/arm/plat-omap/gpio.c index 9c3e865..7ae9f6f 100644

[RFC PATCH 02/18] OMAP: GPIO: remove get_gpio_bank()

2011-04-22 Thread Charulatha V
use chip info to get the pointer to the struct gpio_bank for a given GPIO bank and remove get_gpio_bank(). Signed-off-by: Charulatha V ch...@ti.com --- arch/arm/plat-omap/gpio.c | 29 ++--- 1 files changed, 2 insertions(+), 27 deletions(-) diff --git a/arch/arm/plat

[RFC PATCH 18/18] OMAP: GPIO: Remove usage of bank method

2011-04-22 Thread Charulatha V
Remove usage of bank-method to identify CPU specific OMAP GPIO bank. Instead identify specific features using flags and accordingly manage. bank-type MPUIO is common for all OMAP1 SoCs. Use bank-stride to identify the MPUIO type bank Signed-off-by: Charulatha V ch...@ti.com --- arch/arm/mach

[RFC PATCH 15/18] OMAP: GPIO: cleanup gpio_show_rev

2011-04-22 Thread Charulatha V
Remove cpu_is* checks from omap_gpio_show_rev. Also display GPIO IP version only once as it is not required to print the IP version of all the banks as they are the same. Signed-off-by: Charulatha V ch...@ti.com --- arch/arm/plat-omap/gpio.c | 17 ++--- 1 files changed, 10

[RFC PATCH 12/18] OMAP: GPIO: cleanup set_debounce, idle/resume_after_idle

2011-04-22 Thread Charulatha V
the OMAP GPIO driver. Signed-off-by: Charulatha V ch...@ti.com --- arch/arm/mach-omap2/gpio.c | 201 - arch/arm/plat-omap/gpio.c | 223 +++- arch/arm/plat-omap/include/plat/gpio.h |6 + 3 files changed, 222 insertions

[RFC PATCH 13/18] OMAP: GPIO: cleanup save/restore context

2011-04-22 Thread Charulatha V
Move GPIO save/restore context to SoC specific file. Signed-off-by: Charulatha V ch...@ti.com --- arch/arm/mach-omap2/gpio.c | 78 +++ arch/arm/plat-omap/gpio.c | 91 --- arch/arm/plat-omap/include/plat/gpio.h

[RFC PATCH 08/18] OMAP: GPIO: req/free: Remove reg offset macros usage

2011-04-22 Thread Charulatha V
Remove the usage of register offset macros from gpio_request/free() APIs. Instead use the enum omap_gpio_reg_offsets and SoC specific gpio_read/write functions to access the GPIO registers. Signed-off-by: Charulatha V ch...@ti.com --- arch/arm/plat-omap/gpio.c | 65

[RFC PATCH 09/18] OMAP: GPIO: cleanup gpio_irq_handler

2011-04-22 Thread Charulatha V
Remove CONFIG_ARCH_OMAP* checks from gpio_irq_handler. Also correct the multi-line comment style in the gpio_irq_handler. Signed-off-by: Charulatha V ch...@ti.com --- arch/arm/plat-omap/gpio.c | 70 +--- 1 files changed, 27 insertions(+), 43 deletions

[RFC PATCH 00/18] OMAP: GPIO: cleanup GPIO driver

2011-04-22 Thread Charulatha V
/platform/omap/omap_uart.3/sleep_timeout echo '5' /debug/pm_debug/wakeup_timer_seconds echo 1 /debug/pm_debug/sleep_while_idle echo 1 /debug/pm_debug/enable_off_mode Charulatha V (18): OMAP1: GPIO: Fix mpuio_init() call OMAP: GPIO: remove get_gpio_bank

[RFC PATCH 04/18] OMAP: GPIO: Move gpio_valid() to SoC specific files

2011-04-22 Thread Charulatha V
gpio_valid() implementation is different for different SoCs. Hence handle them in SoC specific gpio files. Signed-off-by: Charulatha V ch...@ti.com --- arch/arm/mach-omap1/gpio15xx.c | 26 - arch/arm/mach-omap1/gpio16xx.c | 32

[PATCH 0/5] OMAP: GPIO: use PM runtime framework

2011-02-28 Thread Charulatha V
.html https://patchwork.kernel.org/patch/189832/ Charulatha V (5): OMAP: GPIO: Make gpio_context part of gpio_bank structure OMAP: GPIO: Use pwrdmn name to find wkup dmn GPIO OMAP4: GPIO: Save/restore context OMAP: GPIO: handle save/restore ctxt in GPIO driver OMAP: GPIO: Use PM runtime

[PATCH 1/5] OMAP: GPIO: make gpio_context part of gpio_bank structure

2011-02-28 Thread Charulatha V
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 for any OMAP architecture Signed-off-by: Charulatha V ch...@ti.com Tested-by: Tarun

[PATCH 3/5] OMAP4: GPIO: save/restore context

2011-02-28 Thread Charulatha V
Modify the omap_gpio_save/restore_context to support OMAP4 architecture so that the GPIO driver need not be modified when OMAP4 off mode support is available. Signed-off-by: Charulatha V ch...@ti.com Tested-by: Tarun Kanti DebBarma tarun.ka...@ti.com (2430-SDP testing) --- arch/arm/plat-omap

[PATCH 2/5] OMAP: GPIO: use pwrdmn name to find wkup dmn GPIO

2011-02-28 Thread Charulatha V
information needs to be filled in pdata. But omap_device_get_pwrdm() can be used only after omap_device_build() call. Signed-off-by: Charulatha V ch...@ti.com Tested-by: Tarun Kanti DebBarma tarun.ka...@ti.com (2430-SDP testing) --- arch/arm/mach-omap2/gpio.c |6 ++ arch/arm/plat-omap

[PATCH 0/5 v3] OMAP2PLUS: WDT: Implement WDT in HWMOD way

2010-08-16 Thread Charulatha V
.html http://www.spinics.net/lists/linux-omap/msg34673.html Version v1: Initial series Some of the v1 links: http://www.spinics.net/lists/linux-omap/msg30628.html http://www.spinics.net/lists/linux-omap/msg30625.html Benoit Cousson (1): OMAP4 HWMOD: Add watchdog hwmods. Charulatha V (4): OMAP3

[PATCH 2/5 v3] OMAP2420: WDT: Add watchdog timer HWMOD data for OMAP2420

2010-08-16 Thread Charulatha V
Add hwmod structures for Watchdog module on OMAP2420 HWMOD database Signed-off-by: Charulatha V ch...@ti.com Signed-off-by: Basak, Partha p-bas...@ti.com --- arch/arm/mach-omap2/omap_hwmod_2420_data.c | 59 1 files changed, 59 insertions(+), 0 deletions(-) diff

[PATCH 1/5 v3] OMAP3: WDT: Add watchdog timer HWMOD data for OMAP3

2010-08-16 Thread Charulatha V
Add hwmod structures for Watchdog module on OMAP3 HWMOD database Signed-off-by: Charulatha V ch...@ti.com Signed-off-by: Basak, Partha p-bas...@ti.com --- arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 61 arch/arm/mach-omap2/prcm-common.h |4 ++ 2 files

[PATCH 5/5 v3] OMAP2PLUS: WDT: Conversion to runtime PM

2010-08-16 Thread Charulatha V
This patch converts the OMAP Watchdog timer driver to get adapted to HWMOD FW and to use the runtime PM APIs. Signed-off-by: Charulatha V ch...@ti.com Signed-off-by: Basak, Partha p-bas...@ti.com --- arch/arm/plat-omap/devices.c | 64 - drivers/watchdog

[PATCH 3/5 v3] OMAP2430: WDT: Add watchdog timer HWMOD data for OMAP2430

2010-08-16 Thread Charulatha V
Add hwmod structures for Watchdog module on OMAP2430 HWMOD Databse Signed-off-by: Charulatha V ch...@ti.com Signed-off-by: Basak, Partha p-bas...@ti.com --- arch/arm/mach-omap2/omap_hwmod_2430_data.c | 59 1 files changed, 59 insertions(+), 0 deletions(-) diff

[PATCH 4/5 v3] OMAP4 HWMOD: Add watchdog hwmods.

2010-08-16 Thread Charulatha V
Signed-off-by: Charulatha V ch...@ti.com Cc: Paul Walmsley p...@pwsan.com Cc: Kevin Hilman khil...@deeprootsystems.com Cc: Rajendra Nayak rna...@ti.com --- arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 68 1 files changed, 68 insertions(+), 0 deletions(-) diff --git a/arch

[PATCH 0/5] OMAP: McSPI: Implement McSPI in HWMOD way

2010-08-13 Thread Charulatha V
: Add mcspi hwmods. Charulatha V (3): OMAP2420: McSPI: Add mcspi hwmod OMAP2430 : McSPI: Add mcspi hwmod data OMAP3 HWMOD: Add mcspi hwmods. Govindraj.R (1): OMAP McSPI: Adapt McSPI driver to use omap hwmod arch/arm/mach-omap2/clock3xxx_data.c |4 + arch/arm/mach-omap2

[PATCH 1/5] OMAP2420: McSPI: Add mcspi hwmod

2010-08-13 Thread Charulatha V
This patch updates the omap2420 hwmod data with the McSPI info. Signed-off-by: Charulatha V ch...@ti.com Signed-off-by: Partha Basak p-bas...@ti.com Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/omap_hwmod_2420_data.c | 138 1 files

[PATCH 2/5] OMAP2430 : McSPI: Add mcspi hwmod data

2010-08-13 Thread Charulatha V
Update the 2430 hwmod dat file with McSPI info. Signed-off-by: Charulatha V ch...@ti.com Signed-off-by: Partha Basak p-bas...@ti.com Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/omap_hwmod_2430_data.c | 196 1 files changed, 196

[PATCH 3/5] OMAP3 HWMOD: Add mcspi hwmods.

2010-08-13 Thread Charulatha V
Update omap3 hwmod file with mcspi info. Signed-off-by: Charulatha V ch...@ti.com Signed-off-by: Partha Basak p-bas...@ti.com Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 252 1 files changed, 252 insertions(+), 0

[PATCH 5/5] OMAP McSPI: Adapt McSPI driver to use omap hwmod

2010-08-13 Thread Charulatha V
From: Govindraj.R govindraj.r...@ti.com This patch converts the McSPI driver to use pm_runtime apis while implementing it in HWMOD FW way. Signed-off-by: Charulatha V ch...@ti.com Signed-off-by: Partha Basak p-bas...@ti.com Signed-off-by: Govindraj.R govindraj.r...@ti.com --- arch/arm/mach

[PATCH 4/5] OMAP4 HWMOD: Add mcspi hwmods.

2010-08-13 Thread Charulatha V
-off-by: Charulatha V ch...@ti.com Cc: Paul Walmsley p...@pwsan.com Cc: Kevin Hilman khil...@deeprootsystems.com Cc: Rajendra Nayak rna...@ti.com --- arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 244 1 files changed, 244 insertions(+), 0 deletions(-) diff --git a/arch

[PATCH 0/6 v2] OMAP2PLUS: WDT: Implement WDT in HWMOD way

2010-08-11 Thread Charulatha V
be of great help if someone could test the same on OMAP1 and OMAP2 boards. Version History: --- Version v2: Rebase to latest kernel Version v1: Some of the v1 links: http://www.spinics.net/lists/linux-omap/msg30628.html http://www.spinics.net/lists/linux-omap/msg30625.html Charulatha V

[PATCH 1/6 v2] OMAP2PLUS: WDT: Add ICLKEN, FCLKEN, WKEN shared bits for WDT

2010-08-11 Thread Charulatha V
This patch adds the CM_FCLKEN_WKUP, CM_ICLKEN_WKUP, PM_WKEN_WKUP shared bits for OMAP2PLUS watchdog timer module Signed-off-by: Charulatha V ch...@ti.com Signed-off-by: Basak, Partha p-bas...@ti.com --- arch/arm/mach-omap2/prcm-common.h |4 1 files changed, 4 insertions(+), 0 deletions

[PATCH 5/6 v2] OMAP4: WDT: Enable watchdog timer2 hwmod structure

2010-08-11 Thread Charulatha V
This patch enables the watchdog timer2 hwmod structure Signed-off-by: Charulatha V ch...@ti.com Signed-off-by: Basak, Partha p-bas...@ti.com --- arch/arm/mach-omap2/omap_hwmod_44xx_data.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2

[PATCH 3/6 v2] OMAP2420: WDT: Add watchdog timer HWMOD data for OMAP2420

2010-08-11 Thread Charulatha V
Add hwmod structures for Watchdog module on OMAP2420 Signed-off-by: Charulatha V ch...@ti.com Signed-off-by: Basak, Partha p-bas...@ti.com --- arch/arm/mach-omap2/omap_hwmod_2420_data.c | 59 1 files changed, 59 insertions(+), 0 deletions(-) diff --git a/arch/arm

[PATCH 4/6 v2] OMAP2430: WDT: Add watchdog timer HWMOD data for OMAP2430

2010-08-11 Thread Charulatha V
Add hwmod structures for Watchdog module on OMAP2430 Signed-off-by: Charulatha V ch...@ti.com Signed-off-by: Basak, Partha p-bas...@ti.com --- arch/arm/mach-omap2/omap_hwmod_2430_data.c | 59 1 files changed, 59 insertions(+), 0 deletions(-) diff --git a/arch/arm

[PATCH 2/6 v2] OMAP3: WDT: Add watchdog timer HWMOD data for OMAP3

2010-08-11 Thread Charulatha V
Add hwmod structures for Watchdog module on OMAP3 Signed-off-by: Charulatha V ch...@ti.com Signed-off-by: Basak, Partha p-bas...@ti.com --- arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 61 1 files changed, 61 insertions(+), 0 deletions(-) diff --git a/arch/arm

[PATCH 6/6 v2] OMAP2PLUS: WDT: Conversion to runtime PM

2010-08-11 Thread Charulatha V
This patch converts the OMAP Watchdog timer driver to get adapted to HWMOD FW and to use the runtime PM APIs. Signed-off-by: Charulatha V ch...@ti.com Signed-off-by: Basak, Partha p-bas...@ti.com --- arch/arm/plat-omap/devices.c | 52 ++--- drivers/watchdog

[PATCH] OMAP4: HWMOD: Do omap_hwmod_late_init for OMAP4

2010-08-06 Thread Charulatha V
This patch includes cpu_is check for omap44xx cpu inorder to do omap_hwmod_late_init() without which hwmods initialization does not happen for omap4. Signed-off-by: Charulatha V ch...@ti.com Signed-off-by: Basak, Partha p-bas...@ti.com --- arch/arm/mach-omap2/io.c |2 +- 1 files changed, 1

[PATCH 02/13 v5] OMAP: GPIO: Introduce support for OMAP15xx chip GPIO init

2010-08-06 Thread Charulatha V
This patch introduces platform_data structure for GPIO so that GPIO module can be implemented in platform device model. This patch also adds support for handling OMAP15xx specific gpio_init by providing platform device data and doing device registration. Signed-off-by: Charulatha V ch...@ti.com

[PATCH 00/13 v5] OMAP: GPIO: Implement GPIO in HWMOD way

2010-08-06 Thread Charulatha V
: - Introduces SoC specific functions at mach-omap layer - Implements GPIO as a platform device - Make gpio an early device and make it implemented in HWMOD FW adapted way for OMAP2PLUS Charulatha V (13): OMAP: GPIO: Modify init() in preparation for platform device implementation OMAP

[PATCH 08/13 v5] OMAP: GPIO: Add gpio dev_attr and correct clks in OMAP4 hwmod struct

2010-08-06 Thread Charulatha V
This patch adds gpio_dev_attr to OMAP4 gpio hwmod structure. This patch also corrects the gpio .main_clk and .clk fields in gpio hwmod structures. Signed-off-by: Charulatha V ch...@ti.com Signed-off-by: Basak, Partha p-bas...@ti.com --- arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 40

[PATCH 11/13 v5] OMAP: GPIO: Make gpio_context as part of gpio_bank structure

2010-08-06 Thread Charulatha V
gpio_context array, which is used to save gpio bank's context, is used only for OMAP3 architecture. This patch moves gpio_context as part of gpio_bank structure so that it can be specific to each gpio bank and can be used for any OMAP architecture Signed-off-by: Charulatha V ch...@ti.com Signed

[PATCH 09/13 v5] OMAP: GPIO: Introduce support for OMAP2PLUS chip GPIO init

2010-08-06 Thread Charulatha V
This patch adds support for handling GPIO as a HWMOD FW adapted platform device for OMAP2PLUS chips. gpio_init needs to be done before machine_init functions access gpio APIs.Hence gpio_init is made as a postcore_initcall. Signed-off-by: Charulatha V ch...@ti.com Signed-off-by: Basak, Partha p

[PATCH 10/13 v5] OMAP: GPIO: Implement GPIO as a platform device

2010-08-06 Thread Charulatha V
of gpio_bank array so that only instance specific information is used in driver code 4. Rename 'method'/ avoid it's usage Signed-off-by: Charulatha V ch...@ti.com Signed-off-by: Rajendra Nayak rna...@ti.com Signed-off-by: Basak, Partha p-bas...@ti.com --- arch/arm/mach-omap1/Makefile

[PATCH 12/13 v5] OMAP: GPIO: Use dev_pm_ops instead of sys_dev_class

2010-08-06 Thread Charulatha V
in the omap_hwmod_for_each* function Signed-off-by: Charulatha V ch...@ti.com Signed-off-by: Basak, Partha p-bas...@ti.com --- arch/arm/mach-omap2/pm24xx.c |4 +- arch/arm/mach-omap2/pm34xx.c | 23 +- arch/arm/plat-omap/gpio.c | 561

[PATCH 13/13 v5] OMAP: GPIO: Remove omap_gpio_init()

2010-08-06 Thread Charulatha V
This patch removes the usage of omap_gpio_init() from all omap board files since omap_gpio_init() does nothing, after gpio is implemented as a platform device. Signed-off-by: Charulatha V ch...@ti.com Signed-off-by: Basak, Partha p-bas...@ti.com --- arch/arm/mach-omap1/board-ams-delta.c

[PATCH 04/13 v5] OMAP: GPIO: Introduce support for OMAP7xx chip GPIO init

2010-08-06 Thread Charulatha V
This patch adds support for handling OMAP7xx specific gpio_init by providing platform device data and doing device registration. Signed-off-by: Charulatha V ch...@ti.com Signed-off-by: Basak, Partha p-bas...@ti.com --- arch/arm/mach-omap1/gpio7xx.c | 274

[PATCH 05/13 v5] OMAP: GPIO: add GPIO hwmods structures for OMAP3

2010-08-06 Thread Charulatha V
Add hwmod structures for GPIO module on OMAP3 Signed-off-by: Charulatha V ch...@ti.com Signed-off-by: Rajendra Nayak rna...@ti.com Signed-off-by: Basak, Partha p-bas...@ti.com --- arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 382 1 files changed, 382 insertions

[PATCH 07/13 v5] OMAP: GPIO: add GPIO hwmods structures for OMAP243X

2010-08-06 Thread Charulatha V
Add hwmod structures for GPIO module on OMAP243X Signed-off-by: Charulatha V ch...@ti.com Signed-off-by: Basak, Partha p-bas...@ti.com --- arch/arm/mach-omap2/omap_hwmod_2430_data.c | 290 1 files changed, 290 insertions(+), 0 deletions(-) diff --git a/arch/arm

[PATCH 06/13 v5] OMAP: GPIO: add GPIO hwmods structures for OMAP242X

2010-08-06 Thread Charulatha V
Add hwmod structures for GPIO module on OMAP242X Signed-off-by: Charulatha V ch...@ti.com Signed-off-by: Basak, Partha p-bas...@ti.com --- arch/arm/mach-omap2/omap_hwmod_2420_data.c | 234 1 files changed, 234 insertions(+), 0 deletions(-) diff --git a/arch/arm

[PATCH 03/13 v5] OMAP: GPIO: Introduce support for OMAP16xx chip GPIO init

2010-08-06 Thread Charulatha V
This patch adds support for handling OMAP16xx specific gpio_init by providing platform device data and doing device registration. Signed-off-by: Charulatha V ch...@ti.com Signed-off-by: Basak, Partha p-bas...@ti.com --- arch/arm/mach-omap1/gpio16xx.c | 208

[PATCH:v4 03/13] OMAP: GPIO: Include platform_data structure for GPIO

2010-06-22 Thread Charulatha V
This patch introduces platform_data structure for GPIO so that GPIO module can be implemented in platform device model. Signed-off-by: Charulatha V ch...@ti.com Signed-off-by: Basak, Partha p-bas...@ti.com --- arch/arm/plat-omap/include/plat/gpio.h | 20 1 files changed

[PATCH:v4 02/13] OMAP: GPIO: Populate GPIO base address in omapxxxx.h

2010-06-22 Thread Charulatha V
This patch populates omap24xx.h, omap34xx.h and omap44xx.h files with SoC specific GPIO base addresses. This would be later used while creating GPIO hwmod structures. Signed-off-by: Charulatha V ch...@ti.com Signed-off-by: Basak, Partha p-bas...@ti.com --- arch/arm/plat-omap/include/plat

[PATCH:v4 04/13] OMAP: GPIO: Introduce support for OMAP15xx chip GPIO init

2010-06-22 Thread Charulatha V
This patch adds support for handling OMAP15xx specific gpio_init by providing platform device data and doing device registration. Signed-off-by: Charulatha V ch...@ti.com Signed-off-by: Basak, Partha p-bas...@ti.com --- arch/arm/mach-omap1/gpio15xx.c | 105

[PATCH:v4 01/13] OMAP: GPIO: Modify init() in preparation for platform device implementation

2010-06-22 Thread Charulatha V
the status register and initializing the GPIO control register. omap_gpio_chip_init() initializes the chip request, free, get, set and other function pointers and sets the gpio irq handler. Signed-off-by: Charulatha V ch...@ti.com Signed-off-by: Basak, Partha p-bas...@ti.com --- arch/arm/plat-omap/gpio.c

[PATCH:v4 06/13] OMAP: GPIO: Introduce support for OMAP7xx chip GPIO init

2010-06-22 Thread Charulatha V
This patch adds support for handling OMAP7xx specific gpio_init by providing platform device data and doing device registration. Signed-off-by: Charulatha V ch...@ti.com Signed-off-by: Basak, Partha p-bas...@ti.com --- arch/arm/mach-omap1/gpio7xx.c | 278

[PATCH:v4 09/13] OMAP: GPIO: add GPIO hwmods structures for OMAP243X

2010-06-22 Thread Charulatha V
Add hwmod structures for GPIO module on OMAP243X Signed-off-by: Charulatha V ch...@ti.com Signed-off-by: Basak, Partha p-bas...@ti.com --- arch/arm/mach-omap2/omap_hwmod_2430_data.c | 279 1 files changed, 279 insertions(+), 0 deletions(-) diff --git a/arch/arm

[PATCH:v4 11/13] OMAP: GPIO: Introduce support for OMAP2PLUS chip GPIO init

2010-06-22 Thread Charulatha V
This patch adds support for handling GPIO as a HWMOD FW adapted platform device for OMAP2PLUS chips. gpio_init needs to be done before machine_init functions access gpio APIs. Hence gpio_init is made as a postcore_initcall. Signed-off-by: Charulatha V ch...@ti.com Signed-off-by: Basak, Partha p

[PATCH:v4 12/13] OMAP: GPIO: Implement GPIO as a platform device

2010-06-22 Thread Charulatha V
-by: Charulatha V ch...@ti.com Signed-off-by: Rajendra Nayak rna...@ti.com Signed-off-by: Basak, Partha p-bas...@ti.com --- arch/arm/mach-omap1/Makefile |6 + arch/arm/mach-omap1/clock_data.c |4 +- arch/arm/mach-omap2/Makefile |2 +- arch/arm/plat-omap/gpio.c

[PATCH:v4 13/13] OMAP: GPIO: Remove omap_gpio_init()

2010-06-22 Thread Charulatha V
This patch removes the usage of omap_gpio_init() from all omap board files since omap_gpio_init() does nothing, after gpio is implemented as a platform device. Signed-off-by: Charulatha V ch...@ti.com Signed-off-by: Basak, Partha p-bas...@ti.com --- arch/arm/mach-omap1/board-ams-delta.c

[PATCH:v4 05/13] OMAP: GPIO: Introduce support for OMAP16xx chip GPIO init

2010-06-22 Thread Charulatha V
This patch adds support for handling OMAP16xx specific gpio_init by providing platform device data and doing device registration. Signed-off-by: Charulatha V ch...@ti.com Signed-off-by: Basak, Partha p-bas...@ti.com --- arch/arm/mach-omap1/gpio16xx.c | 212

[PATCH:v4 10/13] OMAP: GPIO: Add gpio dev_attr and correct clks in OMAP4 hwmod struct

2010-06-22 Thread Charulatha V
This patch adds gpio_dev_attr to OMAP4 gpio hwmod structure. This patch also corrects the gpio .main_clk and .clk fields in gpio hwmod structures. Signed-off-by: Charulatha V ch...@ti.com Signed-off-by: Basak, Partha p-bas...@ti.com --- arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 31

[PATCH:v4 08/13] OMAP: GPIO: add GPIO hwmods structures for OMAP242X

2010-06-22 Thread Charulatha V
Add hwmod structures for GPIO module on OMAP242X Signed-off-by: Charulatha V ch...@ti.com Signed-off-by: Basak, Partha p-bas...@ti.com --- arch/arm/mach-omap2/omap_hwmod_2420_data.c | 228 1 files changed, 228 insertions(+), 0 deletions(-) diff --git a/arch/arm

[PATCH:v4 07/13] OMAP: GPIO: add GPIO hwmods structures for OMAP3

2010-06-22 Thread Charulatha V
Add hwmod structures for GPIO module on OMAP3 Signed-off-by: Charulatha V ch...@ti.com Signed-off-by: Rajendra Nayak rna...@ti.com Signed-off-by: Basak, Partha p-bas...@ti.com --- arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 366 1 files changed, 366 insertions

[PATCH 2/6] OMAP3: WDT: Add watchdog timer HWMOD data for OMAP3

2010-05-22 Thread Charulatha V
Add hwmod structures for Watchdog module on OMAP3 Signed-off-by: Charulatha V ch...@ti.com --- arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 61 1 files changed, 61 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c b/arch/arm

[PATCH 0/6] OMAP2PLUS: WDT: Implement WDT in HWMOD way

2010-05-22 Thread Charulatha V
. It would be of great help if someone could test the same on OMAP1 and OMAP2 boards. The same patchset is also tested on origin/pm-wip/runtime. Please note that patch 5/6 OMAP4: WDT: Enable watchdog timer2 hwmod structure is not valid in origin/pm-wip/runtime branch. Charulatha V (6): OMAP2PLUS

[PATCH 3/6] OMAP2420: WDT: Add watchdog timer HWMOD data for OMAP2420

2010-05-22 Thread Charulatha V
Add hwmod structures for Watchdog module on OMAP2420 Signed-off-by: Charulatha V ch...@ti.com --- arch/arm/mach-omap2/omap_hwmod_2420_data.c | 56 1 files changed, 56 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/omap_hwmod_2420_data.c b/arch/arm

[PATCH 1/6] OMAP2PLUS: WDT: Add ICLKEN, FCLKEN, WKEN shared bits for WDT

2010-05-22 Thread Charulatha V
This patch adds the CM_FCLKEN_WKUP, CM_ICLKEN_WKUP, PM_WKEN_WKUP shared bits for OMAP2PLUS watchdog timer module Signed-off-by: Charulatha V ch...@ti.com --- arch/arm/mach-omap2/prcm-common.h |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/prcm

[PATCH 5/6] OMAP4: WDT: Enable watchdog timer2 hwmod structure

2010-05-22 Thread Charulatha V
This patch enables the watchdog timer2 hwmod structure Signed-off-by: Charulatha V ch...@ti.com --- arch/arm/mach-omap2/omap_hwmod_44xx_data.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c b/arch/arm/mach-omap2

[PATCH 09/11] OMAP: GPIO: Introduce support for OMAP2PLUS chip GPIO init

2010-05-18 Thread Charulatha V
This patch adds support for handling GPIO as a HWMOD FW adapted platform device for OMAP2PLUS chips. Signed-off-by: Charulatha V ch...@ti.com --- arch/arm/mach-omap2/gpio.c | 113 1 files changed, 113 insertions(+), 0 deletions(-) create mode 100644

[PATCH 06/11] OMAP: GPIO: add GPIO hwmods structures for OMAP3

2010-05-18 Thread Charulatha V
Add hwmod structures for GPIO module on OMAP3 Signed-off-by: Charulatha V ch...@ti.com Signed-off-by: Rajendra Nayak rna...@ti.com --- arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 357 +++- 1 files changed, 356 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach

[PATCH 07/11] OMAP: GPIO: add GPIO hwmods structures for OMAP242X

2010-05-18 Thread Charulatha V
Add hwmod structures for GPIO module on OMAP242X Signed-off-by: Charulatha V ch...@ti.com --- arch/arm/mach-omap2/omap_hwmod_2420_data.c | 222 1 files changed, 222 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/omap_hwmod_2420_data.c b/arch/arm

[PATCH 02/11] OMAP: GPIO: Include platform_data structure for GPIO

2010-05-18 Thread Charulatha V
This patch introduces platform_data structure for GPIO so that GPIO module can be implemented in platform device model. Signed-off-by: Charulatha V ch...@ti.com --- arch/arm/plat-omap/include/plat/gpio.h | 15 +++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/arch

[PATCH 00/11] OMAP: GPIO: Implement GPIO in HWMOD way

2010-05-18 Thread Charulatha V
on OMAP1 and OMAP2 boards. Charulatha V (11): OMAP: GPIO: Modify init() in preparation for platform device implementation OMAP: GPIO: Include platform_data structure for GPIO OMAP: GPIO: Introduce support for OMAP15xx chip GPIO init OMAP: GPIO: Introduce support for OMAP16xx chip GPIO

[PATCH 03/11] OMAP: GPIO: Introduce support for OMAP15xx chip GPIO init

2010-05-18 Thread Charulatha V
This patch adds support for handling OMAP15xx specific gpio_init by providing platform device data and doing device registration. Signed-off-by: Charulatha V ch...@ti.com --- arch/arm/mach-omap1/gpio15xx.c | 99 1 files changed, 104 insertions(+), 0

[PATCH 10/11] OMAP: GPIO: Implement GPIO as a platform device

2010-05-18 Thread Charulatha V
CONFIG_PM_RUNTIME is not defined. omap_gpio_init() does nothing now and this function would be removed in the next patch as it's usage is spread across most of the board files. Signed-off-by: Charulatha V ch...@ti.com Signed-off-by: Rajendra Nayak rna...@ti.com --- arch/arm/mach-omap1/Makefile

[PATCH 05/11] OMAP: GPIO: Introduce support for OMAP7xx chip GPIO init

2010-05-18 Thread Charulatha V
This patch adds support for handling OMAP7xx specific gpio_init by providing platform device data and doing device registration. Signed-off-by: Charulatha V ch...@ti.com --- arch/arm/mach-omap1/gpio7xx.c | 266 + 1 files changed, 266 insertions(+), 0

[PATCH 08/11] OMAP: GPIO: add GPIO hwmods structures for OMAP243X

2010-05-18 Thread Charulatha V
Add hwmod structures for GPIO module on OMAP243X Signed-off-by: Charulatha V ch...@ti.com --- arch/arm/mach-omap2/omap_hwmod_2430_data.c | 270 1 files changed, 270 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/omap_hwmod_2430_data.c b/arch/arm

[PATCH 11/11] OMAP: GPIO: Remove omap_gpio_init()

2010-05-18 Thread Charulatha V
This patch removes the usage of omap_gpio_init() in from all omap board files since omap_gpio_init() does nothing, after gpio is implemented as a platform device. Signed-off-by: Charulatha V ch...@ti.com --- arch/arm/mach-omap1/board-ams-delta.c |1 - arch/arm/mach-omap1/board-fsample.c

[PATCH 01/11] OMAP: GPIO: Modify init() in preparation for platform device implementation

2010-05-18 Thread Charulatha V
the status register and initializing the GPIO control register. omap_gpio_chip_init() initializes the chip request, free, get, set and other function pointers and sets the gpio irq handler. Signed-off-by: Charulatha V ch...@ti.com --- arch/arm/plat-omap/gpio.c | 277

[PATCH 04/11] OMAP: GPIO: Introduce support for OMAP16xx chip GPIO init

2010-05-18 Thread Charulatha V
This patch adds support for handling OMAP16xx specific gpio_init by providing platform device data and doing device registration. Signed-off-by: Charulatha V ch...@ti.com --- arch/arm/mach-omap1/gpio16xx.c | 202 1 files changed, 202 insertions(+), 0

[PATCH] OMAP:GPIO:hwmod: Fix mmc compile errors

2010-04-22 Thread Charulatha V
In origin/pm-wip/runtime branch, compilation errors are observed for OMAP2430. The compilation errors are due to usage of clkdev_dev_id, clkdev_con_id and sysconfig fields in mmc hwmod structures. This patch fixes the same. Signed-off-by: Charulatha V ch...@ti.com --- arch/arm/mach-omap2

[PATCH 2/9] OMAP:GPIO: Introduce support for OMAP15xx chip specific GPIO

2010-04-22 Thread Charulatha V
This patch adds support for handling OMAP15xx specific gpio_init by providing platform device data and doing device registration. Signed-off-by: Charulatha V ch...@ti.com --- arch/arm/mach-omap1/gpio15xx.c | 102 1 files changed, 102 insertions(+), 0

[PATCH 7/9] OMAP:GPIO:hwmod: add GPIO hwmods for OMAP2420

2010-04-22 Thread Charulatha V
Add hwmod structures for GPIO module on OMAP2420. Signed-off-by: Charulatha V ch...@ti.com --- arch/arm/mach-omap2/omap_hwmod_2420_data.c | 215 1 files changed, 215 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/omap_hwmod_2420_data.c b/arch/arm

[PATCH 5/9] OMAP:GPIO: Introduce support for OMAP2PLUS chip specific GPIO

2010-04-22 Thread Charulatha V
This patch adds support for handling GPIO as a HWMOD adapted platform device for OMAP2PLUS chips. Signed-off-by: Charulatha V ch...@ti.com --- arch/arm/mach-omap2/gpio.c | 101 1 files changed, 101 insertions(+), 0 deletions(-) create mode 100644

[PATCH 6/9] OMAP:GPIO:hwmod: add GPIO hwmods for OMAP3

2010-04-22 Thread Charulatha V
Add hwmod structures for GPIO module on OMAP3 Signed-off-by: Charulatha V ch...@ti.com Signed-off-by: Rajendra Nayak rna...@ti.com --- arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 346 +++- 1 files changed, 345 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach

[PATCH 3/9] OMAP:GPIO: Introduce support for OMAP16xx chip specific GPIO

2010-04-22 Thread Charulatha V
This patch adds support for handling OMAP16xx specific gpio_init by providing platform device data and doing device registration. Signed-off-by: Charulatha V ch...@ti.com --- arch/arm/mach-omap1/gpio16xx.c | 196 1 files changed, 196 insertions(+), 0

[PATCH 1/9] OMAP:GPIO: Modify init() in preparation for platform device implementation

2010-04-22 Thread Charulatha V
() does the module init by clearing the status register and initializing the GPIO control register. omap_gpio_chip_init() initializes the chip request, free, get, set and other function pointers and sets the gpio irq handler. Signed-off-by: Charulatha V ch...@ti.com --- arch/arm/plat-omap/gpio.c

[PATCH 4/9] OMAP:GPIO: Introduce support for OMAP7xx chip specific GPIO

2010-04-22 Thread Charulatha V
This patch adds support for handling OMAP7xx specific gpio_init by providing platform device data and doing device registration. Signed-off-by: Charulatha V ch...@ti.com --- arch/arm/mach-omap1/gpio7xx.c | 258 + 1 files changed, 258 insertions(+), 0

[PATCH 00/09] OMAP:GPIO:Implement GPIO in HWMOD way

2010-04-22 Thread Charulatha V
compilation and boottime errors: 1. i2c-omap: Fix reg_shift init (by Tony Lindgren) 2. OMAP:GPIO:hwmod: Fix mmc compile errors (by Charulatha V) 3. OMAP: DSS2: VRAM: Fix early_param for vram (by Thomas Weber) This patch series is tested on OMAP3430 SDP board. It would be of great help if someone

[PATCH 9/9] OMAP:GPIO: Implement GPIO as a platform device

2010-04-22 Thread Charulatha V
by name/NULL ptr. Currently early platform device register does not do device_pm_init. Hence pm_runtime functions are not used to enable the GPIO device since gpio is early platform device. Signed-off-by: Charulatha V ch...@ti.com Signed-off-by: Rajendra Nayak rna...@ti.com --- arch/arm/mach

[PATCH 8/9] OMAP:GPIO:hwmod: add GPIO hwmods for OMAP2430

2010-04-22 Thread Charulatha V
Add hwmod structures for GPIO module on OMAP2430. Signed-off-by: Charulatha V ch...@ti.com --- arch/arm/mach-omap2/omap_hwmod_2430_data.c | 262 1 files changed, 262 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/omap_hwmod_2430_data.c b/arch/arm

[PATCH V2] OMAP: GPIO: Fix OMAP4 GPIO reg access issues

2010-04-08 Thread Charulatha V
Access to some of the OMAP4 GPIO registers are not properly handled. This patch fixes it. This patch is tested on 3430SDP and 4430SDP boards Signed-off-by: Charulatha V ch...@ti.com cc: Kevin Hilman khil...@deeprootsystems.com --- arch/arm/plat-omap/gpio.c | 61

[PATCH 1/8] OMAP:GPIO:Move architecture specific macros to specific header

2010-03-31 Thread Charulatha V
as they will be removed at the end of this patch series when plat-omap/gpio.c handles only common APIs. Signed-off-by: Charulatha V ch...@ti.com --- arch/arm/mach-omap1/include/mach/gpio.h | 88 arch/arm/mach-omap2/include/mach/gpio.h | 99 + arch/arm/plat-omap/gpio.c

[PATCH 2/8] OMAP3:GPIO:Add support for early platform gpio device

2010-03-31 Thread Charulatha V
once the driver gets adapted to HWMOD way. Signed-off-by: Charulatha V ch...@ti.com --- arch/arm/mach-omap2/gpio3xxx.c | 351 +++ arch/arm/mach-omap2/include/mach/gpio.h | 13 +- 2 files changed, 363 insertions(+), 1 deletions(-) create mode 100644 arch/arm

[PATCH 4/8] OMAP4:GPIO:Add support for early platform gpio device

2010-03-31 Thread Charulatha V
once the driver gets adapted to HWMOD way. Signed-off-by: Charulatha V ch...@ti.com --- arch/arm/mach-omap2/gpio44xx.c | 350 +++ arch/arm/mach-omap2/include/mach/gpio.h |3 +- 2 files changed, 352 insertions(+), 1 deletions(-) create mode 100644 arch/arm

[PATCH 5/8] OMAP2PLUS:GPIO:Add OMAP2PLUS specific gpio support

2010-03-31 Thread Charulatha V
This patch adds support for handling code common to OMAP2PLUS architecture. OMAP2PLUS gpio is one of the early platform devices and this patch adds support to implement the initialization of OMAP2PLUS architecture GPIO as early platform device. Signed-off-by: Charulatha V ch...@ti.com --- arch

[PATCH 6/8] OMAP1:GPIO:Support for OMAP1 specific gpio

2010-03-31 Thread Charulatha V
This patch adds support for handling OMAP1 specific GPIO operations including gpio_init Signed-off-by: Charulatha V ch...@ti.com --- arch/arm/mach-omap1/gpio.c | 404 1 files changed, 404 insertions(+), 0 deletions(-) create mode 100644 arch/arm

  1   2   >