Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[PATCH] OMAP2: switch to use WDT2 instead of WDT4



Switch to use WDT2 instead of WDT4. It brings reboot to be worked.
---
 sys/arch/arm/omap/obio_wdt.c   |    1 +
 sys/arch/evbarm/conf/TISDP2420 |    4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/sys/arch/arm/omap/obio_wdt.c b/sys/arch/arm/omap/obio_wdt.c
index 57f671a..8540483 100644
--- a/sys/arch/arm/omap/obio_wdt.c
+++ b/sys/arch/arm/omap/obio_wdt.c
@@ -78,6 +78,7 @@ obiowdt32k_attach(struct device *parent, struct device *self, 
void *aux)
        sc->sc_smw.smw_period = OMAPWDT32K_DEFAULT_PERIOD;
        sc->sc_iot = obio->obio_iot;
 
+printf("\n%s: %p %lu\n", sc->sc_smw.smw_name, sc->sc_iot, sc->sc_ioh);
        if (bus_space_map(sc->sc_iot, obio->obio_addr, obio->obio_size,
                          0, &sc->sc_ioh))
                panic("%s: Cannot map registers", self->dv_xname);
diff --git a/sys/arch/evbarm/conf/TISDP2420 b/sys/arch/evbarm/conf/TISDP2420
index 2d9a7f0..7475bcd 100644
--- a/sys/arch/evbarm/conf/TISDP2420
+++ b/sys/arch/evbarm/conf/TISDP2420
@@ -224,9 +224,9 @@ omap2430mputmr2     at obio? addr 0x4807A000 intr 40        
# GP Timer 4
 options OMAP_MPU_TIMER_CLOCK_FREQ=12000000
 
 # Watchdog timers
-omapwdt32k*    at obio? addr 0x48026000 size 2048      # WDT4
+#omapwdt32k*   at obio? addr 0x48026000 size 2048      # WDT4
 #omapwdt32k*   at obio? addr 0x49014000 size 2048      # WDT1
-#omapwdt32k*   at obio? addr 0x49016000 size 2048      # WDT2
+omapwdt32k*    at obio? addr 0x48022000 size 2048      # WDT2
 
 # On-board SMSC LAN91C96 Ethernet Controller
 sm0            at gpmc? addr 0x08000300 intr 188       # (intr is GPIO92)
-- 
1.4.4.2



Home | Main Index | Thread Index | Old Index