diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2015-07-03 13:49:22 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-07-03 17:09:44 +1000 |
commit | 642a2f8a27629ef0782b29d7a719cab0688456f8 (patch) | |
tree | fa37ea55b76dae1278ddd4f132f463366ea34286 /platforms | |
parent | ef50b5f5ad2834996eabc7e10885659a1ef65196 (diff) | |
download | skiboot-642a2f8a27629ef0782b29d7a719cab0688456f8.zip skiboot-642a2f8a27629ef0782b29d7a719cab0688456f8.tar.gz skiboot-642a2f8a27629ef0782b29d7a719cab0688456f8.tar.bz2 |
plat/qemu: Add LPC based RTC support
This adds a driver for standard CMOS RTC chips and use it from
the QEMU platform.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'platforms')
-rw-r--r-- | platforms/qemu/qemu.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/platforms/qemu/qemu.c b/platforms/qemu/qemu.c index 43e1221..66a6aa3 100644 --- a/platforms/qemu/qemu.c +++ b/platforms/qemu/qemu.c @@ -27,6 +27,11 @@ static void qemu_init(void) /* Setup UART console for use by Linux via OPAL API */ if (!dummy_console_enabled()) uart_setup_opal_console(); + + /* Setup LPC RTC and use it as time source. Call after + * chiptod_init() + */ + lpc_rtc_init(); } static void qemu_dt_fixup_uart(struct dt_node *lpc) |