Gitiles
Code Review
Sign In
gerrit.openbmc.org
/
openbmc
/
meta-quanta
/
a9b1d30a9b54a0233c4efa3a08e86264bebf69ca
/
.
/
meta-q71l
/
recipes-phosphor
/
quanta-powerctrl
/
files
/
poweron.sh
blob: a0f0326227ee92727f5c860afd524c0a30e04a95 [
file
] [
log
] [
blame
]
#!/bin/bash
GPIO_BASE
=
$
(
cat
/
sys
/
class
/
gpio
/
gpiochip
*/
base
)
GPIO_NUM
=
$
((
$GPIO_BASE
+
24
+
3
))
echo
1
>
/
sys
/
class
/
gpio
/
gpio$
{
GPIO_NUM
}/
value
sleep
1
echo
0
>
/
sys
/
class
/
gpio
/
gpio$
{
GPIO_NUM
}/
value
exit
0
;