summaryrefslogtreecommitdiff
path: root/board/cssi/MCR3000/MCR3000.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2018-12-03 16:23:03 -0500
committerTom Rini <trini@konsulko.com>2018-12-03 16:23:03 -0500
commitcf7c6f533331ff032d8949663ab2abe618da9cb4 (patch)
tree05b83585e594685f83f626c21071172be1d607e5 /board/cssi/MCR3000/MCR3000.c
parent8f5bfb7615e82ffccebf79530b08034f81e56268 (diff)
parentfb0204e48b3e5ed5ecdfab89229140b6d4a1a08b (diff)
Merge branch '2018-12-03-master-imports'
- Baltos platform updates - rtc m41t62 converted to DM. - PowerPC MPC8xx DM conversion - Verified boot updates
Diffstat (limited to 'board/cssi/MCR3000/MCR3000.c')
-rw-r--r--board/cssi/MCR3000/MCR3000.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/board/cssi/MCR3000/MCR3000.c b/board/cssi/MCR3000/MCR3000.c
index ffbeb14ed0f..d26ac35b440 100644
--- a/board/cssi/MCR3000/MCR3000.c
+++ b/board/cssi/MCR3000/MCR3000.c
@@ -12,6 +12,8 @@
#include <mpc8xx.h>
#include <fdt_support.h>
#include <asm/io.h>
+#include <dm/uclass.h>
+#include <wdt.h>
DECLARE_GLOBAL_DATA_PTR;
@@ -143,3 +145,17 @@ int board_early_init_f(void)
return 0;
}
+
+int board_early_init_r(void)
+{
+ struct udevice *watchdog_dev = NULL;
+
+ if (uclass_get_device(UCLASS_WDT, 0, &watchdog_dev)) {
+ puts("Cannot find watchdog!\n");
+ } else {
+ puts("Enabling watchdog.\n");
+ wdt_start(watchdog_dev, 0xffff, 0);
+ }
+
+ return 0;
+}