mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 06:01:23 +00:00
watchdog: sbc_fitpc2_wdt: fixed I/O operations order
There are fitpc2 compatible boards that hang with existent i/o operations order. Solution is to switch between writing to data and command ports. Signed-off-by: Denis Turischev <denis@compulab.co.il> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
This commit is contained in:
parent
86913315de
commit
fcf1dd7e68
1 changed files with 2 additions and 2 deletions
|
@ -45,10 +45,10 @@ static DEFINE_SPINLOCK(wdt_lock);
|
||||||
|
|
||||||
static void wdt_send_data(unsigned char command, unsigned char data)
|
static void wdt_send_data(unsigned char command, unsigned char data)
|
||||||
{
|
{
|
||||||
outb(command, COMMAND_PORT);
|
|
||||||
msleep(100);
|
|
||||||
outb(data, DATA_PORT);
|
outb(data, DATA_PORT);
|
||||||
msleep(200);
|
msleep(200);
|
||||||
|
outb(command, COMMAND_PORT);
|
||||||
|
msleep(100);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void wdt_enable(void)
|
static void wdt_enable(void)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue