Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: provide RTC resource in MT6397 MFD

Provide MT6397 RTC interrupt, base address, and register in
MT6397 MFD.

Signed-off-by: Eddie Huang <eddie.huang@mediatek.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>

authored by

Eddie Huang and committed by
Alexandre Belloni
a5d7ea09 fdf8afa1

+18
+18
drivers/mfd/mt6397-core.c
··· 21 21 #include <linux/mfd/mt6397/core.h> 22 22 #include <linux/mfd/mt6397/registers.h> 23 23 24 + #define MT6397_RTC_BASE 0xe000 25 + #define MT6397_RTC_SIZE 0x3e 26 + 27 + static const struct resource mt6397_rtc_resources[] = { 28 + { 29 + .start = MT6397_RTC_BASE, 30 + .end = MT6397_RTC_BASE + MT6397_RTC_SIZE, 31 + .flags = IORESOURCE_MEM, 32 + }, 33 + { 34 + .start = MT6397_IRQ_RTC, 35 + .end = MT6397_IRQ_RTC, 36 + .flags = IORESOURCE_IRQ, 37 + }, 38 + }; 39 + 24 40 static const struct mfd_cell mt6397_devs[] = { 25 41 { 26 42 .name = "mt6397-rtc", 43 + .num_resources = ARRAY_SIZE(mt6397_rtc_resources), 44 + .resources = mt6397_rtc_resources, 27 45 .of_compatible = "mediatek,mt6397-rtc", 28 46 }, { 29 47 .name = "mt6397-regulator",