Lines Matching +full:startup +full:- +full:time +full:- +full:ms
1 // SPDX-License-Identifier: GPL-2.0-or-later
26 #include <asm/bootinfo-vme.h>
47 uint16_t tag = be16_to_cpu(bi->tag); in mvme147_parse_bootinfo()
57 m147_pcc->watchdog = 0x0a; /* Clear timer */ in mvme147_reset()
58 m147_pcc->watchdog = 0xa5; /* Enable watchdog - 100ms to reset */ in mvme147_reset()
69 * This function is called during kernel startup to initialize
105 #define PCC_TIMER_PRELOAD (0x10000 - PCC_TIMER_CYCLES)
114 m147_pcc->t1_cntrl = PCC_TIMER_CLR_OVF | PCC_TIMER_COC_EN | in mvme147_timer_int()
116 m147_pcc->t1_int_cntrl = PCC_INT_ENAB | PCC_TIMER_INT_CLR | in mvme147_timer_int()
134 m147_pcc->t1_preload = PCC_TIMER_PRELOAD; in mvme147_sched_init()
135 m147_pcc->t1_cntrl = PCC_TIMER_CLR_OVF | PCC_TIMER_COC_EN | in mvme147_sched_init()
137 m147_pcc->t1_int_cntrl = PCC_INT_ENAB | PCC_TIMER_INT_CLR | in mvme147_sched_init()
151 tmp = m147_pcc->t1_cntrl >> 4; in mvme147_read_clk()
152 count = m147_pcc->t1_count; in mvme147_read_clk()
153 overflow = m147_pcc->t1_cntrl >> 4; in mvme147_read_clk()
155 count = m147_pcc->t1_count; in mvme147_read_clk()
156 count -= PCC_TIMER_PRELOAD; in mvme147_read_clk()
172 m147_rtc->ctrl = RTC_READ; in mvme147_hwclk()
173 t->tm_year = bcd2int (m147_rtc->bcd_year); in mvme147_hwclk()
174 t->tm_mon = bcd2int(m147_rtc->bcd_mth) - 1; in mvme147_hwclk()
175 t->tm_mday = bcd2int (m147_rtc->bcd_dom); in mvme147_hwclk()
176 t->tm_hour = bcd2int (m147_rtc->bcd_hr); in mvme147_hwclk()
177 t->tm_min = bcd2int (m147_rtc->bcd_min); in mvme147_hwclk()
178 t->tm_sec = bcd2int (m147_rtc->bcd_sec); in mvme147_hwclk()
179 m147_rtc->ctrl = 0; in mvme147_hwclk()
180 if (t->tm_year < 70) in mvme147_hwclk()
181 t->tm_year += 100; in mvme147_hwclk()
183 /* FIXME Setting the time is not yet supported */ in mvme147_hwclk()
184 return -EOPNOTSUPP; in mvme147_hwclk()