mb/google/rex: Enable USB camera power
Add enable_gpio for USB power resource BUG=b:273891168 TEST=Able to detect USB CAM Signed-off-by: Ivy Jian <ivy.jian@quanta.corp-partner.google.com> Change-Id: I08ebe560c8b75c8b590c889b7b90dbe678318d2a Reviewed-on: https://review.coreboot.org/c/coreboot/+/73754 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Reviewed-by: Subrata Banik <subratabanik@google.com>
This commit is contained in:
@@ -194,6 +194,8 @@ chip soc/intel/meteorlake
|
||||
chip drivers/usb/acpi
|
||||
register "desc" = ""USB2 Camera""
|
||||
register "type" = "UPC_TYPE_INTERNAL"
|
||||
register "has_power_resource" = "1"
|
||||
register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_B09)"
|
||||
device ref usb2_port6 on
|
||||
probe UFC UFC_USB
|
||||
end
|
||||
|
@@ -1,8 +1,23 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <acpi/acpigen.h>
|
||||
#include <baseboard/variants.h>
|
||||
#include <fw_config.h>
|
||||
#include <sar.h>
|
||||
#include <variant/gpio.h>
|
||||
|
||||
const char *get_wifi_sar_cbfs_filename(void)
|
||||
{
|
||||
return "wifi_sar_0.hex";
|
||||
}
|
||||
|
||||
void variant_generate_s0ix_hook(enum s0ix_entry entry)
|
||||
{
|
||||
if (entry == S0IX_ENTRY) {
|
||||
if (fw_config_probe(FW_CONFIG(UFC, UFC_USB)))
|
||||
acpigen_soc_clear_tx_gpio(GPP_B09);
|
||||
} else if (entry == S0IX_EXIT) {
|
||||
if (fw_config_probe(FW_CONFIG(UFC, UFC_USB)))
|
||||
acpigen_soc_set_tx_gpio(GPP_B09);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user