Sat Jun 30 16:30:35 2018 UTC ()
cpus: use fdt_add_bus


(jmcneill)
diff -r1.18 -r1.19 src/sys/arch/arm/fdt/files.fdt
diff -r1.23 -r1.24 src/sys/arch/evbarm/conf/EXYNOS
diff -r1.2 -r1.3 src/sys/arch/evbarm/conf/GENERIC
diff -r1.2 -r1.3 src/sys/arch/evbarm/conf/RPI64
diff -r1.21 -r1.22 src/sys/arch/evbarm/conf/GENERIC64
diff -r1.79 -r1.80 src/sys/arch/evbarm/conf/RPI
diff -r1.76 -r1.77 src/sys/arch/evbarm/conf/SUNXI
diff -r1.34 -r1.35 src/sys/arch/evbarm/conf/TEGRA
diff -r1.3 -r1.4 src/sys/arch/evbarm/conf/TI
diff -r1.20 -r1.21 src/sys/arch/evbarm/conf/VEXPRESS_A15
diff -r1.4 -r1.5 src/sys/arch/evbarm/conf/VIRT
diff -r1.2 -r1.3 src/sys/dev/fdt/cpus.c

cvs diff -r1.18 -r1.19 src/sys/arch/arm/fdt/files.fdt (expand / switch to unified diff)

--- src/sys/arch/arm/fdt/files.fdt 2018/06/30 16:22:56 1.18
+++ src/sys/arch/arm/fdt/files.fdt 2018/06/30 16:30:35 1.19
@@ -1,22 +1,22 @@ @@ -1,22 +1,22 @@
1# $NetBSD: files.fdt,v 1.18 2018/06/30 16:22:56 jmcneill Exp $ 1# $NetBSD: files.fdt,v 1.19 2018/06/30 16:30:35 jmcneill Exp $
2 2
3include "dev/pckbport/files.pckbport" 3include "dev/pckbport/files.pckbport"
4 4
5device armfdt { }: bus_space_generic, fdt 5device armfdt { }: bus_space_generic, fdt
6attach armfdt at root with arm_fdt 6attach armfdt at root with arm_fdt
7file arch/arm/fdt/arm_fdt.c arm_fdt 7file arch/arm/fdt/arm_fdt.c arm_fdt
8 8
9attach cpu at cpus with cpu_fdt 9attach cpu at fdt with cpu_fdt
10file arch/arm/fdt/cpu_fdt.c cpu_fdt 10file arch/arm/fdt/cpu_fdt.c cpu_fdt
11 11
12device cpufreqdt 12device cpufreqdt
13attach cpufreqdt at cpu with cpufreq_dt 13attach cpufreqdt at cpu with cpufreq_dt
14file dev/fdt/cpufreq_dt.c cpufreq_dt 14file dev/fdt/cpufreq_dt.c cpufreq_dt
15 15
16device a9tmr: mpcorebus 16device a9tmr: mpcorebus
17attach a9tmr at fdt with a9tmr_fdt 17attach a9tmr at fdt with a9tmr_fdt
18file arch/arm/fdt/a9tmr_fdt.c a9tmr_fdt 18file arch/arm/fdt/a9tmr_fdt.c a9tmr_fdt
19 19
20device gtmr: mpcorebus 20device gtmr: mpcorebus
21attach gtmr at fdt with gtmr_fdt 21attach gtmr at fdt with gtmr_fdt
22file arch/arm/fdt/gtmr_fdt.c gtmr_fdt 22file arch/arm/fdt/gtmr_fdt.c gtmr_fdt

cvs diff -r1.23 -r1.24 src/sys/arch/evbarm/conf/Attic/EXYNOS (expand / switch to unified diff)

