[PATCH v2 11/14] ARM: OMAP2+: gpmc: nand register helper bch update

2012-10-07 Thread Afzal Mohammed
Update helper function that provides gpmc-nand register details for nand driver with bch register information. Using this nand driver can be made self sufficient to handle remaining gpmc-nand operations by itself instead of relying on gpmc exported nand functions. Signed-off-by: Afzal Mohammed af

[PATCH v2 12/14] mtd: nand: omap: handle gpmc bch[48]

2012-10-07 Thread Afzal Mohammed
gpmc-nand bch registers are now available in driver, make use of it to handle bch[48] instead of relying on gpmc exported functions. And so nand driver no longer needs gpmc header, remove it. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/mtd/nand/omap2.c | 100

[PATCH v2 13/14] ARM: OMAP2+: gpmc: remove exported nand functions

2012-10-07 Thread Afzal Mohammed
nand driver handles gpmc-nand block fully, hence no more users for these exported nand functions, remove it. Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/gpmc.c | 432 - arch/arm/plat-omap/include/plat/gpmc.h | 31 --- 2 files

[PATCH v2 14/14] ARM: OMAP2+: gpmc: localize gpmc header

2012-10-07 Thread Afzal Mohammed
Requirement of gpmc header outside of mach-omap2 has been cutoff, move gpmc header file in plat-omap folder to local mach-omap2 folder Objective - common zImage participation of omap Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/board-2430sdp.c | 2 +- arch/arm

Re: [PATCH 0/4] OMAP-GPMC generic timing migration

2012-10-09 Thread Afzal Mohammed
Hi Tony, On Tuesday 09 October 2012 08:31 AM, Tony Lindgren wrote: * Afzal Mohammedaf...@ti.com [121005 09:02]: Proposed generic routine has been tested on OneNAND (async) on OMAP3EVM rev C (as mainline does not have the OneNAND support for this, local patch were used to test). For other

Re: [PATCH] ARM: OMAP2+: gpmc: Fix kernel BUG for DT boot mode

2012-10-10 Thread Afzal Mohammed
On Tuesday 09 October 2012 02:27 PM, Vaibhav Hiremath wrote: This patch adds of_have_populated_dt() check before creating Signed-off-by: Vaibhav Hiremathhvaib...@ti.com Cc: Afzal Mohammedaf...@ti.com Reviewed-by: Afzal Mohammed af...@ti.com -- To unsubscribe from this list: send the line

[PATCH] ARM: OMAP4: hwmod data: gpmc main clk

2012-10-14 Thread Afzal Mohammed
that the corresponding clock is dummy. Reported-by: Russell King rmk+ker...@arm.linux.org.uk Signed-off-by: Afzal Mohammed af...@ti.com --- arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c b/arch/arm/mach-omap2

[GIT PULL] OMAP-GPMC cleanup for common zImage

2012-10-15 Thread Afzal Mohammed
to 3ef5d0071cf6c8b9a00b559232bb700ad5d7: ARM: OMAP2+: gpmc: localize gpmc header (2012-10-15 14:42:15 +0530) gpmc cleanup for common ARM zImage Afzal Mohammed (16): ARM: OMAP2+: nand

[GIT PULL] OMAP-GPMC related cleanup for common zImage

2012-10-15 Thread Afzal Mohammed
to 3ef5d0071cf6c8b9a00b559232bb700ad5d7: ARM: OMAP2+: gpmc: localize gpmc header (2012-10-15 14:42:15 +0530) gpmc cleanup for common ARM zImage Afzal Mohammed (16): ARM: OMAP2+: nand

Re: [PATCH 0/4] OMAP-GPMC generic timing migration

2012-10-16 Thread Afzal Mohammed
Hi Tony, On Monday 15 October 2012 09:31 PM, Tony Lindgren wrote: * Mohammed, Afzalaf...@ti.com [121015 05:42]: On Thu, Oct 11, 2012 at 20:17:56, Tony Lindgren wrote: Yes, then please do a second pull request for what's needed to apply the minimal DT bindings. For the DT binding, let's

Re: [PATCH v2 00/14] OMAP-GPMC related cleanup for common zImage

2012-10-16 Thread Afzal Mohammed
Hi Ivan, On Tuesday 16 October 2012 11:36 PM, Tony Lindgren wrote: * Ivan Djelicivan.dje...@parrot.com [121010 09:40]: I ran several mtd regression tests on a Beagle Board on your gpmc-czimage-v2 tag. All BCH error correcting tests passed successfully. I occasionally had weird read

Re: [PATCH 0/4] OMAP-GPMC generic timing migration

