summaryrefslogtreecommitdiffstats
path: root/common/bootsource.c
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2013-04-03 10:12:14 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-04-04 10:54:27 +0200
commitd366ae8382451d16b1e0e693f2cdede7e9c6a337 (patch)
treed2ea4f0b0f04e671784494b3dd03e2d79d1ddf5e /common/bootsource.c
parent5d8240619c62dee029eb3976d597175fe8dcefc3 (diff)
downloadbarebox-d366ae8382451d16b1e0e693f2cdede7e9c6a337.tar.gz
bootsource: add definition for i2c-eeprom, spi-nor, spi-eeprom and usb
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/bootsource.c')
-rw-r--r--common/bootsource.c4
1 files changed, 4 insertions, 0 deletions
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;