--- src/sys/arch/evbarm/conf/Attic/EXYNOS 2018/06/30 16:22:56 1.23
+++ src/sys/arch/evbarm/conf/Attic/EXYNOS 2018/06/30 16:30:35 1.24
@@ -1,15 +1,15 @@ @@ -1,15 +1,15 @@
1# 1#
2# $NetBSD: EXYNOS,v 1.23 2018/06/30 16:22:56 jmcneill Exp $ 2# $NetBSD: EXYNOS,v 1.24 2018/06/30 16:30:35 jmcneill Exp $
3# 3#
4# Samsung Exynos SoC kernel 4# Samsung Exynos SoC kernel
5# 5#
6 6
7include "arch/evbarm/conf/std.exynos" 7include "arch/evbarm/conf/std.exynos"
8include "arch/evbarm/conf/GENERIC.common" 8include "arch/evbarm/conf/GENERIC.common"
9 9
10makeoptions DTS=" 10makeoptions DTS="
11 exynos5410-odroidxu.dts 11 exynos5410-odroidxu.dts
12 exynos5410-smdk5410.dts 12 exynos5410-smdk5410.dts
13 exynos5422-odroidxu3-lite.dts 13 exynos5422-odroidxu3-lite.dts
14 exynos5422-odroidxu3.dts 14 exynos5422-odroidxu3.dts
15 exynos5422-odroidxu4.dts 15 exynos5422-odroidxu4.dts
@@ -32,27 +32,27 @@ pseudo-device openfirm # /dev/openfirm @@ -32,27 +32,27 @@ pseudo-device openfirm # /dev/openfirm
32#options SSCOM2CONSOLE 32#options SSCOM2CONSOLE
33 33
34makeoptions DEBUG="-g" # compile full symbol table 34makeoptions DEBUG="-g" # compile full symbol table
35makeoptions COPY_SYMTAB=1 35makeoptions COPY_SYMTAB=1
36 36
37config netbsd root on ? type ? 37config netbsd root on ? type ?
38 38
39# Device tree support 39# Device tree support
40armfdt0 at root 40armfdt0 at root
41simplebus* at fdt? 41simplebus* at fdt?
42 42
43# CPUs 43# CPUs
44cpus* at fdt? pass 0 44cpus* at fdt? pass 0
45cpu* at cpus? 45cpu* at fdt? pass 0
46 46
47fclock* at fdt? pass 4 47fclock* at fdt? pass 4
48fregulator* at fdt? pass 4 48fregulator* at fdt? pass 4
49gpiokeys* at fdt? 49gpiokeys* at fdt?
50 50
51# Timer 51# Timer
52mct* at fdt? # Exynos Multi Core Timer (MCT) 52mct* at fdt? # Exynos Multi Core Timer (MCT)
53armgtmr0 at mct? # ARM Generic Timer 53armgtmr0 at mct? # ARM Generic Timer
54 54
55# Interrupt controller 55# Interrupt controller
56exyointr* at fdt? pass 1 56exyointr* at fdt? pass 1
57gic* at fdt? pass 1 # GIC 57gic* at fdt? pass 1 # GIC
58armgic0 at gic? 58armgic0 at gic?

cvs diff -r1.2 -r1.3 src/sys/arch/evbarm/conf/GENERIC (expand / switch to unified diff)

--- src/sys/arch/evbarm/conf/GENERIC 2018/06/30 16:22:56 1.2
+++ src/sys/arch/evbarm/conf/GENERIC 2018/06/30 16:30:35 1.3
@@ -1,15 +1,15 @@ @@ -1,15 +1,15 @@
1# 1#
2# $NetBSD: GENERIC,v 1.2 2018/06/30 16:22:56 jmcneill Exp $ 2# $NetBSD: GENERIC,v 1.3 2018/06/30 16:30:35 jmcneill Exp $
3# 3#
4# GENERIC ARM (aarch32) kernel 4# GENERIC ARM (aarch32) kernel
5# 5#
6 6
7include "arch/evbarm/conf/std.generic" 7include "arch/evbarm/conf/std.generic"
8include "arch/evbarm/conf/files.generic" 8include "arch/evbarm/conf/files.generic"
9include "arch/evbarm/conf/GENERIC.common" 9include "arch/evbarm/conf/GENERIC.common"
10 10
11# 11#
12# FDT files supported by this kernel - add to DTSSUBDIR and DTS as 12# FDT files supported by this kernel - add to DTSSUBDIR and DTS as
13# appropriate 13# appropriate
14# 14#
15makeoptions DTSARCH="arm" 15makeoptions DTSARCH="arm"
@@ -48,27 +48,27 @@ options VERBOSE_INIT_ARM # verbose boot @@ -48,27 +48,27 @@ options VERBOSE_INIT_ARM # verbose boot
48#options EARLYCONS=tegra, CONSADDR=0x70006000 48#options EARLYCONS=tegra, CONSADDR=0x70006000
49 49
50makeoptions DEBUG="-g" # compile full symbol table 50makeoptions DEBUG="-g" # compile full symbol table
51makeoptions COPY_SYMTAB=1 51makeoptions COPY_SYMTAB=1
52 52
53config netbsd root on ? type ? 53config netbsd root on ? type ?
54 54
55# Device tree support 55# Device tree support
56armfdt0 at root 56armfdt0 at root
57simplebus* at fdt? 57simplebus* at fdt?
58 58
59# CPUs 59# CPUs
60cpus* at fdt? pass 0 60cpus* at fdt? pass 0
61cpu* at cpus? 61cpu* at fdt? pass 0
62 62
63# CPU frequency scaling 63# CPU frequency scaling
64cpufreqdt* at cpu? 64cpufreqdt* at cpu?
65 65
66# Power State Coordination Interface (PSCI) 66# Power State Coordination Interface (PSCI)
67psci* at fdt? 67psci* at fdt?
68 68
69fclock* at fdt? pass 1 69fclock* at fdt? pass 1
70ffclock* at fdt? pass 1 70ffclock* at fdt? pass 1
71fregulator* at fdt? pass 4 71fregulator* at fdt? pass 4
72gregulator* at fdt? pass 4 72gregulator* at fdt? pass 4
73gpiokeys* at fdt? 73gpiokeys* at fdt?
74wskbd* at gpiokeys? console ? mux 1 74wskbd* at gpiokeys? console ? mux 1

