1*83d290c5STom Rini // SPDX-License-Identifier: GPL-2.0+ 2c0bc2a7eSChristophe Leroy /* 3c0bc2a7eSChristophe Leroy * Copyright 2017 CS Systemes d'Information 4c0bc2a7eSChristophe Leroy */ 5c0bc2a7eSChristophe Leroy 6c0bc2a7eSChristophe Leroy #include <common.h> 7c0bc2a7eSChristophe Leroy #include <mpc8xx.h> 8c0bc2a7eSChristophe Leroy #include <asm/cpm_8xx.h> 9c0bc2a7eSChristophe Leroy #include <asm/io.h> 10c0bc2a7eSChristophe Leroy 11c0bc2a7eSChristophe Leroy void hw_watchdog_reset(void) 12c0bc2a7eSChristophe Leroy { 13c0bc2a7eSChristophe Leroy immap_t __iomem *immap = (immap_t __iomem *)CONFIG_SYS_IMMR; 14c0bc2a7eSChristophe Leroy 15c0bc2a7eSChristophe Leroy out_be16(&immap->im_siu_conf.sc_swsr, 0x556c); /* write magic1 */ 16c0bc2a7eSChristophe Leroy out_be16(&immap->im_siu_conf.sc_swsr, 0xaa39); /* write magic2 */ 17c0bc2a7eSChristophe Leroy } 18c0bc2a7eSChristophe Leroy 19