summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClay <clay.daniels.jr@gmail.com>2021-01-05 00:29:29 -0600
committerNico Huber <nico.h@gmx.de>2021-01-27 23:21:10 +0000
commitffa033e13ac2aa312047873a7893ca09145c389b (patch)
tree098ee0e56a8d330a40ac9f49a56057f4d89413f1
parente2ec60f28b06c17c6d1c5c3ecf01ae5cefb4d9a6 (diff)
downloadcoreboot-ffa033e13ac2aa312047873a7893ca09145c389b.tar.xz
superiotool: Add ID for Nuvoton NCT6797D
Test Result: clay@clay-MS-7C37:~$ sudo superiotool [sudo] password for clay: superiotool r4.13-823-g221351f81b Found Nuvoton NCT6797D (id=0xd451) at 0x4e Change-Id: I1a5f962f2fd9dc479ddbbaf5e1bebea2c7c9e03f Signed-off-by: Clay <clay.daniels.jr@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/49112 Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--util/superiotool/nuvoton.c50
1 files changed, 50 insertions, 0 deletions
diff --git a/util/superiotool/nuvoton.c b/util/superiotool/nuvoton.c
index ffd12be165..dfcbaf76bd 100644
--- a/util/superiotool/nuvoton.c
+++ b/util/superiotool/nuvoton.c
@@ -567,6 +567,56 @@ static const struct superio_registers reg_table[] = {
{0x30,0xe0,0xe1,0xe2,0xe3,EOT},
{0x20,0x20,0x04,0x05,0x01,EOT}},
{EOT}}},
+ {0xd451, "NCT6797D (experimental)", {
+ {NOLDN, NULL,
+ {0x07,0x10,0x11,0x13,0x14,0x1a,0x1b,0x1c,0x1d,0x20,0x21,0x22,0x24,0x25,0x26,0x27,0x28,0x2a,0x2b,0x2c,0x2d,0x2f,EOT},
+ {0x00,0xff,0xff,0x00,0x00,0x30,0x70,0x10,0x00,0xc8,0x03,0xff,0x04,0x00,MISC,0x00,0x00,0xc0,0x00,0x01,0x00,MISC,EOT}},
+ {0x01, "Parallel Port",
+ {0x30,0x60,0x61,0x70,0x74,0xf0,EOT},
+ {0x01,0x03,0x78,0x07,0x04,0x3f,EOT}},
+ {0x02, "UART A",
+ {0x30,0x60,0x61,0x70,0xf0,0xf2,EOT},
+ {0x01,0x03,0xf8,0x04,0x00,0x00,EOT}},
+ {0x03, "UART B, IR",
+ {0x30,0x60,0x61,0x70,0xf0,0xf1,0xf2,EOT},
+ {0x01,0x02,0xf8,0x03,0x00,0x00,0x00,EOT}},
+ {0x05, "Keyboard Controller",
+ {0x30,0x60,0x61,0x62,0x63,0x70,0x72,0xf0,EOT},
+ {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x83,EOT}},
+ {0x06, "Consumer IR",
+ {0x30,0x60,0x61,0x70,0xf0,0xf1,0xf2,0xf3,EOT},
+ {0x00,0x00,0x00,0x00,0x08,0x09,0x32,0x00,EOT}},
+ {0x07, "GPIO 6, GPIO 7, GPIO 8",
+ {0x30,0xe0,0xe1,0xe2,0xe3,0xe4,0xe5,0xe6,0xe7,0xec,0xed,0xf4,0xf5,0xf6,0xf7,0xf8,EOT},
+ {0x00,0x7f,NANA,0x00,NANA,0xff,NANA,0x00,NANA,0x00,0x00,0xff,NANA,0x00,NANA,0x00,EOT}},
+ {0x08, "WDT1, WDT_MEM, GPIO 0, GPIO 1",
+ {0x30,0x60,0x61,0xe0,0xe1,0xe2,0xe3,0xe4,0xf0,0xf1,0xf2,0xf3,0xf4,0xf5,0xf6,0xf7,0xf8,0xf9,0xfa,0xfe,0xff,EOT},
+ {0x00,0x00,0x00,0xff,NANA,0x00,NANA,0x00,0xff,NANA,0x00,NANA,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,EOT}},
+ {0x09, "GPIO 2, GPIO 3, GPIO 4, GPIO 5",
+ {0x30,0xe0,0xe1,0xe2,0xe3,0xe4,0xe5,0xe6,0xe7,0xe8,0xe9,0xea,0xeb,0xee,0xf0,0xf1,0xf2,0xf4,0xf5,0xf6,0xf7,0xfe,EOT},
+ {0x00,0xff,NANA,0x00,NANA,0x7f,NANA,0x00,NANA,NANA,0x00,0x00,0x00,0x00,0xff,NANA,0x00,0xff,NANA,0x00,NANA,0x00,EOT}},
+ {0x0a, "ACPI",
+ {0xe0,0xe1,0xe2,0xe3,0xe4,0xe5,0xe6,0xe7,0xe9,0xec,0xed,0xee,0xf0,0xf2,0xf3,0xf4,0xf6,0xf7,0xfc,0xfe,EOT},
+ {0x01,0x00,0x00,0x00,0x00,0x02,0x1a,0x00,0x00,0x00,0x00,0x00,0x10,0x5c,0x00,0x00,0x00,0xc0,0x00,0x00,EOT}},
+ {0x0b, "Hardware Monitor, Front Panel LED",
+ {0x30,0x60,0x61,0x62,0x63,0x70,0xe0,0xe1,0xe2,0xe3,0xe4,0xe6,0xe7,0xf0,0xf1,0xf2,0xf5,0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,EOT},
+ {0x00,0x00,0x00,0x00,0x00,0x00,0x7f,0x7f,0xff,0xff,0xff,0x08,0xff,0x00,0x00,0x00,0x10,0x00,0x87,0x47,0x00,0x00,0x00,EOT}},
+ {0x0d, "BCLK, WDT2, WDT_MEM",
+ {0xe0,0xe1,0xe7,0xe8,0xeb,0xed,0xf0,0xf3,EOT},
+ {0x00,MISC,0x00,0x32,0x14,0x00,0x00,0x00,EOT}},
+ {0x0e, "CIR Wake-Up",
+ {0x30,0x60,0x61,0x70,EOT},
+ {0x00,0x00,0x00,0x00,EOT}},
+ {0x0f, "GPIO Push-Pull or Open-Drain selection",
+ {0xe0,0xe1,0xe2,0xe3,0xe4,0xe5,0xe6,0xe7,0xe9,0xf0,0xf1,0xf2,EOT},
+ {0xff,0xff,0x7f,0xff,0xff,0xff,0x0f,0xff,0xff,0x9d,0x00,0x00,EOT}},
+ {0x14, "Port 80 UART",
+ {0xe0,0xe1,0xe2,0xe3,0xe4,EOT},
+ {0x80,0x00,0x00,0x10,0x00,EOT}},
+ {0x16, "Deep Sleep",
+ {0x30,0xe0,0xe1,0xe2,0xe3,EOT},
+ {0x20,0x20,0x04,0x05,0x01,EOT}},
+ {EOT}}},
{0xd121, "NCT5539D", {
{NOLDN, NULL,
{0x10,0x11,0x13,0x14,0x1a,0x1b,0x1c,0x1d,0x22,0x24,