aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/cpu/sh3/setup-sh7705.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sh/kernel/cpu/sh3/setup-sh7705.c')
-rw-r--r--arch/sh/kernel/cpu/sh3/setup-sh7705.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/arch/sh/kernel/cpu/sh3/setup-sh7705.c b/arch/sh/kernel/cpu/sh3/setup-sh7705.c
index 6fc68e77102f..568cc08c254b 100644
--- a/arch/sh/kernel/cpu/sh3/setup-sh7705.c
+++ b/arch/sh/kernel/cpu/sh3/setup-sh7705.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * SH7705 Setup 2 * SH7705 Setup
3 * 3 *
4 * Copyright (C) 2006 Paul Mundt 4 * Copyright (C) 2006, 2007 Paul Mundt
5 * Copyright (C) 2007 Nobuhiro Iwamatsu 5 * Copyright (C) 2007 Nobuhiro Iwamatsu
6 * 6 *
7 * This file is subject to the terms and conditions of the GNU General Public 7 * This file is subject to the terms and conditions of the GNU General Public
@@ -13,8 +13,9 @@
13#include <linux/irq.h> 13#include <linux/irq.h>
14#include <linux/serial.h> 14#include <linux/serial.h>
15#include <asm/sci.h> 15#include <asm/sci.h>
16#include <asm/rtc.h>
16 17
17enum{ 18enum {
18 UNUSED = 0, 19 UNUSED = 0,
19 20
20 /* interrupt sources */ 21 /* interrupt sources */
@@ -138,11 +139,18 @@ static struct resource rtc_resources[] = {
138 }, 139 },
139}; 140};
140 141
142static struct sh_rtc_platform_info rtc_info = {
143 .capabilities = RTC_CAP_4_DIGIT_YEAR,
144};
145
141static struct platform_device rtc_device = { 146static struct platform_device rtc_device = {
142 .name = "sh-rtc", 147 .name = "sh-rtc",
143 .id = -1, 148 .id = -1,
144 .num_resources = ARRAY_SIZE(rtc_resources), 149 .num_resources = ARRAY_SIZE(rtc_resources),
145 .resource = rtc_resources, 150 .resource = rtc_resources,
151 .dev = {
152 .platform_data = &rtc_info,
153 },
146}; 154};
147 155
148static struct platform_device *sh7705_devices[] __initdata = { 156static struct platform_device *sh7705_devices[] __initdata = {