1 # $NetBSD: files.omap2,v 1.2 2008/04/27 18:58:45 matt Exp $
3 # Configuration info for Texas Instruments OMAP2/OMAP3 CPU support
4 # Based on xscale/files.pxa2x0
7 include "arch/arm/pic/files.pic"
9 file arch/arm/arm32/irq_dispatch.S
11 # Memory size in megabytes
12 defparam opt_omap.h MEMSIZE
13 defparam opt_omap.h OMAP_EMIFF_PBASE OMAP_EMIFF_SIZE
14 defflag opt_omap.h OMAP2
15 defflag opt_omap.h OMAP3: OMAP2
16 defflag opt_omap.h OMAP_2430: OMAP2
17 defflag opt_omap.h OMAP_2420: OMAP2
18 defflag opt_omap.h OMAP_3530: OMAP3
20 # OBIO just an attach point
21 device obio { [addr=-1], [size=0], [intr=-1], [mult=1], [intrbase=-1], [nobyteacc=0]
23 attach obio at mainbus
24 file arch/arm/omap/omap2_obio.c obio needs-count
27 file arch/arm/omap/omap_space.c obio
28 file arch/arm/omap/omap_a2x_space.c obio
29 file arch/arm/omap/omap_a2x_io.S obio
30 file arch/arm/omap/omap_a4x_space.c obio
31 file arch/arm/xscale/pxa2x0_a4x_io.S obio
33 # OMAP2 interrupt controller
35 attach omapicu at obio with omap2icu
36 file arch/arm/omap/omap2_icu.c (omap2 | omap3) & omapicu
37 file arch/arm/omap/omap2430_intr.c omap2 & !omapicu
39 # OMAP2 GPIO controllers
40 device omapgpio: gpiobus
41 attach omapgpio at obio with omap2gpio
42 file arch/arm/omap/omap2_gpio.c (omap2 | omap3) & omapgpio
44 # OMAP 2430 General Purpose Timer
46 file arch/arm/omap/omap2_mputmr.c omapmputmr
47 defparam opt_omap.h OMAP_GP_TIMER_CLOCK_FREQ
50 attach omapmputmr at obio with obiomputmr
51 file arch/arm/omap/obio_mputmr.c obiomputmr
53 # Dual Mode (General Purpose) Timer
55 attach omapgptmr at obio
56 file arch/arm/omap/omap2_gptmr.c omapgptmr
57 #file arch/arm/omap/omap_pwm.c omapgptmr
61 device omapwdt32k: sysmon_wdog
62 file arch/arm/omap/omap_wdt.c omapwdt32k needs-flag
64 attach omapwdt32k at obio with obiowdt32k
65 file arch/arm/omap/obio_wdt.c obiowdt32k
68 device L3i { [addr=-1], [size=0], [intr=-1], [mult=1], [nobyteacc=0]
71 file arch/arm/omap/omap2_l3i.c omap2 | omap3
73 # General Purpose Memory Controller
74 # XXX some addl. chip select config parms may be desired here (e.g. timing)
75 # XXX so far we just use the setup established by boot firmware
76 device gpmc { [addr=-1], [size=0], [intr=-1], [mult=1], [nobyteacc=0]
78 attach gpmc at mainbus
79 file arch/arm/omap/omap2_gpmc.c gpmc
82 ##attach ohci at obio with obioohci: omapgpio
83 attach ohci at obio with obioohci
84 file arch/arm/omap/obio_ohci.c obioohci
87 # these bus space methods are not bus-specific ...
89 file arch/arm/omap/omap_nobyteacc_space.c emifs | gpmc
90 file arch/arm/omap/omap_nobyteacc_io.S emifs | gpmc