cvs diff -r1.2 -r1.3 src/sys/arch/evbarm/conf/Attic/RPI64 (expand / switch to unified diff)

--- src/sys/arch/evbarm/conf/Attic/RPI64 2018/06/30 16:22:56 1.2
+++ src/sys/arch/evbarm/conf/Attic/RPI64 2018/06/30 16:30:35 1.3
@@ -1,15 +1,15 @@ @@ -1,15 +1,15 @@
1# 1#
2# $NetBSD: RPI64,v 1.2 2018/06/30 16:22:56 jmcneill Exp $ 2# $NetBSD: RPI64,v 1.3 2018/06/30 16:30:35 jmcneill Exp $
3# 3#
4# RPI64 - Raspberry Pi 3 and Pi 2 v1.2 in AARCH64 mode 4# RPI64 - Raspberry Pi 3 and Pi 2 v1.2 in AARCH64 mode
5# 5#
6 6
7include "arch/evbarm/conf/std.generic64" 7include "arch/evbarm/conf/std.generic64"
8include "arch/evbarm/conf/GENERIC.common" 8include "arch/evbarm/conf/GENERIC.common"
9include "arch/evbarm/conf/files.rpi" 9include "arch/evbarm/conf/files.rpi"
10 10
11makeoptions DTSGNUARCH="arm arm64" 11makeoptions DTSGNUARCH="arm arm64"
12makeoptions DTSSUBDIR="broadcom" 12makeoptions DTSSUBDIR="broadcom"
13 13
14makeoptions DTS=" 14makeoptions DTS="
15 bcm2837-rpi-3-b.dts 15 bcm2837-rpi-3-b.dts
@@ -55,27 +55,27 @@ options LOCKDEBUG @@ -55,27 +55,27 @@ options LOCKDEBUG
55# memorydisk=<n> Set memorydisk size to <n> KB 55# memorydisk=<n> Set memorydisk size to <n> KB
56# quiet Show aprint_naive output 56# quiet Show aprint_naive output
57# verbose Show aprint_normal and aprint_verbose output 57# verbose Show aprint_normal and aprint_verbose output
58#options BOOT_ARGS="\"\"" 58#options BOOT_ARGS="\"\""
59 59
60config netbsd root on ? type ? 60config netbsd root on ? type ?
61 61
62# Device tree support 62# Device tree support
63armfdt0 at root 63armfdt0 at root
64simplebus* at fdt? 64simplebus* at fdt?
65 65
66# The CPU(s) 66# The CPU(s)
67cpus* at fdt? pass 0 67cpus* at fdt? pass 0
68cpu* at cpus? 68cpu* at fdt? pass 0
69 69
70gtmr* at fdt? pass 1 # ARM Generic Timer 70gtmr* at fdt? pass 1 # ARM Generic Timer
71armgtmr0 at gtmr? 71armgtmr0 at gtmr?
72 72
73fclock* at fdt? pass 0 73fclock* at fdt? pass 0
74 74
75# Interrupt Controller 75# Interrupt Controller
76bcmicu* at fdt? pass 1 76bcmicu* at fdt? pass 1
77 77
78# System timer 78# System timer
79#bcmtmr0 at fdt? pass 1 79#bcmtmr0 at fdt? pass 1
80 80
81# Clock manager 81# Clock manager

cvs diff -r1.21 -r1.22 src/sys/arch/evbarm/conf/GENERIC64 (expand / switch to unified diff)

