mirror of
https://github.com/corundum/corundum.git
synced 2025-01-30 08:32:52 +08:00
modules/mqnic: Add driver support for DNPCIe_40G_KU_LL_2QSFP board
Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
parent
07f3924b75
commit
58bcea2114
@ -407,6 +407,34 @@ static int mqnic_generic_board_init(struct mqnic_dev *mqnic)
|
|||||||
// read MACs from EEPROM
|
// read MACs from EEPROM
|
||||||
init_mac_list_from_eeprom_base(mqnic, mqnic->eeprom_i2c_client, 0, MQNIC_MAX_IF);
|
init_mac_list_from_eeprom_base(mqnic, mqnic->eeprom_i2c_client, 0, MQNIC_MAX_IF);
|
||||||
|
|
||||||
|
break;
|
||||||
|
case MQNIC_BOARD_ID_DNPCIE_40G_KU:
|
||||||
|
|
||||||
|
request_module("at24");
|
||||||
|
|
||||||
|
// I2C adapter
|
||||||
|
adapter = mqnic_i2c_adapter_create(mqnic, 0);
|
||||||
|
|
||||||
|
// QSFP0
|
||||||
|
mqnic->mod_i2c_client[0] = create_i2c_client(adapter, "24c02", 0x50, NULL);
|
||||||
|
|
||||||
|
// I2C adapter
|
||||||
|
adapter = mqnic_i2c_adapter_create(mqnic, 1);
|
||||||
|
|
||||||
|
// QSFP1
|
||||||
|
mqnic->mod_i2c_client[1] = create_i2c_client(adapter, "24c02", 0x50, NULL);
|
||||||
|
|
||||||
|
mqnic->mod_i2c_client_count = 2;
|
||||||
|
|
||||||
|
// I2C adapter
|
||||||
|
adapter = mqnic_i2c_adapter_create(mqnic, 2);
|
||||||
|
|
||||||
|
// I2C EEPROM
|
||||||
|
mqnic->eeprom_i2c_client = create_i2c_client(adapter, "24c256", 0x50, NULL);
|
||||||
|
|
||||||
|
// read MACs from EEPROM
|
||||||
|
// init_mac_list_from_eeprom(mqnic, mqnic->eeprom_i2c_client, 0x000E, MQNIC_MAX_IF);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
dev_warn(mqnic->dev, "Unknown board ID, not performing any board-specific init");
|
dev_warn(mqnic->dev, "Unknown board ID, not performing any board-specific init");
|
||||||
|
@ -74,6 +74,7 @@
|
|||||||
#define MQNIC_BOARD_ID_FB2CG_KU15P 0x1c2ca00e
|
#define MQNIC_BOARD_ID_FB2CG_KU15P 0x1c2ca00e
|
||||||
#define MQNIC_BOARD_ID_EXANIC_X10 0x1ce40003
|
#define MQNIC_BOARD_ID_EXANIC_X10 0x1ce40003
|
||||||
#define MQNIC_BOARD_ID_EXANIC_X25 0x1ce40009
|
#define MQNIC_BOARD_ID_EXANIC_X25 0x1ce40009
|
||||||
|
#define MQNIC_BOARD_ID_DNPCIE_40G_KU 0x17df1a00
|
||||||
#define MQNIC_BOARD_ID_ADM_PCIE_9V3 0x41449003
|
#define MQNIC_BOARD_ID_ADM_PCIE_9V3 0x41449003
|
||||||
|
|
||||||
// Register blocks
|
// Register blocks
|
||||||
|
Loading…
x
Reference in New Issue
Block a user