mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 19:21:17 +07:00
64882709ef
This patch adds phy reset functionality to mdio-gpio driver. Now mdio_gpio_platform_data has new member as function pointer which can be filled at the bsp level for a callback from phy infrastructure. Also the mdio-bitbang driver fills-in the reset function of mii_bus structure. Without this patch the bsp level code has to takecare of the reseting PHY's on the bus, which become bit hacky for every bsp and phy-infrastructure is ignored aswell. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com> Signed-off-by: David S. Miller <davem@davemloft.net>
28 lines
655 B
C
28 lines
655 B
C
/*
|
|
* MDIO-GPIO bus platform data structures
|
|
*
|
|
* Copyright (C) 2008, Paulius Zaleckas <paulius.zaleckas@teltonika.lt>
|
|
*
|
|
* This file is licensed under the terms of the GNU General Public License
|
|
* version 2. This program is licensed "as is" without any warranty of any
|
|
* kind, whether express or implied.
|
|
*/
|
|
|
|
#ifndef __LINUX_MDIO_GPIO_H
|
|
#define __LINUX_MDIO_GPIO_H
|
|
|
|
#include <linux/mdio-bitbang.h>
|
|
|
|
struct mdio_gpio_platform_data {
|
|
/* GPIO numbers for bus pins */
|
|
unsigned int mdc;
|
|
unsigned int mdio;
|
|
|
|
unsigned int phy_mask;
|
|
int irqs[PHY_MAX_ADDR];
|
|
/* reset callback */
|
|
int (*reset)(struct mii_bus *bus);
|
|
};
|
|
|
|
#endif /* __LINUX_MDIO_GPIO_H */
|