diff options
author | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2006-12-28 20:22:32 +0300 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-02-19 00:31:37 +0300 |
commit | c066a32a890c50ce59e91f8cea8eb5fd8d5821b9 (patch) | |
tree | d129af235d11d44c649f0743bc38535c3a229e41 /arch/mips/sni/reset.c | |
parent | 5759906ca9e5201c3fd40d61c861ec1e441d3a24 (diff) | |
download | linux-c066a32a890c50ce59e91f8cea8eb5fd8d5821b9.tar.xz |
[MIPS] Support for several more SNI RM models.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/sni/reset.c')
-rw-r--r-- | arch/mips/sni/reset.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/arch/mips/sni/reset.c b/arch/mips/sni/reset.c index be85bec002e1..2eada8aea682 100644 --- a/arch/mips/sni/reset.c +++ b/arch/mips/sni/reset.c @@ -13,12 +13,11 @@ * controller to pulse the reset-line low. We try that for a while, * and if it doesn't work, we do some other stupid things. */ -static inline void -kb_wait(void) +static inline void kb_wait(void) { int i; - for (i=0; i<0x10000; i++) + for (i = 0; i < 0x10000; i++) if ((inb_p(0x64) & 0x02) == 0) break; } @@ -32,9 +31,9 @@ void sni_machine_restart(char *command) We can do that easier ... */ local_irq_disable(); for (;;) { - for (i=0; i<100; i++) { + for (i = 0; i < 100; i++) { kb_wait(); - for(j = 0; j < 100000 ; j++) + for (j = 0; j < 100000 ; j++) /* nothing */; outb_p(0xfe,0x64); /* pulse reset low */ } |