]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: spi: Add a uclass for SPI
authorSimon Glass <sjg@chromium.org>
Tue, 14 Oct 2014 05:41:52 +0000 (23:41 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 22 Oct 2014 16:36:46 +0000 (10:36 -0600)
commitd7af6a485126a0d08a0a9a56721e42a3e78b5b53
tree6c31c5333a8f0bb2b1e36b2321da29619b6e471f
parent547cea19b875ce83cc7c14ae750eca4973dab555
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)
common/exports.c
drivers/spi/Makefile
drivers/spi/spi-uclass.c [new file with mode: 0644]
include/dm/uclass-id.h
include/spi.h