Gitiles
Code Review
Sign In
gerrit.openbmc.org
/
openbmc
/
meta-quanta
/
139486a40ca8fa9d3ca45fb7d38afba83ea6e382
/
.
/
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
;