summaryrefslogtreecommitdiff
path: root/meta-quanta/meta-gsj
diff options
context:
space:
mode:
authorSamuel Jiang <Samuel.Jiang@quantatw.com>2019-10-02 06:19:39 +0300
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2019-10-17 03:34:34 +0300
commit8e5befe1acae423aa99882bff3c5659b360d721f (patch)
tree46deea0e3ca0682ed28cdfd4d91939851a36ec92 /meta-quanta/meta-gsj
parent6a4b21e8b02f74bfa264863272016330065e6e53 (diff)
downloadopenbmc-8e5befe1acae423aa99882bff3c5659b360d721f.tar.xz
meta-quanta: gsj: quanta-nvme_powerctrl: fix setting initial SSD[i] GPIOs
When any SSD was not plugged, the bash script only sets RST_BMC_U2 and POWER_U2 GPIOs low for SSD0. Instead set the corresponding GPIOs low for all unplugged SSDs. (From meta-quanta rev: 4ac9d5f6173debda19b9b0d5da6075a48407b390) Change-Id: I914d74634f93506d7911fdd3e1b75b73073ccdcc Signed-off-by: Samuel Jiang <Samuel.Jiang@quantatw.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-quanta/meta-gsj')
-rw-r--r--meta-quanta/meta-gsj/recipes-gsj/quanta-nvme-powerctrl/files/init_once.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta-quanta/meta-gsj/recipes-gsj/quanta-nvme-powerctrl/files/init_once.sh b/meta-quanta/meta-gsj/recipes-gsj/quanta-nvme-powerctrl/files/init_once.sh
index 71116fbe9..08aa7a054 100644
--- a/meta-quanta/meta-gsj/recipes-gsj/quanta-nvme-powerctrl/files/init_once.sh
+++ b/meta-quanta/meta-gsj/recipes-gsj/quanta-nvme-powerctrl/files/init_once.sh
@@ -45,8 +45,8 @@ do
CLOCK_GEN_VALUE=$(printf '0x%x\n' \
"$(($CLOCK_GEN_VALUE | 0x$update_value))")
else
- set_gpio_direction "${RST_BMC_U2[$1]}" "low"
- set_gpio_direction "${POWER_U2[$1]}" "low"
+ set_gpio_direction "${RST_BMC_U2[$i]}" "low"
+ set_gpio_direction "${POWER_U2[$i]}" "low"
CLOCK_GEN_VALUE=$(printf '0x%x\n' \
"$(($CLOCK_GEN_VALUE & ~0x$update_value))")