summaryrefslogtreecommitdiff
path: root/util/superiotool
diff options
context:
space:
mode:
authorNicholas Chin <nic.c3.14@gmail.com>2022-11-07 17:41:25 -0700
committerMartin L Roth <gaumless@gmail.com>2022-11-13 15:33:41 +0000
commit16fd5843a2fc9d27baed2ac5efb2413ceeb728f5 (patch)
treeda3f7b024e909ec383575b6f575cde8366157c0f /util/superiotool
parent3d2a6f49565ff2b8696f89625c979283feb8217a (diff)
util/superiotool: Add SMSC MEC5035
Also comment out the SMSC FDC37M602 which has a conflicting ID and has never had the LDN/register layout anyway. Tested on a Dell Latitude E6400 Change-Id: I5b1900e6ef599c422a1d6eca7a2ac4691d56d874 Signed-off-by: Nicholas Chin <nic.c3.14@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/69481 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'util/superiotool')
-rw-r--r--util/superiotool/smsc.c74
1 files changed, 72 insertions, 2 deletions
diff --git a/util/superiotool/smsc.c b/util/superiotool/smsc.c
index 4175d3ee05..d98424e642 100644
--- a/util/superiotool/smsc.c
+++ b/util/superiotool/smsc.c
@@ -345,8 +345,6 @@ static const struct superio_registers reg_table[] = {
{0x30,0x60,0x61,0x70,0xf0,EOT},
{0x00,0x00,0x00,NANA,NANA,EOT}},
{EOT}}},
- {0x46, "FDC37M602", { /* Found in Biostar M6TLD. */
- {EOT}}},
{0x47, "FDC37M60x", { /* TODO: Not yet in sensors-detect */
{EOT}}},
{0x4c, "FDC37B72x", {
@@ -987,6 +985,78 @@ static const struct superio_registers reg_table[] = {
EOT},
{EOT}},
{EOT}}},
+ /* FIXME: Conflicting ID with MEC5035
+ {0x46, "FDC37M602", { Found in Biostar M6TLD.
+ {EOT}}},
+ */
+ {0x46, "MEC5035", {
+ {NOLDN, NULL,
+ {0x07, 0x20, 0x21, 0x24, EOT},
+ {0x00, 0x46, 0x00, 0x00, EOT}},
+ {0x1, "Keyboard Controller",
+ {0x30, EOT},
+ {0x00, EOT}},
+ {0x6, "UART",
+ {0x30, 0xF0, EOT},
+ {0x00, 0x00, EOT}},
+ {0xC, "LPC Interface",
+ {0x30,
+ /* IRQ Config */
+ 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48,
+ 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f,
+ /* DMA Channel 0 - 7 */
+ 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58,
+ 0x59, 0x5a, 0x5b, 0x5c, 0x5d, 0x5e, 0x5f,
+ /* BAR configuration Port */
+ 0x60, 0x61, 0x62, 0x63,
+ /* BAR Mailbox Registers */
+ 0x64, 0x65, 0x66, 0x67,
+ /* BAR 8042 Keyboard Interface */
+ 0x68, 0x69, 0x6a, 0x6b,
+ /* BAR ACPI EC Interface 1 */
+ 0x6c, 0x6d, 0x6e, 0x6f,
+ /* BAR ACPI EC Interface 2 */
+ 0x70, 0x71, 0x72, 0x73,
+ /* BAR ACPI EC Interface 3 */
+ 0x74, 0x75, 0x76, 0x77,
+ /* BAR ACPI PM1 Interface */
+ 0x78, 0x79, 0x7a, 0x7b,
+ /* BAR UART */
+ 0x7c, 0x7d, 0x7e, 0x7f,
+ /* BAR Legacy (Fast Keyboard) Interface */
+ 0x80, 0x81, 0x82, 0x83,
+ /* BAR Embedded Flash Interface */
+ 0x84, 0x85, 0x86, 0x87,
+ EOT},
+ {0x00,
+ /* IRQ Config */
+ 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
+ 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
+ /* DMA Channel 0 - 7 */
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ /* BAR configuration Port */
+ 0x01, 0x0C, 0x2e, 0x00,
+ /* BAR Mailbox Registers */
+ 0x01, 0x00, 0x00, 0x00,
+ /* BAR 8042 Keyboard Interface */
+ 0x04, 0x01, 0x60, 0x00,
+ /* BAR ACPI EC Interface 1 */
+ 0x04, 0x02, 0x62, 0x00,
+ /* BAR ACPI EC Interface 2 */
+ 0x07, 0x03, 0x62, 0x00,
+ /* BAR ACPI EC Interface 3 */
+ 0x07, 0x04, 0x62, 0x00,
+ /* BAR ACPI PM1 Interface */
+ 0x07, 0x05, 0x00, 0x00,
+ /* BAR UART */
+ 0x07, 0x06, 0x00, 0x00,
+ /* BAR Legacy (Fast Keyboard) Interface */
+ 0x00, 0x07, 0x92, 0x00,
+ /* BAR Embedded Flash Interface */
+ 0x04, 0x0e, 0x00, 0x00,
+ EOT}},
+ {EOT}}},
{EOT}
};