2012-10-16 Thread Afzal Mohammed
Hi Tony, On Tuesday 16 October 2012 12:26 PM, Afzal Mohammed wrote: I certainly don't think it is easier, rather tougher, cleaner as well. One thing that worried me was, if we pursue the auxdata path (a last resort option) and later if it is objected, we would be back to square one. I

Re: [GIT PULL] OMAP-GPMC cleanup for common zImage

2012-10-17 Thread Afzal Mohammed
Hi Tony, On Wednesday 17 October 2012 03:27 AM, Tony Lindgren wrote: * Afzal Mohammedaf...@ti.com [121015 05:15]: The following changes since commit ddffeb8c4d0331609ef2581d84de4d763607bd37: Linux 3.7-rc1 (2012-10-14 14:41:04 -0700) are available in the git repository at:

Re: [PATCH 0/4] OMAP-GPMC generic timing migration

2012-10-17 Thread Afzal Mohammed
Hi Daniel, On Wednesday 17 October 2012 08:43 PM, Daniel Mack wrote: On 17.10.2012 07:42, Afzal Mohammed wrote: I doubt whether auxdata would help here, it seems using compatible field alone would help in deciding relevant custom timing routine. Whether we want this kind of peripheral

Re: [PATCH 0/4] OMAP-GPMC generic timing migration

2012-10-19 Thread Afzal Mohammed
Hi Daniel, On Thursday 11 October 2012 05:15 PM, Daniel Mack wrote: Could you tell me which patches I need on top of soon-to-be-3.7-rc1? I would like to augment this to make GPMC attached NAND probable in DT, in case this is still an open topic. In case you can help on making gpmc nand dt

Re: [PATCH v2 06/14] mtd: onenand: omap: use pdata info instead of cpu_is

2012-10-29 Thread Afzal Mohammed
On Friday 26 October 2012 10:11 PM, Tony Lindgren wrote: * Paul Walmsleyp...@pwsan.com [121025 22:05]: It also breaks an OMAP3+4 config: Fix below. Thanks, I'd like to pull this fix in too along with the others. Thanks Paul and Tony for taking care of this issue. I am sorry about the

Re: [PATCH] ARM: AM33xx: add support for reboot

2012-10-29 Thread Afzal Mohammed
Hi Daniel, On Monday 29 October 2012 12:49 AM, Daniel Mack wrote: Afzal, are you planning to resubmit this for mainline? My version can of course be disposed then. I am not planning to submit it as of now, and Vaibhav H has a better suggestion on this, you may co-ordinate with him. Regards

Re: [PATCH 4/4] OMAP: mtd: gpmc: add DT bindings for GPMC timings and NAND

