Keyword to get BMC chip boot side

Resolves  openbmc/openbmc-test-automation#1362

Change-Id: I25a70e751859a8e559d3c2f7783f104634064407
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/utils.robot b/lib/utils.robot
index b1aa8da..0b7e60d 100755
--- a/lib/utils.robot
+++ b/lib/utils.robot
@@ -1526,3 +1526,17 @@
     ${output}=  Read Attribute  ${uri}  ${attribute_name}
     Should Be Equal  ${attribute_value}  ${output}
     ...  msg=Attribute "${attribute_name} does not have the expected value.
+
+
+Get BMC Flash Chip Boot Side
+    [Documentation]  Return the BMC flash chip boot side.
+
+    # Example:
+    # 0 - indicates chip select is current side.
+    # 1 - indicates chip select is alternate side.
+
+    ${boot_side}  ${stderr}  ${rc}=  BMC Execute Command
+    ...  echo $(($(/sbin/devmem 0x1E785030) >> 1 & 1))
+
+    [Return]  ${boot_side}
+