mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Marc Kleine-Budde <mkl@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH v2 5/7] bootsource: add definition for i2c-eeprom, spi-nor, spi-eeprom and usb
Date: Wed,  3 Apr 2013 10:12:14 +0200	[thread overview]
Message-ID: <1364976736-23869-6-git-send-email-mkl@pengutronix.de> (raw)
In-Reply-To: <1364976736-23869-1-git-send-email-mkl@pengutronix.de>

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
---
 common/bootsource.c  | 4 ++++
 include/bootsource.h | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/common/bootsource.c b/common/bootsource.c
index 7367215..7f3d51f 100644
--- a/common/bootsource.c
+++ b/common/bootsource.c
@@ -27,10 +27,14 @@ static const char *bootsource_str[] = {
 	[BOOTSOURCE_NOR] = "nor",
 	[BOOTSOURCE_MMC] = "mmc",
 	[BOOTSOURCE_I2C] = "i2c",
+	[BOOTSOURCE_I2C_EEPROM] = "i2c-eeprom",
 	[BOOTSOURCE_SPI] = "spi",
+	[BOOTSOURCE_SPI_EEPROM] = "spi-eeprom",
+	[BOOTSOURCE_SPI_NOR] = "spi-nor",
 	[BOOTSOURCE_SERIAL] = "serial",
 	[BOOTSOURCE_ONENAND] = "onenand",
 	[BOOTSOURCE_HD] = "harddisk",
+	[BOOTSOURCE_USB] = "usb",
 };
 
 static enum bootsource bootsource = BOOTSOURCE_UNKNOWN;
diff --git a/include/bootsource.h b/include/bootsource.h
index 44b69b1..4bca9b9 100644
--- a/include/bootsource.h
+++ b/include/bootsource.h
@@ -7,10 +7,14 @@ enum bootsource {
 	BOOTSOURCE_NOR,
 	BOOTSOURCE_MMC,
 	BOOTSOURCE_I2C,
+	BOOTSOURCE_I2C_EEPROM,
 	BOOTSOURCE_SPI,
+	BOOTSOURCE_SPI_EEPROM,
+	BOOTSOURCE_SPI_NOR,
 	BOOTSOURCE_SERIAL,
 	BOOTSOURCE_ONENAND,
 	BOOTSOURCE_HD,
+	BOOTSOURCE_USB,
 };
 
 #define BOOTSOURCE_INSTANCE_UNKNOWN	-1
-- 
1.8.2.rc2


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  parent reply	other threads:[~2013-04-03  8:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-03  8:12 [PATCH v2] bootsource Marc Kleine-Budde
2013-04-03  8:12 ` [PATCH v2 1/7] ARM: i.MX: rename barebox_loc to bootsource Marc Kleine-Budde
2013-04-03  8:12 ` [PATCH v2 2/7] bootsource: create arch independent bootsource framework Marc Kleine-Budde
2013-04-03  8:12 ` [PATCH v2 3/7] bootsource: use initcall to export bootsource location to environment Marc Kleine-Budde
2013-04-03  8:12 ` [PATCH v2 4/7] bootsource: add support for bootsource instance information Marc Kleine-Budde
2013-04-03  8:12 ` Marc Kleine-Budde [this message]
2013-04-03  8:12 ` [PATCH v2 6/7] ARM: i.MX53: Add " Marc Kleine-Budde
2013-04-03  8:12 ` [PATCH v2 7/7] ARM: mxs: add bootsource detection Marc Kleine-Budde

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=1364976736-23869-6-git-send-email-mkl@pengutronix.de \
    --to=mkl@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox