/* RTC update frequency Parameters: reg_value - current RTCCON register or his new value  */
static void exynos4210_rtc_update_freq(Exynos4210RTCState *s, uint32_t reg_value)
/* RTC update frequency Parameters: reg_value - current RTCCON register or his new value  */
static void exynos4210_rtc_update_freq(Exynos4210RTCState *s, uint32_t reg_value)
{
    uint32_t freq;
    freq = s->freq;
    s->freq = RTC_BASE_FREQ / (1 << TICCKSEL(reg_value));
    if (freq != s->freq) {
        ptimer_set_freq(s->ptimer, s->freq);
        DPRINTF("freq=%dHz\n", s->freq);
    }
}