52bde71485bdc100c378ccd18756c88ed77c4031
[powerpc.git] / arch / powerpc / platforms / 44x / misc_44x.S
1 /*
2  * This file contains miscellaneous low-level functions for PPC 44x.
3  *    Copyright 2007 David Gibson <dwg@au1.ibm.com>, IBM Corporation.
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version
8  * 2 of the License, or (at your option) any later version.
9  *
10  */
11
12 #include <asm/reg.h>
13 #include <asm/ppc_asm.h>
14
15         .text
16
17 /*
18  * void ppc44x_reset_system(char *cmd)
19  *
20  * At present, this routine just applies a system reset.
21  */
22 _GLOBAL(ppc44x_reset_system)
23         mfspr   r13,SPRN_DBCR0
24         oris    r13,r13,DBCR0_RST_SYSTEM@h
25         mtspr   SPRN_DBCR0,r13
26         b       .                       /* Just in case the reset doesn't work */