2020-12-11 02:08:37 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018-2020, Intel Corporation
|
|
|
|
* Copyright (c) 2010-2015, Wind River Systems, Inc.
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* @brief Board configuration macros for the Elkhart Lake SoC
|
|
|
|
*
|
|
|
|
* This header file is used to specify and describe soc-level aspects for
|
|
|
|
* the 'Elkhart Lake' SoC.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __SOC_H_
|
|
|
|
#define __SOC_H_
|
|
|
|
|
2022-05-06 17:11:04 +08:00
|
|
|
#include <zephyr/sys/util.h>
|
2020-12-11 02:08:37 +08:00
|
|
|
|
|
|
|
#ifndef _ASMLANGUAGE
|
2022-05-06 17:11:04 +08:00
|
|
|
#include <zephyr/device.h>
|
2023-10-07 06:38:53 +08:00
|
|
|
#include <zephyr/random/random.h>
|
2020-12-11 02:08:37 +08:00
|
|
|
#endif
|
|
|
|
|
2021-05-06 08:41:30 +08:00
|
|
|
#ifdef CONFIG_GPIO_INTEL
|
|
|
|
#include "soc_gpio.h"
|
|
|
|
#endif
|
|
|
|
|
2020-12-23 00:13:36 +08:00
|
|
|
#if DT_ON_BUS(DT_CHOSEN(zephyr_console), pcie)
|
2022-05-06 17:11:04 +08:00
|
|
|
#include <zephyr/drivers/pcie/pcie.h>
|
2022-11-11 17:18:22 +08:00
|
|
|
#define X86_SOC_EARLY_SERIAL_PCIDEV PCIE_BDF(0, 0x19, 2) /* uart2 */
|
2020-12-23 00:13:36 +08:00
|
|
|
#else
|
|
|
|
#define X86_SOC_EARLY_SERIAL_MMIO8_ADDR DT_REG_ADDR(DT_CHOSEN(zephyr_console))
|
|
|
|
#endif
|
2020-12-11 02:08:37 +08:00
|
|
|
|
|
|
|
#endif /* __SOC_H_ */
|