diff options
author | imp <imp@FreeBSD.org> | 2012-06-15 06:38:55 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2012-06-15 06:38:55 +0000 |
commit | 4d2f4108b06372453189a883c0f5420d4cf36251 (patch) | |
tree | 636f71a7e27b5478b28cd51b3c97cdbbcd7ef759 /sys/arm/at91/at91_st.c | |
parent | a88ca47b665af545d0ce14afd7a2629e605aeaa1 (diff) | |
download | FreeBSD-src-4d2f4108b06372453189a883c0f5420d4cf36251.zip FreeBSD-src-4d2f4108b06372453189a883c0f5420d4cf36251.tar.gz |
Take half a step closer towards having a unified atmel kernel by
rearranging where we initialize the time counter and putting the
common stubs into a central place.
Diffstat (limited to 'sys/arm/at91/at91_st.c')
-rw-r--r-- | sys/arm/at91/at91_st.c | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/sys/arm/at91/at91_st.c b/sys/arm/at91/at91_st.c index ac20bc1..6203fb2e 100644 --- a/sys/arm/at91/at91_st.c +++ b/sys/arm/at91/at91_st.c @@ -60,6 +60,7 @@ static struct at91st_softc { bus_space_write_4(timer_softc->sc_st, timer_softc->sc_sh, (off), (val)) static void at91st_watchdog(void *, u_int, int *); +static void at91st_initclocks(struct at91st_softc *); static inline int st_crtr(void) @@ -114,8 +115,11 @@ at91st_attach(device_t dev) timer_softc->sc_wet = EVENTHANDLER_REGISTER(watchdog_list, at91st_watchdog, dev, 0); + device_printf(dev, "watchdog registered, timeout intervall max. 64 sec\n"); + + at91st_initclocks(timer_softc); return (0); } @@ -183,14 +187,14 @@ clock_intr(void *arg) return (FILTER_STRAY); } -void -cpu_initclocks(void) +static void +at91st_initclocks(struct at91st_softc *sc) { int rel_value; struct resource *irq; int rid = 0; void *ih; - device_t dev = timer_softc->sc_dev; + device_t dev = sc->sc_dev; rel_value = 32768 / hz; if (rel_value < 1) @@ -251,13 +255,3 @@ cpu_reset(void) while (1) continue; } - -void -cpu_startprofclock(void) -{ -} - -void -cpu_stopprofclock(void) -{ -} |