9
0
Fork 0

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>
This commit is contained in:
Marc Kleine-Budde 2013-04-03 10:12:14 +02:00 committed by Sascha Hauer
parent 5d8240619c
commit d366ae8382
2 changed files with 8 additions and 0 deletions

View File

@ -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;

View File

@ -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