summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2013-10-25 09:12:45 -0500
committerAaron Durbin <adurbin@google.com>2014-02-24 18:42:05 +0100
commiteb2eedf6f7d6ac1cff65ed8672701f6efd3b19dd (patch)
tree23287ec76e0cac416c72ab682a85974d816e15cd /src/soc
parent315bb30cd764a3f57cc6ce36a481e7361ac3a0c0 (diff)
baytrail: remove gfx read_resources() work around
Before the special PUNIT settings the GFX pci device had the same device id as the transaction router. This required a special case in the transaction router's driver to do the proper thing for read_resources(). However, that requirement is no longer needed as the PUNIT special message is now being done. Therefore, remove the work around. BUG=None BRANCH=None TEST=Built and looked at resource allocation logs to confirm work around is no longer needed. Change-Id: I90b155cb5560ca3291f146c2f586456e5529f6b2 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/174652 Reviewed-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-on: http://review.coreboot.org/4902 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/intel/baytrail/northcluster.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/soc/intel/baytrail/northcluster.c b/src/soc/intel/baytrail/northcluster.c
index 0616e5d168..714d532eef 100644
--- a/src/soc/intel/baytrail/northcluster.c
+++ b/src/soc/intel/baytrail/northcluster.c
@@ -64,7 +64,7 @@
*/
#define RES_IN_KiB(r) ((r) >> 10)
-static void soc_trans_router_read_resources(device_t dev)
+static void nc_read_resources(device_t dev)
{
unsigned long mmconf;
unsigned long bmbound;
@@ -119,18 +119,6 @@ static void soc_trans_router_read_resources(device_t dev)
bmbound_hi - four_gig_kib);
}
-static void nc_read_resources(device_t dev)
-{
- /* For some reason the graphics pci device (0, 2, 0) and the SoC
- * transaction router are coming up with the same device id. */
- if (dev_find_slot(0, PCI_DEVFN(SOC_DEV, SOC_FUNC)) == dev)
- return soc_trans_router_read_resources(dev);
- else
- /* Read standard PCI resources. */
- pci_dev_read_resources(dev);
-
-}
-
static struct device_operations nc_ops = {
.read_resources = nc_read_resources,
.set_resources = NULL,