summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2017-02-24 15:35:55 +0800
committerMartin Roth <martinroth@google.com>2017-06-06 21:13:16 +0200
commit7f46fff24c2975f29db7eed3504a7fea846c20d0 (patch)
tree6b08d10c0366106e867fceb59f16bf388fda33eb /util
parentc2165671b0ad0715a7cd1183390ca1b2c301d336 (diff)
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 <mytbk920423@gmail.com> Reviewed-on: https://review.coreboot.org/18480 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'util')
-rw-r--r--util/superiotool/smsc.c48
1 files changed, 48 insertions, 0 deletions
diff --git a/util/superiotool/smsc.c b/util/superiotool/smsc.c
index fcb5f49a63..640f4382c5 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,