blob: d0a4b0d7a88ab1eaaf00b81b7fabd82e3d4c351d [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Dirk Eibachf74a0272014-11-13 19:21:18 +01002/*
3 * (C) Copyright 2014
4 * Dirk Eibach, Guntermann & Drunck GmbH, dirk.eibach@gdsys.cc
Dirk Eibachf74a0272014-11-13 19:21:18 +01005 */
6
7#ifndef _IHS_MDIO_H_
8#define _IHS_MDIO_H_
9
10struct ihs_mdio_info {
Mario Six29637212018-04-27 14:52:10 +020011#ifdef CONFIG_GDSYS_LEGACY_DRIVERS
Dirk Eibachf74a0272014-11-13 19:21:18 +010012 u32 fpga;
Mario Six29637212018-04-27 14:52:10 +020013#else
14 struct udevice *fpga;
15 int base;
16#endif
Dirk Eibachf74a0272014-11-13 19:21:18 +010017 char *name;
18};
19
20int ihs_mdio_init(struct ihs_mdio_info *info);
21
22#endif