diff options
author | Michael Moese <michael.moese@men.de> | 2017-08-29 08:47:24 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-31 12:49:41 -0400 |
commit | acf5e051ac44d5dc60b21bc4734ef1b844d55551 (patch) | |
tree | 1ac3b01e940422479f57bf163ac81a72d2748bbc /drivers/mcb | |
parent | a49c3feeb84e4b44d3022b8b1a303ea2e4eeeab9 (diff) |
MCB: add support for SC31 to mcb-lpc
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]
Cc: <stable@vger.kernel.org> (v4.9+)
Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/mcb')
-rw-r--r-- | drivers/mcb/mcb-lpc.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/mcb/mcb-lpc.c b/drivers/mcb/mcb-lpc.c index d072c088ce73..945091a88354 100644 --- a/drivers/mcb/mcb-lpc.c +++ b/drivers/mcb/mcb-lpc.c | |||
@@ -114,6 +114,12 @@ static struct resource sc24_fpga_resource = { | |||
114 | .flags = IORESOURCE_MEM, | 114 | .flags = IORESOURCE_MEM, |
115 | }; | 115 | }; |
116 | 116 | ||
117 | static struct resource sc31_fpga_resource = { | ||
118 | .start = 0xf000e000, | ||
119 | .end = 0xf000e000 + CHAM_HEADER_SIZE, | ||
120 | .flags = IORESOURCE_MEM, | ||
121 | }; | ||
122 | |||
117 | static struct platform_driver mcb_lpc_driver = { | 123 | static struct platform_driver mcb_lpc_driver = { |
118 | .driver = { | 124 | .driver = { |
119 | .name = "mcb-lpc", | 125 | .name = "mcb-lpc", |
@@ -132,6 +138,15 @@ static const struct dmi_system_id mcb_lpc_dmi_table[] = { | |||
132 | .driver_data = (void *)&sc24_fpga_resource, | 138 | .driver_data = (void *)&sc24_fpga_resource, |
133 | .callback = mcb_lpc_create_platform_device, | 139 | .callback = mcb_lpc_create_platform_device, |
134 | }, | 140 | }, |
141 | { | ||
142 | .ident = "SC31", | ||
143 | .matches = { | ||
144 | DMI_MATCH(DMI_SYS_VENDOR, "MEN"), | ||
145 | DMI_MATCH(DMI_PRODUCT_VERSION, "14SC31"), | ||
146 | }, | ||
147 | .driver_data = (void *)&sc31_fpga_resource, | ||
148 | .callback = mcb_lpc_create_platform_device, | ||
149 | }, | ||
135 | {} | 150 | {} |
136 | }; | 151 | }; |
137 | MODULE_DEVICE_TABLE(dmi, mcb_lpc_dmi_table); | 152 | MODULE_DEVICE_TABLE(dmi, mcb_lpc_dmi_table); |