[PATCH v6 03/13] ARM: OMAP2+: gpmc: driver migration helper

2012-06-22 Thread Afzal Mohammed
as in old interface GPMC is configured at arch initcall and GPMC should be ready to handle old interface by that time Note: This commit has to be reverted once all boards have been converted to work with gpmc driver interface Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c

[PATCH v6 04/13] ARM: OMAP2+: gpmc: minimal driver support

2012-06-22 Thread Afzal Mohammed
Create a minimal driver out of gpmc code. Responsibilities handled by earlier gpmc initialization is now achieved in probe. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c | 179 1 file changed, 132 insertions(+), 47

[PATCH v6 05/13] ARM: OMAP2+: gpmc: resource creation helpers

2012-06-22 Thread Afzal Mohammed
Helpers for populating given resource structure with memory interrupt information. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c | 45 1 file changed, 45 insertions(+) diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm

[PATCH v6 06/13] ARM: OMAP2+: gpmc: CS configuration helper

2012-06-22 Thread Afzal Mohammed
Helper for configuring given CS based on flags. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c | 39 arch/arm/plat-omap/include/plat/gpmc.h |5 2 files changed, 44 insertions(+) diff --git a/arch/arm/mach-omap2

[PATCH v6 07/13] ARM: OMAP2+: gpmc: register time setting helper

2012-06-22 Thread Afzal Mohammed
Helper for setting GPMC timing by taking input as register values. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c | 45 1 file changed, 45 insertions(+) diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c

[PATCH v6 08/13] ARM: OMAP2+: gpmc: holler if no configuration

2012-06-22 Thread Afzal Mohammed
so that all the gpmc periherals can be configured in Kernel for all boards instead of relying on bootloader. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c | 104 1 file changed, 104 insertions(+) diff --git a/arch/arm/mach

[PATCH v6 09/13] ARM: OMAP2+: gpmc: waitpin helper

2012-06-22 Thread Afzal Mohammed
) Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c | 123 arch/arm/plat-omap/include/plat/gpmc.h |9 +++ 2 files changed, 132 insertions(+) diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c index 9e3960e

[PATCH v6 10/13] ARM: OMAP2+: gpmc: handle connected peripherals

2012-06-22 Thread Afzal Mohammed
-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c | 142 1 file changed, 142 insertions(+) diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c index 15688da..ac66267 100644 --- a/arch/arm/mach-omap2/gpmc.c +++ b/arch

[PATCH v6 11/13] ARM: OMAP2+: gpmc: cs reconfigure helper

2012-06-22 Thread Afzal Mohammed
Helper for reconfiguring CS. This helps if a peripheral needs to reconfigure GPMC settings different from the one which was configured during probe. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c | 32 arch/arm/plat-omap

[PATCH v6 12/13] ARM: OMAP2+: gpmc: update nand register info

2012-06-22 Thread Afzal Mohammed
by itself instead of relying on GPMC exported symbols. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c |9 - arch/arm/plat-omap/include/plat/gpmc.h |1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/gpmc.c b

[PATCH v6 13/13] ARM: OMAP2+: gpmc: configure writeprotect

2012-06-22 Thread Afzal Mohammed
GPMC has a writeprotect pin that can be connected to peripherals. Default is to disable writeprotect. In case of conflicting requirement of writeprotect, it will be left in enabled state to be on safer side, along with a warning to attract user attention. Signed-off-by: Afzal Mohammed af

[PATCH v3 0/3] Prepare for GPMC driver conversion

2012-06-21 Thread Afzal Mohammed
Afzal Mohammed (3): ARM: OMAP2+: nand: unify init functions ARM: OMAP2+: gpmc: handle additional timings ARM: OMAP2+: onenand: prepare for gpmc driver migration arch/arm/mach-omap2/board-devkit8000.c |8 +- arch/arm/mach-omap2/board-flash.c | 45 - arch/arm/mach

[PATCH v3 1/3] ARM: OMAP2+: nand: unify init functions

2012-06-21 Thread Afzal Mohammed
to be using CS0 based on u-boot, while google grep says omap3touchbook too has CS0. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/board-devkit8000.c |8 +++-- arch/arm/mach-omap2/board-flash.c | 45 ++- arch/arm/mach-omap2/board-flash.h

[PATCH v3 2/3] ARM: OMAP2+: gpmc: handle additional timings

2012-06-21 Thread Afzal Mohammed
existing users that were configuring clk activation time by directly writing to registers. Thanks to Tony for making me aware of the issue being kind enough to test this change. Signed-off-by: Afzal Mohammed af...@ti.com --- v3: Handle bool type timings too v2: Make use of timing api for setting

