mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2025-12-25 09:17:08 +00:00
Modify to correct eeprom sysfs path
This commit is contained in:
@@ -50,7 +50,7 @@
|
||||
#define FAN_BOARD_PATH "/sys/bus/i2c/devices/1-0060/"
|
||||
#define FAN_NODE(node) FAN_BOARD_PATH#node
|
||||
|
||||
#define IDPROM_PATH "/sys/class/i2c-adapter/i2c-3/3-0057/eeprom"
|
||||
#define IDPROM_PATH "/sys/bus/i2c/devices/1-0057/eeprom"
|
||||
|
||||
int onlp_file_write_integer(char *filename, int value);
|
||||
int onlp_file_read_binary(char *filename, char *buffer, int buf_size, int data_len);
|
||||
|
||||
@@ -35,5 +35,5 @@ class OnlPlatform_x86_64_accton_as4222_28pe_r0(OnlPlatformAccton,
|
||||
self.new_i2c_device('optoe1', 0x50, port+4)
|
||||
subprocess.call('echo port%d > /sys/bus/i2c/devices/%d-0050/port_name' % (port+24, port+4), shell=True)
|
||||
|
||||
self.new_i2c_device('24c02', 0x57, 3)
|
||||
self.new_i2c_device('24c02', 0x57, 1)
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user