rtc-cmos driver: add wakeup and day of month support

BZ: 144574

This patch adds two configurable features to the rtc-cmos driver:
 - if CONFIG_RTC_DRV_CMOS_WAKEUP_FROM_LPSTATES is set then driver will
add alarm wakeup capability from S3 (suspend to RAM) and S4/5 (OFF).
 - if CONFIG_RTC_DRV_CMOS_DAYOFMONTH_ALARM is set on top of the above
flag then alarm wakeup from low power states will be supported up to
one month instead of only one day. Day of month is set in RTC CMOS
register D.

This patch comes as part of the overall wakeup from OFF feature
supported on Intel mobile platforms.

Change-Id: I94d56710f570d58be1806c1642f1fa6722d3e3dc
Signed-off-by: Gabriel Touzeau <gabrielx.touzeau@intel.com>
Reviewed-on: https://android.intel.com/425802
Reviewed-by: Wood, Brian J <brian.j.wood@intel.com>
Tested-by: Wood, Brian J <brian.j.wood@intel.com>
Reviewed-by: Noziska, Patrick J <patrick.j.noziska@intel.com>
2 files changed