summaryrefslogtreecommitdiff
path: root/src/soc/intel/braswell/acpi.c
diff options
context:
space:
mode:
authorFelix Durairaj <felixx.durairaj@intel.com>2015-11-23 14:07:40 -0800
committerPatrick Georgi <pgeorgi@google.com>2016-01-22 16:04:55 +0100
commit15184e081acf576d6e9f1125df92001b2c5b7a02 (patch)
tree5bf00b056b6faa33679292ae154b83ec440b3cf4 /src/soc/intel/braswell/acpi.c
parent8ff4308243bba649f83f73fa0973358e46e9599f (diff)
downloadcoreboot-15184e081acf576d6e9f1125df92001b2c5b7a02.tar.xz
soc/braswell: Add method for Wifi regulatory domain
Get the WRDD domain code from VPD and put it in global nvs. WRDD method in wifi.asl returns this value from global nvs. This wifi.asl should be included in dsdt.asl under the root port where wifi module resides. Original-Reviewed-on: https://chromium-review.googlesource.com/314373 Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org> Original-Reviewed-by: Pratikkumar V Prajapati <pratikkumar.v.prajapati@intel.com> Original-Commit-Queue: Hannah Williams <hannah.williams@intel.com> Change-Id: I809d28f10e80681471a785e604df102fb943a983 Signed-off-by: fdurairx <felixx.durairaj@intel.com> Signed-off-by: Hannah Williams <hannah.williams@intel.com> Reviewed-on: https://review.coreboot.org/12745 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/soc/intel/braswell/acpi.c')
-rw-r--r--src/soc/intel/braswell/acpi.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/soc/intel/braswell/acpi.c b/src/soc/intel/braswell/acpi.c
index f7c37481d8..0e866a5857 100644
--- a/src/soc/intel/braswell/acpi.c
+++ b/src/soc/intel/braswell/acpi.c
@@ -44,6 +44,7 @@
#include <string.h>
#include <types.h>
#include <vendorcode/google/chromeos/gnvs.h>
+#include <wrdd.h>
#define MWAIT_RES(state, sub_state) \
{ \
@@ -523,6 +524,13 @@ void southcluster_inject_dsdt(device_t device)
if (gnvs) {
acpi_create_gnvs(gnvs);
+ /* Fill in the Wifi Region id */
+ if (IS_ENABLED(CONFIG_HAVE_REGULATORY_DOMAIN)) {
+ gnvs->cid1 = wifi_regulatory_domain();
+ } else {
+
+ gnvs->cid1 = WRDD_DEFAULT_REGULATORY_DOMAIN;
+ }
acpi_save_gnvs((unsigned long)gnvs);
/* And tell SMI about it */
smm_setup_structures(gnvs, NULL, NULL);