File:  [cvs.NetBSD.org] / pkgsrc / sysutils / arm-trusted-firmware-sun50i-h6 / patches / Attic / patch-plat_allwinner_sun50i_h6_include_sunxi_mmap.h
Revision 1.1: download - view: text, annotated - select for diffs
Sat Apr 4 15:12:17 2020 UTC (4 years, 8 months ago) by thorpej
Branches: MAIN
CVS tags: pkgsrc-2020Q2-base, pkgsrc-2020Q2, HEAD
Use R_WDOG to reset H6 SoCs; some of them have non-working WDOG blocks.

$NetBSD: patch-plat_allwinner_sun50i_h6_include_sunxi_mmap.h,v 1.1 2020/04/04 15:12:17 thorpej Exp $

Work around broken H6 WDOG reset.

--- plat/allwinner/sun50i_h6/include/sunxi_mmap.h.orig	2020-03-26 22:13:21.000000000 +0000
+++ plat/allwinner/sun50i_h6/include/sunxi_mmap.h
@@ -65,4 +65,8 @@
 #define SUNXI_R_UART_BASE		0x07080000
 #define SUNXI_R_PIO_BASE		0x07022000
 
+/* Work around broken H6 WDOG reset. */
+#undef SUNXI_WDOG_BASE
+#define SUNXI_WDOG_BASE			SUNXI_R_WDOG_BASE
+
 #endif /* __SUNXI_MMAP_H__ */

CVSweb <webmaster@jp.NetBSD.org>