public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] onenand_init: Allow disabling sync read and write based on flags, v2 (Re: [PATCH 1/4] onenand init: Rename board-n800-flash.c to gpmc-onenand.c)
@ 2009-05-05  5:52 vimal singh
  2009-05-05 17:00 ` Tony Lindgren
  0 siblings, 1 reply; 5+ messages in thread
From: vimal singh @ 2009-05-05  5:52 UTC (permalink / raw)
  To: Tony Lindgren; +Cc: dedekind, linux-omap, adrian.hunter, Tony Lindgren



On Mon, May 4, 2009 at 9:29 PM, Tony Lindgren <tony@atomide.com> wrote:
> * vimal singh <vimalsingh@ti.com> [090503 22:36]:
>>
>>
>> On Fri, May 1, 2009 at 11:08 PM, Tony Lindgren <tony@atomide.com> wrote:
>> > * Tony Lindgren <tony@atomide.com> [090430 11:56]:
>> >> * Tony Lindgren <tony@atomide.com> [090430 07:06]:
>> >> > * vimal singh <vimalsingh@ti.com> [090429 23:33]:
>> >> > > 'gpmc-onenand.c' is still confusing name. This is not going to used in
>> >> > > all boards anyway.
>> >> >
>> >> > Why do you think this cannot be used for all boards?
>> >> >
>> >> > The GPMC timings are totally based on the onenand chip features.
>> >>
>> >> And these two patches make omap3430sdp to work with the gpmc-onenand
>> >> code. Sync mode does not work, but it seems like it was never enabled
>> >> for sdp anyways.
>> >>
>> >> Similar patch should work for other boards too.
>> >
>> > Setting the sync_write depends on flags and processor, not just flags.
>> > Here's a fixed version of this patch.
>> OK, these both patches seems good to me...
>
> OK, thanks for looking.
>
>> Earlier I was in impression that this patch series is basically to remove
>> board-*-flash.c files. Since in 3430sdp boards we find out 'CS' number for
>> flash devices dynamically in different versions of boards. So, I was confused.
>
> Well looks like those functions are used for at least few boards, so we could
> have functions like gpmc_probe_onenand() and gpmc_probe_nor() functions that
> could be called from board-*.c files.
>
> That way we could have generic gpmc-onenand.c and gpmc-nor.c, and still do
> the necessary probe logic in the board-*.c files.
But then how we'll be taking care of timing parameter configuration, for
different chips (part numbers), as some of these parts may vary in timing
specifications, and also for different working frequencies.
And if we are going to put those information in board-*.c, then rather I will
prefer separate board-*-flash.c file to handle all this.

---
Regards,
\/ | |\/| /-\ |_



^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: [PATCH] onenand_init: Allow disabling sync read and write based on flags, v2 (Re: [PATCH 1/4] onenand init: Rename board-n800-flash.c to gpmc-onenand.c)
@ 2009-05-04  5:36 vimal singh
  2009-05-04 15:59 ` Tony Lindgren
  0 siblings, 1 reply; 5+ messages in thread
From: vimal singh @ 2009-05-04  5:36 UTC (permalink / raw)
  To: Tony Lindgren; +Cc: dedekind, linux-omap, adrian.hunter, Tony Lindgren



On Fri, May 1, 2009 at 11:08 PM, Tony Lindgren <tony@atomide.com> wrote:
> * Tony Lindgren <tony@atomide.com> [090430 11:56]:
>> * Tony Lindgren <tony@atomide.com> [090430 07:06]:
>> > * vimal singh <vimalsingh@ti.com> [090429 23:33]:
>> > > 'gpmc-onenand.c' is still confusing name. This is not going to used in
>> > > all boards anyway.
>> >
>> > Why do you think this cannot be used for all boards?
>> >
>> > The GPMC timings are totally based on the onenand chip features.
>>
>> And these two patches make omap3430sdp to work with the gpmc-onenand
>> code. Sync mode does not work, but it seems like it was never enabled
>> for sdp anyways.
>>
>> Similar patch should work for other boards too.
>
> Setting the sync_write depends on flags and processor, not just flags.
> Here's a fixed version of this patch.
OK, these both patches seems good to me...
Earlier I was in impression that this patch series is basically to remove
board-*-flash.c files. Since in 3430sdp boards we find out 'CS' number for
flash devices dynamically in different versions of boards. So, I was confused.

