summaryrefslogtreecommitdiff
path: root/board/gdsys/common/fpga.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/gdsys/common/fpga.c')
-rw-r--r--board/gdsys/common/fpga.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/board/gdsys/common/fpga.c b/board/gdsys/common/fpga.c
index f189e5fbd1..5ba6613ed5 100644
--- a/board/gdsys/common/fpga.c
+++ b/board/gdsys/common/fpga.c
@@ -4,6 +4,8 @@
* Dirk Eibach, Guntermann & Drunck GmbH, dirk.eibach@gdsys.cc
*/
+#ifdef CONFIG_GDSYS_LEGACY_DRIVERS
+
#include <common.h>
#include <gdsys_fpga.h>
@@ -22,3 +24,5 @@ int fpga_get_reg(u32 fpga, u16 *reg, off_t regoff, u16 *data)
return 0;
}
+
+#endif /* CONFIG_GDSYS_LEGACY_DRIVERS */