summaryrefslogtreecommitdiffstats
path: root/include/dm
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-10-13 23:41:52 -0600
committerSimon Glass <sjg@chromium.org>2014-10-22 10:36:46 -0600
commitd7af6a485126a0d08a0a9a56721e42a3e78b5b53 (patch)
tree6c31c5333a8f0bb2b1e36b2321da29619b6e471f /include/dm
parent547cea19b875ce83cc7c14ae750eca4973dab555 (diff)
downloadtalos-obmc-uboot-d7af6a485126a0d08a0a9a56721e42a3e78b5b53.tar.gz
talos-obmc-uboot-d7af6a485126a0d08a0a9a56721e42a3e78b5b53.zip
dm: spi: Add a uclass for SPI
Add a uclass which provides access to SPI buses and includes operations required by SPI. For a time driver model will need to co-exist with the legacy SPI interface so some parts of the header file are changed depending on which is in use. The exports are adjusted also since some functions are not available with driver model. Boards must define CONFIG_DM_SPI to use driver model for SPI. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com> (Discussed some follow-up comments which will address in future add-ons)
Diffstat (limited to 'include/dm')
-rw-r--r--include/dm/uclass-id.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/dm/uclass-id.h b/include/dm/uclass-id.h
index 7f0e37b7b7..0afdc75386 100644
--- a/include/dm/uclass-id.h
+++ b/include/dm/uclass-id.h
@@ -22,6 +22,8 @@ enum uclass_id {
/* U-Boot uclasses start here */
UCLASS_GPIO, /* Bank of general-purpose I/O pins */
UCLASS_SERIAL, /* Serial UART */
+ UCLASS_SPI, /* SPI bus */
+ UCLASS_SPI_GENERIC, /* Generic SPI flash target */
UCLASS_COUNT,
UCLASS_INVALID = -1,
OpenPOWER on IntegriCloud