From: Jagan Teki <jagannadh.teki@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 4/4] sf: Warn to use BAR for > 16MiB flashes
Date: Sun, 23 Jun 2013 23:35:59 +0530 [thread overview]
Message-ID: <51C73907.3040502@gmail.com> (raw)
In-Reply-To: <6c6c7fdd-c900-4e88-8499-bf2306cff53c@CH1EHSMHS029.ehs.local>
On 21-06-2013 19:19, Jagannadha Sutradharudu Teki wrote:
> From: Jagannadha Sutradharudu Teki <jagannadha.sutradharudu-teki@xilinx.com>
>
> Warning for > 16MiB flashes to #define CONFIG_SPI_FLASH_BAR
>
> Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
> ---
> Changes for v3:
> -
> Changes for v2:
> -
>
> drivers/mtd/spi/spi_flash.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/drivers/mtd/spi/spi_flash.c b/drivers/mtd/spi/spi_flash.c
> index 51142d8..a468208 100644
> --- a/drivers/mtd/spi/spi_flash.c
> +++ b/drivers/mtd/spi/spi_flash.c
> @@ -557,6 +557,12 @@ struct spi_flash *spi_flash_probe(unsigned int bus, unsigned int cs,
> if (flash->memory_map)
> printf(", mapped at %p", flash->memory_map);
> puts("\n");
> +#ifndef CONFIG_SPI_FLASH_BAR
> + if (flash->size > SPI_FLASH_16MB_BOUN) {
> + puts("SF: Warning - Only lower 16MiB accessible,");
> + puts(" Full access #define CONFIG_SPI_FLASH_BAR\n");
> + }
> +#endif
>
> spi_release_bus(spi);
>
>
Applied to u-boot-spi/master
--
Thanks,
Jagan.
prev parent reply other threads:[~2013-06-23 18:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1371822543-7929-1-git-send-email-jaganna@xilinx.com>
2013-06-21 13:49 ` [U-Boot] [PATCH v3 2/4] sf: Place the sf calls in proper order Jagannadha Sutradharudu Teki
2013-06-23 18:05 ` Jagan Teki
2013-06-21 13:49 ` [U-Boot] [PATCH v3 3/4] sf: Add debug messages on spi_flash_read_common Jagannadha Sutradharudu Teki
2013-06-23 18:05 ` Jagan Teki
2013-06-21 13:49 ` [U-Boot] [PATCH v3 4/4] sf: Warn to use BAR for > 16MiB flashes Jagannadha Sutradharudu Teki
2013-06-23 18:05 ` 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=51C73907.3040502@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.