summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/efika-mx-smartbook
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2013-04-03 10:12:11 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-04-04 10:54:22 +0200
commit7b66d9cdddf2bccb9b88a34317428c44c1b750cc (patch)
tree7f9838baab2476dc6e7ea6b0246ebca533cff09f /arch/arm/boards/efika-mx-smartbook
parent0994834462c4200dfe8479d8d694226008ca9d72 (diff)
downloadbarebox-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/efika-mx-smartbook')
-rw-r--r--arch/arm/boards/efika-mx-smartbook/board.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/boards/efika-mx-smartbook/board.c b/arch/arm/boards/efika-mx-smartbook/board.c
index 03399a3884..e9b6062872 100644
--- a/arch/arm/boards/efika-mx-smartbook/board.c
+++ b/arch/arm/boards/efika-mx-smartbook/board.c
@@ -14,6 +14,7 @@
*/
#include <common.h>
+#include <bootsource.h>
#include <net.h>
#include <init.h>
#include <environment.h>
@@ -479,7 +480,7 @@ device_initcall(efikamx_devices_init);
static int efikamx_part_init(void)
{
- if (imx_bootsource() == BOOTSOURCE_MMC) {
+ if (bootsource_get() == BOOTSOURCE_MMC) {
devfs_add_partition("mmc_left", 0x00000, 0x80000,
DEVFS_PARTITION_FIXED, "self0");
devfs_add_partition("mmc_left", 0x80000, 0x80000,