[PATCH v3 3/3] ARM: OMAP2+: onenand: prepare for gpmc driver migration

2012-06-21 Thread Afzal Mohammed
to separate out timing calculation actual configuration (GPMC OneNAND side). Thanks to Jon for his suggestions. Signed-off-by: Afzal Mohammed af...@ti.com --- v3: Refactor set_sync/async functions to separate out timing and configurations v2: Move ensuring that async mode in OneNAND has been setup

[PATCH v2 0/3] Prepare for GPMC driver conversion

2012-06-16 Thread Afzal Mohammed
of timing api for setting clock activation time, and remove direct writing to register for clock activation. Peripherals making use of it were tusb6010 onenand 2. Move ensuring that async mode in OneNAND has been setup from set_sync to setup function, improve commit message Afzal Mohammed (3): ARM

[PATCH v2 1/3] ARM: OMAP2+: nand: unify init functions

2012-06-16 Thread Afzal Mohammed
to be using CS0 based on u-boot, while google grep says omap3touchbook too has CS0. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/board-devkit8000.c |8 +++-- arch/arm/mach-omap2/board-flash.c | 45 ++- arch/arm/mach-omap2/board-flash.h

[PATCH v2 2/3] ARM: OMAP2+: onenand: prepare for gpmc driver migration

2012-06-16 Thread Afzal Mohammed
to gpmc_onenand_init function; gpmc for onenand needs to be initialized to async mode (even for sync mode initially). Ensuring that onenand part has been setup for async mode has been moved now to setup function. Thanks to Jon for his suggestions on improving this change. Signed-off-by: Afzal

[PATCH v2 3/3] ARM: OMAP2+: gpmc: handle additional timings

2012-06-16 Thread Afzal Mohammed
time by directly writing to registers. Thanks to Tony for making me aware of the issue being kind enough to test this change. Signed-off-by: Afzal Mohammed af...@ti.com --- v2: Make use of timings api for setting clock activation time, and remove direct writing to register for clock activation

[PATCH v2 00/10] Prepare for GPMC driver conversion (w.r.t MTD)

2012-06-13 Thread Afzal Mohammed
: handle nand on gpmc] simplify omap_prefetch_enable() Afzal Mohammed (10): ARM: OMAP2+: gpmc: update nand register helper ARM: OMAP2+: gpmc-nand: update gpmc-nand regs mtd: nand: omap2: handle nand on gpmc ARM: OMAP2+: gpmc-nand: update resource with memory ARM: OMAP2+: gpmc-onenand

[PATCH v2 01/10] ARM: OMAP2+: gpmc: update nand register helper

2012-06-13 Thread Afzal Mohammed
Provide helper function for updating NAND register details for the necessary chip select. NAND drivers platform data can be updated with this information so that NAND driver can handle GPMC NAND operations by itself. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c

[PATCH v2 02/10] ARM: OMAP2+: gpmc-nand: update gpmc-nand regs

2012-06-13 Thread Afzal Mohammed
GPMC has NAND registers, update nand platform data with those details so that NAND driver can configure those by itself instead of using exported symbols. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc-nand.c|2 ++ arch/arm/plat-omap/include/plat/nand.h

[PATCH v2 03/10] mtd: nand: omap2: handle nand on gpmc

2012-06-13 Thread Afzal Mohammed
as a single peripheral using multiple CS. This would make handling multiple CS issues easier. Signed-off-by: Afzal Mohammed af...@ti.com --- v2: simplify omap_prefetch_enable function drivers/mtd/nand/omap2.c | 204 -- 1 file changed, 160 insertions(+), 44

[PATCH v2 04/10] ARM: OMAP2+: gpmc-nand: update resource with memory

2012-06-13 Thread Afzal Mohammed
-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc-nand.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/gpmc-nand.c b/arch/arm/mach-omap2/gpmc-nand.c index d4e803c..c0320d2 100644 --- a/arch/arm/mach-omap2/gpmc-nand.c +++ b/arch/arm/mach

[PATCH v2 05/10] ARM: OMAP2+: gpmc-onenand: provide memory as resource

2012-06-13 Thread Afzal Mohammed
in onenand driver. This helps in smooth migration of gpmc to driver. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc-onenand.c | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/gpmc-onenand.c b/arch/arm/mach

[PATCH v2 06/10] mtd: nand: omap2: obtain memory from resource

