1
0
mirror of https://github.com/corundum/corundum.git synced 2025-01-16 08:12:53 +08:00

modules/mqnic: Update board config in driver for ADM-PCIE-9V3, Nexus K35P-S, and Nexus K3P-S to support optical module communication

Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
Alex Forencich 2023-06-10 20:26:33 -07:00
parent f5c7dce04a
commit a3e7cc4c77
2 changed files with 17 additions and 3 deletions

View File

@ -74,10 +74,10 @@ This section details PCIe form-factor targets, which interface with a separate h
======================= ============ ============ ==========
Board I2C :sup:`1` MAC :sup:`2` FW update
======================= ============ ============ ==========
ADM-PCIE-9V3 N :sup:`3` Y :sup:`5` Y
ADM-PCIE-9V3 Y Y :sup:`5` Y
DNPCIe_40G_KU_LL_2QSFP Y N :sup:`3` Y
Nexus K35-S N :sup:`3` Y Y
Nexus K3P-S N :sup:`3` Y Y
Nexus K35-S Y Y Y
Nexus K3P-S Y Y Y
Nexus K3P-Q Y Y Y
fb2CG\@KU15P Y Y Y
NetFPGA SUME Y N :sup:`7` N :sup:`8`

View File

@ -578,6 +578,20 @@ static int mqnic_generic_board_init(struct mqnic_dev *mqnic)
request_module("at24");
// I2C adapter
adapter = mqnic_i2c_adapter_create(mqnic, 0);
// Virtual I2C MUX
mux = create_i2c_client(adapter, "pca9543", 0x74);
// QSFP0
mqnic->mod_i2c_client[0] = create_i2c_client(get_i2c_mux_channel(mux, 0), "24c02", 0x50);
// QSFP1
mqnic->mod_i2c_client[1] = create_i2c_client(get_i2c_mux_channel(mux, 1), "24c02", 0x50);
mqnic->mod_i2c_client_count = 2;
// create I2C adapter
adapter = mqnic_i2c_adapter_create(mqnic, 1);