All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Glass <sjg@chromium.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 30/31] sandbox: Add implementation of spi_setup_slave_fdt()
Date: Thu, 27 Feb 2014 13:26:24 -0700	[thread overview]
Message-ID: <1393532785-9020-31-git-send-email-sjg@chromium.org> (raw)
In-Reply-To: <1393532785-9020-1-git-send-email-sjg@chromium.org>

This function is needed when CONFIG_OF_SPI is defined.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

Changes in v2: None

 drivers/spi/sandbox_spi.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/drivers/spi/sandbox_spi.c b/drivers/spi/sandbox_spi.c
index 7895305..12e9bda 100644
--- a/drivers/spi/sandbox_spi.c
+++ b/drivers/spi/sandbox_spi.c
@@ -202,3 +202,16 @@ int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout,
 
 	return ret;
 }
+
+/**
+ * Set up a new SPI slave for an fdt node
+ *
+ * @param blob		Device tree blob
+ * @param node		SPI peripheral node to use
+ * @return 0 if ok, -1 on error
+ */
+struct spi_slave *spi_setup_slave_fdt(const void *blob, int slave_node,
+				      int spi_node)
+{
+	return NULL;
+}
-- 
1.9.0.279.gdc9e3eb

  parent reply	other threads:[~2014-02-27 20:26 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-27 20:25 [PATCH v2 0/31] Add additional sandbox features and infrastructure Simon Glass
2014-02-27 20:25 ` [U-Boot] " Simon Glass
2014-02-27 20:25 ` [U-Boot] [PATCH v2 01/31] Use a const pointer for map_to_sysmem() Simon Glass
2014-02-27 20:25 ` [U-Boot] [PATCH v2 02/31] sandbox: Increase memory size to 32MB Simon Glass
2014-02-27 20:25 ` [U-Boot] [PATCH v2 03/31] sandbox: Build a device tree file for sandbox Simon Glass
2014-02-27 20:25 ` [U-Boot] [PATCH v2 04/31] sandbox: Use os functions to read host device tree Simon Glass
     [not found] ` <1393532785-9020-1-git-send-email-sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2014-02-27 20:25   ` [PATCH v2 05/31] sandbox: dts: Add display and keyboard to sandbox Simon Glass
2014-02-27 20:25     ` [U-Boot] " Simon Glass
2014-02-27 20:26 ` [U-Boot] [PATCH v2 06/31] cros_ec: Add an enum for the number of flash regions Simon Glass
2014-02-27 20:26 ` [U-Boot] [PATCH v2 07/31] cros_ec: Add a function for reading a flash map entry Simon Glass
2014-02-27 20:26 ` [U-Boot] [PATCH v2 08/31] cros_ec: Move EC interface into common library Simon Glass
2014-02-27 20:26 ` [U-Boot] [PATCH v2 09/31] cros_ec: Add a function for decoding the Chrome OS EC flashmap Simon Glass
2014-02-27 20:26 ` [U-Boot] [PATCH v2 10/31] cros_ec: Drop old EC version support from EC driver Simon Glass
2014-02-27 20:26 ` [U-Boot] [PATCH v2 11/31] cros_ec: Support systems with no EC interrupt Simon Glass
2014-02-27 20:26 ` [U-Boot] [PATCH v2 12/31] cros_ec: Move #ifdef to permit flash region access Simon Glass
2014-02-27 20:26 ` [U-Boot] [PATCH v2 13/31] cros_ec: Sync up with latest Chrome OS EC version Simon Glass
2014-02-27 20:26 ` [U-Boot] [PATCH v2 14/31] cros_ec: Clean up multiple EC protocol support Simon Glass
2014-02-27 20:26 ` [U-Boot] [PATCH v2 15/31] cros_ec: Add base support for protocol v3 Simon Glass
2014-02-27 20:26 ` [U-Boot] [PATCH v2 16/31] cros_ec: spi: Add support for EC protocol version 3 Simon Glass
2014-02-27 20:26 ` [U-Boot] [PATCH v2 17/31] cros_ec: Correct comparison between signed and unsigned numbers Simon Glass
2014-02-27 20:26 ` [U-Boot] [PATCH v2 18/31] cros_ec: sandbox: Add Chrome OS EC emulation Simon Glass
2014-02-27 20:26 ` [U-Boot] [PATCH v2 19/31] sandbox: Plumb in " Simon Glass
2014-02-27 20:26 ` [U-Boot] [PATCH v2 20/31] cros_ec: Implement I2C pass-through Simon Glass
2014-02-27 20:26 ` [U-Boot] [PATCH v2 21/31] sandbox: Add os_jump_to_image() to run another executable Simon Glass
2014-02-27 20:26 ` [U-Boot] [PATCH v2 22/31] sandbox: Add -j option to indicate a jump from a previous U-Boot Simon Glass
2014-02-27 20:26 ` [U-Boot] [PATCH v2 23/31] sandbox: Add SDL library for LCD, keyboard, audio Simon Glass
2014-02-27 20:26 ` [U-Boot] [PATCH v2 24/31] sandbox: Add a simple sound driver Simon Glass
2014-02-27 20:26 ` [U-Boot] [PATCH v2 25/31] sandbox: Add LCD driver Simon Glass
2014-02-27 20:26 ` [U-Boot] [PATCH v2 26/31] sound: Move Samsung-specific code into its own file Simon Glass
2014-02-27 20:26 ` [U-Boot] [PATCH v2 27/31] sandbox: Deal with conflicting getenv() for SDL Simon Glass
2014-02-27 20:26 ` [U-Boot] [PATCH v2 28/31] sandbox: Allow Ctrl-C to work in sandbox Simon Glass
2014-02-27 20:26 ` [U-Boot] [PATCH v2 29/31] sandbox: Add options to clean up temporary files Simon Glass
2014-02-27 20:26 ` Simon Glass [this message]
2014-02-27 20:26 ` [U-Boot] [PATCH v2 31/31] sandbox: config: Enable cros_ec emulation and related items Simon Glass

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1393532785-9020-31-git-send-email-sjg@chromium.org \
    --to=sjg@chromium.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.