| @@ -1,159 +1,164 @@ | | | @@ -1,159 +1,164 @@ |
1 | # $NetBSD: files.omap2,v 1.26 2013/06/15 21:55:09 matt Exp $ | | 1 | # $NetBSD: files.omap2,v 1.27 2013/06/18 15:22:37 matt Exp $ |
2 | # | | 2 | # |
3 | # Configuration info for Texas Instruments OMAP2/OMAP3 CPU support | | 3 | # Configuration info for Texas Instruments OMAP2/OMAP3 CPU support |
4 | # Based on xscale/files.pxa2x0 | | 4 | # Based on xscale/files.pxa2x0 |
5 | # | | 5 | # |
6 | | | 6 | |
7 | include "arch/arm/pic/files.pic" | | 7 | include "arch/arm/pic/files.pic" |
8 | include "arch/arm/cortex/files.cortex" | | 8 | include "arch/arm/cortex/files.cortex" |
9 | | | 9 | |
10 | file arch/arm/arm32/irq_dispatch.S | | 10 | file arch/arm/arm32/irq_dispatch.S |
11 | file arch/arm/omap/omap_dma.c | | 11 | file arch/arm/omap/omap_dma.c |
12 | | | 12 | |
13 | # Memory size in megabytes | | 13 | # Memory size in megabytes |
14 | defparam opt_omap.h MEMSIZE | | 14 | defparam opt_omap.h MEMSIZE |
15 | defparam opt_omap.h OMAP_EMIFF_PBASE OMAP_EMIFF_SIZE | | 15 | defparam opt_omap.h OMAP_EMIFF_PBASE OMAP_EMIFF_SIZE |
16 | defflag opt_omap.h OMAP2 | | 16 | defflag opt_omap.h OMAP2 |
17 | defflag opt_omap.h OMAP3: OMAP2 | | 17 | defflag opt_omap.h OMAP3: OMAP2 |
18 | defflag opt_omap.h OMAP4: OMAP3 | | 18 | defflag opt_omap.h OMAP4: OMAP3 |
19 | defflag opt_omap.h OMAP5: OMAP4 | | 19 | defflag opt_omap.h OMAP5: OMAP4 |
20 | defflag opt_omap.h OMAP_2430: OMAP2 | | 20 | defflag opt_omap.h OMAP_2XXX: OMAP2 |
21 | defflag opt_omap.h OMAP_2420: OMAP2 | | 21 | defflag opt_omap.h OMAP_2430: OMAP_2XXX |
22 | defflag opt_omap.h OMAP_3430: OMAP3 | | 22 | defflag opt_omap.h OMAP_2420: OMAP_2XXX |
23 | defflag opt_omap.h OMAP_3530: OMAP3 | | 23 | defflag opt_omap.h OMAP_3XXX: OMAP3 |
24 | defflag opt_omap.h OMAP_4430: OMAP4 | | 24 | defflag opt_omap.h OMAP_3430: OMAP_3XXX |
25 | defflag opt_omap.h OMAP_5430: OMAP4 | | 25 | defflag opt_omap.h OMAP_3530: OMAP_3XXX |
| | | 26 | defflag opt_omap.h OMAP_4XXX: OMAP4 |
| | | 27 | defflag opt_omap.h OMAP_4430: OMAP_4XXX |
| | | 28 | defflag opt_omap.h OMAP_4460: OMAP_4XXX |
| | | 29 | defflag opt_omap.h OMAP_5XXX: OMAP5 |
| | | 30 | defflag opt_omap.h OMAP_5430: OMAP_5XXX |
26 | defflag opt_omap.h TI_AM335X: OMAP3 | | 31 | defflag opt_omap.h TI_AM335X: OMAP3 |
27 | defflag opt_omap.h TI_DM37XX: OMAP3 | | 32 | defflag opt_omap.h TI_DM37XX: OMAP3 |
28 | | | 33 | |
29 | # OBIO just an attach point | | 34 | # OBIO just an attach point |
30 | device obio { [addr=-1], [size=0], [intr=-1], [mult=1], [intrbase=-1], [nobyteacc=0] | | 35 | device obio { [addr=-1], [size=0], [intr=-1], [mult=1], [intrbase=-1], [nobyteacc=0] |
31 | } : bus_space_generic | | 36 | } : bus_space_generic |
32 | attach obio at mainbus | | 37 | attach obio at mainbus |
33 | file arch/arm/omap/omap2_obio.c obio needs-count | | 38 | file arch/arm/omap/omap2_obio.c obio needs-count |
34 | | | 39 | |
35 | # OBIO files | | 40 | # OBIO files |
36 | file arch/arm/omap/omap_space.c obio | | 41 | file arch/arm/omap/omap_space.c obio |
37 | file arch/arm/omap/omap_a2x_space.c obio | | 42 | file arch/arm/omap/omap_a2x_space.c obio |
38 | file arch/arm/arm/bus_space_a2x.S obio | | 43 | file arch/arm/arm/bus_space_a2x.S obio |
39 | file arch/arm/omap/omap_a4x_space.c obio | | 44 | file arch/arm/omap/omap_a4x_space.c obio |
40 | file arch/arm/arm/bus_space_a4x.S obio | | 45 | file arch/arm/arm/bus_space_a4x.S obio |
41 | | | 46 | |
42 | # TI Sitara control module | | 47 | # TI Sitara control module |
43 | device sitaracm | | 48 | device sitaracm |
44 | attach sitaracm at obio with sitaracm | | 49 | attach sitaracm at obio with sitaracm |
45 | file arch/arm/omap/sitara_cm.c sitaracm | | 50 | file arch/arm/omap/sitara_cm.c sitaracm |
46 | file arch/arm/omap/am335x_cm_padconf.c ti_am335x | | 51 | file arch/arm/omap/am335x_cm_padconf.c ti_am335x |
47 | | | 52 | |
48 | # OMAP2 interrupt controller | | 53 | # OMAP2 interrupt controller |
49 | device omapicu: pic, pic_splfuncs | | 54 | device omapicu: pic, pic_splfuncs |
50 | attach omapicu at obio with omap2icu | | 55 | attach omapicu at obio with omap2icu |
51 | file arch/arm/omap/omap2_icu.c (omap2 | omap3) & omapicu | | 56 | file arch/arm/omap/omap2_icu.c (omap2 | omap3) & omapicu |
52 | file arch/arm/omap/omap2430_intr.c omap2 & !omapicu & !omap4 | | 57 | file arch/arm/omap/omap2430_intr.c omap2 & !omapicu & !omap4 |
53 | | | 58 | |
54 | # OMAP2 GPIO controllers | | 59 | # OMAP2 GPIO controllers |
55 | device omapgpio: gpiobus | | 60 | device omapgpio: gpiobus |
56 | attach omapgpio at obio with omap2gpio | | 61 | attach omapgpio at obio with omap2gpio |
57 | file arch/arm/omap/omap2_gpio.c (omap2 | omap3) & omapgpio | | 62 | file arch/arm/omap/omap2_gpio.c (omap2 | omap3) & omapgpio |
58 | | | 63 | |
59 | # TI_AM335X (and maybe TI OMAP4) I2C controllers | | 64 | # TI_AM335X (and maybe TI OMAP4) I2C controllers |
60 | device tiiic: i2cbus, i2cexec | | 65 | device tiiic: i2cbus, i2cexec |
61 | attach tiiic at obio with ti_iic | | 66 | attach tiiic at obio with ti_iic |
62 | file arch/arm/omap/ti_iic.c ti_iic | | 67 | file arch/arm/omap/ti_iic.c ti_iic |
63 | | | 68 | |
64 | # OMAP3 I2C controllers | | 69 | # OMAP3 I2C controllers |
65 | device omapiic: i2cbus, i2cexec | | 70 | device omapiic: i2cbus, i2cexec |
66 | attach omapiic at obio with omap3_i2c | | 71 | attach omapiic at obio with omap3_i2c |
67 | file arch/arm/omap/omap3_i2c.c omap3_i2c | | 72 | file arch/arm/omap/omap3_i2c.c omap3_i2c |
68 | | | 73 | |
69 | # OMAP3 system control module | | 74 | # OMAP3 system control module |
70 | device omapscm: sysmon_envsys | | 75 | device omapscm: sysmon_envsys |
71 | attach omapscm at obio with omap3_scm | | 76 | attach omapscm at obio with omap3_scm |
72 | file arch/arm/omap/omap3_scm.c omap3_scm | | 77 | file arch/arm/omap/omap3_scm.c omap3_scm |
73 | | | 78 | |
74 | # OMAP dual-mode timer | | 79 | # OMAP dual-mode timer |
75 | device omapdmtimer | | 80 | device omapdmtimer |
76 | file arch/arm/omap/omap_dmtimer.c omapdmtimer | | 81 | file arch/arm/omap/omap_dmtimer.c omapdmtimer |
77 | defparam opt_omap.h OMAP_SYSTEM_CLOCK_FREQ | | 82 | defparam opt_omap.h OMAP_SYSTEM_CLOCK_FREQ |
78 | | | 83 | |
79 | attach omapdmtimer at obio with omap_dmtimer_obio | | 84 | attach omapdmtimer at obio with omap_dmtimer_obio |
80 | file arch/arm/omap/am335x_dmtimer.c ti_am335x & omapdmtimer | | 85 | file arch/arm/omap/am335x_dmtimer.c ti_am335x & omapdmtimer |
81 | | | 86 | |
82 | # OMAP 2430 General Purpose Timer | | 87 | # OMAP 2430 General Purpose Timer |
83 | device omapmputmr | | 88 | device omapmputmr |
84 | file arch/arm/omap/omap2_mputmr.c omapmputmr | | 89 | file arch/arm/omap/omap2_mputmr.c omapmputmr |
85 | defparam opt_omap.h OMAP_GP_TIMER_CLOCK_FREQ | | 90 | defparam opt_omap.h OMAP_GP_TIMER_CLOCK_FREQ |
86 | | | 91 | |
87 | # OBIO/2430 GP Timer | | 92 | # OBIO/2430 GP Timer |
88 | attach omapmputmr at obio with obiomputmr | | 93 | attach omapmputmr at obio with obiomputmr |
89 | file arch/arm/omap/obio_mputmr.c obiomputmr | | 94 | file arch/arm/omap/obio_mputmr.c obiomputmr |
90 | | | 95 | |
91 | # Dual Mode (General Purpose) Timer | | 96 | # Dual Mode (General Purpose) Timer |
92 | device omapgptmr | | 97 | device omapgptmr |
93 | attach omapgptmr at obio | | 98 | attach omapgptmr at obio |
94 | file arch/arm/omap/omap2_gptmr.c omapgptmr | | 99 | file arch/arm/omap/omap2_gptmr.c omapgptmr |
95 | #file arch/arm/omap/omap_pwm.c omapgptmr | | 100 | #file arch/arm/omap/omap_pwm.c omapgptmr |
96 | | | 101 | |
97 | # Watchdog timers | | 102 | # Watchdog timers |
98 | | | 103 | |
99 | device omapwdt32k: sysmon_wdog | | 104 | device omapwdt32k: sysmon_wdog |
100 | file arch/arm/omap/omap_wdt.c omapwdt32k needs-flag | | 105 | file arch/arm/omap/omap_wdt.c omapwdt32k needs-flag |
101 | | | 106 | |
102 | attach omapwdt32k at obio with obiowdt32k | | 107 | attach omapwdt32k at obio with obiowdt32k |
103 | file arch/arm/omap/obio_wdt.c obiowdt32k | | 108 | file arch/arm/omap/obio_wdt.c obiowdt32k |
104 | | | 109 | |
105 | # L3 Interconnect | | 110 | # L3 Interconnect |
106 | device L3i { [addr=-1], [size=0], [intr=-1], [mult=1], [nobyteacc=0] | | 111 | device L3i { [addr=-1], [size=0], [intr=-1], [mult=1], [nobyteacc=0] |
107 | } : bus_space_generic | | 112 | } : bus_space_generic |
108 | attach L3i at mainbus | | 113 | attach L3i at mainbus |
109 | file arch/arm/omap/omap2_l3i.c omap2 | omap3 | | 114 | file arch/arm/omap/omap2_l3i.c omap2 | omap3 |
110 | | | 115 | |
111 | # General Purpose Memory Controller | | 116 | # General Purpose Memory Controller |
112 | # XXX some addl. chip select config parms may be desired here (e.g. timing) | | 117 | # XXX some addl. chip select config parms may be desired here (e.g. timing) |
113 | # XXX so far we just use the setup established by boot firmware | | 118 | # XXX so far we just use the setup established by boot firmware |
114 | device gpmc { [addr=-1], [size=0], [intr=-1], [mult=1], [nobyteacc=0] | | 119 | device gpmc { [addr=-1], [size=0], [intr=-1], [mult=1], [nobyteacc=0] |
115 | } : bus_space_generic | | 120 | } : bus_space_generic |
116 | attach gpmc at mainbus | | 121 | attach gpmc at mainbus |
117 | file arch/arm/omap/omap2_gpmc.c gpmc | | 122 | file arch/arm/omap/omap2_gpmc.c gpmc |
118 | | | 123 | |
119 | # SDMMC controller | | 124 | # SDMMC controller |
120 | attach sdhc at obio with obiosdhc | | 125 | attach sdhc at obio with obiosdhc |
121 | file arch/arm/omap/omap3_sdhc.c obiosdhc | | 126 | file arch/arm/omap/omap3_sdhc.c obiosdhc |
122 | | | 127 | |
123 | # NAND flash controller | | 128 | # NAND flash controller |
124 | device omapnand: nandbus | | 129 | device omapnand: nandbus |
125 | attach omapnand at gpmc | | 130 | attach omapnand at gpmc |
126 | file arch/arm/omap/omap2_nand.c omapnand | | 131 | file arch/arm/omap/omap2_nand.c omapnand |
127 | | | 132 | |
128 | # PRCM interface | | 133 | # PRCM interface |
129 | device prcm | | 134 | device prcm |
130 | attach prcm at obio | | 135 | attach prcm at obio |
131 | file arch/arm/omap/omap2_prcm.c prcm needs-flag | | 136 | file arch/arm/omap/omap2_prcm.c prcm needs-flag |
132 | file arch/arm/omap/am335x_prcm.c ti_am335x | | 137 | file arch/arm/omap/am335x_prcm.c ti_am335x |
133 | | | 138 | |
134 | # OHCI USB controller | | 139 | # OHCI USB controller |
135 | attach ohci at obio with obioohci | | 140 | attach ohci at obio with obioohci |
136 | file arch/arm/omap/obio_ohci.c obioohci | | 141 | file arch/arm/omap/obio_ohci.c obioohci |
137 | | | 142 | |
138 | attach ehci at obio with omap3_ehci | | 143 | attach ehci at obio with omap3_ehci |
139 | file arch/arm/omap/omap3_ehci.c omap3_ehci | | 144 | file arch/arm/omap/omap3_ehci.c omap3_ehci |
140 | | | 145 | |
141 | attach ahcisata at obio with omap5_ahcisata | | 146 | attach ahcisata at obio with omap5_ahcisata |
142 | file arch/arm/omap/omap5_ahcisata.c omap5_ahcisata | | 147 | file arch/arm/omap/omap5_ahcisata.c omap5_ahcisata |
143 | | | 148 | |
144 | device omapfb: rasops16, rasops8, wsemuldisplaydev, vcons, edid | | 149 | device omapfb: rasops16, rasops8, wsemuldisplaydev, vcons, edid |
145 | attach omapfb at obio | | 150 | attach omapfb at obio |
146 | file arch/arm/omap/omapfb.c omapfb | | 151 | file arch/arm/omap/omapfb.c omapfb |
147 | | | 152 | |
148 | device cpsw: ether, ifnet, arp, mii, mii_phy | | 153 | device cpsw: ether, ifnet, arp, mii, mii_phy |
149 | attach cpsw at obio | | 154 | attach cpsw at obio |
150 | file arch/arm/omap/if_cpsw.c cpsw | | 155 | file arch/arm/omap/if_cpsw.c cpsw |
151 | | | 156 | |
152 | device omapdma | | 157 | device omapdma |
153 | attach omapdma at obio | | 158 | attach omapdma at obio |
154 | file arch/arm/omap/omap3_sdma.c omapdma needs-flag | | 159 | file arch/arm/omap/omap3_sdma.c omapdma needs-flag |
155 | | | 160 | |
156 | # these bus space methods are not bus-specific ... | | 161 | # these bus space methods are not bus-specific ... |
157 | # | | 162 | # |
158 | file arch/arm/omap/omap_nobyteacc_space.c emifs | gpmc | | 163 | file arch/arm/omap/omap_nobyteacc_space.c emifs | gpmc |
159 | file arch/arm/omap/omap_nobyteacc_io.S emifs | gpmc | | 164 | file arch/arm/omap/omap_nobyteacc_io.S emifs | gpmc |