On 13 October 2014 23:41, Simon Glass <s...@chromium.org> wrote: > 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 <s...@chromium.org> > Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.t...@gmail.com> > (Discussed some follow-up comments which will address in future add-ons) > > --- > > Changes in v4: None > Changes in v3: > - Add a cs_info() method to the driver model SPI API > - Add a uclass for a generic SPI device (for use with the 'sspi' command) > - Add missing comments to spi.h > - Correct typo where 'slave' should say 'bus' > - Fix two comment typos > - Put the cs member back into spi_slave > - Use an explicit chip select value instead of reusing device sequence number > > Changes in v2: > - Add missing comments for struct spi_slave > - Fix code nits from Daniel Schwierzeck > - Use 'bus' instead of 'dev' to make the API clearer > > common/exports.c | 4 +- > drivers/spi/Makefile | 4 + > drivers/spi/spi-uclass.c | 390 > +++++++++++++++++++++++++++++++++++++++++++++++ > include/dm/uclass-id.h | 2 + > include/spi.h | 254 +++++++++++++++++++++++++++++- > 5 files changed, 650 insertions(+), 4 deletions(-) > create mode 100644 drivers/spi/spi-uclass.c >
Applied to u-boot-dm/master. _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot