brcmfmac: Set board_type from DMI on x86 based machines
authorHans de Goede <hdegoede@redhat.com>
Wed, 10 Oct 2018 11:01:02 +0000 (13:01 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 6 Nov 2018 16:50:17 +0000 (18:50 +0200)
commitbd1e82bb420adf4ad7cd468d8a482cde622dd69d
treeae0a8825969491d87292a280a81ee3a33859649b
parent0ad4b55b2f29784f93875e6231bf57cd233624a2
brcmfmac: Set board_type from DMI on x86 based machines

For x86 based machines, set the board_type used for nvram file selection
based on the DMI sys-vendor and product-name strings.

Since on some models these strings are too generic, this commit also adds
a quirk table overriding the strings for models listed in that table.

The board_type setting is used to load the board-specific nvram file with
a board-specific name so that we can ship files for each supported board
in linux-firmware.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/Makefile
drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.c
drivers/net/wireless/broadcom/brcm80211/brcmfmac/common.h
drivers/net/wireless/broadcom/brcm80211/brcmfmac/dmi.c [new file with mode: 0644]