summaryrefslogtreecommitdiff
path: root/src/mainboard/starlabs/starbook/variants/rpl
diff options
context:
space:
mode:
authorSean Rhodes <sean@starlabs.systems>2024-02-02 15:47:06 +0000
committerSean Rhodes <sean@starlabs.systems>2024-10-10 15:51:29 +0000
commit2a4a56efcc82bc196784c57f86eb58fa5664d87f (patch)
treefae242f0f2d7d76414ed9654559a0ab197389938 /src/mainboard/starlabs/starbook/variants/rpl
parent3f9f8f1e703d118642ebe2667e9f7fc4b08f6810 (diff)
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 <sean@starlabs.systems> Reviewed-on: https://review.coreboot.org/c/coreboot/+/84631 Reviewed-by: Maxim <max.senia.poliak@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/starlabs/starbook/variants/rpl')
-rw-r--r--src/mainboard/starlabs/starbook/variants/rpl/devtree.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mainboard/starlabs/starbook/variants/rpl/devtree.c b/src/mainboard/starlabs/starbook/variants/rpl/devtree.c
index 4c1f3cada9..f645f7cc35 100644
--- a/src/mainboard/starlabs/starbook/variants/rpl/devtree.c
+++ b/src/mainboard/starlabs/starbook/variants/rpl/devtree.c
@@ -58,6 +58,14 @@ void devtree_update(void)
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;
+
/* Enable/Disable Thunderbolt based on CMOS settings */
if (get_uint_option("thunderbolt", 1) == 0) {
tbt_pci_dev->enabled = 0;