rtc: dw: Add support for optional clock gating

Clock gating is platform specific and not mandatory. Thus making in
Kconfig based as well as generic.

Change-Id: I01b7831536efd87cc66a95060fcf1faf4a340073
Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
Tomasz Bursztyka 2015-12-03 13:49:45 +01:00 committed by Anas Nashif
commit 61c15ba1e1
6 changed files with 73 additions and 9 deletions

View file

@ -179,6 +179,12 @@ endif
if RTC
config RTC_DW
def_bool y
config RTC_DW_CLOCK_GATE
def_bool n
config RTC_DW_CLOCK_GATE_DRV_NAME
default CLOCK_CONTROL_QUARK_SE_PERIPHERAL_DRV_NAME
config RTC_DW_CLOCK_GATE_SUBSYS
default 11
config RTC_DW_BASE_ADDR
default 0xB0000400
config RTC_DW_IRQ