Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbarm/vexpress Configure IRQ for active high polar...



details:   https://anonhg.NetBSD.org/src/rev/114b537a2e50
branches:  trunk
changeset: 354026:114b537a2e50
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Thu Jun 01 17:01:18 2017 +0000

description:
Configure IRQ for active high polarity, push-pull driver.

diffstat:

 sys/arch/evbarm/vexpress/if_smsh_axi.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 7258f7365f5a -r 114b537a2e50 sys/arch/evbarm/vexpress/if_smsh_axi.c
--- a/sys/arch/evbarm/vexpress/if_smsh_axi.c    Thu Jun 01 16:59:20 2017 +0000
+++ b/sys/arch/evbarm/vexpress/if_smsh_axi.c    Thu Jun 01 17:01:18 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_smsh_axi.c,v 1.2 2015/02/11 07:51:10 ozaki-r Exp $  */
+/*     $NetBSD: if_smsh_axi.c,v 1.3 2017/06/01 17:01:18 jmcneill Exp $ */
 /*-
  * Copyright (c) 2015 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_smsh_axi.c,v 1.2 2015/02/11 07:51:10 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_smsh_axi.c,v 1.3 2017/06/01 17:01:18 jmcneill Exp $");
 
 #include "locators.h"
 
@@ -101,6 +101,9 @@
                panic("smsh_axi_attach: can't map i/o space");
        sc->sc_iot = aa->aa_iot;
 
+       /* Configure IRQ polarity active high, IRQ output is push-pull */
+       sc->sc_flags |= LAN9118_FLAGS_IRQ_ACTHI | LAN9118_FLAGS_IRQ_PP;
+
        if (lan9118_attach(sc) != 0) {
                bus_space_unmap(sc->sc_iot, sc->sc_ioh, LAN9118_IOSIZE);
                return;



Home | Main Index | Thread Index | Old Index