public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Jagan Teki <jagannadh.teki@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [U-Boot, v2] sf: winbond: Add support for W25PXX SPI flash
Date: Tue, 28 May 2013 13:15:56 +0530	[thread overview]
Message-ID: <51A460B4.6050702@gmail.com> (raw)
In-Reply-To: <1369357789-27277-1-git-send-email-dantesu@gmail.com>

On 23-05-2013 20:39, Kuo-Jung Su wrote:
> From: Kuo-Jung Su <dantesu@faraday-tech.com>
>
> Add support for Winbond's W25PXX SPI flash.
> These devices is used on Faraday A369 evaluation board.
>
> Signed-off-by: Kuo-Jung Su <dantesu@faraday-tech.com>
> CC: Jagan Teki <jagannadh.teki@gmail.com>
> CC: Tom Rini <trini@ti.com>
>
> ---
> Changes for v2:
>     - Update commit message header
>     - Add commit message body
>
>   drivers/mtd/spi/winbond.c |   17 ++++++++++++++++-
>   1 file changed, 16 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/mtd/spi/winbond.c b/drivers/mtd/spi/winbond.c
> index 2716209..2a27837 100644
> --- a/drivers/mtd/spi/winbond.c
> +++ b/drivers/mtd/spi/winbond.c
> @@ -18,6 +18,21 @@ struct winbond_spi_flash_params {
>   
>   static const struct winbond_spi_flash_params winbond_spi_flash_table[] = {
>   	{
> +		.id			= 0x2014,
> +		.nr_blocks		= 16,
> +		.name			= "W25P80",
> +	},
> +	{
> +		.id			= 0x2015,
> +		.nr_blocks		= 32,
> +		.name			= "W25P16",
> +	},
> +	{
> +		.id			= 0x2016,
> +		.nr_blocks		= 64,
> +		.name			= "W25P32",
> +	},
> +	{
>   		.id			= 0x3013,
>   		.nr_blocks		= 8,
>   		.name			= "W25X40",
> @@ -104,7 +119,7 @@ struct spi_flash *spi_flash_probe_winbond(struct spi_slave *spi, u8 *idcode)
>   	}
>   
>   	flash->page_size = 256;
> -	flash->sector_size = 4096;
> +	flash->sector_size = (idcode[1] == 0x20) ? 65536 : 4096;
>   	flash->size = 4096 * 16 * params->nr_blocks;
>   
>   	return flash;
Applied to u-boot-spi/master

--
Thanks,
Jagan.

      parent reply	other threads:[~2013-05-28  7:45 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-26  8:02 [U-Boot] [PATCH] mtd: spi: winbond: add W25PXX support Kuo-Jung Su
2013-05-21 17:10 ` Jagan Teki
2013-05-22  1:01   ` Kuo-Jung Su
2013-05-23  8:27     ` Jagan Teki
2013-05-23  9:54       ` Kuo-Jung Su
2013-05-23 10:44         ` Jagan Teki
2013-05-24  0:57           ` Kuo-Jung Su
2013-05-24  1:09 ` [U-Boot] [PATCH v2] sf: winbond: Add support for W25PXX SPI flash Kuo-Jung Su
2013-05-25 18:22   ` Jagan Teki
2013-05-28  7:45   ` Jagan Teki [this message]

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=51A460B4.6050702@gmail.com \
    --to=jagannadh.teki@gmail.com \
    --cc=u-boot@lists.denx.de \
    /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