diff options
Diffstat (limited to 'arch/powerpc/sysdev/ppc4xx_soc.c')
-rw-r--r-- | arch/powerpc/sysdev/ppc4xx_soc.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/powerpc/sysdev/ppc4xx_soc.c b/arch/powerpc/sysdev/ppc4xx_soc.c index 4b8617e44314..5b32adc9a9b2 100644 --- a/arch/powerpc/sysdev/ppc4xx_soc.c +++ b/arch/powerpc/sysdev/ppc4xx_soc.c | |||
@@ -23,6 +23,7 @@ | |||
23 | 23 | ||
24 | #include <asm/dcr.h> | 24 | #include <asm/dcr.h> |
25 | #include <asm/dcr-regs.h> | 25 | #include <asm/dcr-regs.h> |
26 | #include <asm/reg.h> | ||
26 | 27 | ||
27 | static u32 dcrbase_l2c; | 28 | static u32 dcrbase_l2c; |
28 | 29 | ||
@@ -187,3 +188,13 @@ static int __init ppc4xx_l2c_probe(void) | |||
187 | return 0; | 188 | return 0; |
188 | } | 189 | } |
189 | arch_initcall(ppc4xx_l2c_probe); | 190 | arch_initcall(ppc4xx_l2c_probe); |
191 | |||
192 | /* | ||
193 | * At present, this routine just applies a system reset. | ||
194 | */ | ||
195 | void ppc4xx_reset_system(char *cmd) | ||
196 | { | ||
197 | mtspr(SPRN_DBCR0, mfspr(SPRN_DBCR0) | DBCR0_RST_SYSTEM); | ||
198 | while (1) | ||
199 | ; /* Just in case the reset doesn't work */ | ||
200 | } | ||