Gitiles
Code Review
Sign In
gerrit.openbmc.org
/
openbmc
/
skeleton
/
c1ce68b3df3e63a6eef2b9b3c0ff8b176a40df01
/
.
/
pysystemmgr
/
obmc
/
system
/
__init__.py
blob: 8799b695f75df401eb9cab50e18ffffd2e9b3384 [
file
] [
log
] [
blame
]
Brad Bishop
a7ac805
2016-09-21 09:17:05 -0400
[
diff
] [
blame
]
1
GPIO_BASE
=
320
2
3
def
convertGpio
(
name
):
4
name
=
name
.
upper
()
5
c
=
name
[
0
:
1
]
6
offset
=
int
(
name
[
1
:])
7
a
=
ord
(
c
)-
65
8
base
=
a
*
8
+
GPIO_BASE
9
return
base
+
offset