aboutsummaryrefslogtreecommitdiff
path: root/board/gdsys/common/ihs_mdio.h
diff options
context:
space:
mode:
authorMario Six2018-04-27 14:52:10 +0200
committerTom Rini2018-05-08 18:50:23 -0400
commit9a519dfe8a3789012c6621f50e90a92b5ab84d21 (patch)
tree1a6cdb84e3243537da6d008748fcee09e852b7a6 /board/gdsys/common/ihs_mdio.h
parent9139ac9d492246a6c2af236e79c4f61d0dd55ac3 (diff)
ihs_mdio: Make DM-compatible
Make the ihs_mdio driver DM-compatible, while retaining the old functionality for not-yet-converted boards. Signed-off-by: Mario Six <mario.six@gdsys.cc>
Diffstat (limited to 'board/gdsys/common/ihs_mdio.h')
-rw-r--r--board/gdsys/common/ihs_mdio.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/board/gdsys/common/ihs_mdio.h b/board/gdsys/common/ihs_mdio.h
index cddc335c107..d0a4b0d7a88 100644
--- a/board/gdsys/common/ihs_mdio.h
+++ b/board/gdsys/common/ihs_mdio.h
@@ -8,7 +8,12 @@
#define _IHS_MDIO_H_
struct ihs_mdio_info {
+#ifdef CONFIG_GDSYS_LEGACY_DRIVERS
u32 fpga;
+#else
+ struct udevice *fpga;
+ int base;
+#endif
char *name;
};