summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mainboard/google/gru/Makefile.inc2
-rw-r--r--src/mainboard/google/gru/reset.c7
-rw-r--r--src/soc/rockchip/rk3399/Makefile.inc2
3 files changed, 8 insertions, 3 deletions
diff --git a/src/mainboard/google/gru/Makefile.inc b/src/mainboard/google/gru/Makefile.inc
index 9e87fadd1c..a0839e0207 100644
--- a/src/mainboard/google/gru/Makefile.inc
+++ b/src/mainboard/google/gru/Makefile.inc
@@ -16,7 +16,6 @@
bootblock-y += bootblock.c
bootblock-y += chromeos.c
bootblock-y += memlayout.ld
-bootblock-y += reset.c
verstage-y += chromeos.c
verstage-y += memlayout.ld
@@ -25,7 +24,6 @@ verstage-y += reset.c
romstage-y += boardid.c
romstage-y += chromeos.c
romstage-y += memlayout.ld
-romstage-y += reset.c
romstage-y += sdram_configs.c
ramstage-y += boardid.c
diff --git a/src/mainboard/google/gru/reset.c b/src/mainboard/google/gru/reset.c
index 31d8b3de2d..bd06923532 100644
--- a/src/mainboard/google/gru/reset.c
+++ b/src/mainboard/google/gru/reset.c
@@ -13,9 +13,14 @@
* GNU General Public License for more details.
*/
-#include <arch/io.h>
+#include <gpio.h>
#include <reset.h>
+#include "board.h"
+
void hard_reset(void)
{
+ gpio_output(GPIO_RESET, 1);
+ while (1)
+ ;
}
diff --git a/src/soc/rockchip/rk3399/Makefile.inc b/src/soc/rockchip/rk3399/Makefile.inc
index 28c633835a..7a5e7a1e7a 100644
--- a/src/soc/rockchip/rk3399/Makefile.inc
+++ b/src/soc/rockchip/rk3399/Makefile.inc
@@ -29,6 +29,8 @@ bootblock-y += mmu_operations.c
bootblock-y += timer.c
verstage-y += ../common/cbmem.c
+verstage-y += ../common/gpio.c
+verstage-y += gpio.c
verstage-y += sdram.c
verstage-y += ../common/spi.c
verstage-$(CONFIG_DRIVERS_UART) += ../common/uart.c