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