summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2012-08-02 09:44:03 +0300
committerAlexandru Gagniuc <mr.nuke.me@gmail.com>2012-08-07 06:41:15 +0200
commit62673c0290790da8eaee6a4d3f951ec29d0e6fa9 (patch)
tree6917589c475b5d62bde2dcbba2eb5c38e847001a
parent7bdf85bfdb4e2c5efe47d8474f42f42c152c8882 (diff)
downloadcoreboot-62673c0290790da8eaee6a4d3f951ec29d0e6fa9.tar.gz
coreboot-62673c0290790da8eaee6a4d3f951ec29d0e6fa9.tar.bz2
coreboot-62673c0290790da8eaee6a4d3f951ec29d0e6fa9.zip
Siemens SiteMP: drop add_mainboard_resources()
Use of lb_add_memory_region() is reduntant with the MMCONF resource being set as reserved. Change-Id: I747ea34823692b6966b2e50d22aea1fb89c73c25 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/1394 Tested-by: build bot (Jenkins) Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
-rw-r--r--src/mainboard/siemens/sitemp_g1p1/Kconfig1
-rw-r--r--src/mainboard/siemens/sitemp_g1p1/mainboard.c20
2 files changed, 0 insertions, 21 deletions
diff --git a/src/mainboard/siemens/sitemp_g1p1/Kconfig b/src/mainboard/siemens/sitemp_g1p1/Kconfig
index b2cae031c41c..dc761cfd861f 100644
--- a/src/mainboard/siemens/sitemp_g1p1/Kconfig
+++ b/src/mainboard/siemens/sitemp_g1p1/Kconfig
@@ -14,7 +14,6 @@ config BOARD_SPECIFIC_OPTIONS # dummy
select HAVE_MP_TABLE
select HAVE_PIRQ_TABLE
select HAVE_OPTION_TABLE
- select HAVE_MAINBOARD_RESOURCES
select HAVE_BUS_CONFIG
select SB_HT_CHAIN_UNITID_OFFSET_ONLY
select BOARD_ROMSIZE_KB_1024
diff --git a/src/mainboard/siemens/sitemp_g1p1/mainboard.c b/src/mainboard/siemens/sitemp_g1p1/mainboard.c
index e4d88db8b570..368f5aa381c1 100644
--- a/src/mainboard/siemens/sitemp_g1p1/mainboard.c
+++ b/src/mainboard/siemens/sitemp_g1p1/mainboard.c
@@ -855,26 +855,6 @@ static void enable_dev(device_t dev)
dev->ops->init = init; // rest of mainboard init later
}
- /**
- * @brief
- *
- * @param
- */
-
-int add_mainboard_resources(struct lb_memory *mem)
-{
- device_t dev;
- struct resource *res;
-
- dev = dev_find_slot(0, PCI_DEVFN(0,0));
- res = probe_resource(dev, 0x1C);
- if( res ) {
- printk(BIOS_INFO, "mmconf: base=%0llx size=%0llx\n", res->base, res->size);
- lb_add_memory_range(mem, LB_MEM_RESERVED, res->base, res->size);
- }
- return 0;
-}
-
struct chip_operations mainboard_ops = {
CHIP_NAME(CONFIG_MAINBOARD_PART_NUMBER)
.enable_dev = enable_dev,