diff options
author | Simon Glass <sjg@chromium.org> | 2014-10-13 23:42:06 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2014-10-22 10:36:50 -0600 |
commit | 4c2dbefde58917205af51a2c20b3069e01e55cf4 (patch) | |
tree | e144692e3657ecd26f77c19dab4f90312b75d3e1 /include/dm/uclass-id.h | |
parent | ae242cbfd0fc2b9e791688b3d9d6a19900ff3d31 (diff) | |
download | u-boot-imx-4c2dbefde58917205af51a2c20b3069e01e55cf4.zip u-boot-imx-4c2dbefde58917205af51a2c20b3069e01e55cf4.tar.gz u-boot-imx-4c2dbefde58917205af51a2c20b3069e01e55cf4.tar.bz2 |
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>
Diffstat (limited to 'include/dm/uclass-id.h')
-rw-r--r-- | include/dm/uclass-id.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/dm/uclass-id.h b/include/dm/uclass-id.h index 6e56382..c92adb4 100644 --- a/include/dm/uclass-id.h +++ b/include/dm/uclass-id.h @@ -25,6 +25,7 @@ enum uclass_id { UCLASS_SERIAL, /* Serial UART */ UCLASS_SPI, /* SPI bus */ UCLASS_SPI_GENERIC, /* Generic SPI flash target */ + UCLASS_SPI_FLASH, /* SPI flash */ UCLASS_COUNT, UCLASS_INVALID = -1, |