2012-06-13 Thread Afzal Mohammed
gpmc initialization done by platform code now updates struct resource with the address space alloted for nand. Use this interface to obtain memory rather than relying on platform data field - phys_base. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/plat-omap/include/plat/nand.h |1

[PATCH v2 07/10] mtd: onenand: omap2: obtain memory from resource

2012-06-13 Thread Afzal Mohammed
gpmc initialization for onenand done by platform code now provides onenand address space as memory resource. Hence remove usage of gpmc_cs_request in onenand driver and obtain memory details from resource structure. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/mtd/onenand/omap2.c

[PATCH v2 08/10] ARM: OMAP2+: gpmc: Modify interrupt handling

2012-06-13 Thread Afzal Mohammed
this change) as the only user of GPMC interrupt is NAND. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c | 136 arch/arm/plat-omap/include/plat/gpmc.h |1 + 2 files changed, 120 insertions(+), 17 deletions(-) diff --git a/arch/arm

[PATCH v2 09/10] ARM: OMAP2+: gpmc-nand: Modify Interrupt handling

2012-06-13 Thread Afzal Mohammed
Now GPMC provides its client with interrupts that can be handled using the standard interrupt API. Modify GPMC NAND setup to work with it. Also disable write protect in GPMC code, so that NAND driver can be ignorant of GPMC configuration. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm

[PATCH v2 10/10] mtd: nand: omap2: use gpmc provided irqs

2012-06-13 Thread Afzal Mohammed
GPMC platform initialization provides it's clients with interrupts that can be used through struct resource. Make use of it for irq mode functionality. Also now write protect disable is done by GPMC, hence remove it. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/mtd/nand/omap2.c | 70

[PATCH v2] ARM: OMAP2/3: hwmod data: add gpmc

2012-06-11 Thread Afzal Mohammed
is also required for smooth migration to gpmc driver; approach being taken is to hold old interface until boards are converted to use driver interface one-by-one. Till that time, this flag is a must as old interface rely on bootloader Signed-off-by: Afzal Mohammed af...@ti.com --- v2: rebased

[PATCH 0/3] Prepare for GPMC driver conversion

2012-06-11 Thread Afzal Mohammed
This series is based on 3.5-rc1 made on top of http://www.mail-archive.com/linux-omap@vger.kernel.org/msg69501.html http://www.mail-archive.com/linux-omap@vger.kernel.org/msg69881.html Regards Afzal Afzal Mohammed (3): ARM: OMAP2+: nand: unify init functions ARM: OMAP2+: onenand: cleanup

[PATCH 1/3] ARM: OMAP2+: nand: unify init functions

2012-06-11 Thread Afzal Mohammed
to be using CS0 based on u-boot, while google grep says omap3touchbook too has CS0. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/board-devkit8000.c |8 +++-- arch/arm/mach-omap2/board-flash.c | 45 ++- arch/arm/mach-omap2/board-flash.h

[PATCH 2/3] ARM: OMAP2+: onenand: cleanup for gpmc driver conversion

2012-06-11 Thread Afzal Mohammed
as onenand driver always calls indirectly omap2_onenand_set_sync_mode, and has placed such that configuring onenand for async read/write would happen once GPMC is setup for async mode (which happens even for sync mode, before configuring to sync mode). Signed-off-by: Afzal Mohammed af...@ti.com

[PATCH 3/3] ARM: OMAP2+: gpmc: handle additional timings

2012-06-11 Thread Afzal Mohammed
Configure busturnaround, cycle2cycledelay, waitmonitoringtime, clkactivationtime in gpmc_cs_set_timings(). This is done so that boards can configure these parameters of gpmc in Kernel instead of relying on bootloader. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c

[PATCH v5 00/14] GPMC driver conversion

2012-06-11 Thread Afzal Mohammed
driver v2: Avoid code movement that kept similar code together (for easy review) Afzal Mohammed (14): ARM: OMAP2+: gpmc: platform definitions ARM: OMAP2+: gpmc: Adapt to HWMOD ARM: OMAP2+: gpmc: driver migration helper ARM: OMAP2+: gpmc: minimal driver support ARM: OMAP2+: gpmc: resource

[PATCH v5 01/14] ARM: OMAP2+: gpmc: platform definitions

2012-06-11 Thread Afzal Mohammed
gpmc driver platform definitions Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/plat-omap/include/plat/gpmc.h | 49 1 file changed, 49 insertions(+) diff --git a/arch/arm/plat-omap/include/plat/gpmc.h b/arch/arm/plat-omap/include/plat/gpmc.h index

