blob: b15412a46b8d7672f02a71901160cfea6b5bffa7 [file] [log] [blame]
/*
* 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_
#include <sys/util.h>
#ifndef _ASMLANGUAGE
#include <device.h>
#include <random/rand32.h>
#endif
#ifdef CONFIG_GPIO_INTEL
#include "soc_gpio.h"
#endif
#if DT_ON_BUS(DT_CHOSEN(zephyr_console), pcie)
#include <drivers/pcie/pcie.h>
#define X86_SOC_EARLY_SERIAL_PCIDEV DT_REG_ADDR(DT_CHOSEN(zephyr_console))
#else
#define X86_SOC_EARLY_SERIAL_MMIO8_ADDR DT_REG_ADDR(DT_CHOSEN(zephyr_console))
#endif
#endif /* __SOC_H_ */