aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/skylake/pch.c
diff options
context:
space:
mode:
authorSubrata Banik <subrata.banik@intel.com>2017-12-06 19:10:15 +0530
committerSubrata Banik <subrata.banik@intel.com>2017-12-08 02:43:27 +0000
commitdf5ae9ce641dadde0c6a94a382e06aacab17144c (patch)
tree79e3685d9c856caab4df48ab38650824f94ca9ad /src/soc/intel/skylake/pch.c
parent3c838c73992d0fe920fe9b5dbee912d83b6c2d7f (diff)
soc/intel/skylake: Clean up bootblock/report_platform.c
This patch ensures that all required information for pch/mch/igd deviceid and revision available in single stage and make use of local references. TEST=Build and boot soraka/eve Change-Id: I6f7f219536831210750a486ee3b3308d6f285451 Signed-off-by: Subrata Banik <subrata.banik@intel.com> Reviewed-on: https://review.coreboot.org/22756 Reviewed-by: Rizwan Qureshi <rizwan.qureshi@intel.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/soc/intel/skylake/pch.c')
-rw-r--r--src/soc/intel/skylake/pch.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/soc/intel/skylake/pch.c b/src/soc/intel/skylake/pch.c
deleted file mode 100644
index 451bebb083..0000000000
--- a/src/soc/intel/skylake/pch.c
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * This file is part of the coreboot project.
- *
- * Copyright (C) 2008-2009 coresystems GmbH
- * Copyright (C) 2014 Google Inc.
- * Copyright (C) 2015 Intel Corporation.
- *
- * 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; version 2 of the License.
- *
- * 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.
- */
-
-#include <arch/io.h>
-#include <device/device.h>
-#include <device/pci.h>
-#include <soc/pch.h>
-#include <soc/pci_devs.h>
-
-u8 pch_revision(void)
-{
- return pci_read_config8(PCH_DEV_LPC, PCI_REVISION_ID);
-}
-
-u16 pch_type(void)
-{
- return pci_read_config16(PCH_DEV_LPC, PCI_DEVICE_ID);
-}