--- src/sys/arch/evbarm/conf/GENERIC64 2018/06/30 16:22:56 1.21
+++ src/sys/arch/evbarm/conf/GENERIC64 2018/06/30 16:30:35 1.22
@@ -1,15 +1,15 @@ @@ -1,15 +1,15 @@
1# 1#
2# $NetBSD: GENERIC64,v 1.21 2018/06/30 16:22:56 jmcneill Exp $ 2# $NetBSD: GENERIC64,v 1.22 2018/06/30 16:30:35 jmcneill Exp $
3# 3#
4# GENERIC ARM (aarch64) kernel 4# GENERIC ARM (aarch64) kernel
5# 5#
6 6
7include "arch/evbarm/conf/std.generic64" 7include "arch/evbarm/conf/std.generic64"
8include "arch/evbarm/conf/files.generic64" 8include "arch/evbarm/conf/files.generic64"
9include "arch/evbarm/conf/GENERIC.common" 9include "arch/evbarm/conf/GENERIC.common"
10 10
11# 11#
12# FDT files supported by this kernel - add to DTSSUBDIR and DTS as 12# FDT files supported by this kernel - add to DTSSUBDIR and DTS as
13# appropriate 13# appropriate
14# 14#
15makeoptions DTSARCH="arm aarch64" 15makeoptions DTSARCH="arm aarch64"
@@ -74,27 +74,27 @@ options VERBOSE_INIT_ARM # verbose boot @@ -74,27 +74,27 @@ options VERBOSE_INIT_ARM # verbose boot
74#options EARLYCONS=virt 74#options EARLYCONS=virt
75 75
76makeoptions DEBUG="-g" # compile full symbol table 76makeoptions DEBUG="-g" # compile full symbol table
77makeoptions COPY_SYMTAB=1 77makeoptions COPY_SYMTAB=1
78 78
79config netbsd root on ? type ? 79config netbsd root on ? type ?
80 80
81# Device tree support 81# Device tree support
82armfdt0 at root 82armfdt0 at root
83simplebus* at fdt? 83simplebus* at fdt?
84 84
85# CPUs 85# CPUs
86cpus* at fdt? pass 0 86cpus* at fdt? pass 0
87cpu* at cpus? 87cpu* at fdt? pass 0
88 88
89# CPU frequency scaling 89# CPU frequency scaling
90cpufreqdt* at cpu? 90cpufreqdt* at cpu?
91 91
92# Power State Coordination Interface (PSCI) 92# Power State Coordination Interface (PSCI)
93psci* at fdt? 93psci* at fdt?
94 94
95fclock* at fdt? pass 1 95fclock* at fdt? pass 1
96ffclock* at fdt? pass 1 96ffclock* at fdt? pass 1
97fregulator* at fdt? pass 4 97fregulator* at fdt? pass 4
98gregulator* at fdt? pass 4 98gregulator* at fdt? pass 4
99gpiokeys* at fdt? 99gpiokeys* at fdt?
100wskbd* at gpiokeys? console ? mux 1 100wskbd* at gpiokeys? console ? mux 1

cvs diff -r1.79 -r1.80 src/sys/arch/evbarm/conf/RPI (expand / switch to unified diff)

--- src/sys/arch/evbarm/conf/RPI 2018/06/30 16:22:56 1.79
+++ src/sys/arch/evbarm/conf/RPI 2018/06/30 16:30:35 1.80
@@ -1,15 +1,15 @@ @@ -1,15 +1,15 @@
1# 1#
2# $NetBSD: RPI,v 1.79 2018/06/30 16:22:56 jmcneill Exp $ 2# $NetBSD: RPI,v 1.80 2018/06/30 16:30:35 jmcneill Exp $
3# 3#
4# RPi -- Raspberry Pi 4# RPi -- Raspberry Pi
5# 5#
6 6
7include "arch/evbarm/conf/std.rpi" 7include "arch/evbarm/conf/std.rpi"
8include "arch/evbarm/conf/GENERIC.common" 8include "arch/evbarm/conf/GENERIC.common"
9 9
10makeoptions DTSGNUARCH="arm arm64" 10makeoptions DTSGNUARCH="arm arm64"
11makeoptions DTSSUBDIR="broadcom" 11makeoptions DTSSUBDIR="broadcom"
12 12
13makeoptions DTS=" 13makeoptions DTS="
14 bcm2835-rpi-a.dts 14 bcm2835-rpi-a.dts
15 bcm2835-rpi-a-plus.dts 15 bcm2835-rpi-a-plus.dts
@@ -49,27 +49,27 @@ options PLCONSOLE @@ -49,27 +49,27 @@ options PLCONSOLE
49# memorydisk=<n> Set memorydisk size to <n> KB 49# memorydisk=<n> Set memorydisk size to <n> KB
50# quiet Show aprint_naive output 50# quiet Show aprint_naive output
51# verbose Show aprint_normal and aprint_verbose output 51# verbose Show aprint_normal and aprint_verbose output
52#options BOOT_ARGS="\"\"" 52#options BOOT_ARGS="\"\""
53 53
54config netbsd root on ? type ? 54config netbsd root on ? type ?
55 55
56# Device tree support 56# Device tree support
57armfdt0 at root 57armfdt0 at root
58simplebus* at fdt? 58simplebus* at fdt?
59 59
60# The CPU(s) 60# The CPU(s)
61cpus* at fdt? pass 0 61cpus* at fdt? pass 0
62cpu* at cpus? 62cpu* at fdt? pass 0
63 63
64fclock* at fdt? pass 0 64fclock* at fdt? pass 0
65 65
66# Interrupt Controller 66# Interrupt Controller
67bcmicu* at fdt? pass 1 67bcmicu* at fdt? pass 1
68 68
69# System timer 69# System timer
70bcmtmr0 at fdt? pass 1 70bcmtmr0 at fdt? pass 1
71 71
72# Clock manager 72# Clock manager
73bcmcprman0 at fdt? pass 1 73bcmcprman0 at fdt? pass 1
74 74
75# AUX 75# AUX

cvs diff -r1.76 -r1.77 src/sys/arch/evbarm/conf/Attic/SUNXI (expand / switch to unified diff)

