summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/google/gru/mainboard.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/mainboard/google/gru/mainboard.c b/src/mainboard/google/gru/mainboard.c
index e6baebe13b..23051290a0 100644
--- a/src/mainboard/google/gru/mainboard.c
+++ b/src/mainboard/google/gru/mainboard.c
@@ -19,6 +19,7 @@
#include <device/device.h>
#include <device/i2c.h>
#include <gpio.h>
+#include <soc/bl31_plat_params.h>
#include <soc/clock.h>
#include <soc/display.h>
#include <soc/emmc.h>
@@ -44,6 +45,23 @@ static void configure_emmc(void)
enable_emmc_clk();
}
+static void register_reset_to_bl31(void)
+{
+ static struct bl31_gpio_param param_reset = {
+ .h = {
+ .type = PARAM_RESET,
+ },
+ .gpio = {
+ .polarity = 1,
+ },
+ };
+
+ /* gru/kevin reset pin: gpio0b3 */
+ param_reset.gpio.index = GET_GPIO_NUM(GPIO_RESET),
+
+ register_bl31_param(&param_reset.h);
+}
+
static void configure_sdmmc(void)
{
gpio_output(GPIO(4, D, 5), 1); /* SDMMC_PWR_EN */
@@ -132,6 +150,7 @@ static void mainboard_init(device_t dev)
configure_codec();
configure_display();
setup_usb();
+ register_reset_to_bl31();
}
static void enable_backlight_booster(void)