[U-Boot] [PATCH v4 06/29] dm: sandbox: Add a SPI emulation uclass
Simon Glass
sjg at chromium.org
Thu Oct 23 05:03:24 CEST 2014
On 13 October 2014 23:41, Simon Glass <sjg at chromium.org> wrote:
> U-Boot includes a SPI emulation driver already but it is not explicit, and
> is hidden in the SPI flash code.
>
> Conceptually with sandbox's SPI implementation we have a layer which
> creates SPI bus transitions and a layer which interprets them, currently
> only for SPI flash. The latter is actually an emulation, and it should be
> possible to add more than one emulation - not just SPI flash.
>
> Add a SPI emulation uclass so that other emulations can be plugged in to
> support different types of emulated devices on difference buses/chip
> selects.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki at gmail.com>
> ---
>
> Changes in v4: None
> Changes in v3:
> - Add a function comment for sandbox_spi_get_emul()
>
> Changes in v2:
> - Fix comment on 'slave' parameter to match the parameter name
>
> drivers/spi/Makefile | 1 +
> drivers/spi/spi-emul-uclass.c | 15 +++++++++++++++
> include/dm/uclass-id.h | 1 +
> include/spi.h | 45 +++++++++++++++++++++++++++++++++++++++++++
> 4 files changed, 62 insertions(+)
Applied to u-boot-dm/master.
More information about the U-Boot
mailing list