1 /* 2 * Copyright (c) 2018-2023, Intel Corporation 3 * Copyright (c) 2010-2015, Wind River Systems, Inc. 4 * 5 * SPDX-License-Identifier: Apache-2.0 6 */ 7 8 /** 9 * @file 10 * @brief Board configuration macros for the Alder Lake SoC 11 * 12 * This header file is used to specify and describe soc-level aspects for 13 * the 'Alder Lake' SoC. 14 */ 15 16 #ifndef __SOC_H_ 17 #define __SOC_H_ 18 19 #include <zephyr/sys/util.h> 20 21 #ifndef _ASMLANGUAGE 22 #include <zephyr/device.h> 23 #include <zephyr/random/random.h> 24 #endif 25 26 #ifdef CONFIG_GPIO_INTEL 27 #include "soc_gpio.h" 28 #endif 29 30 #if DT_ON_BUS(DT_CHOSEN(zephyr_console), pcie) 31 #include <zephyr/drivers/pcie/pcie.h> 32 #define X86_SOC_EARLY_SERIAL_PCIDEV PCIE_BDF(0, 0x19, 2) /* uart2 */ 33 #else 34 #define X86_SOC_EARLY_SERIAL_MMIO8_ADDR DT_REG_ADDR(DT_CHOSEN(zephyr_console)) 35 #endif 36 37 #endif /* __SOC_H_ */ 38