acpi/acpigen.c: Remove weak gpio definition
Compiletime errors > runtime errors. Change-Id: I1db0a8f01eaecf012e5444c03f8d4e2bb6e42a77 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/58649 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
parent
05592ff1e6
commit
bce7458aa1
|
@ -2020,35 +2020,6 @@ void acpigen_write_rom(void *bios, const size_t length)
|
|||
acpigen_pop_len();
|
||||
}
|
||||
|
||||
/* Soc-implemented functions -- weak definitions. */
|
||||
int __weak acpigen_soc_read_rx_gpio(unsigned int gpio_num)
|
||||
{
|
||||
printk(BIOS_ERR, "ERROR: %s not implemented\n", __func__);
|
||||
acpigen_write_debug_string("read_rx_gpio not available");
|
||||
return -1;
|
||||
}
|
||||
|
||||
int __weak acpigen_soc_get_tx_gpio(unsigned int gpio_num)
|
||||
{
|
||||
printk(BIOS_ERR, "ERROR: %s not implemented\n", __func__);
|
||||
acpigen_write_debug_string("get_tx_gpio not available");
|
||||
return -1;
|
||||
}
|
||||
|
||||
int __weak acpigen_soc_set_tx_gpio(unsigned int gpio_num)
|
||||
{
|
||||
printk(BIOS_ERR, "ERROR: %s not implemented\n", __func__);
|
||||
acpigen_write_debug_string("set_tx_gpio not available");
|
||||
return -1;
|
||||
}
|
||||
|
||||
int __weak acpigen_soc_clear_tx_gpio(unsigned int gpio_num)
|
||||
{
|
||||
printk(BIOS_ERR, "ERROR: %s not implemented\n", __func__);
|
||||
acpigen_write_debug_string("clear_tx_gpio not available");
|
||||
return -1;
|
||||
}
|
||||
|
||||
/*
|
||||
* Helper functions for enabling/disabling Tx GPIOs based on the GPIO
|
||||
* polarity. These functions end up calling acpigen_soc_{set,clear}_tx_gpio to
|
||||
|
|
Loading…
Reference in New Issue