Add documentation to scom_addr_p9.sh, probe_cpus.sh
Change-Id: Id49ebf7c63beff6ff7d9939fa5c0d2e41d28098c
Signed-off-by: Sridevi Ramesh <sridevra@in.ibm.com>
diff --git a/lib/ras/host_utils.robot b/lib/ras/host_utils.robot
index 988b655..22bf7c6 100644
--- a/lib/ras/host_utils.robot
+++ b/lib/ras/host_utils.robot
@@ -165,3 +165,17 @@
OS Execute Command service opal-prd start
${opal_prd_state}= Is Opal-PRD Service Enabled
Should Contain ${opal_prd_state} enabled
+
+BMC Putscom
+ [Documentation] Executes putscom command through BMC.
+
+ [Arguments] ${proc_chip_id} ${fru} ${chip_address}
+
+ # Description of argument(s):
+ # proc_chip_id Processor ID (e.g '0', '8').
+ # fru FRU (field replaceable unit) (e.g. '2011400').
+ # chip_address Chip address (e.g. '4000000000000000').
+
+ ${cmd}= Catenate pdbg -d p9w -${proc_chip_id} putscom 0x${fru} 0x${address}
+
+ BMC Execute Command ${cmd}