aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/socfpga/base-files/lib/preinit/03_socfpga_detect
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/socfpga/base-files/lib/preinit/03_socfpga_detect')
-rw-r--r--target/linux/socfpga/base-files/lib/preinit/03_socfpga_detect9
1 files changed, 9 insertions, 0 deletions
diff --git a/target/linux/socfpga/base-files/lib/preinit/03_socfpga_detect b/target/linux/socfpga/base-files/lib/preinit/03_socfpga_detect
new file mode 100644
index 0000000000..fc2f20a31f
--- /dev/null
+++ b/target/linux/socfpga/base-files/lib/preinit/03_socfpga_detect
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+do_socfpga_detect() {
+ . /lib/socfpga.sh
+
+ socfpga_board_detect
+}
+
+boot_hook_add preinit_main do_socfpga_detect