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:
parent
fcfff0633e
commit
1d3e1c7778
@ -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_ */
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user