[U-Boot] [PATCH v4 19/29] dm: sf: Add a uclass for SPI flash
Simon Glass
sjg at chromium.org
Thu Oct 23 05:04:33 CEST 2014
On 13 October 2014 23:42, Simon Glass <sjg at chromium.org> wrote:
> Add a driver model uclass for SPI flash which supports the common
> operations (read, write, erase). Since we must keep support for the
> non-dm interface, some modification of the spi_flash header is required.
>
> CONFIG_DM_SPI_FLASH is used to enable driver model for SPI flash.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki at gmail.com>
> ---
>
> Changes in v4: None
> Changes in v3: None
> Changes in v2: None
>
> drivers/mtd/spi/Makefile | 7 ++++-
> drivers/mtd/spi/sf-uclass.c | 63 ++++++++++++++++++++++++++++++++++++++++
> include/dm/uclass-id.h | 1 +
> include/spi_flash.h | 70 +++++++++++++++++++++++++++++++++++++++++++++
> 4 files changed, 140 insertions(+), 1 deletion(-)
> create mode 100644 drivers/mtd/spi/sf-uclass.c
>
Applied to u-boot-dm/master.
More information about the U-Boot
mailing list