> Tony
>


---
Regards,
\/ | |\/| /-\ |_




^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: [PATCH 1/4] onenand init: Rename board-n800-flash.c to gpmc-onenand.c
@ 2009-04-30  6:33 vimal singh
  2009-04-30 14:03 ` Tony Lindgren
  0 siblings, 1 reply; 5+ messages in thread
From: vimal singh @ 2009-04-30  6:33 UTC (permalink / raw)
  To: Tony Lindgren; +Cc: dedekind, linux-omap, adrian.hunter, Tony Lindgren

'gpmc-onenand.c' is still confusing name. This is not going to used in
all boards anyway.


On Thu, Apr 30, 2009 at 3:20 AM, Tony Lindgren <tony@atomide.com> wrote:
> Rename board-n800-flash.c to gpmc-onenand.c.
>
> Signed-off-by: Tony Lindgren <tony@atommide.com>
> ---
>  arch/arm/mach-omap2/Makefile           |    4 ++--
>  arch/arm/mach-omap2/gpmc-onenand.c     |    0
>  2 files changed, 2 insertions(+), 2 deletions(-)
>  rename arch/arm/mach-omap2/{board-n800-flash.c => gpmc-onenand.c} (100%)
>
> diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile
> index 76acefa..9127a94 100644
> --- a/arch/arm/mach-omap2/Makefile
> +++ b/arch/arm/mach-omap2/Makefile
> @@ -55,14 +55,14 @@ obj-$(CONFIG_MACH_OMAP_LDP)         += board-ldp.o \
>  obj-$(CONFIG_MACH_OMAP_APOLLON)                += board-apollon.o \
>                                           board-apollon-mmc.o  \
>                                           board-apollon-keys.o
> -obj-$(CONFIG_MACH_NOKIA_N800)          += board-n800.o board-n800-flash.o \
> +obj-$(CONFIG_MACH_NOKIA_N800)          += board-n800.o gpmc-onenand.o \
>                                           board-n800-mmc.o board-n800-bt.o \
>                                           board-n800-usb.o \
>                                           board-n800-dsp.o \
>                                           board-n800-camera.o
>  obj-$(CONFIG_MACH_NOKIA_N810)          += board-n810.o
>  obj-$(CONFIG_MACH_NOKIA_RX51)          += board-rx51.o \
> -                                          board-n800-flash.o \
> +                                          gpmc-onenand.o \
>                                           board-rx51-flash.o \
>                                           board-rx51-sdram.o \
>                                           board-rx51-video.o \
> diff --git a/arch/arm/mach-omap2/board-n800-flash.c
b/arch/arm/mach-omap2/gpmc-onenand.c
> similarity index 100%
> rename from arch/arm/mach-omap2/board-n800-flash.c
> rename to arch/arm/mach-omap2/gpmc-onenand.c
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>



-- 
---
Regards,
\/ | |\/| /-\ |_



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-05-05 17:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-05  5:52 [PATCH] onenand_init: Allow disabling sync read and write based on flags, v2 (Re: [PATCH 1/4] onenand init: Rename board-n800-flash.c to gpmc-onenand.c) vimal singh
2009-05-05 17:00 ` Tony Lindgren
  -- strict thread matches above, loose matches on Subject: below --
2009-05-04  5:36 vimal singh
2009-05-04 15:59 ` Tony Lindgren
2009-04-30  6:33 [PATCH 1/4] onenand init: Rename board-n800-flash.c to gpmc-onenand.c vimal singh
2009-04-30 14:03 ` Tony Lindgren
2009-04-30 18:53   ` [PATCH] onenand_init: Allow disabling sync read and write based on flags (Re: [PATCH 1/4] onenand init: Rename board-n800-flash.c to gpmc-onenand.c) Tony Lindgren
2009-05-01 17:38     ` [PATCH] onenand_init: Allow disabling sync read and write based on flags, v2 " Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox