diff options
author | Nicholas Chin <nic.c3.14@gmail.com> | 2023-08-27 19:15:37 -0600 |
---|---|---|
committer | Matt DeVillier <matt.devillier@amd.corp-partner.google.com> | 2023-10-20 14:34:00 +0000 |
commit | bb5fa6419dfd71950e61e75eecd48ef8203bb1b1 (patch) | |
tree | c13003d0cbe03cc673bc7812b199b15a9dd4cfdd /src/ec/dell | |
parent | 226f51c7651d3ece93b2fcc141d791b6ad00fa18 (diff) |
ec/dell/mec5035: Hook up radio enables to option API
Change-Id: I52de5ea3d24b400a93adee7a6207a4439eac61db
Signed-off-by: Nicholas Chin <nic.c3.14@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/77535
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin L Roth <gaumless@gmail.com>
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 8da11e5b1c..fad27b18f1 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" @@ -99,6 +100,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 = { |