Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/cortex Move children of armperiph to the "mpcor...



details:   https://anonhg.NetBSD.org/src/rev/9c8d7bcecad9
branches:  trunk
changeset: 353907:9c8d7bcecad9
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun May 28 00:32:46 2017 +0000

description:
Move children of armperiph to the "mpcorebus" interface attribute and have
armperiph declare support for it.

diffstat:

 sys/arch/arm/cortex/files.cortex |  16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)

diffs (48 lines):

diff -r 45468b585a51 -r 9c8d7bcecad9 sys/arch/arm/cortex/files.cortex
--- a/sys/arch/arm/cortex/files.cortex  Sun May 28 00:30:49 2017 +0000
+++ b/sys/arch/arm/cortex/files.cortex  Sun May 28 00:32:46 2017 +0000
@@ -1,35 +1,37 @@
-# $NetBSD: files.cortex,v 1.5 2014/02/19 22:20:03 matt Exp $
+# $NetBSD: files.cortex,v 1.6 2017/05/28 00:32:46 jmcneill Exp $
 
 defflag opt_cpu_in_cksum.h                     NEON_IN_CKSUM
 
 file   arch/arm/cortex/cpu_in_cksum_neon.c     (inet | inet6) & neon_in_cksum
 file   arch/arm/cortex/cpu_in_cksum_asm_neon.S (inet | inet6) & neon_in_cksum
 
-device armperiph {}
+define mpcorebus {}
+
+device armperiph: mpcorebus
 attach armperiph at mainbus
 file   arch/arm/cortex/armperiph.c             armperiph
 
 # ARM Generic Interrupt Controller (initially on Cortex-A9)
 device armgic: pic, pic_splfuncs
-attach armgic at armperiph
+attach armgic at mpcorebus
 file   arch/arm/cortex/gic.c                   armgic
 
 # ARM PL310 L2 Cache Controller(initially on Cortex-A9)
 device arml2cc
-attach arml2cc at armperiph
+attach arml2cc at mpcorebus
 file   arch/arm/cortex/pl310.c                 arml2cc needs-flag
 
 # ARMv7 Generic Timer
 device armgtmr
-attach armgtmr at armperiph
+attach armgtmr at mpcorebus
 file   arch/arm/cortex/gtmr.c                  armgtmr
 
 # A9 MPCore Global Timer
 device a9tmr
-attach a9tmr at armperiph
+attach a9tmr at mpcorebus
 file   arch/arm/cortex/a9tmr.c                 a9tmr
 
 # A9 MPcore Watchdog Timer
 device a9wdt: sysmon_wdog
-attach a9wdt at armperiph
+attach a9wdt at mpcorebus
 file   arch/arm/cortex/a9wdt.c                 a9wdt



Home | Main Index | Thread Index | Old Index