From fe4a9675758e8fe7dce0b0064cac03c81a649f0a Mon Sep 17 00:00:00 2001 From: Mario Six Date: Fri, 29 Mar 2019 10:18:10 +0100 Subject: 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 --- include/gdsys_fpga.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/gdsys_fpga.h') 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; -- cgit v1.2.3