--- src/sys/arch/evbarm/conf/Attic/SUNXI 2018/06/30 16:22:56 1.76
+++ src/sys/arch/evbarm/conf/Attic/SUNXI 2018/06/30 16:30:35 1.77
@@ -1,15 +1,15 @@ @@ -1,15 +1,15 @@
1# 1#
2# $NetBSD: SUNXI,v 1.76 2018/06/30 16:22:56 jmcneill Exp $ 2# $NetBSD: SUNXI,v 1.77 2018/06/30 16:30:35 jmcneill Exp $
3# 3#
4# Allwinner sunxi family 4# Allwinner sunxi family
5# 5#
6 6
7include "arch/evbarm/conf/std.sunxi" 7include "arch/evbarm/conf/std.sunxi"
8include "arch/evbarm/conf/GENERIC.common" 8include "arch/evbarm/conf/GENERIC.common"
9 9
10makeoptions DTSGNUARCH="arm arm64" 10makeoptions DTSGNUARCH="arm arm64"
11makeoptions DTSSUBDIR="allwinner" 11makeoptions DTSSUBDIR="allwinner"
12makeoptions DTS=" 12makeoptions DTS="
13 sun4i-a10-a1000.dts 13 sun4i-a10-a1000.dts
14 sun4i-a10-ba10-tvbox.dts 14 sun4i-a10-ba10-tvbox.dts
15 sun4i-a10-chuwi-v7-cw0825.dts 15 sun4i-a10-chuwi-v7-cw0825.dts
@@ -162,27 +162,27 @@ pseudo-device openfirm # /dev/openfirm @@ -162,27 +162,27 @@ pseudo-device openfirm # /dev/openfirm
162#options CONSADDR=0x01c28000 162#options CONSADDR=0x01c28000
163 163
164makeoptions DEBUG="-g" # compile full symbol table 164makeoptions DEBUG="-g" # compile full symbol table
165makeoptions COPY_SYMTAB=1 165makeoptions COPY_SYMTAB=1
166 166
167config netbsd root on ? type ? 167config netbsd root on ? type ?
168 168
169# Device tree support 169# Device tree support
170armfdt0 at root 170armfdt0 at root
171simplebus* at fdt? 171simplebus* at fdt?
172 172
173# CPUs 173# CPUs
174cpus* at fdt? pass 0 174cpus* at fdt? pass 0
175cpu* at cpus? 175cpu* at fdt? pass 0
176cpufreqdt* at cpu? 176cpufreqdt* at cpu?
177 177
178# Power state coordination interface 178# Power state coordination interface
179psci* at fdt? 179psci* at fdt?
180 180
181# Clock and reset controllers 181# Clock and reset controllers
182sun4ia10ccu* at fdt? pass 2 # A10/A20 CCU 182sun4ia10ccu* at fdt? pass 2 # A10/A20 CCU
183sun5ia13ccu* at fdt? pass 2 # A13 CCU 183sun5ia13ccu* at fdt? pass 2 # A13 CCU
184sun6ia31ccu* at fdt? pass 2 # A31 CCU 184sun6ia31ccu* at fdt? pass 2 # A31 CCU
185sun8ia83tccu* at fdt? pass 2 # A83T CCU 185sun8ia83tccu* at fdt? pass 2 # A83T CCU
186sun8ih3ccu* at fdt? pass 2 # H3 CCU 186sun8ih3ccu* at fdt? pass 2 # H3 CCU
187sun8ih3rccu* at fdt? pass 2 # H3 CCU (PRCM) 187sun8ih3rccu* at fdt? pass 2 # H3 CCU (PRCM)
188sun9ia80ccu* at fdt? pass 2 # A80 CCU 188sun9ia80ccu* at fdt? pass 2 # A80 CCU

cvs diff -r1.34 -r1.35 src/sys/arch/evbarm/conf/Attic/TEGRA (expand / switch to unified diff)

