summaryrefslogtreecommitdiffstats
path: root/include/dm
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-10-13 23:42:06 -0600
committerSimon Glass <sjg@chromium.org>2014-10-22 10:36:50 -0600
commit4c2dbefde58917205af51a2c20b3069e01e55cf4 (patch)
treee144692e3657ecd26f77c19dab4f90312b75d3e1 /include/dm
parentae242cbfd0fc2b9e791688b3d9d6a19900ff3d31 (diff)
downloadtalos-obmc-uboot-4c2dbefde58917205af51a2c20b3069e01e55cf4.tar.gz
talos-obmc-uboot-4c2dbefde58917205af51a2c20b3069e01e55cf4.zip
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')
-rw-r--r--include/dm/uclass-id.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/dm/uclass-id.h b/include/dm/uclass-id.h
index 6e5638208b..c92adb4df9 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,
OpenPOWER on IntegriCloud