diff options
author | Alexander Kurz <akurz@blala.de> | 2016-02-21 18:03:30 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-02-25 09:42:29 +0100 |
commit | a7932a35da1f9946e27d656f0d8bbc6a48530be5 (patch) | |
tree | ab08df2b3fedeb3782de571d68fd0bfc4480d48a /include | |
parent | 2bea4f8768c654b15e8029bc08f1a37c5f7fae1d (diff) | |
download | barebox-a7932a35da1f9946e27d656f0d8bbc6a48530be5.tar.gz barebox-a7932a35da1f9946e27d656f0d8bbc6a48530be5.tar.xz |
EP93xx eth: allow passing of phy config via platform data
Passing phy configuration to the ep93xx_eth driver was not supported yet
and will be added with this patch. When no pdata is passed, the probably
broken default of phy_addr = 0 will be used to maintain compatibility
with the previous implementation.
Signed-off-by: Alexander Kurz <akurz@blala.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/ep93xx_eth.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/net/ep93xx_eth.h b/include/net/ep93xx_eth.h new file mode 100644 index 0000000000..0fb11d0acd --- /dev/null +++ b/include/net/ep93xx_eth.h @@ -0,0 +1,26 @@ +/* + * (C) Copyright 2016 Alexander Kurz <akurz@blala.de> + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + */ + +#ifndef __NET_EP93XX_ETH_H +#define __NET_EP93XX_ETH_H + +#include <linux/phy.h> + +struct ep93xx_eth_platform_data { + phy_interface_t xcv_type; + int phy_addr; +}; + +#endif /* __NET_EP93XX_ETH_H */ |