2012-10-29 Thread Afzal Mohammed
Hi Daniel, On Thursday 25 October 2012 01:30 PM, Daniel Mack wrote: Hmm, that number is currently hard-coded in GPMC_CS_NUM. It would take some effort to make that dynamic but I agree that this would be a good thing to have. Afzal? It would be good to have (to the best of my knowledge am335x

Re: [PATCH 4/4] OMAP: mtd: gpmc: add DT bindings for GPMC timings and NAND

2012-10-29 Thread Afzal Mohammed
Hi Daniel, On Thursday 25 October 2012 05:01 AM, Daniel Mack wrote: Thanks for the review. I'll wait for feedback from Afzal next week and then repost. Wanted to see first if that goes in the right direction at all before bordering the DT people with binding details :) I was thinking of a

Re: [PATCH 4/4] OMAP: mtd: gpmc: add DT bindings for GPMC timings and NAND

2012-10-29 Thread Afzal Mohammed
Hi Daniel, On Monday 29 October 2012 04:45 PM, Daniel Mack wrote: On 29.10.2012 09:10, Afzal Mohammed wrote: Also perhaps memory size (and offset if needed) to be mapped for peripherals can go with reg property of child. Which detail are you referring to here? The only size property

Re: [PATCH 4/4] OMAP: mtd: gpmc: add DT bindings for GPMC timings and NAND

2012-10-29 Thread Afzal Mohammed
Hi Daniel, On Monday 29 October 2012 06:02 PM, Daniel Mack wrote: On 29.10.2012 12:28, Afzal Mohammed wrote: I was referring to that of child, now in gpmc_nand_init(), gpmc_cs_request() is being done, later on if we want to make it generic and remove gpmc_nand_init(), additional information

[PATCH 0/2] usb: musb: dsps: fixes for -rc

2012-10-31 Thread Afzal Mohammed
, further changes to handle control module registers for phy has to be made, they will be posted as a seperate series. Regards Afzal Afzal Mohammed (2): Revert usb: musb: dsps: remove explicit NOP device creation usb: musb: dsps: document dt bindings properly Documentation/devicetree/bindings

[PATCH 1/2] Revert usb: musb: dsps: remove explicit NOP device creation

2012-10-31 Thread Afzal Mohammed
. Hence revert it so that at least single instance can be supported. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/usb/musb/musb_dsps.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/musb/musb_dsps.c b/drivers/usb/musb/musb_dsps.c index 828d2a2..63128a3

[PATCH 2/2] usb: musb: dsps: document dt bindings properly

2012-10-31 Thread Afzal Mohammed
DT bindings normally use '-' (hyphens) instead of '_' (underscore), driver has it the proper way, but binding documentation does not reflect it, fix it. Signed-off-by: Afzal Mohammed af...@ti.com --- Documentation/devicetree/bindings/usb/am33xx-usb.txt | 8 1 file changed, 4 insertions

Re: [PATCH 1/3] usb: otg: nop: add dt support

2012-10-31 Thread Afzal Mohammed
Hi Balbi, On Thursday 27 September 2012 11:15 AM, Afzal Mohammed wrote: This series is made over over Balbi's usb master branch. It applies cleanly over musb branch too. Please ignore this series, a new series has been posted, usb: musb: dsps: fixes for -rc. Regards Afzal -- To unsubscribe

Re: [PATCH 0/2] usb: musb: dsps: fixes for -rc

2012-11-02 Thread Afzal Mohammed
Hi Balbi, On Wednesday 31 October 2012 07:54 PM, Afzal Mohammed wrote: This series contains a couple of fixes for musb dsps wrapper. First one restores capability to support at least one instance of musb. Without it, even a single instance can't be supported as change which is reverted

[PATCH 0/5] usb: musb: am335x support

2012-11-02 Thread Afzal Mohammed
driver itself requring a quirk in driver as well as DT or hwmod. Regards Afzal Afzal Mohammed (4): usb: musb: dsps: remove platform callback usb: musb: dsps: reduce musb instance to one usb: musb: dsps: get resources by index usb: musb: dsps: dt binding - add resources, example

[PATCH 1/5] usb: musb: dsps: remove platform callback

2012-11-02 Thread Afzal Mohammed
dsps wrapper is dt only, it cannot execute platform callbacks. Presence of this would cause NULL dereference, hence remove it. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/usb/musb/musb_dsps.c | 26 -- 1 file changed, 26 deletions(-) diff --git a/drivers/usb

[PATCH 2/5] usb: musb: dsps: reduce musb instance to one

2012-11-02 Thread Afzal Mohammed
of it. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/usb/musb/musb_dsps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/musb/musb_dsps.c b/drivers/usb/musb/musb_dsps.c index 2396bcd..524c003 100644 --- a/drivers/usb/musb/musb_dsps.c +++ b/drivers/usb/musb

[PATCH 3/5] usb: musb: dsps: get resources by index

2012-11-02 Thread Afzal Mohammed
dsps wrapper is now dt only. This requires that resources be obtained using index and not name, modify accordingly. Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/usb/musb/musb_dsps.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/usb/musb

[PATCH 4/5] usb: musb: dsps: dt binding - add resources, example

2012-11-02 Thread Afzal Mohammed
OMAP2+ family of devices are now obtaining resources via DT, earlier it was obtained from hwmod. Update binding document accrodingly, while at it add example. Signed-off-by: Afzal Mohammed af...@ti.com --- .../devicetree/bindings/usb/am33xx-usb.txt | 21 + 1 file

[PATCH 5/5] usb: musb: dsps: control module handling (quirk)

2012-11-02 Thread Afzal Mohammed
quirk to dsps wrapper] Signed-off-by: Santhapuri, Damodar damodar.santhap...@ti.com Signed-off-by: Ajay Kumar Gupta ajay.gu...@ti.com Signed-off-by: Ravi Babu ravib...@ti.com Signed-off-by: Afzal Mohammed af...@ti.com --- drivers/usb/musb/musb_dsps.c | 69

[PATCH] ARM: dts: AM33XX: Add usbss node

2012-11-04 Thread Afzal Mohammed
, Damodar damodar.santhap...@ti.com Signed-off-by: Ravi Babu ravib...@ti.com Signed-off-by: Afzal Mohammed af...@ti.com --- Hi Benoit, This is based on your for_3.8/dts branch. This is made on top of usb: musb: am335x support (http://marc.info/?l=linux-omapm=135187391904863w=2) and has been tested

[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] 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 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 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] 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 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 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 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

<    1   2   3   4   5   6   7   >