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:
Marc Jones 2018-07-14 17:07:00 -06:00 committed by Marc Jones
parent 517c4c1563
commit c9ed3ee8d8
1 changed files with 1 additions and 1 deletions

View File

@ -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)