summaryrefslogtreecommitdiff
path: root/util/superiotool/nsc.c
diff options
context:
space:
mode:
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);
}