--- src/sys/arch/evbarm/conf/Attic/TEGRA 2018/06/30 16:22:56 1.34
+++ src/sys/arch/evbarm/conf/Attic/TEGRA 2018/06/30 16:30:35 1.35
@@ -1,15 +1,15 @@ @@ -1,15 +1,15 @@
1# 1#
2# $NetBSD: TEGRA,v 1.34 2018/06/30 16:22:56 jmcneill Exp $ 2# $NetBSD: TEGRA,v 1.35 2018/06/30 16:30:35 jmcneill Exp $
3# 3#
4# NVIDIA Tegra family SoCs 4# NVIDIA Tegra family SoCs
5# 5#
6 6
7include "arch/evbarm/conf/std.tegra" 7include "arch/evbarm/conf/std.tegra"
8include "arch/evbarm/conf/GENERIC.common" 8include "arch/evbarm/conf/GENERIC.common"
9 9
10makeoptions DTSGNUARCH="arm arm64" 10makeoptions DTSGNUARCH="arm arm64"
11makeoptions DTSSUBDIR="nvidia" 11makeoptions DTSSUBDIR="nvidia"
12makeoptions DTS=" 12makeoptions DTS="
13 tegra124-apalis-eval.dts 13 tegra124-apalis-eval.dts
14 tegra124-jetson-tk1.dts 14 tegra124-jetson-tk1.dts
15 tegra124-nyan-big.dts 15 tegra124-nyan-big.dts
@@ -40,27 +40,27 @@ pseudo-device openfirm # /dev/openfirm @@ -40,27 +40,27 @@ pseudo-device openfirm # /dev/openfirm
40#options CONSADDR=0x70006300 40#options CONSADDR=0x70006300
41 41
42makeoptions DEBUG="-g" # compile full symbol table 42makeoptions DEBUG="-g" # compile full symbol table
43makeoptions COPY_SYMTAB=1 43makeoptions COPY_SYMTAB=1
44 44
45config netbsd root on ? type ? 45config netbsd root on ? type ?
46 46
47# Device tree support 47# Device tree support
48armfdt0 at root 48armfdt0 at root
49simplebus* at fdt? 49simplebus* at fdt?
50 50
51# CPUs 51# CPUs
52cpus* at fdt? pass 0 52cpus* at fdt? pass 0
53cpu* at cpus? 53cpu* at fdt? pass 0
54 54
55# CPU frequency scaling 55# CPU frequency scaling
56tegra124cpu* at cpu? 56tegra124cpu* at cpu?
57 57
58fclock* at fdt? pass 4 58fclock* at fdt? pass 4
59fregulator* at fdt? pass 5 59fregulator* at fdt? pass 5
60gpiokeys* at fdt? 60gpiokeys* at fdt?
61wskbd* at gpiokeys? console ? mux 1 61wskbd* at gpiokeys? console ? mux 1
62 62
63# Timer 63# Timer
64gtmr* at fdt? pass 1 # ARM Generic Timer 64gtmr* at fdt? pass 1 # ARM Generic Timer
65armgtmr0 at gtmr? 65armgtmr0 at gtmr?
66tegratimer* at fdt? # Timers 66tegratimer* at fdt? # Timers

cvs diff -r1.3 -r1.4 src/sys/arch/evbarm/conf/Attic/TI (expand / switch to unified diff)

--- src/sys/arch/evbarm/conf/Attic/TI 2018/06/30 16:22:56 1.3
+++ src/sys/arch/evbarm/conf/Attic/TI 2018/06/30 16:30:35 1.4
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: TI,v 1.3 2018/06/30 16:22:56 jmcneill Exp $ 1# $NetBSD: TI,v 1.4 2018/06/30 16:30:35 jmcneill Exp $
2# 2#
3 3
4include "arch/evbarm/conf/std.ti" 4include "arch/evbarm/conf/std.ti"
5include "arch/evbarm/conf/GENERIC.common" 5include "arch/evbarm/conf/GENERIC.common"
6 6
7options VERBOSE_INIT_ARM 7options VERBOSE_INIT_ARM
8options CONSADDR=0x44e09000 8options CONSADDR=0x44e09000
9 9
10makeoptions DTS=" 10makeoptions DTS="
11 am335x-bone.dts 11 am335x-bone.dts
12 am335x-boneblack.dts 12 am335x-boneblack.dts
13 am335x-boneblack-wireless.dts 13 am335x-boneblack-wireless.dts
14 am335x-bonegreen.dts 14 am335x-bonegreen.dts
@@ -22,27 +22,27 @@ makeoptions COPY_SYMTAB=1 @@ -22,27 +22,27 @@ makeoptions COPY_SYMTAB=1
22#options DEBUG 22#options DEBUG
23options LOCKDEBUG 23options LOCKDEBUG
24 24
25options CPU_CORTEXA8 25options CPU_CORTEXA8
26 26
27options OMAP_SYSTEM_CLOCK_FREQ="48000000UL" 27options OMAP_SYSTEM_CLOCK_FREQ="48000000UL"
28 28
29config netbsd root on ? type ? 29config netbsd root on ? type ?
30 30
31armfdt0 at root 31armfdt0 at root
32simplebus* at fdt? 32simplebus* at fdt?
33 33
34cpus* at fdt? pass 0 34cpus* at fdt? pass 0
35cpu* at cpus? 35cpu* at fdt? pass 0
36 36
37am3prcm* at fdt? pass 1 37am3prcm* at fdt? pass 1
38 38
39com* at fdt? 39com* at fdt?
40 40
41omapintc* at fdt? pass 2 41omapintc* at fdt? pass 2
42omaptimer* at fdt? 42omaptimer* at fdt?
43 43
44fregulator* at fdt? 44fregulator* at fdt?
45gpioleds* at fdt? 45gpioleds* at fdt?
46 46
47cpsw* at fdt? 47cpsw* at fdt?
48ukphy* at mii? 48ukphy* at mii?

cvs diff -r1.20 -r1.21 src/sys/arch/evbarm/conf/Attic/VEXPRESS_A15 (expand / switch to unified diff)

