summaryrefslogtreecommitdiff
path: root/util/superiotool/superiotool.c
diff options
context:
space:
mode:
authorRonald Hoogenboom <hoogenboom30@zonnet.nl>2008-02-25 22:32:41 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2008-02-25 22:32:41 +0000
commit0be73bbf3014d3e7a5d519bb6023c99374df3322 (patch)
tree723cbeb7fcf4b51347b70a4b7a016b75e22435d8 /util/superiotool/superiotool.c
parent56cf01f29d7549f11cdd329d5ca8a2e163665f3a (diff)
downloadcoreboot-0be73bbf3014d3e7a5d519bb6023c99374df3322.tar.xz
This patch adds support to dump other registers than the primary
pnp-style configuration registers, using the new option -e/--extra-dump. This patch only adds dumping of the Environmental Controller configuration registers for the IT8716f chip. Signed-off-by: Ronald Hoogenboom <hoogenboom30@zonnet.nl> I (Carl-Daniel) checked the data sheets of the whole IT87[012] series and although the environment controller is sometimes called fan controller, the location of the register is the same for all models. Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3117 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/superiotool/superiotool.c')
-rw-r--r--util/superiotool/superiotool.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/util/superiotool/superiotool.c b/util/superiotool/superiotool.c
index d96396f24a..1edaf30f86 100644
--- a/util/superiotool/superiotool.c
+++ b/util/superiotool/superiotool.c
@@ -24,7 +24,7 @@
#include "superiotool.h"
/* Command line options. */
-int dump = 0, verbose = 0;
+int dump = 0, verbose = 0, extra_dump = 0;
/* Global flag which indicates whether a chip was detected at all. */
int chip_found = 0;
@@ -208,6 +208,7 @@ int main(int argc, char *argv[])
static const struct option long_options[] = {
{"dump", no_argument, NULL, 'd'},
+ {"extra-dump", no_argument, NULL, 'e'},
{"list-supported", no_argument, NULL, 'l'},
{"verbose", no_argument, NULL, 'V'},
{"version", no_argument, NULL, 'v'},
@@ -215,12 +216,15 @@ int main(int argc, char *argv[])
{0, 0, 0, 0}
};
- while ((opt = getopt_long(argc, argv, "dlVvh",
+ while ((opt = getopt_long(argc, argv, "delVvh",
long_options, &option_index)) != EOF) {
switch (opt) {
case 'd':
dump = 1;
break;
+ case 'e':
+ extra_dump = 1;
+ break;
case 'l':
print_list_of_supported_chips();
exit(0);