summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/panda/board.c
diff options
context:
space:
mode:
authorTeresa Gámez <t.gamez@phytec.de>2013-04-02 14:48:07 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-04-03 09:21:13 +0200
commitc1bea6f4eddfe68c8e46aca63814e9513eb89c9a (patch)
treeb4bae054cae12f3ab3a21405063b6d62069b65c9 /arch/arm/boards/panda/board.c
parentc61cc9809129d31295b9069f76368917db3523ba (diff)
downloadbarebox-c1bea6f4eddfe68c8e46aca63814e9513eb89c9a.tar.gz
barebox-c1bea6f4eddfe68c8e46aca63814e9513eb89c9a.tar.xz
OMAP: Add option to use environment from MMC
Make loading environment from MMC generic for all OMAP. Tested on AM335x, OMAP4. Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Tested-by: Jan Weitzel <j.weitzel@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards/panda/board.c')
-rw-r--r--arch/arm/boards/panda/board.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/arch/arm/boards/panda/board.c b/arch/arm/boards/panda/board.c
index 2518d3a0c3..d1f9a5ef05 100644
--- a/arch/arm/boards/panda/board.c
+++ b/arch/arm/boards/panda/board.c
@@ -1,12 +1,10 @@
#include <common.h>
#include <console.h>
#include <init.h>
-#include <fs.h>
#include <driver.h>
#include <io.h>
#include <ns16550.h>
#include <asm/armlinux.h>
-#include <linux/stat.h>
#include <generated/mach-types.h>
#include <mach/omap4-silicon.h>
#include <mach/omap4-devices.h>
@@ -20,7 +18,6 @@
#include <asm/mmu.h>
#include <mach/gpio.h>
#include <envfs.h>
-#include <mach/generic.h>
#include <i2c/i2c.h>
#include <gpio.h>
#include <led.h>
@@ -164,30 +161,3 @@ static int panda_devices_init(void)
return 0;
}
device_initcall(panda_devices_init);
-
-#ifdef CONFIG_DEFAULT_ENVIRONMENT
-static int panda_env_init(void)
-{
- struct stat s;
- char *diskdev = "/dev/disk0.0";
- int ret;
-
- ret = stat(diskdev, &s);
- if (ret) {
- printf("no %s. using default env\n", diskdev);
- return 0;
- }
-
- mkdir ("/boot", 0666);
- ret = mount(diskdev, "fat", "/boot");
- if (ret) {
- printf("failed to mount %s\n", diskdev);
- return 0;
- }
-
- default_environment_path = "/boot/bareboxenv";
-
- return 0;
-}
-late_initcall(panda_env_init);
-#endif