[PATCH 09/10] bootsource: add definition for usb and eeprom

Marc Kleine-Budde mkl at pengutronix.de
Thu Mar 14 13:38:48 EDT 2013


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

diff --git a/common/bootsource.c b/common/bootsource.c
index fae554d..599bcd2 100644
--- a/common/bootsource.c
+++ b/common/bootsource.c
@@ -31,6 +31,8 @@ static const char *bootsource_str[] = {
 	[BOOTSOURCE_SERIAL] = "serial",
 	[BOOTSOURCE_ONENAND] = "onenand",
 	[BOOTSOURCE_HD] = "harddisk",
+	[BOOTSOURCE_USB] = "usb",
+	[BOOTSOURCE_EEPROM] = "eeprom",
 };
 
 static enum bootsource bootsource = BOOTSOURCE_UNKNOWN;
diff --git a/include/bootsource.h b/include/bootsource.h
index dfcad49..84a6696 100644
--- a/include/bootsource.h
+++ b/include/bootsource.h
@@ -11,6 +11,8 @@ enum bootsource {
 	BOOTSOURCE_SERIAL,
 	BOOTSOURCE_ONENAND,
 	BOOTSOURCE_HD,
+	BOOTSOURCE_USB,
+	BOOTSOURCE_EEPROM,
 };
 
 enum bootsource bootsource_get(void);
-- 
1.8.2.rc2




More information about the barebox mailing list