From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailgw02.mediatek.com ([210.61.82.184]) by gmr-mx.google.com with ESMTPS id xv6si2755282pab.2.2015.05.06.00.27.08 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 06 May 2015 00:27:09 -0700 (PDT) From: Eddie Huang To: Lee Jones , Alessandro Zummo , Alexandre Belloni CC: , Samuel Ortiz , Matthias Brugger , Andrew Morton , Greg KH , "David S. Miller" , Mauro Carvalho Chehab , Joe Perches , Tejun Heo , , , , , Sascha Hauer , Tomasz Figa , Eddie Huang Subject: [rtc-linux] [PATCH v4 1/3] mfd: provide RTC resource in MT6397 MFD Date: Wed, 6 May 2015 15:23:40 +0800 Message-ID: <1430897022-63357-2-git-send-email-eddie.huang@mediatek.com> In-Reply-To: <1430897022-63357-1-git-send-email-eddie.huang@mediatek.com> References: <1430897022-63357-1-git-send-email-eddie.huang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Reply-To: rtc-linux@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Provide MT6397 RTC interrupt, base address, and register in MT6397 MFD. Signed-off-by: Eddie Huang Acked-by: Lee Jones --- drivers/mfd/mt6397-core.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/drivers/mfd/mt6397-core.c b/drivers/mfd/mt6397-core.c index 09bc780..4027623 100644 --- a/drivers/mfd/mt6397-core.c +++ b/drivers/mfd/mt6397-core.c @@ -21,9 +21,27 @@ #include #include +#define MT6397_RTC_BASE 0xe000 +#define MT6397_RTC_SIZE 0x3e + +static const struct resource mt6397_rtc_resources[] = { + { + .start = MT6397_RTC_BASE, + .end = MT6397_RTC_BASE + MT6397_RTC_SIZE, + .flags = IORESOURCE_MEM, + }, + { + .start = MT6397_IRQ_RTC, + .end = MT6397_IRQ_RTC, + .flags = IORESOURCE_IRQ, + }, +}; + static const struct mfd_cell mt6397_devs[] = { { .name = "mt6397-rtc", + .num_resources = ARRAY_SIZE(mt6397_rtc_resources), + .resources = mt6397_rtc_resources, .of_compatible = "mediatek,mt6397-rtc", }, { .name = "mt6397-regulator", -- 1.8.1.1.dirty -- -- You received this message because you are subscribed to "rtc-linux". Membership options at http://groups.google.com/group/rtc-linux . Please read http://groups.google.com/group/rtc-linux/web/checklist before submitting a driver. --- You received this message because you are subscribed to the Google Groups "rtc-linux" group. To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/d/optout.