Gitiles
Code Review
Sign In
gerrit.openbmc.org
/
mdmillerii
/
openbmc
/
7e0e3c0c6a2cd4e76ebca17ed16a37155992025e
/
.
/
meta-quanta
/
meta-q71l
/
recipes-phosphor
/
quanta-powerctrl
/
files
/
poweron.sh
blob: f925a33a8c6e98728546ad5bd2443a583e0d54d5 [
file
] [
log
] [
blame
]
#!/bin/bash
GPIO_BASE
=
$
(
cat
/
sys
/
devices
/
platform
/
ahb
/
ahb
:
apb
/
1e780000
.
gpio
/
gpio
/*/
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
;