From 2a4a56efcc82bc196784c57f86eb58fa5664d87f Mon Sep 17 00:00:00 2001 From: Sean Rhodes Date: Fri, 2 Feb 2024 15:47:06 +0000 Subject: mb/starlabs/starbook: Add options to disable USB devices Add options to disable the card reader and fingerprint reader. Change-Id: Iee985aa2db3da5c2d393b8dc2dc722e990c43272 Signed-off-by: Sean Rhodes Reviewed-on: https://review.coreboot.org/c/coreboot/+/84631 Reviewed-by: Maxim Tested-by: build bot (Jenkins) --- src/mainboard/starlabs/starbook/variants/adl/devtree.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/mainboard/starlabs/starbook/variants/adl/devtree.c') diff --git a/src/mainboard/starlabs/starbook/variants/adl/devtree.c b/src/mainboard/starlabs/starbook/variants/adl/devtree.c index e36effbc9f..1c9a8ffc11 100644 --- a/src/mainboard/starlabs/starbook/variants/adl/devtree.c +++ b/src/mainboard/starlabs/starbook/variants/adl/devtree.c @@ -54,4 +54,12 @@ void devtree_update(void) /* Enable/Disable Webcam based on CMOS settings */ if (get_uint_option("webcam", 1) == 0) cfg->usb2_ports[CONFIG_CCD_PORT].enable = 0; + + /* Enable/Disable Fingerprint Reader based on CMOS Settings */ + if (get_uint_option("fingerprint_reader", 1) == 0) + cfg->usb2_ports[5].enable = 0; + + /* Enable/Disable Card Reader based on CMOS Settings */ + if (get_uint_option("card_reader", 1) == 0) + cfg->usb2_ports[3].enable = 0; } -- cgit v1.2.3