Initial AMD Barcelona support for rev Bx.
[coreboot.git] / util / superiotool / smsc.c
index ee62d6becaf3f9750f960b764dd7f7725ca2b247..b86507875e4b7986dfdaef7267a5e16dde391755 100644 (file)
@@ -42,6 +42,37 @@ static const struct superio_registers reg_table[] = {
        {0x30, "FDC37C93xAPM", {
                {EOT}}},
        {0x40, "FDC37C67x", {   /* E.g. FDC37C672. Chiprev: 0x01 */
+               {NOLDN, NULL,
+                       {0x03,0x20,0x21,0x22,0x23,0x24,0x26,0x27,0x2b,0x2c,
+                        0x2d,0x2e,0x2f,EOT},
+                       {0x03,0x40,NANA,0x00,0x00,0x04,MISC,MISC,NANA,NANA,
+                        NANA,NANA,NANA,EOT}},
+               {0x0, "Floppy",
+                       {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,0xf5,
+                        EOT},
+                       {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,0x00,
+                        EOT}},
+               {0x3, "Parallel port",
+                       {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT},
+                       {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT}},
+               {0x4, "COM1",
+                       {0x30,0x60,0x61,0x70,0xf0,EOT},
+                       {0x00,0x00,0x00,0x00,0x00,EOT}},
+               {0x5, "COM2",
+                       {0x30,0x60,0x61,0x62,0x63,0x70,0x74,0xf0,0xf1,0xf2,
+                        EOT},
+                       {0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x02,0x03,
+                        EOT}},
+               {0x7, "Keyboard",
+                       {0x30,0x70,0x72,0xf0,EOT},
+                       {0x00,0x00,0x00,0x00,EOT}},
+               {0x8, "Aux I/O",
+                       {0x30,0xb4,0xb5,0xb6,0xb7,0xc0,0xc1,0xc2,0xc3,0xc4,
+                        0xf1,0xf2,0xf3,0xf4,0xf6,0xf7,0xf8,0xf9,0xfa,0xfb,
+                        EOT},
+                       {0x00,NANA,NANA,NANA,NANA,0x06,0x03,NANA,NANA,NANA,
+                        0x00,0x00,0x00,MISC,RSVD,RSVD,RSVD,RSVD,RSVD,RSVD,
+                        EOT}},
                {EOT}}},
        {0x42, "FDC37B80x/FDC37M707", {
                {EOT}}},
@@ -206,6 +237,39 @@ static const struct superio_registers reg_table[] = {
                         RSVD,RSVD,RSVD,RSVD,EOT}},
                {EOT}}},
        {0x51, "LPC47B27x", {
+               {NOLDN, NULL,
+                       {0x03,0x20,0x21,0x22,0x23,0x24,0x26,0x27,0x28,
+                        0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,EOT},
+                       {RSVD,0x51,NANA,0x00,0x00,0x04,MISC,MISC,RSVD,
+                        NANA,NANA,NANA,NANA,NANA,NANA,EOT}},
+               {0x0, "Floppy",
+                       {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,0xf5,
+                        EOT},
+                       {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,0x00,
+                        EOT}},
+               {0x3, "Parallel port",
+                       {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT},
+                       {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT}},
+               {0x4, "COM1",
+                       {0x30,0x60,0x61,0x70,0xf0,EOT},
+                       {0x00,0x00,0x00,0x00,0x00,EOT}},
+               {0x5, "COM2",
+                       {0x30,0x60,0x61,0x62,0x63,0x70,0x74,0xf0,0xf1,0xf2,
+                        EOT},
+                       {NANA,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x02,0x03,
+                        EOT}},
+               {0x7, "Keyboard",
+                       {0x30,0x70,0x72,0xf0,EOT},
+                       {0x00,0x00,0x00,0x00,EOT}},
+               {0x9, "Game port",
+                       {0x30,0x60,0x61,EOT},
+                       {0x00,0x00,0x00,EOT}},
+               {0xa, "Power-management events (PME)",
+                       {0x30,0x60,0x61,0xf0,0xf1,EOT},
+                       {0x00,0x00,0x00,NANA,NANA,EOT}},
+               {0xb, "MIDI port (MPU-401)",
+                       {0x30,0x60,0x61,0x70,EOT},
+                       {0x00,0x03,0x30,0x05,EOT}},
                {EOT}}},
        {0x52, "LPC47B37x", {
                {EOT}}},
@@ -255,6 +319,37 @@ static const struct superio_registers reg_table[] = {
        {0x5f, "LPC47M14x", {
                {EOT}}},
        {0x60, "LPC47M15x/192/997", {
+               {NOLDN, NULL,
+                       {0x03,0x07,0x20,0x21,0x22,0x23,0x24,0x26,0x27,0x28,
+                        0x2a,0x2b,0x2c,0x2d,0x2e,0x2f,EOT},
+                       {RSVD,0x00,0x60,NANA,0x00,0x00,0x44,MISC,MISC,RSVD,
+                        NANA,NANA,NANA,NANA,NANA,NANA,EOT}},
+               {0x0, "Floppy",
+                       {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,0xf2,0xf4,0xf5,
+                        EOT},
+                       {0x00,0x03,0xf0,0x06,0x02,0x0e,0x00,0xff,0x00,0x00,
+                        EOT}},
+               {0x3, "Parallel port",
+                       {0x30,0x60,0x61,0x70,0x74,0xf0,0xf1,EOT},
+                       {0x00,0x00,0x00,0x00,0x04,0x3c,0x00,EOT}},
+               {0x4, "COM1",
+                       {0x30,0x60,0x61,0x70,0xf0,EOT},
+                       {0x00,0x00,0x00,0x00,0x00,EOT}},
+               {0x5, "COM2 / IR",
+                       {0x30,0x60,0x61,0x70,0xf0,0xf1,0xf2,EOT},
+                       {NANA,0x00,0x00,0x00,0x00,0x02,0x03,EOT}},
+               {0x7, "Keyboard",
+                       {0x30,0x70,0x72,0xf0,EOT},
+                       {0x00,0x00,0x00,0x00,EOT}},
+               {0x9, "Game port",
+                       {0x30,0x60,0x61,EOT},
+                       {0x00,0x00,0x00,EOT}},
+               {0xa, "Power Management Events (PME)",
+                       {0x30,0x60,0x61,0xf0,EOT},
+                       {0x00,0x00,0x00,NANA,EOT}},
+               {0xb, "MPU-401",
+                       {0x30,0x60,0x61,0x70,EOT},
+                       {0x00,0x03,0x30,0x05,EOT}},
                {EOT}}},
        {0x62, "LPC47S45x", {
                {EOT}}},
@@ -262,7 +357,7 @@ static const struct superio_registers reg_table[] = {
                {EOT}}},
        {0x6e, "LPC47B387", {   /* TODO: Not yet in sensors-detect */
                /* Found in the HP Compaq Business Desktop d530 Series */
-               /* http://thread.gmane.org/gmane.linux.bios/26648 */
+               /* http://article.gmane.org/gmane.linux.bios/27192 */
                /* We cannot find a public datasheet for this Super I/O. */
                {EOT}}},
        {0x6f, "LPC47B397", {