Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Dirk Eibach | f74a027 | 2014-11-13 19:21:18 +0100 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2014 |
| 4 | * Dirk Eibach, Guntermann & Drunck GmbH, dirk.eibach@gdsys.cc |
Dirk Eibach | f74a027 | 2014-11-13 19:21:18 +0100 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef _IHS_MDIO_H_ |
| 8 | #define _IHS_MDIO_H_ |
| 9 | |
| 10 | struct ihs_mdio_info { |
Mario Six | 2963721 | 2018-04-27 14:52:10 +0200 | [diff] [blame] | 11 | #ifdef CONFIG_GDSYS_LEGACY_DRIVERS |
Dirk Eibach | f74a027 | 2014-11-13 19:21:18 +0100 | [diff] [blame] | 12 | u32 fpga; |
Mario Six | 2963721 | 2018-04-27 14:52:10 +0200 | [diff] [blame] | 13 | #else |
| 14 | struct udevice *fpga; |
| 15 | int base; |
| 16 | #endif |
Dirk Eibach | f74a027 | 2014-11-13 19:21:18 +0100 | [diff] [blame] | 17 | char *name; |
| 18 | }; |
| 19 | |
| 20 | int ihs_mdio_init(struct ihs_mdio_info *info); |
| 21 | |
| 22 | #endif |