summaryrefslogtreecommitdiff
path: root/src/drivers/wifi/Kconfig
diff options
context:
space:
mode:
authorKarthikeyan Ramasubramanian <kramasub@chromium.org>2019-05-29 15:09:42 -0600
committerMartin Roth <martinroth@google.com>2019-07-13 18:25:47 +0000
commitfd5d788f5e8139b387314d453644d9e58b1a654f (patch)
treedef3b90d8d5951c8b27e1f25e4afdb0b2e7e41dc /src/drivers/wifi/Kconfig
parent328c8bbd23284527a9d54697a4631c8bda95fd89 (diff)
drivers/wifi: Add generic WiFi driver
Add generic WiFi driver to support common device operations across multiple types of WiFi controller. BUG=None BRANCH=None TEST=Boot to ChromeOS. Ensure that the SSDT table contains SAR tables and wakeup GPE information. Ensure that the SSDT table is same after the change. Change-Id: Ica5edf95a37c8ed60f7e159d94fd58af5d41c0ef Signed-off-by: Karthikeyan Ramasubramanian <kramasub@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/33155 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/drivers/wifi/Kconfig')
-rw-r--r--src/drivers/wifi/Kconfig57
1 files changed, 57 insertions, 0 deletions
diff --git a/src/drivers/wifi/Kconfig b/src/drivers/wifi/Kconfig
new file mode 100644
index 0000000000..9b87f844f6
--- /dev/null
+++ b/src/drivers/wifi/Kconfig
@@ -0,0 +1,57 @@
+config DRIVERS_GENERIC_WIFI
+ bool
+ default n
+ depends on HAVE_ACPI_TABLES
+ help
+ When enabled, add identifiers in ACPI tables that are common
+ to WiFi chipsets from multiple vendors.
+
+if DRIVERS_GENERIC_WIFI
+
+config USE_SAR
+ bool
+ default n
+ help
+ Enable it when wifi driver uses SAR configuration feature.
+ VPD entry "wifi_sar" is read to get SAR settings, if its
+ not found driver may look into CBFS for default settigs.
+ WIFI_SAR_CBFS is option to enable CBFS lookup.
+
+config SAR_ENABLE
+ bool
+ default n
+ depends on USE_SAR
+
+config DSAR_ENABLE
+ bool
+ default n
+ depends on USE_SAR
+
+config GEO_SAR_ENABLE
+ bool
+ default n
+ depends on USE_SAR
+
+config WIFI_SAR_CBFS
+ bool "Enable SAR table addition to CBFS"
+ default n
+ depends on USE_SAR
+ help
+ wifi driver would look for "wifi_sar" vpd key and load SAR settings from
+ it, if the vpd key is not found then the driver tries to look for sar
+ settings from CBFS with file name wifi_sar_defaults.hex.
+ So OEM/ODM can override wifi sar with VPD.
+
+config WIFI_SAR_CBFS_FILEPATH
+ string "The cbfs file which has WIFI SAR defaults"
+ depends on WIFI_SAR_CBFS
+ default "src/mainboard/$(MAINBOARDDIR)/wifi_sar_defaults.hex"
+
+config DSAR_SET_NUM
+ hex "Number of SAR sets when D-SAR is enabled"
+ default 0x3
+ depends on USE_SAR
+ help
+ There can be up to 3 optional SAR table sets.
+
+endif # DRIVERS_GENERIC_WIFI