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(); }