cpus: use fdt_add_busdiff -r1.18 -r1.19 src/sys/arch/arm/fdt/files.fdt
(jmcneill)
--- 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 | |||
3 | include "dev/pckbport/files.pckbport" | 3 | include "dev/pckbport/files.pckbport" | |
4 | 4 | |||
5 | device armfdt { }: bus_space_generic, fdt | 5 | device armfdt { }: bus_space_generic, fdt | |
6 | attach armfdt at root with arm_fdt | 6 | attach armfdt at root with arm_fdt | |
7 | file arch/arm/fdt/arm_fdt.c arm_fdt | 7 | file arch/arm/fdt/arm_fdt.c arm_fdt | |
8 | 8 | |||
9 | attach cpu at cpus with cpu_fdt | 9 | attach cpu at fdt with cpu_fdt | |
10 | file arch/arm/fdt/cpu_fdt.c cpu_fdt | 10 | file arch/arm/fdt/cpu_fdt.c cpu_fdt | |
11 | 11 | |||
12 | device cpufreqdt | 12 | device cpufreqdt | |
13 | attach cpufreqdt at cpu with cpufreq_dt | 13 | attach cpufreqdt at cpu with cpufreq_dt | |
14 | file dev/fdt/cpufreq_dt.c cpufreq_dt | 14 | file dev/fdt/cpufreq_dt.c cpufreq_dt | |
15 | 15 | |||
16 | device a9tmr: mpcorebus | 16 | device a9tmr: mpcorebus | |
17 | attach a9tmr at fdt with a9tmr_fdt | 17 | attach a9tmr at fdt with a9tmr_fdt | |
18 | file arch/arm/fdt/a9tmr_fdt.c a9tmr_fdt | 18 | file arch/arm/fdt/a9tmr_fdt.c a9tmr_fdt | |
19 | 19 | |||
20 | device gtmr: mpcorebus | 20 | device gtmr: mpcorebus | |
21 | attach gtmr at fdt with gtmr_fdt | 21 | attach gtmr at fdt with gtmr_fdt | |
22 | file arch/arm/fdt/gtmr_fdt.c gtmr_fdt | 22 | file arch/arm/fdt/gtmr_fdt.c gtmr_fdt |
--- 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 | |||
7 | include "arch/evbarm/conf/std.exynos" | 7 | include "arch/evbarm/conf/std.exynos" | |
8 | include "arch/evbarm/conf/GENERIC.common" | 8 | include "arch/evbarm/conf/GENERIC.common" | |
9 | 9 | |||
10 | makeoptions DTS=" | 10 | makeoptions 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 | |||
34 | makeoptions DEBUG="-g" # compile full symbol table | 34 | makeoptions DEBUG="-g" # compile full symbol table | |
35 | makeoptions COPY_SYMTAB=1 | 35 | makeoptions COPY_SYMTAB=1 | |
36 | 36 | |||
37 | config netbsd root on ? type ? | 37 | config netbsd root on ? type ? | |
38 | 38 | |||
39 | # Device tree support | 39 | # Device tree support | |
40 | armfdt0 at root | 40 | armfdt0 at root | |
41 | simplebus* at fdt? | 41 | simplebus* at fdt? | |
42 | 42 | |||
43 | # CPUs | 43 | # CPUs | |
44 | cpus* at fdt? pass 0 | 44 | cpus* at fdt? pass 0 | |
45 | cpu* at cpus? | 45 | cpu* at fdt? pass 0 | |
46 | 46 | |||
47 | fclock* at fdt? pass 4 | 47 | fclock* at fdt? pass 4 | |
48 | fregulator* at fdt? pass 4 | 48 | fregulator* at fdt? pass 4 | |
49 | gpiokeys* at fdt? | 49 | gpiokeys* at fdt? | |
50 | 50 | |||
51 | # Timer | 51 | # Timer | |
52 | mct* at fdt? # Exynos Multi Core Timer (MCT) | 52 | mct* at fdt? # Exynos Multi Core Timer (MCT) | |
53 | armgtmr0 at mct? # ARM Generic Timer | 53 | armgtmr0 at mct? # ARM Generic Timer | |
54 | 54 | |||
55 | # Interrupt controller | 55 | # Interrupt controller | |
56 | exyointr* at fdt? pass 1 | 56 | exyointr* at fdt? pass 1 | |
57 | gic* at fdt? pass 1 # GIC | 57 | gic* at fdt? pass 1 # GIC | |
58 | armgic0 at gic? | 58 | armgic0 at gic? |
--- 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 | |||
7 | include "arch/evbarm/conf/std.generic" | 7 | include "arch/evbarm/conf/std.generic" | |
8 | include "arch/evbarm/conf/files.generic" | 8 | include "arch/evbarm/conf/files.generic" | |
9 | include "arch/evbarm/conf/GENERIC.common" | 9 | include "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 | # | |
15 | makeoptions DTSARCH="arm" | 15 | makeoptions 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 | |||
50 | makeoptions DEBUG="-g" # compile full symbol table | 50 | makeoptions DEBUG="-g" # compile full symbol table | |
51 | makeoptions COPY_SYMTAB=1 | 51 | makeoptions COPY_SYMTAB=1 | |
52 | 52 | |||
53 | config netbsd root on ? type ? | 53 | config netbsd root on ? type ? | |
54 | 54 | |||
55 | # Device tree support | 55 | # Device tree support | |
56 | armfdt0 at root | 56 | armfdt0 at root | |
57 | simplebus* at fdt? | 57 | simplebus* at fdt? | |
58 | 58 | |||
59 | # CPUs | 59 | # CPUs | |
60 | cpus* at fdt? pass 0 | 60 | cpus* at fdt? pass 0 | |
61 | cpu* at cpus? | 61 | cpu* at fdt? pass 0 | |
62 | 62 | |||
63 | # CPU frequency scaling | 63 | # CPU frequency scaling | |
64 | cpufreqdt* at cpu? | 64 | cpufreqdt* at cpu? | |
65 | 65 | |||
66 | # Power State Coordination Interface (PSCI) | 66 | # Power State Coordination Interface (PSCI) | |
67 | psci* at fdt? | 67 | psci* at fdt? | |
68 | 68 | |||
69 | fclock* at fdt? pass 1 | 69 | fclock* at fdt? pass 1 | |
70 | ffclock* at fdt? pass 1 | 70 | ffclock* at fdt? pass 1 | |
71 | fregulator* at fdt? pass 4 | 71 | fregulator* at fdt? pass 4 | |
72 | gregulator* at fdt? pass 4 | 72 | gregulator* at fdt? pass 4 | |
73 | gpiokeys* at fdt? | 73 | gpiokeys* at fdt? | |
74 | wskbd* at gpiokeys? console ? mux 1 | 74 | wskbd* at gpiokeys? console ? mux 1 |
--- 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 | |||
7 | include "arch/evbarm/conf/std.generic64" | 7 | include "arch/evbarm/conf/std.generic64" | |
8 | include "arch/evbarm/conf/GENERIC.common" | 8 | include "arch/evbarm/conf/GENERIC.common" | |
9 | include "arch/evbarm/conf/files.rpi" | 9 | include "arch/evbarm/conf/files.rpi" | |
10 | 10 | |||
11 | makeoptions DTSGNUARCH="arm arm64" | 11 | makeoptions DTSGNUARCH="arm arm64" | |
12 | makeoptions DTSSUBDIR="broadcom" | 12 | makeoptions DTSSUBDIR="broadcom" | |
13 | 13 | |||
14 | makeoptions DTS=" | 14 | makeoptions 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 | |||
60 | config netbsd root on ? type ? | 60 | config netbsd root on ? type ? | |
61 | 61 | |||
62 | # Device tree support | 62 | # Device tree support | |
63 | armfdt0 at root | 63 | armfdt0 at root | |
64 | simplebus* at fdt? | 64 | simplebus* at fdt? | |
65 | 65 | |||
66 | # The CPU(s) | 66 | # The CPU(s) | |
67 | cpus* at fdt? pass 0 | 67 | cpus* at fdt? pass 0 | |
68 | cpu* at cpus? | 68 | cpu* at fdt? pass 0 | |
69 | 69 | |||
70 | gtmr* at fdt? pass 1 # ARM Generic Timer | 70 | gtmr* at fdt? pass 1 # ARM Generic Timer | |
71 | armgtmr0 at gtmr? | 71 | armgtmr0 at gtmr? | |
72 | 72 | |||
73 | fclock* at fdt? pass 0 | 73 | fclock* at fdt? pass 0 | |
74 | 74 | |||
75 | # Interrupt Controller | 75 | # Interrupt Controller | |
76 | bcmicu* at fdt? pass 1 | 76 | bcmicu* 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 |
--- 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 | |||
7 | include "arch/evbarm/conf/std.generic64" | 7 | include "arch/evbarm/conf/std.generic64" | |
8 | include "arch/evbarm/conf/files.generic64" | 8 | include "arch/evbarm/conf/files.generic64" | |
9 | include "arch/evbarm/conf/GENERIC.common" | 9 | include "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 | # | |
15 | makeoptions DTSARCH="arm aarch64" | 15 | makeoptions 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 | |||
76 | makeoptions DEBUG="-g" # compile full symbol table | 76 | makeoptions DEBUG="-g" # compile full symbol table | |
77 | makeoptions COPY_SYMTAB=1 | 77 | makeoptions COPY_SYMTAB=1 | |
78 | 78 | |||
79 | config netbsd root on ? type ? | 79 | config netbsd root on ? type ? | |
80 | 80 | |||
81 | # Device tree support | 81 | # Device tree support | |
82 | armfdt0 at root | 82 | armfdt0 at root | |
83 | simplebus* at fdt? | 83 | simplebus* at fdt? | |
84 | 84 | |||
85 | # CPUs | 85 | # CPUs | |
86 | cpus* at fdt? pass 0 | 86 | cpus* at fdt? pass 0 | |
87 | cpu* at cpus? | 87 | cpu* at fdt? pass 0 | |
88 | 88 | |||
89 | # CPU frequency scaling | 89 | # CPU frequency scaling | |
90 | cpufreqdt* at cpu? | 90 | cpufreqdt* at cpu? | |
91 | 91 | |||
92 | # Power State Coordination Interface (PSCI) | 92 | # Power State Coordination Interface (PSCI) | |
93 | psci* at fdt? | 93 | psci* at fdt? | |
94 | 94 | |||
95 | fclock* at fdt? pass 1 | 95 | fclock* at fdt? pass 1 | |
96 | ffclock* at fdt? pass 1 | 96 | ffclock* at fdt? pass 1 | |
97 | fregulator* at fdt? pass 4 | 97 | fregulator* at fdt? pass 4 | |
98 | gregulator* at fdt? pass 4 | 98 | gregulator* at fdt? pass 4 | |
99 | gpiokeys* at fdt? | 99 | gpiokeys* at fdt? | |
100 | wskbd* at gpiokeys? console ? mux 1 | 100 | wskbd* at gpiokeys? console ? mux 1 |
--- 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 | |||
7 | include "arch/evbarm/conf/std.rpi" | 7 | include "arch/evbarm/conf/std.rpi" | |
8 | include "arch/evbarm/conf/GENERIC.common" | 8 | include "arch/evbarm/conf/GENERIC.common" | |
9 | 9 | |||
10 | makeoptions DTSGNUARCH="arm arm64" | 10 | makeoptions DTSGNUARCH="arm arm64" | |
11 | makeoptions DTSSUBDIR="broadcom" | 11 | makeoptions DTSSUBDIR="broadcom" | |
12 | 12 | |||
13 | makeoptions DTS=" | 13 | makeoptions 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 | |||
54 | config netbsd root on ? type ? | 54 | config netbsd root on ? type ? | |
55 | 55 | |||
56 | # Device tree support | 56 | # Device tree support | |
57 | armfdt0 at root | 57 | armfdt0 at root | |
58 | simplebus* at fdt? | 58 | simplebus* at fdt? | |
59 | 59 | |||
60 | # The CPU(s) | 60 | # The CPU(s) | |
61 | cpus* at fdt? pass 0 | 61 | cpus* at fdt? pass 0 | |
62 | cpu* at cpus? | 62 | cpu* at fdt? pass 0 | |
63 | 63 | |||
64 | fclock* at fdt? pass 0 | 64 | fclock* at fdt? pass 0 | |
65 | 65 | |||
66 | # Interrupt Controller | 66 | # Interrupt Controller | |
67 | bcmicu* at fdt? pass 1 | 67 | bcmicu* at fdt? pass 1 | |
68 | 68 | |||
69 | # System timer | 69 | # System timer | |
70 | bcmtmr0 at fdt? pass 1 | 70 | bcmtmr0 at fdt? pass 1 | |
71 | 71 | |||
72 | # Clock manager | 72 | # Clock manager | |
73 | bcmcprman0 at fdt? pass 1 | 73 | bcmcprman0 at fdt? pass 1 | |
74 | 74 | |||
75 | # AUX | 75 | # AUX |
--- 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 | |||
7 | include "arch/evbarm/conf/std.sunxi" | 7 | include "arch/evbarm/conf/std.sunxi" | |
8 | include "arch/evbarm/conf/GENERIC.common" | 8 | include "arch/evbarm/conf/GENERIC.common" | |
9 | 9 | |||
10 | makeoptions DTSGNUARCH="arm arm64" | 10 | makeoptions DTSGNUARCH="arm arm64" | |
11 | makeoptions DTSSUBDIR="allwinner" | 11 | makeoptions DTSSUBDIR="allwinner" | |
12 | makeoptions DTS=" | 12 | makeoptions 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 | |||
164 | makeoptions DEBUG="-g" # compile full symbol table | 164 | makeoptions DEBUG="-g" # compile full symbol table | |
165 | makeoptions COPY_SYMTAB=1 | 165 | makeoptions COPY_SYMTAB=1 | |
166 | 166 | |||
167 | config netbsd root on ? type ? | 167 | config netbsd root on ? type ? | |
168 | 168 | |||
169 | # Device tree support | 169 | # Device tree support | |
170 | armfdt0 at root | 170 | armfdt0 at root | |
171 | simplebus* at fdt? | 171 | simplebus* at fdt? | |
172 | 172 | |||
173 | # CPUs | 173 | # CPUs | |
174 | cpus* at fdt? pass 0 | 174 | cpus* at fdt? pass 0 | |
175 | cpu* at cpus? | 175 | cpu* at fdt? pass 0 | |
176 | cpufreqdt* at cpu? | 176 | cpufreqdt* at cpu? | |
177 | 177 | |||
178 | # Power state coordination interface | 178 | # Power state coordination interface | |
179 | psci* at fdt? | 179 | psci* at fdt? | |
180 | 180 | |||
181 | # Clock and reset controllers | 181 | # Clock and reset controllers | |
182 | sun4ia10ccu* at fdt? pass 2 # A10/A20 CCU | 182 | sun4ia10ccu* at fdt? pass 2 # A10/A20 CCU | |
183 | sun5ia13ccu* at fdt? pass 2 # A13 CCU | 183 | sun5ia13ccu* at fdt? pass 2 # A13 CCU | |
184 | sun6ia31ccu* at fdt? pass 2 # A31 CCU | 184 | sun6ia31ccu* at fdt? pass 2 # A31 CCU | |
185 | sun8ia83tccu* at fdt? pass 2 # A83T CCU | 185 | sun8ia83tccu* at fdt? pass 2 # A83T CCU | |
186 | sun8ih3ccu* at fdt? pass 2 # H3 CCU | 186 | sun8ih3ccu* at fdt? pass 2 # H3 CCU | |
187 | sun8ih3rccu* at fdt? pass 2 # H3 CCU (PRCM) | 187 | sun8ih3rccu* at fdt? pass 2 # H3 CCU (PRCM) | |
188 | sun9ia80ccu* at fdt? pass 2 # A80 CCU | 188 | sun9ia80ccu* at fdt? pass 2 # A80 CCU |
--- 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 | |||
7 | include "arch/evbarm/conf/std.tegra" | 7 | include "arch/evbarm/conf/std.tegra" | |
8 | include "arch/evbarm/conf/GENERIC.common" | 8 | include "arch/evbarm/conf/GENERIC.common" | |
9 | 9 | |||
10 | makeoptions DTSGNUARCH="arm arm64" | 10 | makeoptions DTSGNUARCH="arm arm64" | |
11 | makeoptions DTSSUBDIR="nvidia" | 11 | makeoptions DTSSUBDIR="nvidia" | |
12 | makeoptions DTS=" | 12 | makeoptions 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 | |||
42 | makeoptions DEBUG="-g" # compile full symbol table | 42 | makeoptions DEBUG="-g" # compile full symbol table | |
43 | makeoptions COPY_SYMTAB=1 | 43 | makeoptions COPY_SYMTAB=1 | |
44 | 44 | |||
45 | config netbsd root on ? type ? | 45 | config netbsd root on ? type ? | |
46 | 46 | |||
47 | # Device tree support | 47 | # Device tree support | |
48 | armfdt0 at root | 48 | armfdt0 at root | |
49 | simplebus* at fdt? | 49 | simplebus* at fdt? | |
50 | 50 | |||
51 | # CPUs | 51 | # CPUs | |
52 | cpus* at fdt? pass 0 | 52 | cpus* at fdt? pass 0 | |
53 | cpu* at cpus? | 53 | cpu* at fdt? pass 0 | |
54 | 54 | |||
55 | # CPU frequency scaling | 55 | # CPU frequency scaling | |
56 | tegra124cpu* at cpu? | 56 | tegra124cpu* at cpu? | |
57 | 57 | |||
58 | fclock* at fdt? pass 4 | 58 | fclock* at fdt? pass 4 | |
59 | fregulator* at fdt? pass 5 | 59 | fregulator* at fdt? pass 5 | |
60 | gpiokeys* at fdt? | 60 | gpiokeys* at fdt? | |
61 | wskbd* at gpiokeys? console ? mux 1 | 61 | wskbd* at gpiokeys? console ? mux 1 | |
62 | 62 | |||
63 | # Timer | 63 | # Timer | |
64 | gtmr* at fdt? pass 1 # ARM Generic Timer | 64 | gtmr* at fdt? pass 1 # ARM Generic Timer | |
65 | armgtmr0 at gtmr? | 65 | armgtmr0 at gtmr? | |
66 | tegratimer* at fdt? # Timers | 66 | tegratimer* at fdt? # Timers |
--- 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 | |||
4 | include "arch/evbarm/conf/std.ti" | 4 | include "arch/evbarm/conf/std.ti" | |
5 | include "arch/evbarm/conf/GENERIC.common" | 5 | include "arch/evbarm/conf/GENERIC.common" | |
6 | 6 | |||
7 | options VERBOSE_INIT_ARM | 7 | options VERBOSE_INIT_ARM | |
8 | options CONSADDR=0x44e09000 | 8 | options CONSADDR=0x44e09000 | |
9 | 9 | |||
10 | makeoptions DTS=" | 10 | makeoptions 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 | |
23 | options LOCKDEBUG | 23 | options LOCKDEBUG | |
24 | 24 | |||
25 | options CPU_CORTEXA8 | 25 | options CPU_CORTEXA8 | |
26 | 26 | |||
27 | options OMAP_SYSTEM_CLOCK_FREQ="48000000UL" | 27 | options OMAP_SYSTEM_CLOCK_FREQ="48000000UL" | |
28 | 28 | |||
29 | config netbsd root on ? type ? | 29 | config netbsd root on ? type ? | |
30 | 30 | |||
31 | armfdt0 at root | 31 | armfdt0 at root | |
32 | simplebus* at fdt? | 32 | simplebus* at fdt? | |
33 | 33 | |||
34 | cpus* at fdt? pass 0 | 34 | cpus* at fdt? pass 0 | |
35 | cpu* at cpus? | 35 | cpu* at fdt? pass 0 | |
36 | 36 | |||
37 | am3prcm* at fdt? pass 1 | 37 | am3prcm* at fdt? pass 1 | |
38 | 38 | |||
39 | com* at fdt? | 39 | com* at fdt? | |
40 | 40 | |||
41 | omapintc* at fdt? pass 2 | 41 | omapintc* at fdt? pass 2 | |
42 | omaptimer* at fdt? | 42 | omaptimer* at fdt? | |
43 | 43 | |||
44 | fregulator* at fdt? | 44 | fregulator* at fdt? | |
45 | gpioleds* at fdt? | 45 | gpioleds* at fdt? | |
46 | 46 | |||
47 | cpsw* at fdt? | 47 | cpsw* at fdt? | |
48 | ukphy* at mii? | 48 | ukphy* at mii? |
--- 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 | |||
7 | include "arch/evbarm/conf/std.vexpress" | 7 | include "arch/evbarm/conf/std.vexpress" | |
8 | include "arch/evbarm/conf/GENERIC.common" | 8 | include "arch/evbarm/conf/GENERIC.common" | |
9 | 9 | |||
10 | makeoptions DTS="vexpress-v2p-ca15-tc1.dts" | 10 | makeoptions DTS="vexpress-v2p-ca15-tc1.dts" | |
11 | 11 | |||
12 | options CPU_CORTEXA15 | 12 | options CPU_CORTEXA15 | |
13 | options MULTIPROCESSOR | 13 | options MULTIPROCESSOR | |
14 | 14 | |||
15 | pseudo-device openfirm # /dev/openfirm | 15 | pseudo-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 | |||
25 | makeoptions DEBUG="-g" # compile full symbol table | 25 | makeoptions DEBUG="-g" # compile full symbol table | |
26 | makeoptions COPY_SYMTAB=1 | 26 | makeoptions COPY_SYMTAB=1 | |
27 | 27 | |||
28 | config netbsd root on ? type ? | 28 | config netbsd root on ? type ? | |
29 | 29 | |||
30 | # Device tree support | 30 | # Device tree support | |
31 | armfdt0 at root | 31 | armfdt0 at root | |
32 | simplebus* at fdt? | 32 | simplebus* at fdt? | |
33 | 33 | |||
34 | # CPUs | 34 | # CPUs | |
35 | cpus* at fdt? pass 0 | 35 | cpus* at fdt? pass 0 | |
36 | cpu* at cpus? | 36 | cpu* at fdt? pass 0 | |
37 | 37 | |||
38 | fclock* at fdt? pass 4 | 38 | fclock* at fdt? pass 4 | |
39 | fregulator* at fdt? pass 4 | 39 | fregulator* at fdt? pass 4 | |
40 | gpiokeys* at fdt? | 40 | gpiokeys* at fdt? | |
41 | 41 | |||
42 | # Timer | 42 | # Timer | |
43 | gtmr* at fdt? pass 1 # ARM Generic Timer | 43 | gtmr* at fdt? pass 1 # ARM Generic Timer | |
44 | armgtmr0 at gtmr? | 44 | armgtmr0 at gtmr? | |
45 | 45 | |||
46 | # Interrupt controller | 46 | # Interrupt controller | |
47 | gic* at fdt? pass 1 # GIC | 47 | gic* at fdt? pass 1 # GIC | |
48 | armgic0 at gic? | 48 | armgic0 at gic? | |
49 | 49 |
--- 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 | |||
7 | include "arch/evbarm/conf/std.virt" | 7 | include "arch/evbarm/conf/std.virt" | |
8 | include "arch/evbarm/conf/GENERIC.common" | 8 | include "arch/evbarm/conf/GENERIC.common" | |
9 | 9 | |||
10 | options CPU_CORTEXA7 | 10 | options CPU_CORTEXA7 | |
11 | options CPU_CORTEXA15 | 11 | options CPU_CORTEXA15 | |
12 | options CPU_CORTEXA17 | 12 | options CPU_CORTEXA17 | |
13 | options SOC_VIRT | 13 | options SOC_VIRT | |
14 | options MULTIPROCESSOR | 14 | options 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 | |||
26 | makeoptions DEBUG="-g" # compile full symbol table | 26 | makeoptions DEBUG="-g" # compile full symbol table | |
27 | makeoptions COPY_SYMTAB=1 | 27 | makeoptions COPY_SYMTAB=1 | |
28 | 28 | |||
29 | config netbsd root on ? type ? | 29 | config netbsd root on ? type ? | |
30 | 30 | |||
31 | # Device tree support | 31 | # Device tree support | |
32 | armfdt0 at root | 32 | armfdt0 at root | |
33 | simplebus* at fdt? | 33 | simplebus* at fdt? | |
34 | 34 | |||
35 | # CPUs | 35 | # CPUs | |
36 | cpus* at fdt? pass 0 | 36 | cpus* at fdt? pass 0 | |
37 | cpu* at cpus? | 37 | cpu* at fdt? pass 0 | |
38 | 38 | |||
39 | fclock* at fdt? pass 4 | 39 | fclock* at fdt? pass 4 | |
40 | fregulator* at fdt? pass 4 | 40 | fregulator* at fdt? pass 4 | |
41 | gpiokeys* at fdt? | 41 | gpiokeys* at fdt? | |
42 | wskbd* at gpiokeys? console ? mux 1 | 42 | wskbd* at gpiokeys? console ? mux 1 | |
43 | 43 | |||
44 | # Power state coordination interface | 44 | # Power state coordination interface | |
45 | psci* at fdt? | 45 | psci* at fdt? | |
46 | 46 | |||
47 | # Timer | 47 | # Timer | |
48 | gtmr* at fdt? pass 1 # ARM Generic Timer | 48 | gtmr* at fdt? pass 1 # ARM Generic Timer | |
49 | armgtmr0 at gtmr? | 49 | armgtmr0 at gtmr? | |
50 | 50 |
--- 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 | |||
42 | static int cpus_match(device_t, cfdata_t, void *); | 42 | static int cpus_match(device_t, cfdata_t, void *); | |
43 | static void cpus_attach(device_t, device_t, void *); | 43 | static 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 | |||
47 | static int | 47 | static int | |
48 | cpus_match(device_t parent, cfdata_t cf, void *aux) | 48 | cpus_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 | |||
55 | static void | 55 | static void | |
56 | cpus_attach(device_t parent, device_t self, void *aux) | 56 | cpus_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 | } |