aboutsummaryrefslogtreecommitdiff
path: root/src/southbridge/amd/cimx/sb700/late.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/southbridge/amd/cimx/sb700/late.c')
-rw-r--r--src/southbridge/amd/cimx/sb700/late.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/southbridge/amd/cimx/sb700/late.c b/src/southbridge/amd/cimx/sb700/late.c
index 4e51e0a3e3..be2b8cd863 100644
--- a/src/southbridge/amd/cimx/sb700/late.c
+++ b/src/southbridge/amd/cimx/sb700/late.c
@@ -23,6 +23,7 @@
#include <device/pci_ids.h>
#include <arch/ioapic.h>
#include <device/smbus.h> /* smbus_bus_operations */
+#include <pc80/mc146818rtc.h>
#include <console/console.h> /* printk */
#include "lpc.h" /* lpc_read_resources */
#include "Platform.h" /* Platfrom Specific Definitions */
@@ -72,11 +73,20 @@ static void lpc_enable_resources(device_t dev)
printk(BIOS_SPEW, "SB700 - Late.c - %s - End.\n", __func__);
}
+static void lpc_init(device_t dev)
+{
+ printk(BIOS_DEBUG, "SB700 - Late.c - lpc_init - Start.\n");
+
+ rtc_check_update_cmos_date(RTC_HAS_ALTCENTURY);
+
+ printk(BIOS_DEBUG, "SB700 - Late.c - lpc_init - End.\n");
+}
+
static struct device_operations lpc_ops = {
.read_resources = lpc_read_resources,
.set_resources = lpc_set_resources,
.enable_resources = lpc_enable_resources,
- .init = 0,
+ .init = lpc_init,
.scan_bus = scan_static_bus,
.ops_pci = &lops_pci,
};