From 02b11f8e096fde3fc891190c413014a63cdc37b3 Mon Sep 17 00:00:00 2001 From: wdenk Date: Wed, 12 May 2004 22:54:36 +0000 Subject: Patch by Klaus Heydeck, 12 May 2004: Using external watchdog for KUP4 boards in mpc8xx/cpu.c; load_sernum_ethaddr() for KUP4 boards in lib_ppc/board.c; various changes to KUP4 board specific files --- cpu/mpc8xx/cpu.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'cpu/mpc8xx/cpu.c') diff --git a/cpu/mpc8xx/cpu.c b/cpu/mpc8xx/cpu.c index 81d2047c9c..d23d7eeefa 100644 --- a/cpu/mpc8xx/cpu.c +++ b/cpu/mpc8xx/cpu.c @@ -567,6 +567,17 @@ void reset_8xx_watchdog (volatile immap_t * immr) immr->im_ioport.iop_padir |= WATCHDOG_BIT; /* Output */ immr->im_ioport.iop_paodr &= ~(WATCHDOG_BIT); /* active output */ + immr->im_ioport.iop_padat ^= WATCHDOG_BIT; /* Toggle WDI */ +# elif defined(CONFIG_KUP4K) || defined(CONFIG_KUP4X) + /* + * The KUP4 boards uses a TPS3705 Watchdog + * with the trigger pin connected to port PA.5 + */ +# define WATCHDOG_BIT 0x0400 + immr->im_ioport.iop_papar &= ~(WATCHDOG_BIT); /* GPIO */ + immr->im_ioport.iop_padir |= WATCHDOG_BIT; /* Output */ + immr->im_ioport.iop_paodr &= ~(WATCHDOG_BIT); /* active output */ + immr->im_ioport.iop_padat ^= WATCHDOG_BIT; /* Toggle WDI */ # else /* -- cgit