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 <subratabanik@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/87449
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Jayvik Desai <jayvik@google.com>
This commit is contained in:
Subrata Banik 2025-04-25 12:22:33 +05:30
commit 80901a4494
2 changed files with 19 additions and 0 deletions

View file

@ -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"

View file

@ -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 */