RTC_TICK_MASK
max_tick = calibval & RTC_TICK_MASK;
if (freq + max_tick > RTC_TICK_MASK || (freq + max_tick < 1))
if (xrtcdev->freq > RTC_TICK_MASK) {