f6c5578eaf
Signed-off-by: Wadim Egorov <w.egorov@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
29 lines
570 B
C
29 lines
570 B
C
#ifndef __BOOTSOURCE_H__
|
|
#define __BOOTSOURCE_H__
|
|
|
|
enum bootsource {
|
|
BOOTSOURCE_UNKNOWN,
|
|
BOOTSOURCE_NAND,
|
|
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,
|
|
BOOTSOURCE_NET,
|
|
};
|
|
|
|
#define BOOTSOURCE_INSTANCE_UNKNOWN -1
|
|
|
|
enum bootsource bootsource_get(void);
|
|
int bootsource_get_instance(void);
|
|
void bootsource_set(enum bootsource src);
|
|
void bootsource_set_instance(int instance);
|
|
|
|
#endif /* __BOOTSOURCE_H__ */
|