x86: atom: remove soc.h with unused content
None of the code in soc.h is being used anywhere, so remove it and remove include from various places. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
@@ -8,7 +8,6 @@
|
||||
#include <zephyr/sys/device_mmio.h>
|
||||
#include <zephyr/sys/util.h>
|
||||
#include <zephyr/drivers/pcie/pcie.h>
|
||||
#include <soc.h>
|
||||
|
||||
|
||||
#if DT_PROP_OR(DT_CHOSEN(zephyr_console), io_mapped, 0) != 0
|
||||
|
||||
@@ -11,11 +11,12 @@
|
||||
* crossing clock domains (no pun intended). Use accordingly.
|
||||
*/
|
||||
|
||||
#define DT_DRV_COMPAT motorola_mc146818
|
||||
|
||||
#include <zephyr/spinlock.h>
|
||||
#include <zephyr/drivers/counter.h>
|
||||
#include <zephyr/device.h>
|
||||
#include <soc.h>
|
||||
#include <limits.h>
|
||||
|
||||
#define DT_DRV_COMPAT motorola_mc146818
|
||||
|
||||
/* The "CMOS" device is accessed via an address latch and data port. */
|
||||
|
||||
|
||||
@@ -13,7 +13,6 @@ LOG_MODULE_REGISTER(nvme, CONFIG_NVME_LOG_LEVEL);
|
||||
|
||||
#include <zephyr/kernel.h>
|
||||
|
||||
#include <soc.h>
|
||||
#include <zephyr/device.h>
|
||||
#include <zephyr/init.h>
|
||||
|
||||
|
||||
@@ -14,8 +14,6 @@
|
||||
|
||||
#include <zephyr/dt-bindings/interrupt-controller/intel-ioapic.h>
|
||||
|
||||
#include <soc.h>
|
||||
|
||||
/**
|
||||
* @file
|
||||
* @brief HPET (High Precision Event Timers) driver
|
||||
|
||||
@@ -1,60 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2010-2015, Wind River Systems, Inc.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file
|
||||
* @brief Board configuration macros for the ia32 platform
|
||||
*
|
||||
* This header file is used to specify and describe board-level aspects for
|
||||
* the 'ia32' platform.
|
||||
*/
|
||||
|
||||
#ifndef __SOC_H_
|
||||
#define __SOC_H_
|
||||
|
||||
#include <zephyr/sys/util.h>
|
||||
|
||||
#ifndef _ASMLANGUAGE
|
||||
#include <zephyr/device.h>
|
||||
#include <zephyr/random/random.h>
|
||||
#endif
|
||||
|
||||
/* PCI definitions */
|
||||
/* FIXME: The values below copied from generic ia32 soc, we need to get the
|
||||
* correct numbers for Atom and the minnowboard
|
||||
*
|
||||
* This is added now to get basic enumeration of devices and verify that PCI
|
||||
* driver is functional.
|
||||
*/
|
||||
#define PCI_BUS_NUMBERS 1
|
||||
|
||||
#define PCI_CTRL_ADDR_REG 0xCF8
|
||||
#define PCI_CTRL_DATA_REG 0xCFC
|
||||
|
||||
#define PCI_INTA 1
|
||||
#define PCI_INTB 2
|
||||
#define PCI_INTC 3
|
||||
#define PCI_INTD 4
|
||||
|
||||
/**
|
||||
*
|
||||
* @brief Convert PCI interrupt PIN to IRQ
|
||||
*
|
||||
* @return IRQ number, -1 if the result is incorrect
|
||||
*
|
||||
*/
|
||||
|
||||
static inline int pci_pin2irq(int bus, int dev, int pin)
|
||||
{
|
||||
ARG_UNUSED(bus);
|
||||
|
||||
if ((pin < PCI_INTA) || (pin > PCI_INTD)) {
|
||||
return -1;
|
||||
}
|
||||
return 10 + (((pin + dev - 1) >> 1) & 1);
|
||||
}
|
||||
|
||||
#endif /* __SOC_H_ */
|
||||
@@ -18,7 +18,6 @@
|
||||
#include <zephyr/sys/byteorder.h>
|
||||
#include <zephyr/debug/stack.h>
|
||||
#include <zephyr/sys/__assert.h>
|
||||
#include <soc.h>
|
||||
|
||||
#include <zephyr/settings/settings.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user