4cb3a4243af535df82d3c436a7e39a156789291d
[openwrt/staging/blogic.git] /
1 From 4d95f99c59b8b814bcf09ba86020d937ec7caa86 Mon Sep 17 00:00:00 2001
2 From: Hans de Goede <hdegoede@redhat.com>
3 Date: Thu, 20 Dec 2018 17:40:58 +0100
4 Subject: [PATCH] brcmfmac: Add DMI nvram filename quirk for PoV TAB-P1006W-232
5 tablet
6
7 The Point of View TAB-P1006W-232 tablet contains quite generic names in
8 the sys_vendor and product_name DMI strings, without this patch brcmfmac
9 will try to load: brcmfmac43340-sdio.Insyde-BayTrail.txt as nvram file
10 which is a bit too generic.
11
12 Add a DMI quirk so that a unique and clearly identifiable nvram file
13 name is used on the PoV TAB-P1006W-232 tablet.
14
15 Signed-off-by: Hans de Goede <hdegoede@redhat.com>
16 Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
17 ---
18 .../wireless/broadcom/brcm80211/brcmfmac/dmi.c | 15 +++++++++++++++
19 1 file changed, 15 insertions(+)
20
21 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/dmi.c
22 +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/dmi.c
23 @@ -43,6 +43,10 @@ static const struct brcmf_dmi_data meego
24 BRCM_CC_43340_CHIP_ID, 2, "meegopad-t08"
25 };
26
27 +static const struct brcmf_dmi_data pov_tab_p1006w_data = {
28 + BRCM_CC_43340_CHIP_ID, 2, "pov-tab-p1006w-data"
29 +};
30 +
31 static const struct dmi_system_id dmi_platform_data[] = {
32 {
33 /* Match for the GPDwin which unfortunately uses somewhat
34 @@ -81,6 +85,17 @@ static const struct dmi_system_id dmi_pl
35 },
36 .driver_data = (void *)&meegopad_t08_data,
37 },
38 + {
39 + /* Point of View TAB-P1006W-232 */
40 + .matches = {
41 + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Insyde"),
42 + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "BayTrail"),
43 + /* Note 105b is Foxcon's USB/PCI vendor id */
44 + DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "105B"),
45 + DMI_EXACT_MATCH(DMI_BOARD_NAME, "0E57"),
46 + },
47 + .driver_data = (void *)&pov_tab_p1006w_data,
48 + },
49 {}
50 };
51