X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=drivers%2Fmtd%2Fspi%2Fsf.c;h=664e86082b19c95e08a68f1443f1efd18f89d5ca;hb=843c9e8796a7a6ebe0c9dec54c6a64ac29949d8f;hp=ddbdda0dc2992310e0f724c7445c982ba85d5fec;hpb=968294bd7b9b540f53c1fb3c809da464623a4362;p=u-boot diff --git a/drivers/mtd/spi/sf.c b/drivers/mtd/spi/sf.c index ddbdda0dc2..664e86082b 100644 --- a/drivers/mtd/spi/sf.c +++ b/drivers/mtd/spi/sf.c @@ -4,7 +4,7 @@ * Copyright (C) 2008 Atmel Corporation * Copyright (C) 2010 Reinhard Meyer, EMK Elektronik * - * Licensed under the GPL-2 or later. + * SPDX-License-Identifier: GPL-2.0+ */ #include @@ -18,6 +18,10 @@ static int spi_flash_read_write(struct spi_slave *spi, unsigned long flags = SPI_XFER_BEGIN; int ret; +#ifdef CONFIG_SF_DUAL_FLASH + if (spi->flags & SPI_XFER_U_PAGE) + flags |= SPI_XFER_U_PAGE; +#endif if (data_len == 0) flags |= SPI_XFER_END;