Module Name: src
Committed By: snj
Date: Sun Jan 7 09:19:40 UTC 2018
Modified Files:
src/sys/arch/arm/sunxi [netbsd-8]: sun8i_h3_codec.c
Log Message:
Pull up following revision(s) (requested by nat in ticket #466):
sys/arch/arm/sunxi/sun8i_h3_codec.c: revision 1.3
The reset bit for the analog portion of the codec is bit 28. As per
Allwinner H3 datasheet.
Ok jmcneill@.
To generate a diff of this commit:
cvs rdiff -u -r1.2.2.2 -r1.2.2.3 src/sys/arch/arm/sunxi/sun8i_h3_codec.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/arm/sunxi/sun8i_h3_codec.c
diff -u src/sys/arch/arm/sunxi/sun8i_h3_codec.c:1.2.2.2 src/sys/arch/arm/sunxi/sun8i_h3_codec.c:1.2.2.3
--- src/sys/arch/arm/sunxi/sun8i_h3_codec.c:1.2.2.2 Wed Aug 9 05:49:50 2017
+++ src/sys/arch/arm/sunxi/sun8i_h3_codec.c Sun Jan 7 09:19:40 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: sun8i_h3_codec.c,v 1.2.2.2 2017/08/09 05:49:50 snj Exp $ */
+/* $NetBSD: sun8i_h3_codec.c,v 1.2.2.3 2018/01/07 09:19:40 snj Exp $ */
/*-
* Copyright (c) 2014-2017 Jared McNeill <[email protected]>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sun8i_h3_codec.c,v 1.2.2.2 2017/08/09 05:49:50 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sun8i_h3_codec.c,v 1.2.2.3 2018/01/07 09:19:40 snj Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -42,8 +42,8 @@ __KERNEL_RCSID(0, "$NetBSD: sun8i_h3_cod
#include <arm/sunxi/sunxi_codec.h>
#define H3_PR_CFG 0x00
+#define H3_AC_PR_RST __BIT(28)
#define H3_AC_PR_RW __BIT(24)
-#define H3_AC_PR_RST __BIT(18)
#define H3_AC_PR_ADDR __BITS(20,16)
#define H3_ACDA_PR_WDAT __BITS(15,8)
#define H3_ACDA_PR_RDAT __BITS(7,0)