X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=include%2Fwatchdog.h;h=9265be9737245d7a1e8468c398aef12d07945bad;hb=73db0c71da365a2d101878ae3aeb8ff3545a1828;hp=dc26e6ad06de0177c950a2603c32b57bb270f0fb;hpb=0db5bca8076998a7516102988ac976a2da28d531;p=oweals%2Fu-boot.git diff --git a/include/watchdog.h b/include/watchdog.h index dc26e6ad06..9265be9737 100644 --- a/include/watchdog.h +++ b/include/watchdog.h @@ -31,6 +31,10 @@ # error "Configuration error: CONFIG_HW_WATCHDOG and CONFIG_WATCHDOG can't be used together." #endif +#if defined(__ASSEMBLY__) && defined(__NIOS__) +# error "Configuration error: WATCHDOG_RESET inside assembler not supported for Nios platforms." +#endif + /* * Hardware watchdog */ @@ -80,22 +84,9 @@ void reset_5xx_watchdog(volatile immap_t *immr); #endif -/* IBM 4xx */ +/* AMCC 4xx */ #if defined(CONFIG_4xx) && !defined(__ASSEMBLY__) void reset_4xx_watchdog(void); #endif -/* MPC 8260 */ -#if defined(CONFIG_MPC8260) && !defined(__ASSEMBLY__) -#if defined(CONFIG_WATCHDOG) -extern __inline__ void -reset_8260_watchdog(volatile immap_t *immr) -{ - immr->im_siu_conf.sc_swsr = 0x556c; - immr->im_siu_conf.sc_swsr = 0xaa39; -} -#endif /* !__ASSEMBLY__ && CONFIG_WATCHDOG */ -#endif /* CONFIG_MPC8260 && !__ASSEMBLY__ */ - #endif /* _WATCHDOG_H_ */ -