diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2013-04-03 10:12:11 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-04-04 10:54:22 +0200 |
commit | 7b66d9cdddf2bccb9b88a34317428c44c1b750cc (patch) | |
tree | 7f9838baab2476dc6e7ea6b0246ebca533cff09f /include/bootsource.h | |
parent | 0994834462c4200dfe8479d8d694226008ca9d72 (diff) | |
download | barebox-7b66d9cdddf2bccb9b88a34317428c44c1b750cc.tar.gz barebox-7b66d9cdddf2bccb9b88a34317428c44c1b750cc.tar.xz |
bootsource: create arch independent bootsource framework
This patch seperates the imx independent from the arch independent code. The
following functions and enums are renamed:
- imx_bootsource() -> bootsource_get()
- imx_set_bootsource() -> bootsource_set()
- enum imx_bootsource -> enum bootsource
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/bootsource.h')
-rw-r--r-- | include/bootsource.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/bootsource.h b/include/bootsource.h new file mode 100644 index 0000000000..ecd5938226 --- /dev/null +++ b/include/bootsource.h @@ -0,0 +1,19 @@ +#ifndef __BOOTSOURCE_H__ +#define __BOOTSOURCE_H__ + +enum bootsource { + BOOTSOURCE_UNKNOWN, + BOOTSOURCE_NAND, + BOOTSOURCE_NOR, + BOOTSOURCE_MMC, + BOOTSOURCE_I2C, + BOOTSOURCE_SPI, + BOOTSOURCE_SERIAL, + BOOTSOURCE_ONENAND, + BOOTSOURCE_HD, +}; + +enum bootsource bootsource_get(void); +void bootsource_set(enum bootsource src); + +#endif /* __BOOTSOURCE_H__ */ |