[U-Boot] [PATCH v3 4/4] sf: Warn to use BAR for > 16MiB flashes

Jagan Teki jagannadh.teki at gmail.com
Sun Jun 23 20:05:59 CEST 2013


On 21-06-2013 19:19, Jagannadha Sutradharudu Teki wrote:
> From: Jagannadha Sutradharudu Teki <jagannadha.sutradharudu-teki at xilinx.com>
>
> Warning for > 16MiB flashes to #define CONFIG_SPI_FLASH_BAR
>
> Signed-off-by: Jagannadha Sutradharudu Teki <jaganna at 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.


More information about the U-Boot mailing list