summaryrefslogtreecommitdiff
path: root/meta-quanta/meta-gsj/recipes-gsj/quanta-nvme-powerctrl/files/init_once.sh
diff options
context:
space:
mode:
Diffstat (limited to 'meta-quanta/meta-gsj/recipes-gsj/quanta-nvme-powerctrl/files/init_once.sh')
-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))")