diff options
author | Nicholas Chin <nic.c3.14@gmail.com> | 2023-08-27 19:15:37 -0600 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2024-01-23 23:01:28 +0000 |
commit | 0030349e2deab5f4041745ec8474e03b7e5c329e (patch) | |
tree | 71a26f57bbc2529d7c725fc290fe6675aaf12b8d /src/ec/dell | |
parent | 2f48eaf36f02a6607b4f94b6e8e48ec21b910e87 (diff) |
ec/dell/mec5035: Hook up radio enables to option API
Change-Id: Ibfa17ca83ca178c942d9c41533152235384e0cdf
Signed-off-by: Nicholas Chin <nic.c3.14@gmail.com>
Original-Change-Id: I52de5ea3d24b400a93adee7a6207a4439eac61db
Original-Reviewed-on: https://review.coreboot.org/c/coreboot/+/77535
Reviewed-on: https://review.coreboot.org/c/coreboot/+/79011
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/ec/dell')
-rw-r--r-- | src/ec/dell/mec5035/mec5035.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ec/dell/mec5035/mec5035.c b/src/ec/dell/mec5035/mec5035.c index 41b8dca978..eec79fb75f 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_control_radio(RADIO_WLAN, get_uint_option("wlan", RADIO_ON)); + mec5035_control_radio(RADIO_WWAN, get_uint_option("wwan", RADIO_ON)); + mec5035_control_radio(RADIO_BT, get_uint_option("bluetooth", RADIO_ON)); } static struct device_operations ops = { |