mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
This patch removes all *_PLUGIN_SUPPORT options and replaces most
*_SUPPORT options with NO_*_SUPPORT options. This means that you have to specify that you want a smaller BIOS, otherwise you get full functionality. HyperTransport is the only exception for a couple of reasons. HT requires a mainboard.h file which not all mainboards have, and it's less likely to be "plugged in" to a board that doesn't have some onboard HT. It also fixes a trivial typo in Kconfig (paylaod -> payload) Signed-off-by: Myles Watson <mylesgw@gmail.com> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://coreboot.org/repository/coreboot-v3@1140 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
parent
52bdacea13
commit
cc295dd73a
5 changed files with 41 additions and 48 deletions
15
Kconfig
15
Kconfig
|
@ -94,15 +94,15 @@ source device/Kconfig
|
||||||
# These are used for internal purposes only:
|
# These are used for internal purposes only:
|
||||||
|
|
||||||
# Buses:
|
# Buses:
|
||||||
config PCIX_SUPPORT
|
config NO_PCIX_SUPPORT
|
||||||
boolean
|
boolean
|
||||||
config PCIE_SUPPORT
|
config NO_PCIE_SUPPORT
|
||||||
boolean
|
boolean
|
||||||
config HYPERTRANSPORT_SUPPORT
|
config HYPERTRANSPORT_SUPPORT
|
||||||
boolean
|
boolean
|
||||||
config AGP_SUPPORT
|
config NO_AGP_SUPPORT
|
||||||
boolean
|
boolean
|
||||||
config CARDBUS_SUPPORT
|
config NO_CARDBUS_SUPPORT
|
||||||
boolean
|
boolean
|
||||||
|
|
||||||
# Northbridges:
|
# Northbridges:
|
||||||
|
@ -124,19 +124,14 @@ config SOUTHBRIDGE_AMD_CS5536
|
||||||
config SOUTHBRIDGE_INTEL_I82371EB
|
config SOUTHBRIDGE_INTEL_I82371EB
|
||||||
boolean
|
boolean
|
||||||
config SOUTHBRIDGE_NVIDIA_CK804
|
config SOUTHBRIDGE_NVIDIA_CK804
|
||||||
select PCIE_SUPPORT
|
|
||||||
boolean
|
boolean
|
||||||
config SOUTHBRIDGE_NVIDIA_MCP55
|
config SOUTHBRIDGE_NVIDIA_MCP55
|
||||||
select PCIE_SUPPORT
|
|
||||||
boolean
|
boolean
|
||||||
config SOUTHBRIDGE_AMD_AMD8151
|
config SOUTHBRIDGE_AMD_AMD8151
|
||||||
select AGP_SUPPORT
|
|
||||||
boolean
|
boolean
|
||||||
config SOUTHBRIDGE_AMD_AMD8132
|
config SOUTHBRIDGE_AMD_AMD8132
|
||||||
select PCIX_SUPPORT
|
|
||||||
boolean
|
boolean
|
||||||
config SOUTHBRIDGE_AMD_AMD8131
|
config SOUTHBRIDGE_AMD_AMD8131
|
||||||
select PCIX_SUPPORT
|
|
||||||
boolean
|
boolean
|
||||||
config SOUTHBRIDGE_AMD_AMD8111
|
config SOUTHBRIDGE_AMD_AMD8111
|
||||||
boolean
|
boolean
|
||||||
|
@ -174,7 +169,7 @@ config PAYLOAD_ELF_LOADER
|
||||||
bool "Include ELF payload loader"
|
bool "Include ELF payload loader"
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
This option allows an unparsed ELF paylaod to be added and loaded.
|
This option allows an unparsed ELF payload to be added and loaded.
|
||||||
|
|
||||||
choice
|
choice
|
||||||
prompt "Payload type"
|
prompt "Payload type"
|
||||||
|
|
|
@ -123,43 +123,32 @@ config INITIALIZE_ONBOARD_VGA_FIRST
|
||||||
Initialize onboard VGA chips before any plugin VGA cards
|
Initialize onboard VGA chips before any plugin VGA cards
|
||||||
are initialized.
|
are initialized.
|
||||||
|
|
||||||
menu "Plugin Support"
|
menu "Remove Bus Support (for size reasons)"
|
||||||
depends EXPERT
|
depends EXPERT
|
||||||
|
|
||||||
config PCIX_PLUGIN_SUPPORT
|
config NO_PCIX_SUPPORT
|
||||||
bool "Support for devices that provide PCI-X and aren't in the dts."
|
bool "Remove support for PCI-X."
|
||||||
select PCIX_SUPPORT
|
|
||||||
default false
|
default false
|
||||||
help
|
help
|
||||||
Compile in the drivers for cards that provide PCI-X.
|
Don't compile in the drivers for cards that provide PCI-X.
|
||||||
|
|
||||||
config PCIE_PLUGIN_SUPPORT
|
config NO_PCIE_SUPPORT
|
||||||
bool "Support for devices that provide PCI-e and aren't in the dts."
|
bool "Remove support for PCI-Express."
|
||||||
select PCIE_SUPPORT
|
|
||||||
default false
|
default false
|
||||||
help
|
help
|
||||||
Compile in the drivers for cards that provide PCI-e.
|
Don't compile in the drivers for cards that provide PCI-e.
|
||||||
|
|
||||||
config HYPERTRANSPORT_PLUGIN_SUPPORT
|
config NO_AGP_SUPPORT
|
||||||
bool "Support for devices that provide HT and aren't in the dts."
|
bool "Remove support for AGP."
|
||||||
select HYPERTRANSPORT_SUPPORT
|
|
||||||
default false
|
default false
|
||||||
help
|
help
|
||||||
Compile in the drivers for cards that provide HT.
|
Don't compile in the drivers for cards that provide AGP.
|
||||||
|
|
||||||
config AGP_PLUGIN_SUPPORT
|
config NO_CARDBUS_SUPPORT
|
||||||
bool "Support for devices that provide AGP and aren't in the dts."
|
bool "Remove support for CardBus."
|
||||||
select AGP_SUPPORT
|
|
||||||
default false
|
default false
|
||||||
help
|
help
|
||||||
Compile in the drivers for cards that provide AGP.
|
Don't compile in the drivers for cards that provide CardBus.
|
||||||
|
|
||||||
config CARDBUS_PLUGIN_SUPPORT
|
|
||||||
bool "Support for devices that provide Cardbus and aren't in the dts."
|
|
||||||
select CARDBUS_SUPPORT
|
|
||||||
default false
|
|
||||||
help
|
|
||||||
Compile in the drivers for cards that provide Cardbus.
|
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
|
|
|
@ -32,19 +32,19 @@ ifeq ($(CONFIG_HYPERTRANSPORT_SUPPORT),y)
|
||||||
STAGE2_DEVICE_SRC += hypertransport.c
|
STAGE2_DEVICE_SRC += hypertransport.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_PCIX_SUPPORT),y)
|
ifneq ($(CONFIG_NO_PCIX_SUPPORT),y)
|
||||||
STAGE2_DEVICE_SRC += pcix_device.c
|
STAGE2_DEVICE_SRC += pcix_device.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_PCIE_SUPPORT),y)
|
ifneq ($(CONFIG_NO_PCIE_SUPPORT),y)
|
||||||
STAGE2_DEVICE_SRC += pcie_device.c
|
STAGE2_DEVICE_SRC += pcie_device.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_CARDBUS_SUPPORT),y)
|
ifneq ($(CONFIG_NO_CARDBUS_SUPPORT),y)
|
||||||
STAGE2_DEVICE_SRC += cardbus_device.c
|
STAGE2_DEVICE_SRC += cardbus_device.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_AGP_SUPPORT),y)
|
ifneq ($(CONFIG_NO_AGP_SUPPORT),y)
|
||||||
STAGE2_DEVICE_SRC += agp_device.c
|
STAGE2_DEVICE_SRC += agp_device.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -41,6 +41,15 @@
|
||||||
#include <lib.h>
|
#include <lib.h>
|
||||||
#include <lapic.h>
|
#include <lapic.h>
|
||||||
|
|
||||||
|
/* These defines are for PLUGIN_SUPPORT. */
|
||||||
|
#ifndef HT_CHAIN_UNITID_BASE
|
||||||
|
#define HT_CHAIN_UNITID_BASE 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef HT_CHAIN_END_UNITID_BASE
|
||||||
|
#define HT_CHAIN_END_UNITID_BASE 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#define OPT_HT_LINK 0
|
#define OPT_HT_LINK 0
|
||||||
|
|
||||||
static struct device *ht_scan_get_devs(struct device **old_devices)
|
static struct device *ht_scan_get_devs(struct device **old_devices)
|
||||||
|
|
|
@ -32,19 +32,19 @@
|
||||||
#include <device/pci.h>
|
#include <device/pci.h>
|
||||||
#include <device/pci_ids.h>
|
#include <device/pci_ids.h>
|
||||||
|
|
||||||
#ifdef CONFIG_PCIX_PLUGIN_SUPPORT
|
#ifndef CONFIG_NO_PCIX_SUPPORT
|
||||||
#include <device/pcix.h>
|
#include <device/pcix.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_AGP_PLUGIN_SUPPORT
|
#ifndef CONFIG_NO_AGP_SUPPORT
|
||||||
#include <device/agp.h>
|
#include <device/agp.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_HYPERTRANSPORT_PLUGIN_SUPPORT
|
#ifdef CONFIG_HYPERTRANSPORT_SUPPORT
|
||||||
#include <device/hypertransport.h>
|
#include <device/hypertransport.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_PCIE_PLUGIN_SUPPORT
|
#ifndef CONFIG_NO_PCIE_SUPPORT
|
||||||
#include <device/pcie.h>
|
#include <device/pcie.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_CARDBUS_PLUGIN_SUPPORT
|
#ifndef CONFIG_NO_CARDBUS_SUPPORT
|
||||||
#include <device/cardbus.h>
|
#include <device/cardbus.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -792,7 +792,7 @@ const struct device_operations default_pci_ops_bus = {
|
||||||
*/
|
*/
|
||||||
static const struct device_operations *get_pci_bridge_ops(struct device *dev)
|
static const struct device_operations *get_pci_bridge_ops(struct device *dev)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_PCIX_PLUGIN_SUPPORT
|
#ifndef CONFIG_NO_PCIX_SUPPORT
|
||||||
unsigned int pcix_pos;
|
unsigned int pcix_pos;
|
||||||
pcix_pos = pci_find_capability(dev, PCI_CAP_ID_PCIX);
|
pcix_pos = pci_find_capability(dev, PCI_CAP_ID_PCIX);
|
||||||
if (pcix_pos) {
|
if (pcix_pos) {
|
||||||
|
@ -801,12 +801,12 @@ static const struct device_operations *get_pci_bridge_ops(struct device *dev)
|
||||||
return &default_pcix_ops_bus;
|
return &default_pcix_ops_bus;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_AGP_PLUGIN_SUPPORT
|
#ifndef CONFIG_NO_AGP_SUPPORT
|
||||||
/* How do I detect an PCI to AGP bridge? */
|
/* How do I detect an PCI to AGP bridge? */
|
||||||
#warning AGP detection not implemented, so AGP bridge plugin not supported.
|
#warning AGP detection not implemented, so AGP bridge plugin not supported.
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_HYPERTRANSPORT_PLUGIN_SUPPORT
|
#ifdef CONFIG_HYPERTRANSPORT_SUPPORT
|
||||||
unsigned int ht_pos;
|
unsigned int ht_pos;
|
||||||
ht_pos = 0;
|
ht_pos = 0;
|
||||||
while ((ht_pos = pci_find_next_capability(dev, PCI_CAP_ID_HT, ht_pos))) {
|
while ((ht_pos = pci_find_next_capability(dev, PCI_CAP_ID_HT, ht_pos))) {
|
||||||
|
@ -821,7 +821,7 @@ static const struct device_operations *get_pci_bridge_ops(struct device *dev)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_PCIE_PLUGIN_SUPPORT
|
#ifndef CONFIG_NO_PCIE_SUPPORT
|
||||||
unsigned int pcie_pos;
|
unsigned int pcie_pos;
|
||||||
pcie_pos = pci_find_capability(dev, PCI_CAP_ID_PCIE);
|
pcie_pos = pci_find_capability(dev, PCI_CAP_ID_PCIE);
|
||||||
if (pcie_pos) {
|
if (pcie_pos) {
|
||||||
|
@ -897,7 +897,7 @@ static void set_pci_ops(struct device *dev)
|
||||||
else
|
else
|
||||||
dev->ops = get_pci_bridge_ops(dev);
|
dev->ops = get_pci_bridge_ops(dev);
|
||||||
break;
|
break;
|
||||||
#ifdef CONFIG_CARDBUS_PLUGIN_SUPPORT
|
#ifndef CONFIG_NO_CARDBUS_SUPPORT
|
||||||
case PCI_HEADER_TYPE_CARDBUS:
|
case PCI_HEADER_TYPE_CARDBUS:
|
||||||
dev->ops = &default_cardbus_ops_bus;
|
dev->ops = &default_cardbus_ops_bus;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue