Skip to content

Commit fc29791

Browse files
Tianping Fangalexandrebelloni
authored andcommitted
rtc: mediatek: Add MT6397 RTC driver
Add Mediatek MT6397 RTC driver Signed-off-by: Tianping Fang <[email protected]> Signed-off-by: Eddie Huang <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]>
1 parent a5d7ea0 commit fc29791

File tree

3 files changed

+405
-0
lines changed

3 files changed

+405
-0
lines changed

drivers/rtc/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1530,6 +1530,16 @@ config RTC_DRV_MOXART
15301530
This driver can also be built as a module. If so, the module
15311531
will be called rtc-moxart
15321532

1533+
config RTC_DRV_MT6397
1534+
tristate "Mediatek Real Time Clock driver"
1535+
depends on MFD_MT6397 || COMPILE_TEST
1536+
help
1537+
This selects the Mediatek(R) RTC driver. RTC is part of Mediatek
1538+
MT6397 PMIC. You should enable MT6397 PMIC MFD before select
1539+
Mediatek(R) RTC driver.
1540+
1541+
If you want to use Mediatek(R) RTC interface, select Y or M here.
1542+
15331543
config RTC_DRV_XGENE
15341544
tristate "APM X-Gene RTC"
15351545
depends on HAS_IOMEM

drivers/rtc/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,3 +155,4 @@ obj-$(CONFIG_RTC_DRV_X1205) += rtc-x1205.o
155155
obj-$(CONFIG_RTC_DRV_XGENE) += rtc-xgene.o
156156
obj-$(CONFIG_RTC_DRV_SIRFSOC) += rtc-sirfsoc.o
157157
obj-$(CONFIG_RTC_DRV_MOXART) += rtc-moxart.o
158+
obj-$(CONFIG_RTC_DRV_MT6397) += rtc-mt6397.o

0 commit comments

Comments
 (0)