Add io board fru
diff --git a/bin/Barreleye.py b/bin/Barreleye.py
index 65a6aa4..df87ee0 100755
--- a/bin/Barreleye.py
+++ b/bin/Barreleye.py
@@ -262,6 +262,7 @@
ID_LOOKUP = {
'FRU' : {
0x03 : '<inventory_root>/system/chassis/motherboard',
+ 0x40 : '<inventory_root>/system/chassis/io_board',
0x01 : '<inventory_root>/system/chassis/motherboard/cpu0',
0x02 : '<inventory_root>/system/chassis/motherboard/cpu1',
0x04 : '<inventory_root>/system/chassis/motherboard/centaur0',
@@ -308,13 +309,50 @@
},
'FRU_STR' : {
'PRODUCT_15' : '<inventory_root>/system',
- 'CHASSIS_2' : '<inventory_root>/system/chassis',
- 'BOARD_1' : '<inventory_root>/system/chassis/motherboard/cpu0',
- 'BOARD_2' : '<inventory_root>/system/chassis/motherboard/centaur0',
- 'PRODUCT_3' : '<inventory_root>/system/chassis/motherboard/dimm0',
- 'PRODUCT_4' : '<inventory_root>/system/chassis/motherboard/dimm1',
- 'PRODUCT_5' : '<inventory_root>/system/chassis/motherboard/dimm2',
- 'PRODUCT_6' : '<inventory_root>/system/chassis/motherboard/dimm3',
+ 'CHASSIS_2' : '<inventory_root>/system/chassis',
+ 'BOARD_64' : '<inventory_root>/system/chassis/io_board',
+ 'BOARD_1' : '<inventory_root>/system/chassis/motherboard/cpu0',
+ 'BOARD_2' : '<inventory_root>/system/chassis/motherboard/cpu1',
+ 'BOARD_4' : '<inventory_root>/system/chassis/motherboard/centaur0',
+ 'BOARD_5' : '<inventory_root>/system/chassis/motherboard/centaur1',
+ 'BOARD_6' : '<inventory_root>/system/chassis/motherboard/centaur2',
+ 'BOARD_7' : '<inventory_root>/system/chassis/motherboard/centaur3',
+ 'BOARD_8' : '<inventory_root>/system/chassis/motherboard/centaur4',
+ 'BOARD_9' : '<inventory_root>/system/chassis/motherboard/centaur5',
+ 'BOARD_10' : '<inventory_root>/system/chassis/motherboard/centaur6',
+ 'BOARD_11' : '<inventory_root>/system/chassis/motherboard/centaur7',
+ 'PRODUCT_12' : '<inventory_root>/system/chassis/motherboard/dimm0',
+ 'PRODUCT_13' : '<inventory_root>/system/chassis/motherboard/dimm1',
+ 'PRODUCT_14' : '<inventory_root>/system/chassis/motherboard/dimm2',
+ 'PRODUCT_15' : '<inventory_root>/system/chassis/motherboard/dimm3',
+ 'PRODUCT_16' : '<inventory_root>/system/chassis/motherboard/dimm4',
+ 'PRODUCT_17' : '<inventory_root>/system/chassis/motherboard/dimm5',
+ 'PRODUCT_18' : '<inventory_root>/system/chassis/motherboard/dimm6',
+ 'PRODUCT_19' : '<inventory_root>/system/chassis/motherboard/dimm7',
+ 'PRODUCT_20' : '<inventory_root>/system/chassis/motherboard/dimm8',
+ 'PRODUCT_21' : '<inventory_root>/system/chassis/motherboard/dimm9',
+ 'PRODUCT_22' : '<inventory_root>/system/chassis/motherboard/dimm10',
+ 'PRODUCT_23' : '<inventory_root>/system/chassis/motherboard/dimm11',
+ 'PRODUCT_24' : '<inventory_root>/system/chassis/motherboard/dimm12',
+ 'PRODUCT_25' : '<inventory_root>/system/chassis/motherboard/dimm13',
+ 'PRODUCT_26' : '<inventory_root>/system/chassis/motherboard/dimm14',
+ 'PRODUCT_27' : '<inventory_root>/system/chassis/motherboard/dimm15',
+ 'PRODUCT_28' : '<inventory_root>/system/chassis/motherboard/dimm16',
+ 'PRODUCT_29' : '<inventory_root>/system/chassis/motherboard/dimm17',
+ 'PRODUCT_30' : '<inventory_root>/system/chassis/motherboard/dimm18',
+ 'PRODUCT_31' : '<inventory_root>/system/chassis/motherboard/dimm19',
+ 'PRODUCT_32' : '<inventory_root>/system/chassis/motherboard/dimm20',
+ 'PRODUCT_33' : '<inventory_root>/system/chassis/motherboard/dimm21',
+ 'PRODUCT_34' : '<inventory_root>/system/chassis/motherboard/dimm22',
+ 'PRODUCT_35' : '<inventory_root>/system/chassis/motherboard/dimm23',
+ 'PRODUCT_36' : '<inventory_root>/system/chassis/motherboard/dimm24',
+ 'PRODUCT_37' : '<inventory_root>/system/chassis/motherboard/dimm25',
+ 'PRODUCT_38' : '<inventory_root>/system/chassis/motherboard/dimm26',
+ 'PRODUCT_39' : '<inventory_root>/system/chassis/motherboard/dimm27',
+ 'PRODUCT_40' : '<inventory_root>/system/chassis/motherboard/dimm28',
+ 'PRODUCT_41' : '<inventory_root>/system/chassis/motherboard/dimm29',
+ 'PRODUCT_42' : '<inventory_root>/system/chassis/motherboard/dimm30',
+ 'PRODUCT_43' : '<inventory_root>/system/chassis/motherboard/dimm31',
},
'SENSOR' : {
0x34 : '<inventory_root>/system/chassis/motherboard',
@@ -391,8 +429,14 @@
0x32 : '/org/openbmc/sensor/virtual/OperatingSystemStatus',
},
'GPIO_PRESENT' : {
+ 'SLOT0_RISER_PRESENT' : '<inventory_root>/system/chassis/io_board/pcie_riser_slot0',
+ 'SLOT1_RISER_PRESENT' : '<inventory_root>/system/chassis/io_board/pcie_riser_slot1',
+ 'SLOT2_RISER_PRESENT' : '<inventory_root>/system/chassis/io_board/pcie_riser_slot2',
'SLOT0_PRESENT' : '<inventory_root>/system/chassis/io_board/pcie_slot0',
'SLOT1_PRESENT' : '<inventory_root>/system/chassis/io_board/pcie_slot1',
+ 'SLOT2_PRESENT' : '<inventory_root>/system/chassis/io_board/pcie_slot2',
+ 'MEZZ0_PRESENT' : '<inventory_root>/system/chassis/io_board/mezz0',
+ 'MEZZ1_PRESENT' : '<inventory_root>/system/chassis/io_board/mezz1',
}
}