From 7bdf43a7538f3c198338e41255fdbe1a851f2203 Mon Sep 17 00:00:00 2001 From: Oleg Ogurtsov Date: Wed, 4 Jul 2012 10:43:32 +0000 Subject: Exynos4: add RTC device Signed-off-by: Oleg Ogurtsov Signed-off-by: Peter Maydell --- hw/exynos4210.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'hw/exynos4210.c') diff --git a/hw/exynos4210.c b/hw/exynos4210.c index 80a00b98eb..7c58c906de 100644 --- a/hw/exynos4210.c +++ b/hw/exynos4210.c @@ -33,6 +33,9 @@ /* PWM */ #define EXYNOS4210_PWM_BASE_ADDR 0x139D0000 +/* RTC */ +#define EXYNOS4210_RTC_BASE_ADDR 0x10070000 + /* MCT */ #define EXYNOS4210_MCT_BASE_ADDR 0x10050000 @@ -258,6 +261,11 @@ Exynos4210State *exynos4210_init(MemoryRegion *system_mem, s->irq_table[exynos4210_get_irq(22, 3)], s->irq_table[exynos4210_get_irq(22, 4)], NULL); + /* RTC */ + sysbus_create_varargs("exynos4210.rtc", EXYNOS4210_RTC_BASE_ADDR, + s->irq_table[exynos4210_get_irq(23, 0)], + s->irq_table[exynos4210_get_irq(23, 1)], + NULL); /* Multi Core Timer */ dev = qdev_create(NULL, "exynos4210.mct"); -- cgit v1.2.3