[coreboot-gerrit] Patch set updated for coreboot: lib: Implement framework for retrieving WiFi regulatory domain
Hannah Williams (hannah.williams@intel.com)
gerrit at coreboot.org
Tue Jan 19 21:10:45 CET 2016
Hannah Williams (hannah.williams at intel.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/12744
-gerrit
commit 44d0a298ccc30dc02bf805806adf52d048b7564e
Author: Felix Durairaj <felixx.durairaj at intel.com>
Date: Fri Nov 20 15:51:35 2015 -0800
lib: Implement framework for retrieving WiFi regulatory domain
Platforms that need to initialize WRDD package with the regulatory domain
information should implement function wifi_regulatory_domain.
A weak implementation is provided here.
Original-Reviewed-on: https://chromium-review.googlesource.com/314384
Original-Reviewed-by: Aaron Durbin <adurbin at chromium.org>
Original-Reviewed-by: Pratikkumar V Prajapati <pratikkumar.v.prajapati at intel.com>
Original-Tested-by: Hannah Williams <hannah.williams at intel.com>
Change-Id: I84e2acd748856437b40bbf997bf23f158c711712
Signed-off-by: fdurairx <felixx.durairaj at intel.com>
Signed-off-by: Hannah Williams <hannah.williams at intel.com>
---
src/include/wrdd.h | 30 ++++++++++++++++++++++++++++++
src/lib/Makefile.inc | 2 ++
2 files changed, 32 insertions(+)
diff --git a/src/include/wrdd.h b/src/include/wrdd.h
new file mode 100644
index 0000000..97fa5dc
--- /dev/null
+++ b/src/include/wrdd.h
@@ -0,0 +1,30 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * Copyright (C) 2012 Google Inc.
+ * Copyright (C) 2015 Intel Corp.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+#ifndef _WRDD_H_
+#define _WRDD_H_
+
+#include <stdint.h>
+
+/* Default regulatory domain ID */
+#define WRDD_DEFAULT_REGULATORY_DOMAIN 0x4150
+/* INDONESIA regulatory domain ID */
+#define WRDD_REGULATORY_DOMAIN_INDONESIA 0x4944
+
+/* Retrieve the regulatory domain information */
+uint16_t wifi_regulatory_domain(void);
+
+#endif /* _WRDD_H_ */
+
diff --git a/src/lib/Makefile.inc b/src/lib/Makefile.inc
index 724391f..de1cadf 100644
--- a/src/lib/Makefile.inc
+++ b/src/lib/Makefile.inc
@@ -178,6 +178,8 @@ romstage-y += halt.c
ramstage-y += halt.c
smm-y += halt.c
+ramstage-y += wrdd.c
+
ifneq ($(CONFIG_ARCH_X86),y)
# X86 bootblock uses custom ldscripts that are all glued together,
# so we need to exclude it here or it would pick these up as well
More information about the coreboot-gerrit
mailing list