summaryrefslogtreecommitdiff
path: root/src/mainboard/google/octopus/variants/baseboard
diff options
context:
space:
mode:
authorKarthikeyan Ramasubramanian <kramasub@chromium.org>2019-06-06 15:57:47 -0600
committerPatrick Georgi <pgeorgi@google.com>2019-07-19 17:14:55 +0000
commit02592ec2912e064f0cd0f6a5094382913f1f6b2f (patch)
treecd52d5e0e5124477b1aaf6f19ef9573de0cb7c34 /src/mainboard/google/octopus/variants/baseboard
parent25fcdce7d4fb9e92e10a36d8ef48c3046228ee65 (diff)
downloadcoreboot-02592ec2912e064f0cd0f6a5094382913f1f6b2f.tar.xz
mb/google/octopus: Disable unused USB devices
Disable unused USB devices in the device tree so that the concerned ACPI objects do not get exported to the OS. BUG=b:133513961 BRANCH=octopus TEST=Boot to ChromeOS. Ensure that the USB devices are disabled based on port status and the concerned ACPI objects are not exported. Change-Id: I0faccdfb8a9df9ec52130437433b15973e3d6f1a Signed-off-by: Karthikeyan Ramasubramanian <kramasub@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34291 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/mainboard/google/octopus/variants/baseboard')
-rw-r--r--src/mainboard/google/octopus/variants/baseboard/include/baseboard/variants.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mainboard/google/octopus/variants/baseboard/include/baseboard/variants.h b/src/mainboard/google/octopus/variants/baseboard/include/baseboard/variants.h
index 140beb4649..2132db591d 100644
--- a/src/mainboard/google/octopus/variants/baseboard/include/baseboard/variants.h
+++ b/src/mainboard/google/octopus/variants/baseboard/include/baseboard/variants.h
@@ -47,6 +47,17 @@ void variant_nhlt_init(struct nhlt *nhlt);
/* Modify devictree settings during ramstage. */
struct device;
void variant_update_devtree(struct device *dev);
+/**
+ * variant_ext_usb_status() - Get status of externally visible USB ports
+ * @port_type: Type of USB port i.e. USB2/USB3
+ * @port_id: USB Port ID
+ *
+ * This function is supplied by the mainboard/variant to SoC's XHCI driver to
+ * identify the status of externally visible USB ports.
+ *
+ * Return: true if the port is present, false if the port is absent.
+ */
+bool variant_ext_usb_status(unsigned int port_type, unsigned int port_id);
/* Get no touchscreen SKU ID. */
bool no_touchscreen_sku(uint32_t sku_id);