[PATCH v5 02/14] ARM: OMAP2+: gpmc: Adapt to HWMOD

2012-06-11 Thread Afzal Mohammed
Create API for platforms to adapt gpmc to HWMOD Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c | 31 +++ arch/arm/plat-omap/include/plat/gpmc.h |2 ++ 2 files changed, 33 insertions(+) diff --git a/arch/arm/mach-omap2

[PATCH v5 03/14] ARM: OMAP2+: gpmc: driver migration helper

2012-06-11 Thread Afzal Mohammed
is configured at arch initcall and GPMC should be ready to handle old interface by that time Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach

[PATCH v5 04/14] ARM: OMAP2+: gpmc: minimal driver support

2012-06-11 Thread Afzal Mohammed
Create a minimal driver out of gpmc code. Responsibilities handled by earlier gpmc initialization is now achieved in probe. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c | 170 1 file changed, 123 insertions(+), 47

[PATCH v5 05/14] ARM: OMAP2+: gpmc: resource creation helpers

2012-06-11 Thread Afzal Mohammed
Helpers for propulating given resource structure with memory interrupt information. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c | 45 1 file changed, 45 insertions(+) diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm

[PATCH v5 06/14] ARM: OMAP2+: gpmc: CS configuration helper

2012-06-11 Thread Afzal Mohammed
Helper for configuring given CS based on flags. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c | 33 arch/arm/plat-omap/include/plat/gpmc.h |5 + 2 files changed, 38 insertions(+) diff --git a/arch/arm/mach-omap2

[PATCH v5 07/14] ARM: OMAP2+: gpmc: time setting (register#) helper

2012-06-11 Thread Afzal Mohammed
Helper for setting GPMC timing by taking input as register values. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c | 43 +++ 1 file changed, 43 insertions(+) diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c

[PATCH v5 08/14] ARM: OMAP2+: gpmc: bool type timing helper

2012-06-11 Thread Afzal Mohammed
Some of the timing configuration like extra delay has bool type configurations. Provide a helper so that these too can be configured in Kernel. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c | 55 1 file changed, 55

[PATCH v5 09/14] ARM: OMAP2+: gpmc: holler if no configuration

2012-06-11 Thread Afzal Mohammed
Some of the GPMC peripherals depend on bootloader to do the configuration. This facility is deprecated, notify user about the present GPMC settings inform that that relying on bootloader for GPMC setting is deprecated. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c

[PATCH v5 10/14] ARM: OMAP2+: gpmc: waitpin helper

2012-06-11 Thread Afzal Mohammed
) Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c | 122 arch/arm/plat-omap/include/plat/gpmc.h |9 +++ 2 files changed, 131 insertions(+) diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c index 5a6f708

[PATCH v5 11/14] ARM: OMAP2+: gpmc: handle connected peripherals

2012-06-11 Thread Afzal Mohammed
-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c | 146 1 file changed, 146 insertions(+) diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c index 9073a8a..281bd23 100644 --- a/arch/arm/mach-omap2/gpmc.c +++ b/arch

[PATCH v5 12/14] ARM: OMAP2+: gpmc: cs reconfigure helper

2012-06-11 Thread Afzal Mohammed
Helper for reconfiguring CS, peripheral that necessitated it was OneNAND. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c | 32 arch/arm/plat-omap/include/plat/gpmc.h |2 ++ 2 files changed, 34 insertions(+) diff --git

[PATCH v5 13/14] ARM: OMAP2+: gpmc: update nand register info

2012-06-11 Thread Afzal Mohammed
by itself instead of relying on GPMC exported symbols. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c |9 - arch/arm/plat-omap/include/plat/gpmc.h |1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/gpmc.c b

[PATCH v5 14/14] ARM: OMAP2+: gpmc: writeprotect helper

2012-06-11 Thread Afzal Mohammed
GPMC has a writeprotect pin that can be connected to peripherals. If any CS wants to enable writeprotect, writeprotect will be enabled, once CS configurations are finished. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c | 20 1 file changed, 20

[PATCH 0/9] Adapt GPMC peripherals, platforms to driver

2012-06-11 Thread Afzal Mohammed
@vger.kernel.org/msg69881.html [3] http://www.mail-archive.com/linux-omap@vger.kernel.org/msg69891.html [4] http://www.mail-archive.com/linux-omap@vger.kernel.org/msg69897.html Afzal Mohammed (9): ARM: OMAP2+: gpmc-nand: Adapt to use gpmc driver ARM: OMAP2+: gpmc-onenand: Adapt to use gpmc

