summaryrefslogtreecommitdiff
path: root/include/gdsys_fpga.h
diff options
context:
space:
mode:
authorMario Six <mario.six@gdsys.cc>2019-03-29 10:18:10 +0100
committerMario Six <mario.six@gdsys.cc>2019-05-21 08:03:38 +0200
commitfe4a9675758e8fe7dce0b0064cac03c81a649f0a (patch)
tree856c4d9fbd10779719fc4e53fd3b6d10d76d3916 /include/gdsys_fpga.h
parentedba2b29f57efdff0ee087a0686ef11efbd6f9b8 (diff)
downloadu-boot-fe4a9675758e8fe7dce0b0064cac03c81a649f0a.tar.gz
u-boot-fe4a9675758e8fe7dce0b0064cac03c81a649f0a.tar.bz2
u-boot-fe4a9675758e8fe7dce0b0064cac03c81a649f0a.zip
gdsys: Introduce GDSYS_LEGACY_DRIVERS
Future gdsys boards will switch from the legacy drivers in board/gdsys/common to DM-based drivers. Define a Kconfig option that disables the legacy drivers. Signed-off-by: Mario Six <mario.six@gdsys.cc>
Diffstat (limited to 'include/gdsys_fpga.h')
-rw-r--r--include/gdsys_fpga.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/gdsys_fpga.h b/include/gdsys_fpga.h
index eae6701262..6d38a83d90 100644
--- a/include/gdsys_fpga.h
+++ b/include/gdsys_fpga.h
@@ -7,6 +7,7 @@
#ifndef __GDSYS_FPGA_H
#define __GDSYS_FPGA_H
+#ifdef CONFIG_GDSYS_LEGACY_DRIVERS
int init_func_fpga(void);
enum {
@@ -33,6 +34,7 @@ extern struct ihs_fpga *fpga_ptr[];
&fpga_ptr[ix]->fld, \
offsetof(struct ihs_fpga, fld), \
val)
+#endif
struct ihs_gpio {
u16 read;