]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/LaCie/edminiv2/edminiv2.c
edminiv2: switch to SPL
[karo-tx-uboot.git] / board / LaCie / edminiv2 / edminiv2.c
index 80ec7faa049476ee7c57a98471fcd34e2e92c934..2983201801746087813c183a5bb1fdea5dbaf891 100644 (file)
@@ -12,6 +12,8 @@
 #include <miiphy.h>
 #include <asm/arch/orion5x.h>
 #include "../common/common.h"
+#include <spl.h>
+#include <ns16550.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -83,3 +85,21 @@ void reset_phy(void)
        mv_phy_88e1116_init("egiga0", 8);
 }
 #endif /* CONFIG_RESET_PHY_R */
+
+/*
+ * SPL serial setup and NOR boot device selection
+ */
+
+#ifdef CONFIG_SPL_BUILD
+
+void spl_board_init(void)
+{
+       preloader_console_init();
+}
+
+u32 spl_boot_device(void)
+{
+       return BOOT_DEVICE_NOR;
+}
+
+#endif /* CONFIG_SPL_BUILD */