]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
MCB: add support for SC31 to mcb-lpc
authorMichael Moese <michael.moese@men.de>
Tue, 29 Aug 2017 12:47:24 +0000 (14:47 +0200)
committerSeth Forshee <seth.forshee@canonical.com>
Sun, 10 Sep 2017 23:08:55 +0000 (18:08 -0500)
BugLink: http://bugs.launchpad.net/bugs/1716284
commit acf5e051ac44d5dc60b21bc4734ef1b844d55551 upstream.

This patch adds the resources and DMI ID's for the MEN SC31,
which uses a different address region to map the LPC bus than
the one used for the existing SC24.

Signed-off-by: Michael Moese <michael.moese@men.de>
[jth add stable tag]
Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/mcb/mcb-lpc.c

index d072c088ce73e8d43890d67657732d0749dc1557..945091a8835465c1aa2313890fcbd32d2ec4b6f4 100644 (file)
@@ -114,6 +114,12 @@ static struct resource sc24_fpga_resource = {
        .flags = IORESOURCE_MEM,
 };
 
+static struct resource sc31_fpga_resource = {
+       .start = 0xf000e000,
+       .end = 0xf000e000 + CHAM_HEADER_SIZE,
+       .flags = IORESOURCE_MEM,
+};
+
 static struct platform_driver mcb_lpc_driver = {
        .driver         = {
                .name = "mcb-lpc",
@@ -132,6 +138,15 @@ static const struct dmi_system_id mcb_lpc_dmi_table[] = {
                .driver_data = (void *)&sc24_fpga_resource,
                .callback = mcb_lpc_create_platform_device,
        },
+       {
+               .ident = "SC31",
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "MEN"),
+                       DMI_MATCH(DMI_PRODUCT_VERSION, "14SC31"),
+               },
+               .driver_data = (void *)&sc31_fpga_resource,
+               .callback = mcb_lpc_create_platform_device,
+       },
        {}
 };
 MODULE_DEVICE_TABLE(dmi, mcb_lpc_dmi_table);