[U-Boot] [PATCH 10/16] configs: Get rid of SPI_FLASH_BAR

Boris Brezillon boris.brezillon at bootlin.com
Wed Dec 12 20:51:39 UTC 2018


On Thu, 13 Dec 2018 02:11:48 +0530
Jagan Teki <jagan at amarulasolutions.com> wrote:

> On Wed, Dec 12, 2018 at 11:15 PM Vignesh R <vigneshr at ti.com> wrote:
> >
> > Now that we have new SPI NOR framework in place that supports 4 byte
> > addressing mode by default, get rid of CONFIG_SPI_FLASH_BAR  
> 
> I already mentioned in previous mail, BAR is not exact replacement for
> 4-byte. Some controllers do handle > 16MB flashes even-though
> controller support 3-byte addressing. we have these board since from
> 2014.

That's something you should be able to detect with
spi_mem_supports_op(). If the controller does not support sending
4 byte addresses, it should return -ENOTSUPP and the framework should
fallback to BAR setting (if the NOR supports it). Do we really need a
config option for that?


More information about the U-Boot mailing list