sec_to_period
val |= WDTP(sec_to_period(wdog->timeout));
val |= (TCR_WIE|TCR_WRC(WRC_CHIP)|WDTP(sec_to_period(wdog->timeout)));