Lines Matching +full:startup +full:- +full:time +full:- +full:ms
29 #include <asm/bootinfo-vme.h>
50 uint16_t tag = be16_to_cpu(bi->tag); in mvme147_parse_bootinfo()
60 m147_pcc->watchdog = 0x0a; /* Clear timer */ in mvme147_reset()
61 m147_pcc->watchdog = 0xa5; /* Enable watchdog - 100ms to reset */ in mvme147_reset()
72 * This function is called during kernel startup to initialize
108 #define PCC_TIMER_PRELOAD (0x10000 - PCC_TIMER_CYCLES)
117 m147_pcc->t1_cntrl = PCC_TIMER_CLR_OVF | PCC_TIMER_COC_EN | in mvme147_timer_int()
119 m147_pcc->t1_int_cntrl = PCC_INT_ENAB | PCC_TIMER_INT_CLR | in mvme147_timer_int()
137 m147_pcc->t1_preload = PCC_TIMER_PRELOAD; in mvme147_sched_init()
138 m147_pcc->t1_cntrl = PCC_TIMER_CLR_OVF | PCC_TIMER_COC_EN | in mvme147_sched_init()
140 m147_pcc->t1_int_cntrl = PCC_INT_ENAB | PCC_TIMER_INT_CLR | in mvme147_sched_init()
154 tmp = m147_pcc->t1_cntrl >> 4; in mvme147_read_clk()
155 count = m147_pcc->t1_count; in mvme147_read_clk()
156 overflow = m147_pcc->t1_cntrl >> 4; in mvme147_read_clk()
158 count = m147_pcc->t1_count; in mvme147_read_clk()
159 count -= PCC_TIMER_PRELOAD; in mvme147_read_clk()
175 m147_rtc->ctrl = RTC_READ; in mvme147_hwclk()
176 t->tm_year = bcd2int (m147_rtc->bcd_year); in mvme147_hwclk()
177 t->tm_mon = bcd2int(m147_rtc->bcd_mth) - 1; in mvme147_hwclk()
178 t->tm_mday = bcd2int (m147_rtc->bcd_dom); in mvme147_hwclk()
179 t->tm_hour = bcd2int (m147_rtc->bcd_hr); in mvme147_hwclk()
180 t->tm_min = bcd2int (m147_rtc->bcd_min); in mvme147_hwclk()
181 t->tm_sec = bcd2int (m147_rtc->bcd_sec); in mvme147_hwclk()
182 m147_rtc->ctrl = 0; in mvme147_hwclk()
183 if (t->tm_year < 70) in mvme147_hwclk()
184 t->tm_year += 100; in mvme147_hwclk()
186 /* FIXME Setting the time is not yet supported */ in mvme147_hwclk()
187 return -EOPNOTSUPP; in mvme147_hwclk()