--- src/sys/arch/evbarm/conf/Attic/VEXPRESS_A15 2018/06/30 16:22:56 1.20
+++ src/sys/arch/evbarm/conf/Attic/VEXPRESS_A15 2018/06/30 16:30:35 1.21
@@ -1,15 +1,15 @@ @@ -1,15 +1,15 @@
1# 1#
2# $NetBSD: VEXPRESS_A15,v 1.20 2018/06/30 16:22:56 jmcneill Exp $ 2# $NetBSD: VEXPRESS_A15,v 1.21 2018/06/30 16:30:35 jmcneill Exp $
3# 3#
4# ARM Versatile Express A15 4# ARM Versatile Express A15
5# 5#
6 6
7include "arch/evbarm/conf/std.vexpress" 7include "arch/evbarm/conf/std.vexpress"
8include "arch/evbarm/conf/GENERIC.common" 8include "arch/evbarm/conf/GENERIC.common"
9 9
10makeoptions DTS="vexpress-v2p-ca15-tc1.dts" 10makeoptions DTS="vexpress-v2p-ca15-tc1.dts"
11 11
12options CPU_CORTEXA15 12options CPU_CORTEXA15
13options MULTIPROCESSOR 13options MULTIPROCESSOR
14 14
15pseudo-device openfirm # /dev/openfirm 15pseudo-device openfirm # /dev/openfirm
@@ -23,27 +23,27 @@ pseudo-device openfirm # /dev/openfirm @@ -23,27 +23,27 @@ pseudo-device openfirm # /dev/openfirm
23#options CONSADDR=0x1c090000 23#options CONSADDR=0x1c090000
24 24
25makeoptions DEBUG="-g" # compile full symbol table 25makeoptions DEBUG="-g" # compile full symbol table
26makeoptions COPY_SYMTAB=1 26makeoptions COPY_SYMTAB=1
27 27
28config netbsd root on ? type ? 28config netbsd root on ? type ?
29 29
30# Device tree support 30# Device tree support
31armfdt0 at root 31armfdt0 at root
32simplebus* at fdt? 32simplebus* at fdt?
33 33
34# CPUs 34# CPUs
35cpus* at fdt? pass 0 35cpus* at fdt? pass 0
36cpu* at cpus? 36cpu* at fdt? pass 0
37 37
38fclock* at fdt? pass 4 38fclock* at fdt? pass 4
39fregulator* at fdt? pass 4 39fregulator* at fdt? pass 4
40gpiokeys* at fdt? 40gpiokeys* at fdt?
41 41
42# Timer 42# Timer
43gtmr* at fdt? pass 1 # ARM Generic Timer 43gtmr* at fdt? pass 1 # ARM Generic Timer
44armgtmr0 at gtmr? 44armgtmr0 at gtmr?
45 45
46# Interrupt controller 46# Interrupt controller
47gic* at fdt? pass 1 # GIC 47gic* at fdt? pass 1 # GIC
48armgic0 at gic? 48armgic0 at gic?
49 49

cvs diff -r1.4 -r1.5 src/sys/arch/evbarm/conf/Attic/VIRT (expand / switch to unified diff)

--- src/sys/arch/evbarm/conf/Attic/VIRT 2018/06/30 16:22:56 1.4
+++ src/sys/arch/evbarm/conf/Attic/VIRT 2018/06/30 16:30:35 1.5
@@ -1,15 +1,15 @@ @@ -1,15 +1,15 @@
1# 1#
2# $NetBSD: VIRT,v 1.4 2018/06/30 16:22:56 jmcneill Exp $ 2# $NetBSD: VIRT,v 1.5 2018/06/30 16:30:35 jmcneill Exp $
3# 3#
4# QEMU ARM 'virt' virtual machine 4# QEMU ARM 'virt' virtual machine
5# 5#
6 6
7include "arch/evbarm/conf/std.virt" 7include "arch/evbarm/conf/std.virt"
8include "arch/evbarm/conf/GENERIC.common" 8include "arch/evbarm/conf/GENERIC.common"
9 9
10options CPU_CORTEXA7 10options CPU_CORTEXA7
11options CPU_CORTEXA15 11options CPU_CORTEXA15
12options CPU_CORTEXA17 12options CPU_CORTEXA17
13options SOC_VIRT 13options SOC_VIRT
14options MULTIPROCESSOR 14options MULTIPROCESSOR
15 15
@@ -24,27 +24,27 @@ pseudo-device openfirm # /dev/openfirm @@ -24,27 +24,27 @@ pseudo-device openfirm # /dev/openfirm
24#options CONSADDR=0x09000000 24#options CONSADDR=0x09000000
25 25
26makeoptions DEBUG="-g" # compile full symbol table 26makeoptions DEBUG="-g" # compile full symbol table
27makeoptions COPY_SYMTAB=1 27makeoptions COPY_SYMTAB=1
28 28
29config netbsd root on ? type ? 29config netbsd root on ? type ?
30 30
31# Device tree support 31# Device tree support
32armfdt0 at root 32armfdt0 at root
33simplebus* at fdt? 33simplebus* at fdt?
34 34
35# CPUs 35# CPUs
36cpus* at fdt? pass 0 36cpus* at fdt? pass 0
37cpu* at cpus? 37cpu* at fdt? pass 0
38 38
39fclock* at fdt? pass 4 39fclock* at fdt? pass 4
40fregulator* at fdt? pass 4 40fregulator* at fdt? pass 4
41gpiokeys* at fdt? 41gpiokeys* at fdt?
42wskbd* at gpiokeys? console ? mux 1 42wskbd* at gpiokeys? console ? mux 1
43 43
44# Power state coordination interface 44# Power state coordination interface
45psci* at fdt? 45psci* at fdt?
46 46
47# Timer 47# Timer
48gtmr* at fdt? pass 1 # ARM Generic Timer 48gtmr* at fdt? pass 1 # ARM Generic Timer
49armgtmr0 at gtmr? 49armgtmr0 at gtmr?
50 50

