files.gemini revision 1.4 1 # $NetBSD: files.gemini,v 1.4 2008/11/11 19:54:38 cliff Exp $
2 #
3 # Configuration info for GEMINI CPU support
4 # Based on omap/files.omap2
5 #
6
7 include "arch/arm/pic/files.pic"
8
9 file arch/arm/arm32/irq_dispatch.S
10
11 # Memory size in megabytes
12 defparam opt_gemini.h MEMSIZE
13 defflag opt_gemini.h GEMINI
14 defflag opt_gemini.h SL3516: GEMINI
15 defflag opt_gemini.h GEMINI_MASTER: GEMINI
16 defflag opt_gemini.h GEMINI_SLAVE: GEMINI
17 defflag opt_gemini.h GEMINI_SINGLE: GEMINI
18
19 # OBIO just an attach point
20 define obio { [addr=-1], [size=0], [intr=-1], [mult=1], [intrbase=-1], [nobyteacc=0]
21 } : bus_space_generic
22 device obio: obio, pcibus
23 attach obio at mainbus
24 file arch/arm/gemini/gemini_obio.c obio needs-count
25
26 # OBIO files
27 file arch/arm/gemini/gemini_space.c obio
28 ##file arch/arm/gemini/gemini_a2x_space.c obio
29 ##file arch/arm/gemini/gemini_a2x_io.S obio
30 file arch/arm/gemini/gemini_a4x_space.c obio
31 file arch/arm/xscale/pxa2x0_a4x_io.S obio
32 file arch/arm/gemini/gemini_dma.c
33
34 # these bus space methods are not bus-specific ...
35 #
36 ##file arch/arm/gemini/gemini_nobyteacc_space.c obio
37 ##file arch/arm/gemini/gemini_nobyteacc_io.S obio
38
39 # GEMINI interrupt controller
40 device geminiicu: pic
41 attach geminiicu at obio with geminiicu
42 file arch/arm/gemini/gemini_icu.c geminiicu needs-flag
43
44
45
46 # GEMINI GPIO controllers
47
48 # GEMINI Timers
49 device geminitmr
50 file arch/arm/gemini/gemini_timer.c geminitmr
51 defparam opt_gemini.h GEMINI_TIMER_CLOCK_FREQ
52
53 # OBIO/geminitmr
54 attach geminitmr at obio with obiotimer
55 file arch/arm/gemini/obio_timer.c obiotimer
56
57 # Gemini Watchdog timer
58 device geminiwdt: sysmon_wdog
59 file arch/arm/gemini/gemini_wdt.c geminiwdt needs-flag
60 defparam opt_gemini.h GEMINI_WDT_CLOCK_FREQ
61
62 attach geminiwdt at obio with obiowdt
63 file arch/arm/gemini/obio_wdt.c obiowdt
64
65 # NS16550 compatible serial ports
66 attach com at obio with gemini_com
67 file arch/arm/gemini/gemini_com.c gemini_com
68 defparam opt_com.h CONSADDR CONSPEED CONMODE
69
70 # GEMINI LPC Bus
71 define lpcbus {[addr = -1]}
72 device lpc { [ldn=-1], [addr=-1], [size=0], [intr=-1] }
73 attach lpc at lpcbus
74 file arch/arm/gemini/gemini_lpc.c lpc needs-count
75
76 # GEMINI LPC Host Controller
77 device geminilpchc: lpcbus
78 attach geminilpchc at obio with obio_lpchc
79 file arch/arm/gemini/obio_lpchc.c obio_lpchc
80 file arch/arm/gemini/gemini_lpchc.c geminilpchc needs-count
81
82 # LPC Bus COM UARTs
83 attach com at lpc with lpc_com
84 file arch/arm/gemini/lpc_com.c lpc_com
85
86
87 # GEMINI USB controller
88 attach ehci at obio with ehci_obio
89 file arch/arm/gemini/obio_ehci.c ehci_obio
90
91 # GEMINI ATA controller
92 attach wdc at obio with wdc_obio
93 file arch/arm/gemini/obio_wdc.c wdc_obio
94
95 # PCI
96 device gemini_pci: pcibus
97 attach gemini_pci at obio
98 file arch/arm/gemini/gemini_pci.c pci needs-flag
99