[PATCH 1/9] ARM: OMAP2+: gpmc-nand: Adapt to use gpmc driver

2012-06-11 Thread Afzal Mohammed
too. This is done so that driver conversion can be done gradually without breaking any. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc-nand.c| 41 arch/arm/plat-omap/include/plat/nand.h |7 ++ 2 files changed, 48 insertions

[PATCH 3/9] ARM: OMAP2+: flash: Adapt to use gpmc driver

2012-06-11 Thread Afzal Mohammed
using old interface too. This is done so that driver conversion can be done gradually without breaking any. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/board-flash.c | 126 + arch/arm/mach-omap2/board-flash.h | 29 + 2 files changed

[PATCH 4/9] ARM: OMAP2+: gpmc-tusb6010: Adapt to use gpmc driver

2012-06-11 Thread Afzal Mohammed
interface too. This is done so that driver conversion can be done gradually without breaking any. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/usb-tusb6010.c | 113 +++- arch/arm/plat-omap/include/plat/gpmc.h |8 +++ 2 files changed, 119

[PATCH 5/9] ARM: OMAP2+: gpmc-smc91x: Adapt to use gpmc driver

2012-06-11 Thread Afzal Mohammed
too. This is done so that driver conversion can be done gradually without breaking any. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc-smc91x.c | 69 + arch/arm/plat-omap/include/plat/gpmc-smc91x.h | 12 +++-- 2 files changed, 66

[PATCH 7/9] ARM: OMAP2+: gpmc-smsc911x: runtime time calculation

2012-06-11 Thread Afzal Mohammed
, if it is not provided, default one used is that of 9220. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc-smsc911x.c | 53 +++ arch/arm/plat-omap/include/plat/gpmc-smsc911x.h | 14 ++ 2 files changed, 67 insertions(+) diff --git a/arch

[PATCH 8/9] ARM: OMAP2+: board omap3evm: use gpmc driver

2012-06-11 Thread Afzal Mohammed
gpmc code has been converted to driver. Modify the board code to provide gpmc driver with required information Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/board-omap3evm.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach

[PATCH 9/9] ARM: OMAP2+: board omap3beagle: use gpmc driver

2012-06-11 Thread Afzal Mohammed
gpmc code has been converted to driver. Modify the board code to provide gpmc driver with required information Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/board-omap3beagle.c | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/arch/arm

[PATCH 6/9] ARM: OMAP2+: gpmc-smsc911x: Adapt to use gpmc driver

2012-06-11 Thread Afzal Mohammed
interface too. This is done so that driver conversion can be done gradually without breaking any. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc-smsc911x.c | 66 +++ arch/arm/plat-omap/include/plat/gpmc-smsc911x.h | 11 ++-- 2 files changed, 73

[PATCH 00/10] Prepare for GPMC driver conversion (w.r.t MTD)

2012-06-04 Thread Afzal Mohammed
://www.mail-archive.com/linux-omap@vger.kernel.org/msg69066.html Afzal Mohammed (10): ARM: OMAP2+: gpmc: update nand register helper ARM: OMAP2+: gpmc-nand: update gpmc-nand regs mtd: nand: omap2: handle nand on gpmc ARM: OMAP2+: gpmc-nand: update resource with memory ARM: OMAP2+: gpmc-onenand

[PATCH 01/10] ARM: OMAP2+: gpmc: update nand register helper

2012-06-04 Thread Afzal Mohammed
Provide helper function for updating NAND register details for the necessary chip select. NAND drivers platform data can be updated with this information so that NAND driver can handle GPMC NAND operations by itself. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c

[PATCH 02/10] ARM: OMAP2+: gpmc-nand: update gpmc-nand regs

2012-06-04 Thread Afzal Mohammed
GPMC has NAND registers, update nand platform data with those details so that NAND driver can configure those by itself instead of using exported symbols. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc-nand.c|2 ++ arch/arm/plat-omap/include/plat/nand.h

[PATCH 03/10] mtd: nand: omap2: handle nand on gpmc

2012-06-04 Thread Afzal Mohammed
as a single peripheral using multiple CS. This would make handling multiple CS issues easier. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/mtd/nand/omap2.c | 207 -- 1 file changed, 163 insertions(+), 44 deletions(-) diff --git a/drivers/mtd/nand

[PATCH 04/10] ARM: OMAP2+: gpmc-nand: update resource with memory

2012-06-04 Thread Afzal Mohammed
-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc-nand.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/gpmc-nand.c b/arch/arm/mach-omap2/gpmc-nand.c index d4e803c..c0320d2 100644 --- a/arch/arm/mach-omap2/gpmc-nand.c +++ b/arch/arm/mach

