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 dv5si2586062pbb.0.2015.04.28.00.36.23 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 28 Apr 2015 00:36:24 -0700 (PDT) From: Eddie Huang To: Lee Jones , Alessandro Zummo , Matthias Brugger , Andrew Morton , Tomasz Figa , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= CC: , Samuel Ortiz , Greg KH , Joe Perches , , , , , Eddie Huang Subject: [rtc-linux] [PATCH v3 1/3] mfd: provide RTC resource in MT6397 MFD Date: Tue, 28 Apr 2015 15:35:54 +0800 Message-ID: <1430206556-18254-2-git-send-email-eddie.huang@mediatek.com> In-Reply-To: <1430206556-18254-1-git-send-email-eddie.huang@mediatek.com> References: <1430206556-18254-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 --- 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..08cfbd1 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.