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>
This commit is contained in:
Karthikeyan Ramasubramanian
2019-05-29 15:09:42 -06:00
committed by Martin Roth
parent 328c8bbd23
commit fd5d788f5e
7 changed files with 367 additions and 252 deletions

View File

@@ -13,26 +13,11 @@
* GNU General Public License for more details.
*/
#ifndef _WIFI_CHIP_H_
#define _WIFI_CHIP_H_
/* WRDS Spec Revision */
#define WRDS_REVISION 0x0
/* EWRD Spec Revision */
#define EWRD_REVISION 0x0
/* WRDS Domain type */
#define WRDS_DOMAIN_TYPE_WIFI 0x7
/* EWRD Domain type */
#define EWRD_DOMAIN_TYPE_WIFI 0x7
/* WGDS Domain type */
#define WGDS_DOMAIN_TYPE_WIFI 0x7
#ifndef _INTEL_WIFI_CHIP_H_
#define _INTEL_WIFI_CHIP_H_
struct drivers_intel_wifi_config {
unsigned wake; /* Wake pin for ACPI _PRW */
unsigned int wake; /* Wake pin for ACPI _PRW */
};
#endif /* _WIFI_CHIP_H_ */
#endif /* _INTEL_WIFI_CHIP_H_ */