diff options
author | Shaik Sajida Bhanu <sbhanu@codeaurora.org> | 2020-04-13 18:55:52 +0530 |
---|---|---|
committer | Julius Werner <jwerner@chromium.org> | 2020-05-14 23:29:42 +0000 |
commit | 9a41af60c4f570e4621ce3c1a351e9316f2b3b93 (patch) | |
tree | 69b259f8b0a93dbaee975e387d1265e15c2ededd /src/mainboard | |
parent | e8ee6f975b255c41102d1549ebdb69cfb2aa7850 (diff) |
trogdor: Update pull for Sd-card detect pin
Configuring pull for SD-card detect pin.
Without this SD-card detection is not working as expected
Signed-off-by: Shaik Sajida Bhanu <sbhanu@codeaurora.org>
Change-Id: I77bf355a049224784a160defa6bee66d0f9ceb75
Reviewed-on: https://review.coreboot.org/c/coreboot/+/40534
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/mainboard')
-rw-r--r-- | src/mainboard/google/trogdor/chromeos.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mainboard/google/trogdor/chromeos.c b/src/mainboard/google/trogdor/chromeos.c index 324d6ca8b9..9360928a1e 100644 --- a/src/mainboard/google/trogdor/chromeos.c +++ b/src/mainboard/google/trogdor/chromeos.c @@ -16,7 +16,9 @@ void setup_chromeos_gpios(void) gpio_input_pullup(GPIO_AP_EC_INT); gpio_output(GPIO_AP_SUSPEND, 1); gpio_input(GPIO_WP_STATE); - gpio_input_pullup(GPIO_H1_AP_INT); + gpio_input_pullup(GPIO_SD_CD_L); + gpio_input_irq(GPIO_H1_AP_INT, IRQ_TYPE_RISING_EDGE, GPIO_PULL_UP); + gpio_output(GPIO_AMP_ENABLE, 0); } void fill_lb_gpios(struct lb_gpios *gpios) |