cvs diff -r1.2 -r1.3 src/sys/dev/fdt/cpus.c (expand / switch to unified diff)

--- src/sys/dev/fdt/cpus.c 2017/06/02 00:01:00 1.2
+++ src/sys/dev/fdt/cpus.c 2018/06/30 16:30:35 1.3
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: cpus.c,v 1.2 2017/06/02 00:01:00 jmcneill Exp $ */ 1/* $NetBSD: cpus.c,v 1.3 2018/06/30 16:30:35 jmcneill Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 2017 Jared McNeill <jmcneill@invisible.ca> 4 * Copyright (c) 2017 Jared McNeill <jmcneill@invisible.ca>
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer. 11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright 12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the 13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution. 14 * documentation and/or other materials provided with the distribution.
@@ -17,27 +17,27 @@ @@ -17,27 +17,27 @@
17 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 17 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 18 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 20 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
21 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 21 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
23 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 23 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE. 26 * SUCH DAMAGE.
27 */ 27 */
28 28
29#include <sys/cdefs.h> 29#include <sys/cdefs.h>
30__KERNEL_RCSID(0, "$NetBSD: cpus.c,v 1.2 2017/06/02 00:01:00 jmcneill Exp $"); 30__KERNEL_RCSID(0, "$NetBSD: cpus.c,v 1.3 2018/06/30 16:30:35 jmcneill Exp $");
31 31
32#include <sys/param.h> 32#include <sys/param.h>
33#include <sys/bus.h> 33#include <sys/bus.h>
34#include <sys/device.h> 34#include <sys/device.h>
35#include <sys/intr.h> 35#include <sys/intr.h>
36#include <sys/systm.h> 36#include <sys/systm.h>
37#include <sys/kernel.h> 37#include <sys/kernel.h>
38#include <sys/kmem.h> 38#include <sys/kmem.h>
39 39
40#include <dev/fdt/fdtvar.h> 40#include <dev/fdt/fdtvar.h>
41 41
42static int cpus_match(device_t, cfdata_t, void *); 42static int cpus_match(device_t, cfdata_t, void *);
43static void cpus_attach(device_t, device_t, void *); 43static void cpus_attach(device_t, device_t, void *);
@@ -47,32 +47,19 @@ CFATTACH_DECL_NEW(cpus, 0, cpus_match, c @@ -47,32 +47,19 @@ CFATTACH_DECL_NEW(cpus, 0, cpus_match, c
47static int 47static int
48cpus_match(device_t parent, cfdata_t cf, void *aux) 48cpus_match(device_t parent, cfdata_t cf, void *aux)
49{ 49{
50 struct fdt_attach_args * const faa = aux; 50 struct fdt_attach_args * const faa = aux;
51 51
52 return OF_finddevice("/cpus") == faa->faa_phandle; 52 return OF_finddevice("/cpus") == faa->faa_phandle;
53} 53}
54 54
55static void 55static void
56cpus_attach(device_t parent, device_t self, void *aux) 56cpus_attach(device_t parent, device_t self, void *aux)
57{ 57{
58 struct fdt_attach_args * const faa = aux; 58 struct fdt_attach_args * const faa = aux;
59 const int phandle = faa->faa_phandle; 59 const int phandle = faa->faa_phandle;
60 int child; 
61 60
62 aprint_naive("\n"); 61 aprint_naive("\n");
63 aprint_normal("\n"); 62 aprint_normal("\n");
64 63
65 for (child = OF_child(phandle); child; child = OF_peer(child)) { 64 fdt_add_bus(self, phandle, faa);
66 if (!fdtbus_status_okay(child)) 
67 continue; 
68 
69 struct fdt_attach_args cfaa = *faa; 
70 cfaa.faa_phandle = child; 
71 cfaa.faa_name = "cpu"; 
72 cfaa.faa_quiet = 0; 
73 
74 device_t cpu = config_found(self, &cfaa, fdtbus_print); 
75 if (cpu) 
76 config_found(cpu, &cfaa, NULL); 
77 } 
78} 65}