[PATCH 05/10] ARM: OMAP2+: gpmc-onenand: provide memory as resource

2012-06-04 Thread Afzal Mohammed
in onenand driver. This helps in smooth migration of gpmc to driver. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc-onenand.c | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/gpmc-onenand.c b/arch/arm/mach

[PATCH 06/10] mtd: nand: omap2: obtain memory from resource

2012-06-04 Thread Afzal Mohammed
gpmc initialization done by platform code now updates struct resource with the address space alloted for nand. Use this interface to obtain memory rather than relying on platform data field - phys_base. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/plat-omap/include/plat/nand.h |1

[PATCH 07/10] mtd: onenand: omap2: obtain memory from resource

2012-06-04 Thread Afzal Mohammed
gpmc initialization for onenand done by platform code now provides onenand address space as memory resource. Hence remove usage of gpmc_cs_request in onenand driver and obtain memory details from resource structure. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/mtd/onenand/omap2.c

[PATCH 08/10] ARM: OMAP2+: gpmc: Modify interrupt handling

2012-06-04 Thread Afzal Mohammed
this change) as the only user of GPMC interrupt is NAND. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c | 136 arch/arm/plat-omap/include/plat/gpmc.h |1 + 2 files changed, 120 insertions(+), 17 deletions(-) diff --git a/arch/arm

[PATCH 09/10] ARM: OMAP2+: gpmc-nand: Modify Interrupt handling

2012-06-04 Thread Afzal Mohammed
Now GPMC provides its client with interrupts that can be handled using the standard interrupt API. Modify GPMC NAND setup to work with it. Also disable write protect in GPMC code, so that NAND driver can be ignorant of GPMC configuration. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm

[PATCH 10/10] mtd: nand: omap2: use gpmc provided irqs

2012-06-04 Thread Afzal Mohammed
GPMC platform initialization provides it's clients with interrupts that can be used through struct resource. Make use of it for irq mode functionality. Also now write protect disable is done by GPMC, hence remove it. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/mtd/nand/omap2.c | 70

[PATCH 0/3] GPMC NAND isr using standard API

2012-05-15 Thread Afzal Mohammed
.html Afzal Mohammed (3): ARM: OMAP2+: gpmc: Modify interrupt handling ARM: OMAP2+: gpmc-nand: Modify Interrupt handling mtd: nand: omap2: use gpmc provided irqs arch/arm/mach-omap2/gpmc-nand.c| 28 +-- arch/arm/mach-omap2/gpmc.c | 137

[PATCH 1/3] ARM: OMAP2+: gpmc: Modify interrupt handling

2012-05-15 Thread Afzal Mohammed
this change) as the only user of GPMC interrupt is NAND. This helps in smooth migration of GPMC to driver. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c | 137 arch/arm/plat-omap/include/plat/gpmc.h |1 + 2 files changed, 121

[PATCH 2/3] ARM: OMAP2+: gpmc-nand: Modify Interrupt handling

2012-05-15 Thread Afzal Mohammed
-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc-nand.c | 28 ++-- 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-omap2/gpmc-nand.c b/arch/arm/mach-omap2/gpmc-nand.c index c0320d2..e58f450 100644 --- a/arch/arm/mach-omap2/gpmc

[PATCH 3/3] mtd: nand: omap2: use gpmc provided irqs

2012-05-15 Thread Afzal Mohammed
GPMC driver provides it's clients with interrupts that can be used through struct resource. Make use of it for irq mode functionality. Also now write protect disable is done by GPMC code, hence remove it. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/mtd/nand/omap2.c | 70

[PATCH 0/4] Provide GPMC memory to OMAP nand/onenand as resource

2012-05-14 Thread Afzal Mohammed
] http://marc.info/?l=linux-omapm=133675123118577w=2 [2] http://marc.info/?l=linux-omapm=133675123718579w=2 [3] http://marc.info/?l=linux-omapm=133675124818580w=2 Afzal Mohammed (4): ARM: OMAP2+: gpmc-nand: update resource with memory ARM: OMAP2+: gpmc-onenand: provide memory as resource mtd

[PATCH 1/4] ARM: OMAP2+: gpmc-nand: update resource with memory

2012-05-14 Thread Afzal Mohammed
-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc-nand.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/gpmc-nand.c b/arch/arm/mach-omap2/gpmc-nand.c index d4e803c..c0320d2 100644 --- a/arch/arm/mach-omap2/gpmc-nand.c +++ b/arch/arm/mach

