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