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 /arch/arm/boards/karo-tx53 | |
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 'arch/arm/boards/karo-tx53')
-rw-r--r-- | arch/arm/boards/karo-tx53/board.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/boards/karo-tx53/board.c b/arch/arm/boards/karo-tx53/board.c index 311255204b..7e1ef37bc6 100644 --- a/arch/arm/boards/karo-tx53/board.c +++ b/arch/arm/boards/karo-tx53/board.c @@ -13,6 +13,7 @@ * */ #include <common.h> +#include <bootsource.h> #include <environment.h> #include <fcntl.h> #include <fec.h> @@ -234,7 +235,7 @@ static int tx53_part_init(void) { const char *envdev; - switch (imx_bootsource()) { + switch (bootsource_get()) { case BOOTSOURCE_MMC: devfs_add_partition("disk0", 0x00000, SZ_512K, DEVFS_PARTITION_FIXED, "self0"); devfs_add_partition("disk0", SZ_512K, SZ_1M, DEVFS_PARTITION_FIXED, "env0"); |