diff options
author | Jason M. Bills <jason.m.bills@intel.com> | 2022-01-06 23:59:39 +0300 |
---|---|---|
committer | Jason M. Bills <jason.m.bills@intel.com> | 2022-01-06 23:59:39 +0300 |
commit | 32777eec25d2c527a62e5ffab90a3dfef35855aa (patch) | |
tree | 588a90a6fe9fb0b35c7ce23ea3bd79fa5151ccde /meta-facebook/recipes-fb/fb-powerctrl/files/setup_gpio.sh | |
parent | 61f1ca1b31a9a1108e9e7f71e47fdc19beb0490b (diff) | |
parent | 5cc2f81c5b66da00cad24e18b0d23442af060c3f (diff) | |
download | openbmc-32777eec25d2c527a62e5ffab90a3dfef35855aa.tar.xz |
Merge tag '0.86' of firmware.bmc.openbmc.yocto.openbmc into update
Diffstat (limited to 'meta-facebook/recipes-fb/fb-powerctrl/files/setup_gpio.sh')
-rwxr-xr-x | meta-facebook/recipes-fb/fb-powerctrl/files/setup_gpio.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta-facebook/recipes-fb/fb-powerctrl/files/setup_gpio.sh b/meta-facebook/recipes-fb/fb-powerctrl/files/setup_gpio.sh index 2624abd0d..cac3b20c7 100755 --- a/meta-facebook/recipes-fb/fb-powerctrl/files/setup_gpio.sh +++ b/meta-facebook/recipes-fb/fb-powerctrl/files/setup_gpio.sh @@ -7,16 +7,16 @@ function set_gpio_active_low() { return; fi - echo $1 > /sys/class/gpio/export - echo $2 > /sys/class/gpio/gpio$1/direction + echo "$1" > /sys/class/gpio/export + echo "$2" > "/sys/class/gpio/gpio$1/direction" } GPIO_BASE=$(cat /sys/class/gpio/gpio*/base) # FM_BMC_READY_N, GPIO S1, active low -set_gpio_active_low $((${GPIO_BASE} + 144 +1)) low +set_gpio_active_low $((GPIO_BASE + 144 +1)) low # FP_PECI_MUX, active low -set_gpio_active_low $((${GPIO_BASE} + 212)) high +set_gpio_active_low $((GPIO_BASE + 212)) high exit 0; |