Sean Rhodes has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/59706 )
Change subject: mainboard/starlabs/labtop: Change logic for CMOS handling ......................................................................
mainboard/starlabs/labtop: Change logic for CMOS handling
Remove if statement for devices that are disabled or enabled via CMOS settings.
Signed-off-by: Sean Rhodes sean@starlabs.systems Change-Id: Ie4c479bad027598751209929514f2a2643090178 --- M src/mainboard/starlabs/labtop/variants/tgl/devtree.c 1 file changed, 2 insertions(+), 4 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/06/59706/1
diff --git a/src/mainboard/starlabs/labtop/variants/tgl/devtree.c b/src/mainboard/starlabs/labtop/variants/tgl/devtree.c index 1d35189..ee5fdd3 100644 --- a/src/mainboard/starlabs/labtop/variants/tgl/devtree.c +++ b/src/mainboard/starlabs/labtop/variants/tgl/devtree.c @@ -44,12 +44,10 @@ }
/* Enable/Disable Wireless based on CMOS settings */ - if (get_uint_option("wireless", 1) == 0) - nic_dev->enabled = 0; + nic_dev->enabled = get_uint_option("wireless", 1);
/* Enable/Disable Webcam based on CMOS settings */ - if (get_uint_option("webcam", 1) == 0) - cfg->usb2_ports[3].enable = 0; + cfg->usb2_ports[3].enable = get_uint_option("webcam", 1);
/* Enable/Disable Thunderbolt based on CMOS settings */ cfg->UsbTcPortEn = get_uint_option("thunderbolt", 1);