summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/ichwd/ichwd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ichwd/ichwd.c b/sys/dev/ichwd/ichwd.c
index f268ef8..a3b112f 100644
--- a/sys/dev/ichwd/ichwd.c
+++ b/sys/dev/ichwd/ichwd.c
@@ -256,8 +256,8 @@ ichwd_tmr_set(struct ichwd_softc *sc, unsigned int timeout)
uint8_t tmr_val8 = ichwd_read_tco_1(sc, TCO_TMR1);
tmr_val8 &= 0xc0;
- if (timeout > 0xbf)
- timeout = 0xbf;
+ if (timeout > 0x3f)
+ timeout = 0x3f;
tmr_val8 |= timeout;
ichwd_write_tco_1(sc, TCO_TMR1, tmr_val8);
} else {
OpenPOWER on IntegriCloud