summaryrefslogtreecommitdiff
path: root/src/soc/intel/braswell/southcluster.c
diff options
context:
space:
mode:
authorFrans Hendriks <fhendriks@eltan.com>2018-11-01 14:02:57 +0100
committerPatrick Georgi <pgeorgi@google.com>2018-11-05 09:06:55 +0000
commit392d69957038b26ce1de5c3a88bb0828fec4c0d4 (patch)
tree980319b0da4c9fb7eb169708db4f3294715352a4 /src/soc/intel/braswell/southcluster.c
parentfe701ee3982f8c921390aacc45d50871dc86d119 (diff)
downloadcoreboot-392d69957038b26ce1de5c3a88bb0828fec4c0d4.tar.xz
src/soc/intel/braswell/romstage/romstage.c: Perform RTC init in romstage
soc_rtc_init() is executed in ramstage The soc_rtc_init() needs to be executeed before FSP is called. Move the RTC init from ramstage to romstage. BUG=N/A TEST=Intel CherryHill CRB Change-Id: Ic19c768bf9d9aef7505fb9327e4eedf7212b0057 Signed-off-by: Frans Hendriks <fhendriks@eltan.com> Reviewed-on: https://review.coreboot.org/29397 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/soc/intel/braswell/southcluster.c')
-rw-r--r--src/soc/intel/braswell/southcluster.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/soc/intel/braswell/southcluster.c b/src/soc/intel/braswell/southcluster.c
index ca87d63aa0..dd0c78e59a 100644
--- a/src/soc/intel/braswell/southcluster.c
+++ b/src/soc/intel/braswell/southcluster.c
@@ -26,7 +26,6 @@
#include <device/device.h>
#include <device/pci.h>
#include <device/pci_ids.h>
-#include <pc80/mc146818rtc.h>
#include <romstage_handoff.h>
#include <soc/acpi.h>
#include <soc/iomap.h>
@@ -149,12 +148,6 @@ static void sc_read_resources(struct device *dev)
sc_add_io_resources(dev);
}
-static void sc_rtc_init(void)
-{
- printk(BIOS_SPEW, "%s/%s\n", __FILE__, __func__);
- cmos_init(rtc_failure());
-}
-
static void sc_init(struct device *dev)
{
int i;
@@ -181,8 +174,6 @@ static void sc_init(struct device *dev)
/* Route SCI to IRQ9 */
write32(actl, (read32(actl) & ~SCIS_MASK) | SCIS_IRQ9);
- sc_rtc_init();
-
if (config->disable_slp_x_stretch_sus_fail) {
printk(BIOS_DEBUG, "Disabling slp_x stretching.\n");
write32(gen_pmcon1,