superio/winbond/w83977tf: Fix iasl warning

The common PnP serial port DSDT code is intentionally included twice for
two serial ports with different LDNs. Undefine LDN and the PM register
name before redefining for second serial port so iasl doesn't complain.

Change-Id: I031905479c66698fb01da028e3f37d923396d2d9
Signed-off-by: Keith Hui <buurin@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/41095
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Keith Hui 2020-05-05 16:01:07 -04:00 committed by Patrick Georgi
parent 14ea2fc90c
commit 5f0e8d8462
1 changed files with 2 additions and 0 deletions

View File

@ -350,6 +350,8 @@ Device (ECP)
#define SUPERIO_UART_LDN W83977TF_SP1
#define SUPERIO_UART_PM_REG UAPW
#include <superio/acpi/pnp_uart.asl>
#undef SUPERIO_UART_LDN
#undef SUPERIO_UART_PM_REG
#endif
#ifdef SUPERIO_SHOW_UARTB