commit | 0759c75ecfb186cfc20b09132aba05852bc2d2d0 | [log] [tgz] |
---|---|---|
author | Karthikeyan Sundaram <karthikeyan.sundaram@fii-na.com> | Wed Nov 24 14:33:55 2021 -0600 |
committer | Vivekanand Veeracholan <vveerach@google.com> | Tue May 03 22:16:08 2022 +0000 |
tree | c5c6176212ed894733e863fa0550b00ea007496b | |
parent | 7e934ac1b8e19b38710d095abaa94bfe61f2b236 [diff] |
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)
diff --git a/meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility/kudo-cmd/kudo.sh b/meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility/kudo-cmd/kudo.sh index d32ddac..7428d95 100644 --- a/meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility/kudo-cmd/kudo.sh +++ b/meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility/kudo-cmd/kudo.sh
@@ -125,6 +125,7 @@ cmd=$(i2cget -f -y "${I2C_S0_SMPRO[0]}" 0x"${I2C_S0_SMPRO[1]}" 0x1 w); echo " SCP Firmware: ${cmd}" + get_scp_eeprom adm1266_ver | grep REVISION