[PATCH 2/4] ARM: OMAP2+: gpmc-onenand: provide memory as resource

2012-05-14 Thread Afzal Mohammed
in onenand driver. This helps in smooth migration of gpmc to driver. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc-onenand.c | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/gpmc-onenand.c b/arch/arm/mach

[PATCH 3/4] mtd: nand: omap2: obtain memory from resource

2012-05-14 Thread Afzal Mohammed
gpmc initialization done by platform code now updates struct resource with the address space alloted for nand. Use this interface to obtain memory rather than relying on platform data field - phys_base. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/plat-omap/include/plat/nand.h |1

[PATCH 4/4] mtd: onenand: omap2: obtain memory from resource

2012-05-14 Thread Afzal Mohammed
gpmc initialization for onenand done by platform code now provides onenand address space as memory resource. Hence remove usage of gpmc_cs_request in onenand driver and obtain memory details from resource structure. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/mtd/onenand/omap2.c

[PATCH 0/3] Handle GPMC-NAND registers by NAND driver

2012-05-11 Thread Afzal Mohammed
Hi, This series provides the ability for OMAP NAND driver to configure GPMC_NAND registers by NAND driver itself instead of using GPMC exported symbols. Regards Afzal Afzal Mohammed (3): ARM: OMAP2+: gpmc: update nand register helper ARM: OMAP2+: gpmc-nand: update gpmc-nand regs mtd: nand

[PATCH 1/3] ARM: OMAP2+: gpmc: update nand register helper

2012-05-11 Thread Afzal Mohammed
Provide helper function for updating NAND register details for the necessary chip select. NAND drivers platform data can be updated with this information so that NAND driver can handle GPMC NAND operations by itself. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c

[PATCH 2/3] ARM: OMAP2+: gpmc-nand: update gpmc-nand regs

2012-05-11 Thread Afzal Mohammed
GPMC has NAND registers, update nand platform data with those details so that NAND driver can configure those by itself instead of using exported symbols. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc-nand.c|2 ++ arch/arm/plat-omap/include/plat/nand.h

[PATCH 3/3] mtd: nand: omap2: handle nand on gpmc

2012-05-11 Thread Afzal Mohammed
using multiple CS. This would make handling multiple CS issues easier. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/mtd/nand/omap2.c | 207 -- 1 file changed, 163 insertions(+), 44 deletions(-) diff --git a/drivers/mtd/nand/omap2.c b/drivers

[PATCH] ARM: OMAP2/3: hwmod data: add gpmc

2012-05-08 Thread Afzal Mohammed
Add gpmc hwmod and associated interconnect data Signed-off-by: Afzal Mohammed af...@ti.com --- Hi Paul, This is patch 13/39 14/39 of v4 OMAP GPMC driver conversion series modified and squashed into one. Regards Afzal arch/arm/mach-omap2/omap_hwmod_2420_data.c | 18 ++ arch/arm

[PATCH v4-alt 0/6] GPMC driver migrate one

2012-05-02 Thread Afzal Mohammed
-kernel.git Regards Afzal Afzal Mohammed (6): ARM: OMAP2+: gpmc: driver conversion ARM: OMAP2+: gpmc: Adapt to HWMOD ARM: OMAP3: hwmod data: add gpmc ARM: OMAP2+: gpmc: driver migration hack ARM: OMAP2+: gpmc-smsc911x: Add helper for driver conversion ARM: OMAP2+: board omap3evm: gpmc

[PATCH v4-alt 1/6] ARM: OMAP2+: gpmc: driver conversion

2012-05-02 Thread Afzal Mohammed
with driver, former for calculation in platform code. Thanks to Vaibhav Hiremath Jonathan Hunter on their various good suggestions which resulted in improving the code. Cc: Vaibhav Hiremath hvaib...@ti.com Cc: Jon Hunter jon-hun...@ti.com Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2

[PATCH v4-alt 2/6] ARM: OMAP2+: gpmc: Adapt to HWMOD

2012-05-02 Thread Afzal Mohammed
Create API for platforms to adapt gpmc to HWMOD Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c | 52 +++- arch/arm/plat-omap/include/plat/gpmc.h |1 + 2 files changed, 38 insertions(+), 15 deletions(-) diff --git a/arch

[PATCH v4-alt 3/6] ARM: OMAP3: hwmod data: add gpmc

2012-05-02 Thread Afzal Mohammed
Add gpmc hwmod and associated interconnect data Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 52 1 file changed, 52 insertions(+) diff --git a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c b/arch/arm/mach-omap2

