[MIPS] Support for several more SNI RM models.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
committed by
Ralf Baechle
parent
5759906ca9
commit
c066a32a89
@@ -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 */
|
||||
}
|
||||
|
Reference in New Issue
Block a user