soc: x86: Used fixed BDF values for early serial

Since DTS doesn't contain the BDF anymore (it's looked up at runtime),
hardcode the BDF value for the use of early serial.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
Johan Hedberg 2022-11-11 11:18:22 +02:00 committed by Carles Cufí
parent fcfff0633e
commit 1d3e1c7778
2 changed files with 2 additions and 3 deletions

View File

@ -29,7 +29,6 @@
#include <zephyr/drivers/pcie/pcie.h>
/* This expands to "PCIE_BDF(0, 0x18, 0)" on this platform */
#define X86_SOC_EARLY_SERIAL_PCIDEV DT_REG_ADDR(DT_CHOSEN(zephyr_console))
#define X86_SOC_EARLY_SERIAL_PCIDEV PCIE_BDF(0, 0x18, 0) /* uart0 */
#endif /* __SOC_H_ */

View File

@ -29,7 +29,7 @@
#if DT_ON_BUS(DT_CHOSEN(zephyr_console), pcie)
#include <zephyr/drivers/pcie/pcie.h>
#define X86_SOC_EARLY_SERIAL_PCIDEV DT_REG_ADDR(DT_CHOSEN(zephyr_console))
#define X86_SOC_EARLY_SERIAL_PCIDEV PCIE_BDF(0, 0x19, 2) /* uart2 */
#else
#define X86_SOC_EARLY_SERIAL_MMIO8_ADDR DT_REG_ADDR(DT_CHOSEN(zephyr_console))
#endif