diff options
Diffstat (limited to 'src/mainboard')
-rw-r--r-- | src/mainboard/google/veyron_jerry/bootblock.c | 7 | ||||
-rw-r--r-- | src/mainboard/google/veyron_mighty/bootblock.c | 7 | ||||
-rw-r--r-- | src/mainboard/google/veyron_pinky/bootblock.c | 7 | ||||
-rw-r--r-- | src/mainboard/google/veyron_speedy/bootblock.c | 7 |
4 files changed, 28 insertions, 0 deletions
diff --git a/src/mainboard/google/veyron_jerry/bootblock.c b/src/mainboard/google/veyron_jerry/bootblock.c index 1e46ed025c..4536f31069 100644 --- a/src/mainboard/google/veyron_jerry/bootblock.c +++ b/src/mainboard/google/veyron_jerry/bootblock.c @@ -21,7 +21,9 @@ #include <arch/io.h> #include <assert.h> #include <bootblock_common.h> +#include <console/console.h> #include <delay.h> +#include <reset.h> #include <soc/clock.h> #include <soc/i2c.h> #include <soc/grf.h> @@ -55,6 +57,11 @@ void bootblock_mainboard_init(void) udelay(100);/* Must wait for voltage to stabilize,2mV/us */ rkclk_configure_cpu(); + if (rkclk_was_watchdog_reset()) { + printk(BIOS_INFO, "Last reset was watchdog... rebooting via GPIO!\n"); + hard_reset(); + } + /* i2c1 for tpm */ writel(IOMUX_I2C1, &rk3288_grf->iomux_i2c1); diff --git a/src/mainboard/google/veyron_mighty/bootblock.c b/src/mainboard/google/veyron_mighty/bootblock.c index 1e46ed025c..4536f31069 100644 --- a/src/mainboard/google/veyron_mighty/bootblock.c +++ b/src/mainboard/google/veyron_mighty/bootblock.c @@ -21,7 +21,9 @@ #include <arch/io.h> #include <assert.h> #include <bootblock_common.h> +#include <console/console.h> #include <delay.h> +#include <reset.h> #include <soc/clock.h> #include <soc/i2c.h> #include <soc/grf.h> @@ -55,6 +57,11 @@ void bootblock_mainboard_init(void) udelay(100);/* Must wait for voltage to stabilize,2mV/us */ rkclk_configure_cpu(); + if (rkclk_was_watchdog_reset()) { + printk(BIOS_INFO, "Last reset was watchdog... rebooting via GPIO!\n"); + hard_reset(); + } + /* i2c1 for tpm */ writel(IOMUX_I2C1, &rk3288_grf->iomux_i2c1); diff --git a/src/mainboard/google/veyron_pinky/bootblock.c b/src/mainboard/google/veyron_pinky/bootblock.c index 1e46ed025c..4536f31069 100644 --- a/src/mainboard/google/veyron_pinky/bootblock.c +++ b/src/mainboard/google/veyron_pinky/bootblock.c @@ -21,7 +21,9 @@ #include <arch/io.h> #include <assert.h> #include <bootblock_common.h> +#include <console/console.h> #include <delay.h> +#include <reset.h> #include <soc/clock.h> #include <soc/i2c.h> #include <soc/grf.h> @@ -55,6 +57,11 @@ void bootblock_mainboard_init(void) udelay(100);/* Must wait for voltage to stabilize,2mV/us */ rkclk_configure_cpu(); + if (rkclk_was_watchdog_reset()) { + printk(BIOS_INFO, "Last reset was watchdog... rebooting via GPIO!\n"); + hard_reset(); + } + /* i2c1 for tpm */ writel(IOMUX_I2C1, &rk3288_grf->iomux_i2c1); diff --git a/src/mainboard/google/veyron_speedy/bootblock.c b/src/mainboard/google/veyron_speedy/bootblock.c index 1e46ed025c..4536f31069 100644 --- a/src/mainboard/google/veyron_speedy/bootblock.c +++ b/src/mainboard/google/veyron_speedy/bootblock.c @@ -21,7 +21,9 @@ #include <arch/io.h> #include <assert.h> #include <bootblock_common.h> +#include <console/console.h> #include <delay.h> +#include <reset.h> #include <soc/clock.h> #include <soc/i2c.h> #include <soc/grf.h> @@ -55,6 +57,11 @@ void bootblock_mainboard_init(void) udelay(100);/* Must wait for voltage to stabilize,2mV/us */ rkclk_configure_cpu(); + if (rkclk_was_watchdog_reset()) { + printk(BIOS_INFO, "Last reset was watchdog... rebooting via GPIO!\n"); + hard_reset(); + } + /* i2c1 for tpm */ writel(IOMUX_I2C1, &rk3288_grf->iomux_i2c1); |