[PATCH v4-alt 4/6] ARM: OMAP2+: gpmc: driver migration hack

2012-05-02 Thread Afzal Mohammed
This has been made for migrating boards one by one so that old new interface can coexist. As a board is migrated to new interface, return from gpmc_driver_migration w/o doing anything; add a machine_is_ check for that board to return Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach

[PATCH v4-alt 5/6] ARM: OMAP2+: gpmc-smsc911x: Add helper for driver conversion

2012-05-02 Thread Afzal Mohammed
-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc-smsc911x.c | 70 +++ arch/arm/plat-omap/include/plat/gpmc-smsc911x.h |9 +++ 2 files changed, 79 insertions(+) diff --git a/arch/arm/mach-omap2/gpmc-smsc911x.c b/arch/arm/mach-omap2/gpmc-smsc911x.c

[PATCH v4-alt 6/6] ARM: OMAP2+: board omap3evm: gpmc driver adaptation

2012-05-02 Thread Afzal Mohammed
as the patch, ARM: OMAP2+: gpmc: driver migration hack Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/board-omap3evm.c | 14 +- arch/arm/mach-omap2/gpmc.c |3 +++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/board

[PATCH 00/39] OMAP GPMC driver conversion

2012-05-01 Thread Afzal Mohammed
Afzal Afzal Mohammed (38): ARM: OMAP2+: gpmc: driver conversion ARM: OMAP2+: gpmc: Adapt to HWMOD ARM: OMAP2+: gpmc: register details for nand driver ARM: OMAP2+: gpmc: Acquire NAND CS value ARM: OMAP2+: nand: create platform data structure ARM: OMAP2+: onenand: return value in init

[PATCH 02/39] ARM: OMAP2+: gpmc: Adapt to HWMOD

2012-05-01 Thread Afzal Mohammed
Create API for platforms to adapt gpmc to HWMOD Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c | 52 +++- arch/arm/plat-omap/include/plat/gpmc.h |1 + 2 files changed, 38 insertions(+), 15 deletions(-) diff --git a/arch

[PATCH 01/39] ARM: OMAP2+: gpmc: driver conversion

2012-05-01 Thread Afzal Mohammed
with driver, former for calculation in platform code. Thanks to Vaibhav Hiremath Jonathan Hunter on their various good suggestions which resulted in improving the code. Cc: Vaibhav Hiremath hvaib...@ti.com Cc: Jon Hunter jon-hun...@ti.com Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2

[PATCH 03/39] ARM: OMAP2+: gpmc: register details for nand driver

2012-05-01 Thread Afzal Mohammed
If peripheral connected is NAND, update NAND drivers platform data with NAND related register addresses so that NAND driver can handle GPMC NAND operations by itself Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c | 25 + arch/arm

[PATCH 04/39] ARM: OMAP2+: gpmc: Acquire NAND CS value

2012-05-01 Thread Afzal Mohammed
is not available, educate gpmc driver to acquire chip select value for NAND. this ideally should be removed once CS for those boards are available. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c | 32 +++- 1 file changed, 31 insertions(+), 1

[PATCH 05/39] ARM: OMAP2+: nand: create platform data structure

2012-05-01 Thread Afzal Mohammed
been removed. Acquiring CS is done in GPMC driver. To leverage this feature, pass CS # as any value outside the allowed range of 0 - 7 (this is valid only for connected NAND), eg. GPMC_CS_NUM (8) Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/board-devkit8000.c |6

[PATCH 06/39] ARM: OMAP2+: onenand: return value in init function

2012-05-01 Thread Afzal Mohammed
Modify board_onenand_init to return platform data. This would be required for boards to be able to pass it to gpmc driver so that it finally reaches onenand driver. Also un-static the function so that boards can use it. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/board

[PATCH 07/39] ARM: OMAP2+: gpmc-nand: Adapt to use gpmc driver

2012-05-01 Thread Afzal Mohammed
Currently gpmc is configured in platform for nand. As configuring gpmc has been moved to gpmc driver, populate details needed for the driver to configure gpmc. gpmc driver would configure based on this information. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc-nand.c

[PATCH 08/39] ARM: OMAP2+: gpmc-onenand: Adapt to use gpmc driver

2012-05-01 Thread Afzal Mohammed
Currently gpmc is configured in platform for onenand. As configuring gpmc has been moved to gpmc driver, populate details needed for the driver to configure gpmc. gpmc driver would configure based on this information. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc

<    1   2   3   4   5   6   7   >