This patch is for winbond w83627DHG superio support in superiotool.
[coreboot.git] / util / superiotool / nsc.c
index de30dc183493cb4477d01c7791b04140802903c9..adb65b6bf4f6746bb4f8e1ad01660ca3a7d46275 100644 (file)
@@ -62,8 +62,76 @@ static const struct superio_registers reg_table[] = {
                        {0x00,0x00,0x00,0x00,0x04,0x04,EOT}},
                {EOT}}},
        {0xd0, "PC87317", {
+               {NOLDN, NULL,
+                       {0x20,0x21,0x22,0x23,0x24,0x25,EOT},
+                       {0xd0,MISC,MISC,0x00,0x00,0x00,EOT}},
+               {0x0, "Keyboard",
+                       {0x30,0x31,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,
+                        0xf0,EOT},
+                       {MISC,0x00,0x00,0x60,0x00,0x64,0x01,0x02,0x04,0x04,
+                        0x40,EOT}},
+               {0x1, "Mouse",
+                       {0x30,0x70,0x71,0x74,0x75,EOT},
+                       {0x00,0x0c,0x02,0x04,0x04,EOT}},
+               {0x2, "Real-time clock (RTC), advanced power control (APC)",
+                       {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,EOT},
+                       {MISC,0x00,0x00,0x70,0x08,0x00,0x04,0x04,EOT}},
+               {0x3, "Floppy",
+                       {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,
+                        EOT},
+                       {MISC,0x00,0x03,0xf2,0x06,0x03,0x02,0x04,0x20,0x00,
+                        EOT}},
+               {0x4, "Parallel port",
+                       {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT},
+                       {0x00,0x00,0x02,0x78,0x07,0x00,0x04,0x04,0xf2,EOT}},
+               {0x5, "COM2 / IR",
+                       {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT},
+                       {0x00,0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT}},
+               {0x6, "COM1",
+                       {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT},
+                       {0x00,0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT}},
+               {0x7, "GPIO",
+                       {0x30,0x31,0x60,0x61,0x74,0x75,EOT},
+                       {0x00,0x00,0x00,0x00,0x04,0x04,EOT}},
+               {0x8, "Power management",
+                       {0x30,0x31,0x60,0x61,0x74,0x75,EOT},
+                       {0x00,0x00,0x00,0x00,0x04,0x04,EOT}},
                {EOT}}},
        {0xdf, "PC97317", {
+               {NOLDN, NULL,
+                       {0x20,0x21,0x22,0x23,0x24,0x25,0x27,EOT},
+                       {0xdf,MISC,MISC,0x00,0x00,0x00,NANA,EOT}},
+               {0x0, "Keyboard",
+                       {0x30,0x31,0x60,0x61,0x62,0x63,0x70,0x71,0x74,0x75,
+                        0xf0,EOT},
+                       {MISC,0x00,0x00,0x60,0x00,0x64,0x01,0x02,0x04,0x04,
+                        0x40,EOT}},
+               {0x1, "Mouse",
+                       {0x30,0x70,0x71,0x74,0x75,EOT},
+                       {0x00,0x0c,0x02,0x04,0x04,EOT}},
+               {0x2, "Real-time clock (RTC), advanced power control (APC)",
+                       {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,EOT},
+                       {MISC,0x00,0x00,0x70,0x08,0x00,0x04,0x04,EOT}},
+               {0x3, "Floppy",
+                       {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,0xf1,
+                        EOT},
+                       {MISC,0x00,0x03,0xf2,0x06,0x03,0x02,0x04,0x20,0x00,
+                        EOT}},
+               {0x4, "Parallel port",
+                       {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT},
+                       {0x00,0x00,0x02,0x78,0x07,0x00,0x04,0x04,0xf2,EOT}},
+               {0x5, "COM2 / IR",
+                       {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT},
+                       {0x00,0x00,0x02,0xf8,0x03,0x03,0x04,0x04,0x02,EOT}},
+               {0x6, "COM1",
+                       {0x30,0x31,0x60,0x61,0x70,0x71,0x74,0x75,0xf0,EOT},
+                       {0x00,0x00,0x03,0xf8,0x04,0x03,0x04,0x04,0x02,EOT}},
+               {0x7, "GPIO",
+                       {0x30,0x31,0x60,0x61,0x74,0x75,EOT},
+                       {0x00,0x00,0x00,0x00,0x04,0x04,EOT}},
+               {0x8, "Power management",
+                       {0x30,0x31,0x60,0x61,0x74,0x75,EOT},
+                       {0x00,0x00,0x00,0x00,0x04,0x04,EOT}},
                {EOT}}},
        {0xe0, "PC87309", {
                {NOLDN, NULL,
@@ -381,3 +449,8 @@ void probe_idregs_nsc(uint16_t port)
 
        dump_superio("NSC", reg_table, port, id);
 }
+
+void print_nsc_chips(void)
+{
+       print_vendor_chips("NSC", reg_table);
+}