meta-fii: meta-kudo: Updates for kudo fw and sys utilities
kudo.sh: Show which SCP EEPROM is used in (fw) option
kudo-lib.sh: Added get_scp_eeprom() function
Signed-off-by: Karthikeyan Sundaram <karthikeyan.sundaram@fii-na.com>
Change-Id: I686ff6b3bf9ab8ef7434ab44f0668912bfffb9b2
diff --git a/meta-fii/meta-kudo/recipes-kudo/kudo-fw-utility/kudo-fw/kudo-lib.sh b/meta-fii/meta-kudo/recipes-kudo/kudo-fw-utility/kudo-fw/kudo-lib.sh
index 9cee5f4..3c70800 100644
--- a/meta-fii/meta-kudo/recipes-kudo/kudo-fw-utility/kudo-fw/kudo-lib.sh
+++ b/meta-fii/meta-kudo/recipes-kudo/kudo-fw-utility/kudo-fw/kudo-lib.sh
@@ -40,6 +40,18 @@
echo "$GPIO_NUM" > /sys/class/gpio/unexport
}
+function get_scp_eeprom() {
+ scp_eeprom_sel=$(get_gpio_ctrl 168)
+ case $scp_eeprom_sel in
+ 0)
+ echo " Using Secondary SCP EEPROM"
+ ;;
+ 1)
+ echo " Using Primary SCP EEPROM"
+ ;;
+ esac
+}
+
# I2C Definitions
# The array is (<bus> <address>), where address is in hexadecimal.
I2C_BMC_CPLD=(13 76)