soc/intel/apollolake: Remove soc/pci_ids dependency
and add pci ids for GLK and APL from device/pci_ids.h Change-Id: If8101fe52591b09caadfe104ca8daab4258837c7 Signed-off-by: Hannah Williams <hannah.williams@intel.com> Reviewed-on: https://review.coreboot.org/19999 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Philippe Mathieu-Daudé <philippe.mathieu.daude@gmail.com> Reviewed-by: Furquan Shaikh <furquan@google.com>
This commit is contained in:
parent
9deb23a4ad
commit
f5f7c84a58
@ -16,7 +16,6 @@
|
|||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
#include <device/pci.h>
|
#include <device/pci.h>
|
||||||
#include <device/pci_ids.h>
|
#include <device/pci_ids.h>
|
||||||
#include <soc/pci_ids.h>
|
|
||||||
|
|
||||||
static struct device_operations dsp_dev_ops = {
|
static struct device_operations dsp_dev_ops = {
|
||||||
.read_resources = &pci_dev_read_resources,
|
.read_resources = &pci_dev_read_resources,
|
||||||
@ -25,8 +24,14 @@ static struct device_operations dsp_dev_ops = {
|
|||||||
.scan_bus = &scan_static_bus,
|
.scan_bus = &scan_static_bus,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const unsigned short pci_device_ids[] = {
|
||||||
|
PCI_DEVICE_ID_INTEL_APL_AUDIO,
|
||||||
|
PCI_DEVICE_ID_INTEL_GLK_AUDIO,
|
||||||
|
0,
|
||||||
|
};
|
||||||
|
|
||||||
static const struct pci_driver apollolake_dsp __pci_driver = {
|
static const struct pci_driver apollolake_dsp __pci_driver = {
|
||||||
.ops = &dsp_dev_ops,
|
.ops = &dsp_dev_ops,
|
||||||
.vendor = PCI_VENDOR_ID_INTEL,
|
.vendor = PCI_VENDOR_ID_INTEL,
|
||||||
.device = PCI_DEVICE_ID_APOLLOLAKE_AUDIO
|
.devices = pci_device_ids,
|
||||||
};
|
};
|
||||||
|
@ -23,7 +23,6 @@
|
|||||||
#include <device/pci.h>
|
#include <device/pci.h>
|
||||||
#include <device/pci_ids.h>
|
#include <device/pci_ids.h>
|
||||||
#include <soc/pci_devs.h>
|
#include <soc/pci_devs.h>
|
||||||
#include <soc/pci_ids.h>
|
|
||||||
#include <soc/intel/common/opregion.h>
|
#include <soc/intel/common/opregion.h>
|
||||||
|
|
||||||
uintptr_t fsp_soc_get_igd_bar(void)
|
uintptr_t fsp_soc_get_igd_bar(void)
|
||||||
@ -91,8 +90,9 @@ static const struct device_operations igd_ops = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static const unsigned short pci_device_ids[] = {
|
static const unsigned short pci_device_ids[] = {
|
||||||
PCI_DEVICE_ID_APOLLOLAKE_IGD_HD_505,
|
PCI_DEVICE_ID_INTEL_APL_IGD_HD_505,
|
||||||
PCI_DEVICE_ID_APOLLOLAKE_IGD_HD_500,
|
PCI_DEVICE_ID_INTEL_APL_IGD_HD_500,
|
||||||
|
PCI_DEVICE_ID_INTEL_GLK_IGD,
|
||||||
0,
|
0,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,43 +0,0 @@
|
|||||||
/*
|
|
||||||
* This file is part of the coreboot project.
|
|
||||||
*
|
|
||||||
* Copyright (C) 2015 Intel Corp.
|
|
||||||
* (Written by Alexandru Gagniuc <alexandrux.gagniuc@intel.com> for Intel Corp.)
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _SOC_APOLLOLAKE_PCI_IDS_H_
|
|
||||||
#define _SOC_APOLLOLAKE_PCI_IDS_H_
|
|
||||||
|
|
||||||
#define PCI_DEVICE_ID_APOLLOLAKE_NB 0x5af0 /* 00:00.0 */
|
|
||||||
#define PCI_DEVICE_ID_APOLLOLAKE_IGD_HD_505 0x5a84 /* 00:02.0 */
|
|
||||||
#define PCI_DEVICE_ID_APOLLOLAKE_IGD_HD_500 0x5a85 /* 00:02.0 */
|
|
||||||
#define PCI_DEVICE_ID_APOLLOLAKE_P2SB 0x5a92 /* 00:0d.0 */
|
|
||||||
#define PCI_DEVICE_ID_APOLLOLAKE_PMC 0x5a94 /* 00:0d.1 */
|
|
||||||
#define PCI_DEVICE_ID_APOLLOLAKE_HWSEQ_SPI 0x5a96 /* 00:0d.2 */
|
|
||||||
#define PCI_DEVICE_ID_APOLLOLAKE_SRAM 0x5aec /* 00:0d.3 */
|
|
||||||
#define PCI_DEVICE_ID_APOLLOLAKE_AUDIO 0x5a98 /* 00:0e.0 */
|
|
||||||
#define PCI_DEVICE_ID_APOLLOLAKE_SATA 0x5ae0 /* 00:12.0 */
|
|
||||||
#define PCI_DEVICE_ID_APOLLOLAKE_I2C0 0x5aac /* 00:16.0 */
|
|
||||||
#define PCI_DEVICE_ID_APOLLOLAKE_I2C1 0x5aae /* 00:16.1 */
|
|
||||||
#define PCI_DEVICE_ID_APOLLOLAKE_I2C2 0x5ab0 /* 00:16.2 */
|
|
||||||
#define PCI_DEVICE_ID_APOLLOLAKE_I2C3 0x5ab2 /* 00:16.3 */
|
|
||||||
#define PCI_DEVICE_ID_APOLLOLAKE_I2C4 0x5ab4 /* 00:17.0 */
|
|
||||||
#define PCI_DEVICE_ID_APOLLOLAKE_I2C5 0x5ab6 /* 00:17.1 */
|
|
||||||
#define PCI_DEVICE_ID_APOLLOLAKE_I2C6 0x5ab8 /* 00:17.2 */
|
|
||||||
#define PCI_DEVICE_ID_APOLLOLAKE_I2C7 0x5aba /* 00:17.3 */
|
|
||||||
#define PCI_DEVICE_ID_APOLLOLAKE_SPI0 0x5ac2 /* 00:19.0 */
|
|
||||||
#define PCI_DEVICE_ID_APOLLOLAKE_SPI1 0x5ac4 /* 00:19.1 */
|
|
||||||
#define PCI_DEVICE_ID_APOLLOLAKE_SPI2 0x5ac6 /* 00:19.2 */
|
|
||||||
#define PCI_DEVICE_ID_APOLLOLAKE_LPC 0x5ae8 /* 00:1f.0 */
|
|
||||||
|
|
||||||
#endif /* _SOC_APOLLOLAKE_PCI_IDS_H_ */
|
|
@ -23,7 +23,6 @@
|
|||||||
#include <pc80/mc146818rtc.h>
|
#include <pc80/mc146818rtc.h>
|
||||||
#include <soc/acpi.h>
|
#include <soc/acpi.h>
|
||||||
#include <soc/lpc.h>
|
#include <soc/lpc.h>
|
||||||
#include <soc/pci_ids.h>
|
|
||||||
#include <soc/pm.h>
|
#include <soc/pm.h>
|
||||||
#include <vboot/vbnv.h>
|
#include <vboot/vbnv.h>
|
||||||
|
|
||||||
@ -167,8 +166,14 @@ static struct device_operations device_ops = {
|
|||||||
.scan_bus = scan_lpc_bus,
|
.scan_bus = scan_lpc_bus,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const unsigned short pci_device_ids[] = {
|
||||||
|
PCI_DEVICE_ID_INTEL_APL_LPC,
|
||||||
|
PCI_DEVICE_ID_INTEL_GLK_LPC,
|
||||||
|
0,
|
||||||
|
};
|
||||||
|
|
||||||
static const struct pci_driver soc_lpc __pci_driver = {
|
static const struct pci_driver soc_lpc __pci_driver = {
|
||||||
.ops = &device_ops,
|
.ops = &device_ops,
|
||||||
.vendor = PCI_VENDOR_ID_INTEL,
|
.vendor = PCI_VENDOR_ID_INTEL,
|
||||||
.device = PCI_DEVICE_ID_APOLLOLAKE_LPC,
|
.devices = pci_device_ids,
|
||||||
};
|
};
|
||||||
|
@ -21,7 +21,6 @@
|
|||||||
#include <device/pci.h>
|
#include <device/pci.h>
|
||||||
#include <device/pci_ids.h>
|
#include <device/pci_ids.h>
|
||||||
#include <soc/systemagent.h>
|
#include <soc/systemagent.h>
|
||||||
#include <soc/pci_ids.h>
|
|
||||||
|
|
||||||
static uint32_t get_bar(device_t dev, unsigned int index)
|
static uint32_t get_bar(device_t dev, unsigned int index)
|
||||||
{
|
{
|
||||||
@ -162,8 +161,14 @@ static struct device_operations northbridge_ops = {
|
|||||||
.enable = DEVICE_NOOP
|
.enable = DEVICE_NOOP
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const unsigned short pci_device_ids[] = {
|
||||||
|
PCI_DEVICE_ID_INTEL_APL_NB,
|
||||||
|
PCI_DEVICE_ID_INTEL_GLK_NB,
|
||||||
|
0,
|
||||||
|
};
|
||||||
|
|
||||||
static const struct pci_driver northbridge_driver __pci_driver = {
|
static const struct pci_driver northbridge_driver __pci_driver = {
|
||||||
.ops = &northbridge_ops,
|
.ops = &northbridge_ops,
|
||||||
.vendor = PCI_VENDOR_ID_INTEL,
|
.vendor = PCI_VENDOR_ID_INTEL,
|
||||||
.device = PCI_DEVICE_ID_APOLLOLAKE_NB
|
.devices = pci_device_ids,
|
||||||
};
|
};
|
||||||
|
@ -21,7 +21,6 @@
|
|||||||
#include <rules.h>
|
#include <rules.h>
|
||||||
#include <soc/iomap.h>
|
#include <soc/iomap.h>
|
||||||
#include <soc/pci_devs.h>
|
#include <soc/pci_devs.h>
|
||||||
#include <soc/pci_ids.h>
|
|
||||||
#include <soc/p2sb.h>
|
#include <soc/p2sb.h>
|
||||||
|
|
||||||
#define P2SB_E0 0xe0
|
#define P2SB_E0 0xe0
|
||||||
@ -67,8 +66,14 @@ static const struct device_operations device_ops = {
|
|||||||
.set_resources = DEVICE_NOOP,
|
.set_resources = DEVICE_NOOP,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const unsigned short pci_device_ids[] = {
|
||||||
|
PCI_DEVICE_ID_INTEL_APL_P2SB,
|
||||||
|
PCI_DEVICE_ID_INTEL_GLK_P2SB,
|
||||||
|
0,
|
||||||
|
};
|
||||||
|
|
||||||
static const struct pci_driver pmc __pci_driver = {
|
static const struct pci_driver pmc __pci_driver = {
|
||||||
.ops = &device_ops,
|
.ops = &device_ops,
|
||||||
.vendor = PCI_VENDOR_ID_INTEL,
|
.vendor = PCI_VENDOR_ID_INTEL,
|
||||||
.device = PCI_DEVICE_ID_APOLLOLAKE_P2SB,
|
.devices = pci_device_ids,
|
||||||
};
|
};
|
||||||
|
@ -21,7 +21,6 @@
|
|||||||
#include <console/console.h>
|
#include <console/console.h>
|
||||||
#include <cpu/x86/smm.h>
|
#include <cpu/x86/smm.h>
|
||||||
#include <soc/iomap.h>
|
#include <soc/iomap.h>
|
||||||
#include <soc/pci_ids.h>
|
|
||||||
#include <soc/gpio.h>
|
#include <soc/gpio.h>
|
||||||
#include <soc/pci_devs.h>
|
#include <soc/pci_devs.h>
|
||||||
#include <soc/pm.h>
|
#include <soc/pm.h>
|
||||||
@ -164,8 +163,14 @@ static const struct device_operations device_ops = {
|
|||||||
.init = &pmc_init,
|
.init = &pmc_init,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const unsigned short pci_device_ids[] = {
|
||||||
|
PCI_DEVICE_ID_INTEL_APL_PMC,
|
||||||
|
PCI_DEVICE_ID_INTEL_GLK_PMC,
|
||||||
|
0,
|
||||||
|
};
|
||||||
|
|
||||||
static const struct pci_driver pmc __pci_driver = {
|
static const struct pci_driver pmc __pci_driver = {
|
||||||
.ops = &device_ops,
|
.ops = &device_ops,
|
||||||
.vendor = PCI_VENDOR_ID_INTEL,
|
.vendor = PCI_VENDOR_ID_INTEL,
|
||||||
.device = PCI_DEVICE_ID_APOLLOLAKE_PMC,
|
.devices= pci_device_ids,
|
||||||
};
|
};
|
||||||
|
@ -75,8 +75,14 @@ static struct device_operations dev_ops = {
|
|||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const unsigned short pci_device_ids[] = {
|
||||||
|
PCI_DEVICE_ID_INTEL_APL_SD,
|
||||||
|
PCI_DEVICE_ID_INTEL_GLK_SD,
|
||||||
|
0,
|
||||||
|
};
|
||||||
|
|
||||||
static const struct pci_driver pch_sd __pci_driver = {
|
static const struct pci_driver pch_sd __pci_driver = {
|
||||||
.ops = &dev_ops,
|
.ops = &dev_ops,
|
||||||
.vendor = PCI_VENDOR_ID_INTEL,
|
.vendor = PCI_VENDOR_ID_INTEL,
|
||||||
.device = 0x5aca
|
.devices= pci_device_ids,
|
||||||
};
|
};
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
#include <device/pci.h>
|
#include <device/pci.h>
|
||||||
#include <device/pci_ids.h>
|
#include <device/pci_ids.h>
|
||||||
#include <soc/pci_ids.h>
|
|
||||||
#include <soc/pci_devs.h>
|
#include <soc/pci_devs.h>
|
||||||
#include <soc/iomap.h>
|
#include <soc/iomap.h>
|
||||||
|
|
||||||
@ -61,8 +60,14 @@ static const struct device_operations device_ops = {
|
|||||||
.enable_resources = pci_dev_enable_resources,
|
.enable_resources = pci_dev_enable_resources,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const unsigned short pci_device_ids[] = {
|
||||||
|
PCI_DEVICE_ID_INTEL_APL_SRAM,
|
||||||
|
PCI_DEVICE_ID_INTEL_GLK_SRAM,
|
||||||
|
0,
|
||||||
|
};
|
||||||
|
|
||||||
static const struct pci_driver pmc __pci_driver = {
|
static const struct pci_driver pmc __pci_driver = {
|
||||||
.ops = &device_ops,
|
.ops = &device_ops,
|
||||||
.vendor = PCI_VENDOR_ID_INTEL,
|
.vendor = PCI_VENDOR_ID_INTEL,
|
||||||
.device = PCI_DEVICE_ID_APOLLOLAKE_SRAM,
|
.devices= pci_device_ids,
|
||||||
};
|
};
|
||||||
|
@ -22,7 +22,6 @@
|
|||||||
#include <device/pci_ops.h>
|
#include <device/pci_ops.h>
|
||||||
#include <intelblocks/cse.h>
|
#include <intelblocks/cse.h>
|
||||||
#include <soc/pci_devs.h>
|
#include <soc/pci_devs.h>
|
||||||
#include <soc/pci_ids.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <timer.h>
|
#include <timer.h>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user