From d912ae91b0a8174a93d7701ae1c620df6fd45029 Mon Sep 17 00:00:00 2001 From: Kapil Porwal Date: Wed, 24 Dec 2025 16:40:54 +0530 Subject: [PATCH] mb/google/bluey: Configure GPIOs for USB camera Configure and enable the GPIOs required for the USB camera. GPIO 10 (RESET_L) and GPIO 206 (ENABLE) are set as outputs and driven high during mainboard initialization to ensure the camera is powered on and ready for use by the OS. Schematics version: 0.2 BUG=b:453773922 TEST=Verify detection of USB camera using `lsusb` in the OS. Change-Id: I1f7afcf730f37b1a2e36e3230ae9774508465691 Signed-off-by: Kapil Porwal Reviewed-on: https://review.coreboot.org/c/coreboot/+/90616 Tested-by: build bot (Jenkins) Reviewed-by: Subrata Banik --- src/mainboard/google/bluey/board.h | 4 ++++ src/mainboard/google/bluey/mainboard.c | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/src/mainboard/google/bluey/board.h b/src/mainboard/google/bluey/board.h index 40e63791dc..3260b283c7 100644 --- a/src/mainboard/google/bluey/board.h +++ b/src/mainboard/google/bluey/board.h @@ -40,6 +40,10 @@ #define GPIO_SD_CD_L GPIO(71) #endif +/* USB Camera specific GPIOs */ +#define GPIO_USB_CAM_RESET_L GPIO(10) +#define GPIO_USB_CAM_ENABLE GPIO(206) + void setup_chromeos_gpios(void); bool is_off_mode(void); void configure_parallel_charging(void); diff --git a/src/mainboard/google/bluey/mainboard.c b/src/mainboard/google/bluey/mainboard.c index 7b31a8cba6..d8f4c453a5 100644 --- a/src/mainboard/google/bluey/mainboard.c +++ b/src/mainboard/google/bluey/mainboard.c @@ -42,8 +42,15 @@ static bool is_low_power_boot(void) return false; } +static void enable_usb_camera(void) +{ + gpio_output(GPIO_USB_CAM_RESET_L, 1); + gpio_output(GPIO_USB_CAM_ENABLE, 1); +} + static void setup_usb(void) { + enable_usb_camera(); setup_usb_host0(); }