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

Add driver support for fb2CG@KU15P

This commit is contained in:
Alex Forencich 2020-09-22 23:12:28 -07:00
parent 15022b3d94
commit 6178d52056
2 changed files with 24 additions and 0 deletions

View File

@ -59,6 +59,7 @@ either expressed or implied, of The Regents of the University of California.
#define MQNIC_BOARD_ID_VCU118 0x10ee9076
#define MQNIC_BOARD_ID_VCU1525 0x10ee95f5
#define MQNIC_BOARD_ID_ZCU106 0x10ee906a
#define MQNIC_BOARD_ID_FB2CG_KU15P 0x1c2ca00e
#define MQNIC_BOARD_ID_EXANIC_X10 0x1ce40003
#define MQNIC_BOARD_ID_EXANIC_X25 0x1ce40009
#define MQNIC_BOARD_ID_ADM_PCIE_9V3 0x41449003

View File

@ -408,6 +408,29 @@ int mqnic_init_i2c(struct mqnic_dev *mqnic)
// I2C EEPROM
mqnic->eeprom_i2c_client = create_i2c_client(adapter, "24c02", 0x50, NULL);
break;
case MQNIC_BOARD_ID_FB2CG_KU15P:
// FPGA U1 I2C0
// QSFP0 J3 0x50
// FPGA U1 I2C1
// QSFP1 J4 0x50
request_module("at24");
// I2C adapter
adapter = mqnic_create_i2c_adapter(mqnic, mqnic->hw_addr+MQNIC_REG_GPIO_I2C_0);
// QSFP0
mqnic->mod_i2c_client[0] = create_i2c_client(adapter, "24c02", 0x50, NULL);
// I2C adapter
adapter = mqnic_create_i2c_adapter(mqnic, mqnic->hw_addr+MQNIC_REG_GPIO_I2C_1);
// QSFP1
mqnic->mod_i2c_client[1] = create_i2c_client(adapter, "24c02", 0x50, NULL);
mqnic->mod_i2c_client_count = 2;
break;
}