Gitiles
Code Review
Sign In
review.coreboot.org
/
coreboot
/
6b5bc77c9b22c398262ff3f4dae3e14904c57366
/
.
/
src
/
southbridge
/
amd
/
pi
/
hudson
/
gpio.c
blob: 18e9c2180a85fa632742a576065798e6c5d80d58 [
file
] [
log
] [
blame
]
/* SPDX-License-Identifier: GPL-2.0-only */
#include
<device/mmio.h>
#include
"gpio.h"
int
gpio_get
(
gpio_t
gpio_num
)
{
uint32_t
reg
;
reg
=
read32
((
void
*)(
uintptr_t
)
gpio_num
);
return
!!(
reg
&
GPIO_PIN_STS
);
}