PASS 2 Planar support for vpd parser
The system has two planar passes - Pass1 & Pass2 Planars.
Pass1 Planar a buffer connects all pcie cards, Whereas
Pass2 Planar has mux connection established for pcie card selection.
ibm-read-vpd picks up the right deviceTree and json
(either 2UPass1/2UPass2/4UPass1/4UPass2)
based on the HW and IM kw of the planar.
Test-
tested on Rainier 2U simics
root@rainier:/tmp# ./ibm-read-vpd -f /tmp/systemVpd
imKeyword- 50001001, HW - 0001
Processing with this JSON - /usr/share/vpd/50001001_v1.json
root@rainier:/tmp# ./ibm-read-vpd -f /tmp/systemVpd
imKeyword- 50001001, HW - 0011
Processing with this JSON - /usr/share/vpd/50001001_v2.json
root@rainier:/tmp# ./ibm-read-vpd -f /tmp/systemVpd
imKeyword- 50001000, HW - 0011
Processing with this JSON - /usr/share/vpd/50001000_v2.json
root@rainier:/tmp# ./ibm-read-vpd -f /tmp/systemVpd
imKeyword- 50001000, HW - 0001
Processing with this JSON - /usr/share/vpd/50001000_v1.json
root@rainier:/tmp#
Signed-off-by: Alpana Kumari <alpankum@in.ibm.com>
Change-Id: I36de12d9697039e61e6ad569e1e119f001e782f6
diff --git a/meson_options.txt b/meson_options.txt
index f5c839c..20697d6 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -21,3 +21,4 @@
option('INVENTORY_JSON_4U',type: 'string', value: '/usr/share/vpd/50001000.json', description: 'Inventory JSON for 4U system.')
option('INVENTORY_JSON_EVEREST',type: 'string', value: '/usr/share/vpd/50003000.json', description: 'Inventory JSON for Everest system.')
option('DBUS_PROP_JSON',type: 'string', value: '/usr/share/vpd/dbus_properties.json', description: 'Json which contains properties specific to dbus.')
+option('SYSTEM_JSON',type: 'string', value: '/usr/share/vpd/systems.json', description: 'JSON file used to pick the right system json')