summaryrefslogtreecommitdiff
path: root/util/superiotool/winbond.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2007-09-28 15:45:43 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2007-09-28 15:45:43 +0000
commitafe83092020d37d1b8629b3b92f9179e925e72fe (patch)
tree417b1e7a9720742ef6ad231f2970e377f491c158 /util/superiotool/winbond.c
parent945045b1ea380f8224bee426cb91b897562df1c8 (diff)
downloadcoreboot-afe83092020d37d1b8629b3b92f9179e925e72fe.tar.xz
Random minor fixes. Use svn revision as superiotool version number.
Make the -V output more informative. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2814 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/superiotool/winbond.c')
-rw-r--r--util/superiotool/winbond.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/util/superiotool/winbond.c b/util/superiotool/winbond.c
index 78b002d2ec..f45acb7873 100644
--- a/util/superiotool/winbond.c
+++ b/util/superiotool/winbond.c
@@ -1,5 +1,5 @@
/*
- * This file is part of the LinuxBIOS project.
+ * This file is part of the superiotool project.
*
* Copyright (C) 2007 Uwe Hermann <uwe@hermann-uwe.de>
*
@@ -179,7 +179,7 @@ static void enter_conf_mode_winbond_86(uint16_t port)
outb(0x86, port);
}
-void probe_idregs_winbond_helper(uint16_t port)
+void probe_idregs_winbond_helper(const char *init, uint16_t port)
{
uint16_t id;
uint8_t devid, rev, olddevid;
@@ -199,7 +199,7 @@ void probe_idregs_winbond_helper(uint16_t port)
id = olddevid & 0x0f; /* ID[3..0] */
if (superio_unknown(reg_table, id)) {
- no_superio_found(port);
+ no_superio_found("Winbond", init, port);
exit_conf_mode_winbond_fintek_ite_8787(port);
return;
}
@@ -220,20 +220,20 @@ void probe_idregs_winbond(uint16_t port)
{
/* TODO: Not all init sequences are valid for all ports. */
- enter_conf_mode_winbond_fintek_ite_8787(port);
- probe_idregs_winbond_helper(port);
- exit_conf_mode_winbond_fintek_ite_8787(port);
-
enter_conf_mode_winbond_88(port);
- probe_idregs_winbond_helper(port);
+ probe_idregs_winbond_helper("(init=0x88) ", port);
exit_conf_mode_winbond_fintek_ite_8787(port);
enter_conf_mode_winbond_89(port);
- probe_idregs_winbond_helper(port);
+ probe_idregs_winbond_helper("(init=0x89) ", port);
exit_conf_mode_winbond_fintek_ite_8787(port);
enter_conf_mode_winbond_86(port);
- probe_idregs_winbond_helper(port);
+ probe_idregs_winbond_helper("(init=0x86,0x86) ", port);
+ exit_conf_mode_winbond_fintek_ite_8787(port);
+
+ enter_conf_mode_winbond_fintek_ite_8787(port);
+ probe_idregs_winbond_helper("(init=0x87,0x87) ", port);
exit_conf_mode_winbond_fintek_ite_8787(port);
}