diff options
author | Lendacky, Thomas <Thomas.Lendacky@amd.com> | 2016-11-10 17:10:36 -0600 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-11-13 00:56:26 -0500 |
commit | 5ab1dcd58597c04f6d50980c3d5f3c2518301b31 (patch) | |
tree | a96707a358bcafd5965b6d0a96a25c643d1f6b7b /drivers/net/ethernet/amd/xgbe/xgbe-pci.c | |
parent | e78332b2285d9fe631a093fc8ca2b604c48c33e6 (diff) | |
download | linux-5ab1dcd58597c04f6d50980c3d5f3c2518301b31.tar.gz linux-5ab1dcd58597c04f6d50980c3d5f3c2518301b31.tar.bz2 linux-5ab1dcd58597c04f6d50980c3d5f3c2518301b31.zip |
amd-xgbe: Add I2C support for sideband communication
Add support to initialize and use the I2C controller within the hardware
in order to perform sideband communication, e.g. determine the SFP media
type that is installed.
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/amd/xgbe/xgbe-pci.c')
-rw-r--r-- | drivers/net/ethernet/amd/xgbe/xgbe-pci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/amd/xgbe/xgbe-pci.c b/drivers/net/ethernet/amd/xgbe/xgbe-pci.c index 798a65ef5606..e76b7f65b805 100644 --- a/drivers/net/ethernet/amd/xgbe/xgbe-pci.c +++ b/drivers/net/ethernet/amd/xgbe/xgbe-pci.c @@ -483,6 +483,7 @@ static const struct xgbe_version_data xgbe_v2a = { .rx_max_fifo_size = 229376, .tx_tstamp_workaround = 1, .ecc_support = 1, + .i2c_support = 1, }; static const struct xgbe_version_data xgbe_v2b = { @@ -493,6 +494,7 @@ static const struct xgbe_version_data xgbe_v2b = { .rx_max_fifo_size = 65536, .tx_tstamp_workaround = 1, .ecc_support = 1, + .i2c_support = 1, }; static const struct pci_device_id xgbe_pci_table[] = { |