aboutsummaryrefslogtreecommitdiff
path: root/util/superiotool/nsc.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2007-10-17 23:43:59 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2007-10-17 23:43:59 +0000
commit7dabe5ea0d8af4b60c07a075fa03d4c837d2e698 (patch)
treed1e5279e642f710222db71e35e925be741cf9da9 /util/superiotool/nsc.c
parentd937b5243cea29a1144a5e25f768ee06684445f8 (diff)
Drop support for the --human-readable option. It's not any more useful than
the --dump option, it just means lots of additional work for no gain, IMO. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2872 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/superiotool/nsc.c')
-rw-r--r--util/superiotool/nsc.c38
1 files changed, 0 insertions, 38 deletions
diff --git a/util/superiotool/nsc.c b/util/superiotool/nsc.c
index 3863101bfb..0edf2a0ab5 100644
--- a/util/superiotool/nsc.c
+++ b/util/superiotool/nsc.c
@@ -135,42 +135,6 @@ const static struct superio_registers reg_table[] = {
{EOT}
};
-static void dump_readable_pc8374l(uint16_t port)
-{
- if (!dump_readable)
- return;
-
- printf("Human-readable register dump:\n");
-
- printf("Enables: 21=%02x, 22=%02x, 23=%02x, 24=%02x, 26=%02x\n",
- regval(port, 0x21), regval(port, 0x22), regval(port, 0x23),
- regval(port, 0x24), regval(port, 0x26));
- printf("SMBUS at %02x\n", regval(port, 0x2a));
-
- /* Check COM1. This is all we care about at present. */
- printf("COM 1 is globally %s\n",
- regval(port, 0x26) & 8 ? "disabled" : "enabled");
-
- /* Select COM1. */
- regwrite(port, 0x07, 0x03);
- printf("COM 1 is locally %s\n",
- regval(port, 0x30) & 1 ? "enabled" : "disabled");
- printf
- ("COM1 60=%02x, 61=%02x, 70=%02x, 71=%02x, 74=%02x, 75=%02x, f0=%02x\n",
- regval(port, 0x60), regval(port, 0x61), regval(port, 0x70),
- regval(port, 0x71), regval(port, 0x74), regval(port, 0x75),
- regval(port, 0xf0));
-
- /* Select GPIO. */
- regwrite(port, 0x07, 0x07);
- printf("GPIO is %s\n", regval(port, 0x30) & 1 ? "enabled" : "disabled");
- printf
- ("GPIO 60=%02x, 61=%02x, 70=%02x, 71=%02x, 74=%02x, 75=%02x, f0=%02x\n",
- regval(port, 0x60), regval(port, 0x61), regval(port, 0x70),
- regval(port, 0x71), regval(port, 0x74), regval(port, 0x75),
- regval(port, 0xf0));
-}
-
void probe_idregs_nsc(uint16_t port)
{
uint8_t id, rev;
@@ -205,7 +169,5 @@ void probe_idregs_nsc(uint16_t port)
chip_found = 1;
dump_superio("NSC", reg_table, port, id);
- if (id == 0xf1)
- dump_readable_pc8374l(port);
}