mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
Merge "rtc: rtc-pm8xxx: add support for PM5100 RTC"
This commit is contained in:
commit
cc61138ec4
1 changed files with 12 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/* Copyright (c) 2010-2011, 2019-2020, The Linux Foundation. All rights reserved. */
|
||||
/* Copyright (c) 2010-2011, 2019-2021, The Linux Foundation. All rights reserved. */
|
||||
|
||||
#include <linux/of.h>
|
||||
#include <linux/module.h>
|
||||
|
|
@ -462,6 +462,16 @@ static const struct pm8xxx_rtc_regs pmk8350_regs = {
|
|||
.alarm_en = BIT(7),
|
||||
};
|
||||
|
||||
static const struct pm8xxx_rtc_regs pm5100_regs = {
|
||||
.ctrl = 0x6446,
|
||||
.write = 0x6440,
|
||||
.read = 0x6448,
|
||||
.alarm_rw = 0x6540,
|
||||
.alarm_ctrl = 0x6546,
|
||||
.alarm_ctrl2 = 0x6548,
|
||||
.alarm_en = BIT(7),
|
||||
};
|
||||
|
||||
/*
|
||||
* Hardcoded RTC bases until IORESOURCE_REG mapping is figured out
|
||||
*/
|
||||
|
|
@ -471,6 +481,7 @@ static const struct of_device_id pm8xxx_id_table[] = {
|
|||
{ .compatible = "qcom,pm8058-rtc", .data = &pm8058_regs },
|
||||
{ .compatible = "qcom,pm8941-rtc", .data = &pm8941_regs },
|
||||
{ .compatible = "qcom,pmk8350-rtc", .data = &pmk8350_regs },
|
||||
{ .compatible = "qcom,pm5100-rtc", .data = &pm5100_regs },
|
||||
{ },
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, pm8xxx_id_table);
|
||||
|
|
|
|||
Loading…
Reference in a new issue