soc/amd/stoneyridge: Fix gpio_set function
The gpio_set function was not writing the correct GPIO register address. Change-Id: Ib306773ac72505977b606836bbaf3e2067324894 Signed-off-by: Marc Jones <marcj303@gmail.com> Reviewed-on: https://review.coreboot.org/27484 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
parent
517c4c1563
commit
c9ed3ee8d8
|
@ -162,7 +162,7 @@ void gpio_set(gpio_t gpio_num, int value)
|
|||
reg = read32((void *)gpio_address);
|
||||
reg &= ~GPIO_OUTPUT_MASK;
|
||||
reg |= !!value << GPIO_OUTPUT_SHIFT;
|
||||
write32((void *)(uintptr_t)gpio_num, reg);
|
||||
write32((void *)(uintptr_t)gpio_address, reg);
|
||||
}
|
||||
|
||||
void gpio_input_pulldown(gpio_t gpio_num)
|
||||
|
|
Loading…
Reference in New Issue