From: Jon Hunter <jon-hunter@ti.com>
To: Matthieu CASTET <matthieu.castet@parrot.com>
Cc: linux-omap@vger.kernel.org, linux-mtd@lists.infradead.org,
dedekind1@gmail.com
Subject: Re: [PATCH 1/3] omap gpmc : add support of setting CYCLE2CYCLEDELAY and BUSTURNAROUND
Date: Tue, 6 Nov 2012 11:23:22 -0600 [thread overview]
Message-ID: <5099478A.50901@ti.com> (raw)
In-Reply-To: <1352220277-4251-1-git-send-email-matthieu.castet@parrot.com>
On 11/06/2012 10:44 AM, Matthieu CASTET wrote:
> Signed-off-by: Matthieu CASTET <matthieu.castet@parrot.com>
I think you need to have something in the changelog for the patch
describing why this change is needed and what device this has been
tested on.
> ---
> arch/arm/mach-omap2/gpmc.c | 7 ++++++-
> arch/arm/plat-omap/include/plat/gpmc.h | 2 ++
> 2 files changed, 8 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c
> index 8ab1e1b..3957ffc 100644
> --- a/arch/arm/mach-omap2/gpmc.c
> +++ b/arch/arm/mach-omap2/gpmc.c
> @@ -333,8 +333,13 @@ int gpmc_cs_set_timings(int cs, const struct gpmc_timings *t)
>
> if (gpmc_capability & GPMC_HAS_WR_DATA_MUX_BUS)
> GPMC_SET_ONE(GPMC_CS_CONFIG6, 16, 19, wr_data_mux_bus);
> - if (gpmc_capability & GPMC_HAS_WR_ACCESS)
> + if (gpmc_capability & GPMC_HAS_WR_ACCESS) {
> + /* XXX check on which hardware it is supported */
I understand that you may not have all the documentation but lets fix
this now.
> + GPMC_SET_ONE(GPMC_CS_CONFIG6, 0, 3, busturnaround);
> + GPMC_SET_ONE(GPMC_CS_CONFIG6, 8, 11, cycle2cycledelay);
Looking at the documentation for OMAP2420, OMAP3430, OMAP4430 and
OMAP5430, the above fields are present and same size location for all
OMAP devices. So this does not need to be done under the HAS_WR_ACCESS
field test. In fact, I believe that Afzal was going to add these fields
in a patch and was doing it for all devices [1].
> GPMC_SET_ONE(GPMC_CS_CONFIG6, 24, 28, wr_access);
> + }
>
> /* caller is expected to have initialized CONFIG1 to cover
> * at least sync vs async
> diff --git a/arch/arm/plat-omap/include/plat/gpmc.h b/arch/arm/plat-omap/include/plat/gpmc.h
> index 2e6e259..34ca454 100644
> --- a/arch/arm/plat-omap/include/plat/gpmc.h
> +++ b/arch/arm/plat-omap/include/plat/gpmc.h
> @@ -131,6 +131,8 @@ struct gpmc_timings {
> /* The following are only on OMAP3430 */
> u16 wr_access; /* WRACCESSTIME */
> u16 wr_data_mux_bus; /* WRDATAONADMUXBUS */
> + u16 cycle2cycledelay; /* CYCLE2CYCLEDELAY */
> + u16 busturnaround; /* BUSTURNAROUND */
So you should be able to move these out of OMAP3430 specific as they are
generic.
Cheers
Jon
[1] http://marc.info/?l=linux-omap&m=134037095705900&w=2
next prev parent reply other threads:[~2012-11-06 17:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-06 16:44 [PATCH 1/3] omap gpmc : add support of setting CYCLE2CYCLEDELAY and BUSTURNAROUND Matthieu CASTET
2012-11-06 16:44 ` [PATCH 2/3] mtd nand : get timings from onfi Matthieu CASTET
2012-11-06 16:44 ` [PATCH 3/3] omap nand : use onfi mode to compute optimized timings Matthieu CASTET
2012-11-06 17:23 ` Jon Hunter [this message]
2012-11-06 18:00 ` [PATCH 1/3] omap gpmc : add support of setting CYCLE2CYCLEDELAY and BUSTURNAROUND Matthieu CASTET
2012-11-06 20:34 ` Jon Hunter
2012-11-07 8:58 ` Mohammed, Afzal
2012-11-07 21:40 ` Tony Lindgren
2012-11-08 12:54 ` Mohammed, Afzal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5099478A.50901@ti.com \
--to=jon-hunter@ti.com \
--cc=dedekind1@gmail.com \
--cc=linux-mtd@lists.infradead.org \
--cc=linux-omap@vger.kernel.org \
--cc=matthieu.castet@parrot.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox