[PATCH 2/2] (DO NOT APPLY) powerpc: t2080rdb: Enable watchdog
Chris Packham
judge.packham at gmail.com
Wed Mar 3 02:39:29 CET 2021
Enable the watchdog on the T2080RDB.
Signed-off-by: Chris Packham <judge.packham at gmail.com>
---
I've included this patch to show how I've been testing the driver. I'm
not entirely happy with how the watchdog is represented in the DTS.
Technically it's part of the CPU core so it should probably be under
each of the CPU nodes. The driver itself doesn't deal with any of the
per-cpu stuff that it's Linux counterpart does but I think that's OK for
u-boot.
Maybe it should be one node under the first CPU node (will it actually
get probed there?).
arch/powerpc/dts/t2080.dtsi | 4 ++++
configs/T2080RDB_defconfig | 3 +++
2 files changed, 7 insertions(+)
diff --git a/arch/powerpc/dts/t2080.dtsi b/arch/powerpc/dts/t2080.dtsi
index 7e446b18df61..cd73adb735f3 100644
--- a/arch/powerpc/dts/t2080.dtsi
+++ b/arch/powerpc/dts/t2080.dtsi
@@ -41,6 +41,10 @@
};
};
+ watchdog at 0 {
+ compatible = "fsl,booke-wdt";
+ };
+
soc: soc at ffe000000 {
ranges = <0x00000000 0xf 0xfe000000 0x1000000>;
reg = <0xf 0xfe000000 0 0x00001000>;
diff --git a/configs/T2080RDB_defconfig b/configs/T2080RDB_defconfig
index 9dd01bbe50a5..84494bed188f 100644
--- a/configs/T2080RDB_defconfig
+++ b/configs/T2080RDB_defconfig
@@ -70,5 +70,8 @@ CONFIG_FSL_ESPI=y
CONFIG_USB=y
CONFIG_DM_USB=y
CONFIG_USB_STORAGE=y
+# CONFIG_WATCHDOG is not set
+CONFIG_WDT=y
+CONFIG_WDT_BOOKE=y
CONFIG_ADDR_MAP=y
CONFIG_SYS_NUM_ADDR_MAP=64
--
2.30.1
More information about the U-Boot
mailing list