From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: Eric B??nard <eric@eukrea.com>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH 6/7] sama5d3xek: add NOR CFI support
Date: Mon, 9 Dec 2013 14:37:16 +0100 [thread overview]
Message-ID: <20131209133716.GM27628@ns203013.ovh.net> (raw)
In-Reply-To: <1386409020-11914-6-git-send-email-eric@eukrea.com>
On 10:36 Sat 07 Dec , Eric B??nard wrote:
> log is now :
> cfi_flash cfi_flash0: found cfi flash at 10000000, size 16777216
>
> Signed-off-by: Eric Bénard <eric@eukrea.com>
> ---
> arch/arm/boards/sama5d3xek/init.c | 35 +++++++++++++++++++++++++++++++++++
> 1 file changed, 35 insertions(+)
>
> diff --git a/arch/arm/boards/sama5d3xek/init.c b/arch/arm/boards/sama5d3xek/init.c
> index ff62550..f7dfea0 100644
> --- a/arch/arm/boards/sama5d3xek/init.c
> +++ b/arch/arm/boards/sama5d3xek/init.c
> @@ -118,6 +118,40 @@ static void ek_add_device_nand(void)
> static void ek_add_device_nand(void) {}
> #endif
>
> +#if defined(CONFIG_DRIVER_CFI)
> +static struct sama5_smc_config __initdata cm_nor_smc_config = {
drop the __initdata
> + .ncs_read_setup = 10,
> + .nrd_setup = 10,
> + .ncs_write_setup = 10,
> + .nwe_setup = 10,
> +
> + .ncs_read_pulse = 11,
> + .nrd_pulse = 11,
> + .ncs_write_pulse = 11,
> + .nwe_pulse = 11,
> +
> + .read_cycle = 22,
> + .write_cycle = 22,
> +
> + .mode = AT91_SMC_READMODE | AT91_SMC_WRITEMODE | AT91_SMC_DBW_16,
> + .tdf_cycles = 6,
> +};
> +
> +static void ek_add_device_norcfi(void)
> +{
> + struct clk *clk = clk_get(NULL, "smc_clk");
> +
> + clk_enable(clk);
> +
> + /* configure chip-select 0 (NOR) */
> + sama5_smc_configure(0, 0, &cm_nor_smc_config);
> +
> + add_cfi_flash_device(0, AT91_CHIPSELECT_0, 256 * 1024 * 1024, 0);
no put the right size or 0 for auto detect not 256MiB
Best Regards,
J.
> +}
> +#else
> +static void ek_add_device_norcfi(void) {}
> +#endif
> +
> #if defined(CONFIG_DRIVER_NET_MACB)
> static struct macb_platform_data gmac_pdata = {
> .phy_interface = PHY_INTERFACE_MODE_RGMII,
> @@ -413,6 +447,7 @@ static int at91sama5d3xek_devices_init(void)
> ek_add_device_w1();
> ek_add_device_hdmi();
> ek_add_device_nand();
> + ek_add_device_norcfi();
> ek_add_led();
> ek_add_device_eth();
> ek_add_device_spi();
> --
> 1.8.3.1
>
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2013-12-09 13:37 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-07 9:36 [PATCH 1/7] atmel_nand: check gpio validity before using it Eric Bénard
2013-12-07 9:36 ` [PATCH 2/7] at91: introduce sama5d3's SMC support Eric Bénard
2013-12-09 13:27 ` Jean-Christophe PLAGNIOL-VILLARD
2013-12-12 8:51 ` Sascha Hauer
2013-12-12 9:53 ` Eric Bénard
2013-12-07 9:36 ` [PATCH 3/7] at91: sama5d3: use the sama5 smc instead of the sam9 one Eric Bénard
2013-12-09 13:28 ` Jean-Christophe PLAGNIOL-VILLARD
2013-12-07 9:36 ` [PATCH 4/7] sama5d3xek: update nand timings Eric Bénard
2013-12-07 9:36 ` [PATCH 5/7] atmel_nand: make chip_delay configurable Eric Bénard
2013-12-09 13:30 ` Jean-Christophe PLAGNIOL-VILLARD
2013-12-09 14:54 ` Eric Bénard
2013-12-09 16:32 ` Jean-Christophe PLAGNIOL-VILLARD
2013-12-09 16:57 ` Eric Bénard
2013-12-09 17:15 ` Eric Bénard
2013-12-10 7:25 ` Sascha Hauer
2013-12-07 9:36 ` [PATCH 6/7] sama5d3xek: add NOR CFI support Eric Bénard
2013-12-09 13:37 ` Jean-Christophe PLAGNIOL-VILLARD [this message]
2013-12-12 8:57 ` Sascha Hauer
2013-12-12 9:52 ` Eric Bénard
2013-12-07 9:37 ` [PATCH 7/7] samsa5d3xek: update defconfig Eric Bénard
2013-12-09 13:31 ` Jean-Christophe PLAGNIOL-VILLARD
2013-12-09 14:53 ` Eric Bénard
2013-12-09 16:33 ` Jean-Christophe PLAGNIOL-VILLARD
2013-12-09 16:48 ` Alexander Aring
2013-12-09 8:36 ` [PATCH 1/7] atmel_nand: check gpio validity before using it Sascha Hauer
2013-12-09 13:31 ` Jean-Christophe PLAGNIOL-VILLARD
2013-12-09 13:34 ` Jean-Christophe PLAGNIOL-VILLARD
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=20131209133716.GM27628@ns203013.ovh.net \
--to=plagnioj@jcrosoft.com \
--cc=barebox@lists.infradead.org \
--cc=eric@eukrea.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