summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/phytec-phyflex-am335x/board.c
diff options
context:
space:
mode:
authorWadim Egorov <w.egorov@phytec.de>2015-02-04 15:00:49 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2015-02-06 08:14:54 +0100
commiteb47b05c27f18699b5ba70c90e808277264a0b5a (patch)
tree178f77e7e73dd8198d1adea14241374917634e1b /arch/arm/boards/phytec-phyflex-am335x/board.c
parent35405138c888301713e56cf13e0ef790cab05bf6 (diff)
downloadbarebox-eb47b05c27f18699b5ba70c90e808277264a0b5a.tar.gz
barebox-eb47b05c27f18699b5ba70c90e808277264a0b5a.tar.xz
ARM: am335x: phyFLEX-AM335x: Split DT and add MLO DT
To support different module variants, this patch splits the phyFLEX DT in dts and dtsi. And we are also adding a DT for the MLO, which has all bootable devices disabled. The bootsource is checked in the board file and only the needed device is enabled and registered. Signed-off-by: Wadim Egorov <w.egorov@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards/phytec-phyflex-am335x/board.c')
-rw-r--r--arch/arm/boards/phytec-phyflex-am335x/board.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/boards/phytec-phyflex-am335x/board.c b/arch/arm/boards/phytec-phyflex-am335x/board.c
index e635532d29..aed5c31883 100644
--- a/arch/arm/boards/phytec-phyflex-am335x/board.c
+++ b/arch/arm/boards/phytec-phyflex-am335x/board.c
@@ -87,6 +87,10 @@ static int pfla03_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(pfla03_devices_init);