rtc: Fix naming of RTC symbols

These symbols have the same name as the symbols from lib QMSI, which
causes a compilation failure, when lib QMSI is used.

This replaces the offending symbols with names which are more consistent
with the rest of the file (rtc_ prefix).

Change-Id: I288a1a229bf0b40f3b6fc8ffb35c502f998054b8
Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
This commit is contained in:
Vinicius Costa Gomes 2015-12-18 18:47:17 -02:00 committed by Anas Nashif
commit 45dcfe1478
2 changed files with 20 additions and 23 deletions

View file

@ -24,7 +24,7 @@
#include "rtc_dw.h"
#define CLK_RTC_DIV_DEF_MASK (0xFFFFFF83)
#define RTC_CLK_DIV_DEF_MASK (0xFFFFFF83)
#define CCU_RTC_CLK_DIV_EN (2)
#ifdef RTC_DW_INT_MASK
@ -76,7 +76,7 @@ static void rtc_dw_set_div(const enum clk_rtc_div div)
{
/* set default division mask */
uint32_t reg =
sys_read32(CLOCK_SYSTEM_CLOCK_CONTROL) & CLK_RTC_DIV_DEF_MASK;
sys_read32(CLOCK_SYSTEM_CLOCK_CONTROL) & RTC_CLK_DIV_DEF_MASK;
reg |= (div << CCU_RTC_CLK_DIV_OFFSET);
sys_write32(reg, CLOCK_SYSTEM_CLOCK_CONTROL);
/* CLK Div en bit must be written from 0 -> 1 to apply new value */