Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/sunxi Add A80 support



details:   https://anonhg.NetBSD.org/src/rev/0f7c35e94e5e
branches:  trunk
changeset: 451561:0f7c35e94e5e
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Mon May 27 21:11:51 2019 +0000

description:
Add A80 support

diffstat:

 sys/arch/arm/sunxi/sunxi_nmi.c |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (36 lines):

diff -r 75c56372a3bf -r 0f7c35e94e5e sys/arch/arm/sunxi/sunxi_nmi.c
--- a/sys/arch/arm/sunxi/sunxi_nmi.c    Mon May 27 21:11:13 2019 +0000
+++ b/sys/arch/arm/sunxi/sunxi_nmi.c    Mon May 27 21:11:51 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunxi_nmi.c,v 1.1 2018/05/02 21:20:20 jmcneill Exp $ */
+/* $NetBSD: sunxi_nmi.c,v 1.2 2019/05/27 21:11:51 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2018 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
 #define        _INTR_PRIVATE
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunxi_nmi.c,v 1.1 2018/05/02 21:20:20 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunxi_nmi.c,v 1.2 2019/05/27 21:11:51 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -78,9 +78,17 @@
        .enable_reg = 0x40,
 };
 
+static const struct sunxi_nmi_config sun9i_a80_nmi_config = {
+       .name = "NMI",
+       .ctrl_reg = 0x00,
+       .pend_reg = 0x04,
+       .enable_reg = 0x08,
+};
+
 static const struct of_compat_data compat_data[] = {
        { "allwinner,sun7i-a20-sc-nmi", (uintptr_t)&sun7i_a20_sc_nmi_config },
        { "allwinner,sun6i-a31-r-intc", (uintptr_t)&sun6i_a31_r_intc_config },
+       { "allwinner,sun9i-a80-nmi",    (uintptr_t)&sun9i_a80_nmi_config },
        { NULL }
 };
 



Home | Main Index | Thread Index | Old Index