[PATCH 4/5] ARM: socfpga: socrates: register spi bbu handler
Steffen Trumtrar
s.trumtrar at pengutronix.de
Tue Jul 14 09:16:38 PDT 2015
Signed-off-by: Steffen Trumtrar <s.trumtrar at pengutronix.de>
---
arch/arm/boards/ebv-socrates/board.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm/boards/ebv-socrates/board.c b/arch/arm/boards/ebv-socrates/board.c
index 5d2d61991431..20998682a389 100644
--- a/arch/arm/boards/ebv-socrates/board.c
+++ b/arch/arm/boards/ebv-socrates/board.c
@@ -8,6 +8,7 @@
#include <linux/sizes.h>
#include <fcntl.h>
#include <fs.h>
+#include <mach/bbu.h>
#include <mach/socfpga-regs.h>
static int phy_fixup(struct phy_device *dev)
@@ -32,6 +33,9 @@ static int socrates_init(void)
if (IS_ENABLED(CONFIG_PHYLIB))
phy_register_fixup_for_uid(PHY_ID_KSZ9021, MICREL_PHY_ID_MASK, phy_fixup);
+ socfpga_bbu_spi_nor_register_handler("qspi-xload", "/dev/mtd0.prebootloader0");
+ socfpga_bbu_spi_nor_register_handler("qspi", "/dev/mtd0.barebox0");
+
return 0;
}
postcore_initcall(socrates_init);
--
2.1.4
More information about the barebox
mailing list