mirror of
https://github.com/corundum/corundum.git
synced 2025-01-16 08:12:53 +08:00
modules/mqnic: Implement I2C interface for fb4CGg3@VU09P
Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
parent
53d272ff12
commit
01680f2ff5
@ -644,6 +644,37 @@ static int mqnic_generic_board_init(struct mqnic_dev *mqnic)
|
||||
// read MACs from EEPROM
|
||||
// init_mac_list_from_eeprom(mqnic, mqnic->eeprom_i2c_client, 0x000E, MQNIC_MAX_IF);
|
||||
|
||||
break;
|
||||
case MQNIC_BOARD_ID_FB4CGG3_VU9P:
|
||||
|
||||
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);
|
||||
|
||||
// I2C adapter
|
||||
adapter = mqnic_i2c_adapter_create(mqnic, 2);
|
||||
|
||||
// QSFP2
|
||||
mqnic->mod_i2c_client[2] = create_i2c_client(adapter, "24c02", 0x50, NULL);
|
||||
|
||||
// I2C adapter
|
||||
adapter = mqnic_i2c_adapter_create(mqnic, 3);
|
||||
|
||||
// QSFP3
|
||||
mqnic->mod_i2c_client[3] = create_i2c_client(adapter, "24c02", 0x50, NULL);
|
||||
|
||||
mqnic->mod_i2c_client_count = 4;
|
||||
|
||||
break;
|
||||
default:
|
||||
dev_warn(mqnic->dev, "Unknown board ID, not performing any board-specific init");
|
||||
|
@ -69,6 +69,7 @@
|
||||
#define MQNIC_BOARD_ID_DE10_AGILEX 0x1172b00a
|
||||
#define MQNIC_BOARD_ID_XUPP3R 0x12ba9823
|
||||
#define MQNIC_BOARD_ID_250SOC 0x198a250e
|
||||
#define MQNIC_BOARD_ID_FB4CGG3_VU9P 0x1c2c9403
|
||||
#define MQNIC_BOARD_ID_FB2CG_KU15P 0x1c2ca00e
|
||||
#define MQNIC_BOARD_ID_NEXUS_K35_S 0x1ce40003
|
||||
#define MQNIC_BOARD_ID_NEXUS_K3P_S 0x1ce40009
|
||||
|
Loading…
x
Reference in New Issue
Block a user