From 80901a4494ff0a29f6fac9cbea73c92c7f5e32dc Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Fri, 25 Apr 2025 12:22:33 +0530 Subject: [PATCH] mb/google/bluey: Add GPIOs for Soundwire, Display, and SD Card This commit introduces several new GPIO definitions and a Kconfig option for the Bluey mainboard to support additional hardware features. Kconfig changes: - MAINBOARD_HAS_SD_CONTROLLER: To indicate the presence of an SD card controller. It defaults to 'n'. GPIO changes (in board.h): - Soundwire Amplifier GPIOs: - GPIO_SNDW_AMP_0_ENABLE (GPIO 204) - GPIO_SNDW_AMP_1_ENABLE (GPIO 205) - Display specific GPIOs: - GPIO_PANEL_POWER_ON (GPIO 70) - GPIO_PANEL_HPD (GPIO 119) - SD Card specific GPIO: - GPIO_SD_CD_L (GPIO 71): This GPIO is conditionally defined based on the new CONFIG_MAINBOARD_HAS_SD_CONTROLLER option. Source: Bluey schematics (dated 04/15). BUG=b:404985109 TEST=Successfully built google/bluey with the Qualcomm x1p42100 SoC. Change-Id: I556b06bff73805c6451a5f8cf291c83cd0431465 Signed-off-by: Subrata Banik Reviewed-on: https://review.coreboot.org/c/coreboot/+/87449 Tested-by: build bot (Jenkins) Reviewed-by: Jayvik Desai --- src/mainboard/google/bluey/Kconfig | 6 ++++++ src/mainboard/google/bluey/board.h | 13 +++++++++++++ 2 files changed, 19 insertions(+) diff --git a/src/mainboard/google/bluey/Kconfig b/src/mainboard/google/bluey/Kconfig index 2de1c01649..87cefb5483 100644 --- a/src/mainboard/google/bluey/Kconfig +++ b/src/mainboard/google/bluey/Kconfig @@ -53,6 +53,12 @@ config MAINBOARD_HAS_FINGERPRINT Enable this option if your mainboard is equipped with an onboard fingerprint reader. This could be connected via SPI or USB. +config MAINBOARD_HAS_SD_CONTROLLER + bool + default n + help + Enable this option if your mainboard is equipped with SD card controller. + config MAINBOARD_VENDOR string default "Google" diff --git a/src/mainboard/google/bluey/board.h b/src/mainboard/google/bluey/board.h index c47b164127..b5b719d7bc 100644 --- a/src/mainboard/google/bluey/board.h +++ b/src/mainboard/google/bluey/board.h @@ -24,6 +24,19 @@ #endif #endif +/* Soundwire AMP GPIOs */ +#define GPIO_SNDW_AMP_0_ENABLE GPIO(204) +#define GPIO_SNDW_AMP_1_ENABLE GPIO(205) + +/* Display specific GPIOs */ +#define GPIO_PANEL_POWER_ON GPIO(70) +#define GPIO_PANEL_HPD GPIO(119) + +/* SD card specific GPIOs. Only for SD-enabled devices. */ +#if CONFIG(MAINBOARD_HAS_SD_CONTROLLER) +#define GPIO_SD_CD_L GPIO(71) +#endif + void setup_chromeos_gpios(void); #endif /* MAINBOARD_GOOGLE_BLUEY_BOARD_H */