summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards
diff options
context:
space:
mode:
authorTeresa Gámez <t.gamez@phytec.de>2014-11-03 13:31:54 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2014-11-03 15:44:59 +0100
commit73e6a47ec804fb354a068b71f2f819a6a457270e (patch)
tree003f9ee3a15f6b35119db1a1747db13607265629 /arch/arm/boards
parentbe23843702f4fc98ea653bf785cb60c2cfbe14c4 (diff)
downloadbarebox-73e6a47ec804fb354a068b71f2f819a6a457270e.tar.gz
barebox-73e6a47ec804fb354a068b71f2f819a6a457270e.tar.xz
ARM: am335x: phyCORE-AM335x: Create new dts for MLO
Use a mlo device tree with all bootable devices disabled. The bootsource is checked in the board file and only the needed device is enabled and registered. Signed-off-by: Teresa Gámez <t.gamez@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards')
-rw-r--r--arch/arm/boards/phytec-phycore-am335x/board.c3
-rw-r--r--arch/arm/boards/phytec-phycore-am335x/lowlevel.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/arch/arm/boards/phytec-phycore-am335x/board.c b/arch/arm/boards/phytec-phycore-am335x/board.c
index 64e3904256..a72cebda3f 100644
--- a/arch/arm/boards/phytec-phycore-am335x/board.c
+++ b/arch/arm/boards/phytec-phycore-am335x/board.c
@@ -83,6 +83,9 @@ static int pcm051_devices_init(void)
xloadslots, ARRAY_SIZE(xloadslots));
am33xx_bbu_nand_register_handler("nand", "/dev/nand0.barebox.bb");
+ if (IS_ENABLED(CONFIG_SHELL_NONE))
+ return am33xx_of_register_bootdevice();
+
return 0;
}
device_initcall(pcm051_devices_init);
diff --git a/arch/arm/boards/phytec-phycore-am335x/lowlevel.c b/arch/arm/boards/phytec-phycore-am335x/lowlevel.c
index 55cc6679ed..5ab8b5b446 100644
--- a/arch/arm/boards/phytec-phycore-am335x/lowlevel.c
+++ b/arch/arm/boards/phytec-phycore-am335x/lowlevel.c
@@ -118,6 +118,7 @@ struct pcm051_sdram_timings timings[] = {
};
extern char __dtb_am335x_phytec_phycore_som_start[];
+extern char __dtb_am335x_phytec_phycore_som_mlo_start[];
extern char __dtb_am335x_phytec_phycore_som_no_spi_start[];
/**
@@ -154,7 +155,7 @@ static noinline void pcm051_board_init(int sdram)
omap_uart_lowlevel_init((void *)AM33XX_UART0_BASE);
putc_ll('>');
- fdt = __dtb_am335x_phytec_phycore_som_start - get_runtime_offset();
+ fdt = __dtb_am335x_phytec_phycore_som_mlo_start - get_runtime_offset();
am335x_barebox_entry(fdt);
}