commit | d6eedf7fbcb6ab1982e69f3ea3ab671bfb835026 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Mon Oct 13 23:42:06 2014 -0600 |
committer | Simon Glass <sjg@chromium.org> | Wed Oct 22 10:36:50 2014 -0600 |
tree | e144692e3657ecd26f77c19dab4f90312b75d3e1 | |
parent | c10c3d4811c3c4ce9380df4b153740743ecf4e1d [diff] |
dm: sf: Add a uclass for SPI flash 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@chromium.org> Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>