Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Dirk Eibach | 50dcf89 | 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 | 50dcf89 | 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 | 9a519dfe | 2018-04-27 14:52:10 +0200 | [diff] [blame] | 11 | #ifdef CONFIG_GDSYS_LEGACY_DRIVERS |
Dirk Eibach | 50dcf89 | 2014-11-13 19:21:18 +0100 | [diff] [blame] | 12 | u32 fpga; |
Mario Six | 9a519dfe | 2018-04-27 14:52:10 +0200 | [diff] [blame] | 13 | #else |
| 14 | struct udevice *fpga; |
| 15 | int base; |
| 16 | #endif |
Dirk Eibach | 50dcf89 | 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 |