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