Lan7431- NVIDIA specific changes to Lan7431 drv

Adding NVIDIA specific changes to Lan7431
for K515 driver

These changes support "userland phy driver"

Bug 3956901

Change-Id: I0f11e3cb95742bb0bac9bec7638d03552074dd23
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2924162
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Tested-by: Jeremy Alves <jalves@nvidia.com>
Reviewed-by: Jeremy Alves <jalves@nvidia.com>
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
This commit is contained in:
Jeremy Alves
2023-06-21 21:05:07 +00:00
committed by mobile promotions
parent c2c17e16c9
commit ee70adda3e
3 changed files with 175 additions and 15 deletions

View File

@@ -1,5 +1,8 @@
/* SPDX-License-Identifier: GPL-2.0+ */
/* Copyright (C) 2018 Microchip Technology Inc. */
/*
* Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
*/
#ifndef _LAN743X_H
#define _LAN743X_H
@@ -626,6 +629,8 @@ struct lan743x_intr {
struct lan743x_phy {
bool fc_autoneg;
u8 fc_request_control;
bool fixed;
u32 mdio_addr;
};
/* TX */
@@ -706,6 +711,7 @@ struct lan743x_rx {
struct lan743x_adapter {
struct net_device *netdev;
struct mii_bus *mdiobus;
phy_interface_t phy_mode;
int msg_enable;
#ifdef CONFIG_PM
u32 wolopts;