soc/amd/stoneyridge/gpio.c: Fix gpio_output()
Function gpio_output() is only setting the pin as an output, when in fact it should also set the state (high/low) of the pin. Fix the procedure to set the state of the pin. BUG=b:78328773 TEST=None Change-Id: I516192a0782a9bbb40124029f264a2711114c800 Signed-off-by: Richard Spiegel <richard.spiegel@silverbackltd.com> Reviewed-on: https://review.coreboot.org/25871 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
parent
ccfa18feff
commit
7a52c17f16
|
@ -95,6 +95,7 @@ void gpio_output(gpio_t gpio_num, int value)
|
||||||
reg = read32((void *)gpio_address);
|
reg = read32((void *)gpio_address);
|
||||||
reg |= GPIO_OUTPUT_ENABLE;
|
reg |= GPIO_OUTPUT_ENABLE;
|
||||||
write32((void *)(uintptr_t)gpio_num, reg);
|
write32((void *)(uintptr_t)gpio_num, reg);
|
||||||
|
gpio_set(gpio_num, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *gpio_acpi_path(gpio_t gpio)
|
const char *gpio_acpi_path(gpio_t gpio)
|
||||||
|
|
Loading…
Reference in New Issue