summaryrefslogtreecommitdiff
path: root/resources/coreboot/default/patches/0022-ec-dell-mec5035-Hook-up-radio-enables-to-option-API.patch
blob: 48fda76b39817c275e3a371ac09fb38a421ed78d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
From 1b607998e3e7054ce1107ba6af48902f6b6ffb02 Mon Sep 17 00:00:00 2001
From: Nicholas Chin <nic.c3.14@gmail.com>
Date: Sun, 27 Aug 2023 19:15:37 -0600
Subject: [PATCH 2/3] ec/dell/mec5035: Hook up radio enables to option API

Change-Id: I52de5ea3d24b400a93adee7a6207a4439eac61db
Signed-off-by: Nicholas Chin <nic.c3.14@gmail.com>
---
 src/ec/dell/mec5035/mec5035.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/ec/dell/mec5035/mec5035.c b/src/ec/dell/mec5035/mec5035.c
index e0335a4635..20a33cc0ad 100644
--- a/src/ec/dell/mec5035/mec5035.c
+++ b/src/ec/dell/mec5035/mec5035.c
@@ -4,6 +4,7 @@
 #include <console/console.h>
 #include <device/device.h>
 #include <device/pnp.h>
+#include <option.h>
 #include <pc80/keyboard.h>
 #include <stdint.h>
 #include "mec5035.h"
@@ -108,6 +109,10 @@ static void mec5035_init(struct device *dev)
 	mec5035_mouse_touchpad(TP_PS2_MOUSE);
 
 	pc_keyboard_init(NO_AUX_DEVICE);
+
+	mec5035_radio_enable(RADIO_WLAN, get_uint_option("wlan", 1));
+	mec5035_radio_enable(RADIO_WWAN, get_uint_option("wwan", 1));
+	mec5035_radio_enable(RADIO_WPAN, get_uint_option("bluetooth", 1));
 }
 
 static struct device_operations ops = {
-- 
2.42.0