[RFC PATCH v1 11/13] rtc: bd70528: Initial support for ROHM bd70528 RTC

2019-01-22 Thread Matti Vaittinen
Support RTC block in ROHM bd70528 power management IC. Support getting and setting the time and date as well as arming an alarm which can also be used to wake the PMIC from standby state. HW supports wake interrupt only for the next 24 hours (sec, minute and hour information only) so we limit also

Re: [RFC PATCH v1 11/13] rtc: bd70528: Initial support for ROHM bd70528 RTC

2019-01-22 Thread Guenter Roeck
On 1/22/19 1:47 AM, Matti Vaittinen wrote: Support RTC block in ROHM bd70528 power management IC. Support getting and setting the time and date as well as arming an alarm which can also be used to wake the PMIC from standby state. HW supports wake interrupt only for the next 24 hours (sec, minut

Re: [RFC PATCH v1 11/13] rtc: bd70528: Initial support for ROHM bd70528 RTC

2019-01-22 Thread Matti Vaittinen
On Tue, Jan 22, 2019 at 06:48:21AM -0800, Guenter Roeck wrote: > On 1/22/19 1:47 AM, Matti Vaittinen wrote: > > + > > +static int bd70528_set_rtc_based_timers(struct bd70528 *bd70528, int > > new_state, > > + int *old_state) > > Passed parameter i