diff options
author | Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com> | 2019-03-15 15:16:47 +0300 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2019-10-08 10:41:27 +0300 |
commit | be49508a0f3229ff589dfabad80ab2774f47875a (patch) | |
tree | 200cf8fe71e4720cc0a7da94428243968de95f8b | |
parent | 69b67ec8c90b0fc5856efc915415d06131a36be4 (diff) | |
download | u-boot-be49508a0f3229ff589dfabad80ab2774f47875a.tar.xz |
net: phy: Define init routine and register generic phy driver
This patch define init routine for generic phy driver and registers it
using phy_register as this generic phy driver also needs to be relocated
incase of manual reloc.
Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
-rw-r--r-- | drivers/net/phy/phy.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index ae37dd6c1e..8c4043445e 100644 --- a/drivers/net/phy/phy.c +++ b/drivers/net/phy/phy.c @@ -458,6 +458,11 @@ static struct phy_driver genphy_driver = { .shutdown = genphy_shutdown, }; +int genphy_init(void) +{ + return phy_register(&genphy_driver); +} + static LIST_HEAD(phy_drivers); int phy_init(void) @@ -540,6 +545,8 @@ int phy_init(void) #ifdef CONFIG_PHY_FIXED phy_fixed_init(); #endif + genphy_init(); + return 0; } |