From 7f46fff24c2975f29db7eed3504a7fea846c20d0 Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Fri, 24 Feb 2017 15:35:55 +0800 Subject: superiotool: Add SMSC KBC1126 Device ID is read from HP Elitebook 2760p. Based on: - superio/smsc/kbc1100 (LDNs, keyboard, EC) - DSDT from OEM firmware (COM1 and mailbox) - Datasheet "KBC1122 Priliminary DS Rev. 0.8" Change-Id: Id172ae42411a6d42a4ae7c7f30f96aeda3e6c384 Signed-off-by: Iru Cai Reviewed-on: https://review.coreboot.org/18480 Tested-by: build bot (Jenkins) Reviewed-by: Felix Held --- util/superiotool/smsc.c | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) (limited to 'util/superiotool') diff --git a/util/superiotool/smsc.c b/util/superiotool/smsc.c index fcb5f49a636e..640f4382c543 100644 --- a/util/superiotool/smsc.c +++ b/util/superiotool/smsc.c @@ -68,6 +68,54 @@ static const struct superio_registers reg_table[] = { {0x03, "FDC37C93xFR", { /* FIXME: There's another 0x03 but found on port 0x0d/0x0e! */ {EOT}}}, + {0x07, "KBC1126", { + /* + * Found in HP Elitebook 2760p and 8470p. + * The registers are taken from the datasheet of KBC1122 which is similar. + */ + {NOLDN, NULL, + {0x02,0x03,0x07,0x17,0x20,0x21,0x22,0x23,0x24,0x25, + 0x26,0x27,0x28,0x29,0x2a,0x2b,0x2c,0x2d,0x2e,0x2f, + EOT}, + {0x00,RSVD,0x00,RSVD,0x07,0x00,0x00,0x00,0x04,0x04, + MISC,MISC,RSVD,RSVD,RSVD,RSVD,RSVD,RSVD,RSVD,RSVD, + EOT}}, + {0x1, "Power management (PM1)", + {0x30,0x60,0x61,EOT}, + {0x00,0x00,0x00,EOT}}, + {0x4, "COM1", + {0x30,0x60,0x61,0x70,0xf0,EOT}, + {0x00,0x00,0x00,0x00,0x00,EOT}}, + {0x5, "COM2 / IRCC", + {0x30,0x60,0x61,0x62,0x63,0x70,0x74,0xf0,0xf1, + 0xf2,0xf7,0xf8,EOT}, + {0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x00,0x02, + 0x03,0x00,0x00,EOT}}, + {0x7, "Keyboard", + {0x30,0x60,0x61,0x70,0x72,0xf0,EOT}, + {0x00,0x00,0x60,0x00,0x00,0x00,EOT}}, + {0x8, "Embedded controller (EC)", + {0x30,0x60,0x61,EOT}, + {0x00,0x00,0x62,EOT}}, + {0x9, "Mailbox", + {0x30,0x60,0x61,EOT}, + {0x00,0x00,0x00,EOT}}, + {0xa, "LPC/8051 addressable GPIO (LGPIO)", + {0x30,0x60,0x61,EOT}, + {0x00,0x00,0x00,EOT}}, + {0xb, "Share flash interface (SFI)", + {0x30,0xff,EOT}, + {0x01,0x0c,EOT}}, + {0xd, "EC channel 1", + {0x30,0x60,0x61,EOT}, + {0x00,0x00,0x62,EOT}}, + {0xe, "EC channel 2", + {0x30,0x60,0x61,EOT}, + {0x00,0x00,0x62,EOT}}, + {0x10, "Infrared CIRCC2.0", + {0x30,0x60,0x61,0x70,0x74,0xe0,0xf0,0xf1,0xf2,0xf7,0xf8,EOT}, + {0x00,0x00,0x00,0x00,0x04,0x00,0x00,0x02,0x03,0x00,0x00,EOT}}, + {EOT}}}, {0x0a, "FDC37N971", { {NOLDN, NULL, {0x02,0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28, -- cgit v1.2.3