summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorLin Huang <hl@rock-chips.com>2017-08-02 16:59:06 +0800
committerMartin Roth <martinroth@google.com>2017-08-06 23:20:49 +0000
commit589474fec768f7dcc95222c5791839f16c1d7e6e (patch)
tree26cf20d9681bbf77d1f47c8ad64f3a9a761ab574 /src/mainboard
parent5cb2263004c2068090ecdf955d3da01fd46daee7 (diff)
downloadcoreboot-589474fec768f7dcc95222c5791839f16c1d7e6e.tar.xz
rockchip: gpio: add gpio_pull argument in gpio_input_irq() function
some gpio irq need to set input pull initialization status to guarantee to get the right irq trigger. let's add this argument in gpio_input_irq() function BRANCH=None BUG=None TEST=boot from bob Change-Id: I9b8e6497f07146dafdb447a6ea10d039a2a2fa33 Signed-off-by: Lin Huang <hl@rock-chips.com> Reviewed-on: https://review.coreboot.org/20866 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/gru/bootblock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainboard/google/gru/bootblock.c b/src/mainboard/google/gru/bootblock.c
index c5ab28a7b0..01aa4bf47a 100644
--- a/src/mainboard/google/gru/bootblock.c
+++ b/src/mainboard/google/gru/bootblock.c
@@ -112,7 +112,7 @@ static void configure_tpm(void)
write32(&rk3399_grf->iomux_spi0, IOMUX_SPI0);
}
- gpio_input_irq(GPIO_TPM_IRQ, IRQ_TYPE_EDGE_RISING);
+ gpio_input_irq(GPIO_TPM_IRQ, IRQ_TYPE_EDGE_RISING, GPIO_PULLUP);
} else {
gpio_input(GPIO(1, B, 7)); /* I2C0_SDA remove pull-up */
gpio_input(GPIO(1, C, 0)); /* I2C0_SCL remove pull-up */