rtc: add MAX8907 RTC driver

The MAX8907 is an I2C-based power-management IC containing voltage
regulators, a reset controller, a real-time clock, and a touch-screen
controller.

The driver is based on an original by or fixed by:
* Tom Cherry
* Prashant Gaikwad
* Joseph Yoon

During upstreaming, I (swarren):
* Converted to regmap.
* Fixed handling of RTC_HOUR register containing 12.
* Fixed handling of RTC_WEEKDAY register.
* General cleanup.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Cc: Tom Cherry <tcherry@nvidia.com>
Cc: Prashant Gaikwad <pgaikwad@nvidia.com>
Cc: Joseph Yoon <tyoon@nvidia.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Stephen Warren
2012-10-04 17:13:56 -07:00
committed by Linus Torvalds
parent 0e783980b8
commit 94c01ab6d7
3 changed files with 255 additions and 0 deletions

View File

@@ -205,6 +205,16 @@ config RTC_DRV_MAX6900
This driver can also be built as a module. If so, the module
will be called rtc-max6900.
config RTC_DRV_MAX8907
tristate "Maxim MAX8907"
depends on MFD_MAX8907
help
If you say yes here you will get support for the
RTC of Maxim MAX8907 PMIC.
This driver can also be built as a module. If so, the module
will be called rtc-max8907.
config RTC_DRV_MAX8925
tristate "Maxim MAX8925"
depends on MFD_MAX8925