sc7180: GPIO: Add I2S configuration for sc7180

Configuring GPIO Pins as I2S mode for Audio speaker.

Change-Id: I681aa6d0d57671b0fd9b7bc88de6f2cc202a7af0
Signed-off-by: V Sujith Kumar Reddy <vsujithk@codeaurora.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/38593
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
This commit is contained in:
vsujithk 2020-01-27 17:47:31 +05:30 committed by Julius Werner
parent cd6804cd16
commit e8ee6f975b
2 changed files with 7 additions and 1 deletions

View File

@ -11,7 +11,9 @@
#define GPIO_AP_EC_INT GPIO(94)
#define GPIO_AP_SUSPEND GPIO(20)
#define GPIO_WP_STATE GPIO(42)
#define GPIO_H1_AP_INT GPIO(21)
#define GPIO_H1_AP_INT (CONFIG(TROGDOR_REV0) ? GPIO(21) : GPIO(42))
#define GPIO_SD_CD_L GPIO(69)
#define GPIO_AMP_ENABLE GPIO(23)
void setup_chromeos_gpios(void);

View File

@ -28,6 +28,10 @@ void fill_lb_gpios(struct lb_gpios *gpios)
"EC interrupt"},
{GPIO_H1_AP_INT.addr, ACTIVE_LOW, gpio_get(GPIO_H1_AP_INT),
"TPM interrupt"},
{GPIO_SD_CD_L.addr, ACTIVE_LOW, gpio_get(GPIO_SD_CD_L),
"SD card detect"},
{GPIO_AMP_ENABLE.addr, ACTIVE_HIGH, gpio_get(GPIO_AMP_ENABLE),
"speaker enable"},
};
lb_add_gpios(gpios, chromeos_gpios, ARRAY_SIZE(chromeos_gpios));