summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/drivers/wifi/generic/Kconfig17
-rw-r--r--src/drivers/wifi/generic/Makefile.inc10
-rw-r--r--src/mainboard/google/dedede/Kconfig1
-rw-r--r--src/mainboard/google/drallion/Kconfig1
-rw-r--r--src/mainboard/google/hatch/Kconfig1
-rw-r--r--src/mainboard/google/volteer/Kconfig1
6 files changed, 10 insertions, 21 deletions
diff --git a/src/drivers/wifi/generic/Kconfig b/src/drivers/wifi/generic/Kconfig
index 43c7d9ee1b..1d0e19f005 100644
--- a/src/drivers/wifi/generic/Kconfig
+++ b/src/drivers/wifi/generic/Kconfig
@@ -21,9 +21,6 @@ config USE_SAR
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
@@ -40,20 +37,10 @@ config GEO_SAR_ENABLE
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"
+ depends on USE_SAR
+ default ""
config DSAR_SET_NUM
hex "Number of SAR sets when D-SAR is enabled"
diff --git a/src/drivers/wifi/generic/Makefile.inc b/src/drivers/wifi/generic/Makefile.inc
index c17844993d..5650d8ab6f 100644
--- a/src/drivers/wifi/generic/Makefile.inc
+++ b/src/drivers/wifi/generic/Makefile.inc
@@ -5,8 +5,14 @@ ramstage-y += generic.c
ramstage-$(CONFIG_GENERATE_SMBIOS_TABLES) += smbios.c
ramstage-$(CONFIG_HAVE_ACPI_TABLES) += acpi.c
-cbfs-files-$(CONFIG_WIFI_SAR_CBFS) += wifi_sar_defaults.hex
-wifi_sar_defaults.hex-file := $(call strip_quotes,$(CONFIG_WIFI_SAR_CBFS_FILEPATH))
+CONFIG_WIFI_SAR_CBFS_FILEPATH := $(call strip_quotes,$(CONFIG_WIFI_SAR_CBFS_FILEPATH))
+
+ifneq ($(CONFIG_WIFI_SAR_CBFS_FILEPATH),)
+
+cbfs-files-$(CONFIG_USE_SAR) += wifi_sar_defaults.hex
+wifi_sar_defaults.hex-file := $(CONFIG_WIFI_SAR_CBFS_FILEPATH)
wifi_sar_defaults.hex-type := raw
endif
+
+endif
diff --git a/src/mainboard/google/dedede/Kconfig b/src/mainboard/google/dedede/Kconfig
index 8a667b363d..424bf15502 100644
--- a/src/mainboard/google/dedede/Kconfig
+++ b/src/mainboard/google/dedede/Kconfig
@@ -55,7 +55,6 @@ config CHROMEOS_WIFI_SAR
select DSAR_ENABLE
select SAR_ENABLE
select USE_SAR
- select WIFI_SAR_CBFS
config DEVICETREE
string
diff --git a/src/mainboard/google/drallion/Kconfig b/src/mainboard/google/drallion/Kconfig
index 919592ec8d..fdcbd05b1a 100644
--- a/src/mainboard/google/drallion/Kconfig
+++ b/src/mainboard/google/drallion/Kconfig
@@ -40,7 +40,6 @@ config CHROMEOS_WIFI_SAR
select GEO_SAR_ENABLE
select SAR_ENABLE
select USE_SAR
- select WIFI_SAR_CBFS
config DIMM_MAX
int
diff --git a/src/mainboard/google/hatch/Kconfig b/src/mainboard/google/hatch/Kconfig
index ef0c9ed972..ef0e36e35d 100644
--- a/src/mainboard/google/hatch/Kconfig
+++ b/src/mainboard/google/hatch/Kconfig
@@ -62,7 +62,6 @@ config CHROMEOS_WIFI_SAR
select GEO_SAR_ENABLE
select SAR_ENABLE
select USE_SAR
- select WIFI_SAR_CBFS
config DEVICETREE
string
diff --git a/src/mainboard/google/volteer/Kconfig b/src/mainboard/google/volteer/Kconfig
index 47f93cc77c..f6f1e4151c 100644
--- a/src/mainboard/google/volteer/Kconfig
+++ b/src/mainboard/google/volteer/Kconfig
@@ -56,7 +56,6 @@ config CHROMEOS_WIFI_SAR
select GEO_SAR_ENABLE
select SAR_ENABLE
select USE_SAR
- select WIFI_SAR_CBFS
config DIMM_SPD_SIZE
int