files.bcm2835 revision 1.27 1 # $NetBSD: files.bcm2835,v 1.27 2017/07/30 16:54:36 jmcneill Exp $
2 #
3 # Configuration info for Broadcom BCM2835 ARM Peripherals
4 #
5
6 defflag opt_bcm283x.h BCM2836
7
8 include "arch/arm/pic/files.pic"
9
10 define bcmmboxbus { }
11
12 file arch/arm/arm32/irq_dispatch.S
13 file arch/arm/broadcom/bcm2835_dma.c
14 file arch/arm/broadcom/bcm2835_mbox_subr.c
15
16 # OBIO just an attach point
17 device obio { [addr=-1], [size=0], [intr=-1]
18 } : bus_space_generic, pic, pic_splfuncs
19 attach obio at mainbus
20 file arch/arm/broadcom/bcm2835_obio.c obio needs-count
21
22 # OBIO files
23 file arch/arm/broadcom/bcm2835_space.c obio
24 file arch/arm/arm/bus_space_a4x.S obio
25
26 # ARMv7 Generic Timer
27 device armgtmr
28 attach armgtmr at obio
29 file arch/arm/cortex/gtmr.c armgtmr
30
31 # Interrupt Controller (BCM2835_ARMICU_BASE) #, pic_splfuncs
32 device bcmicu: pic, pic_splfuncs
33 attach bcmicu at obio with bcmicu
34 file arch/arm/broadcom/bcm2835_intr.c bcmicu
35
36 # VC Mailbox (BCM2835_ARMMBOX_BASE)
37 device bcmmbox: bcmmboxbus
38 attach bcmmbox at obio with bcmmbox
39 file arch/arm/broadcom/bcm2835_mbox.c bcmmbox
40
41 # System Timer (BCM2835_TIMER_BASE)
42 device bcmtmr
43 attach bcmtmr at obio with bcmtmr_amba
44 file arch/arm/broadcom/bcm2835_tmr.c bcmtmr & !bcm2836
45
46 # Power Management, Reset Controller, and Watchdog (BCM2835_PM_BASE)
47 device bcmpm: sysmon_wdog
48 attach bcmpm at obio with bcmpm_amba
49 file arch/arm/broadcom/bcm2835_pm.c bcmpm
50
51 # Random number generator (BCM2835_RNG_BASE)
52 device bcmrng
53 attach bcmrng at obio with bcmrng_amba
54 file arch/arm/broadcom/bcm2835_rng.c bcmrng
55
56 # UART Interface (BCM2835_UART0_BASE)
57 attach plcom at obio with bcmplcom
58 file arch/arm/broadcom/bcm2835_plcom.c bcmplcom
59
60 # External Mass Media Controller (BCM2835_EMMC_BASE)
61 attach sdhc at obio with bcmemmc
62 file arch/arm/broadcom/bcm2835_emmc.c bcmemmc
63
64 # SD Host Controller (BCM2835_SDHOST_BASE)
65 device sdhost: sdmmcbus
66 attach sdhost at obio with bcmsdhost
67 file arch/arm/broadcom/bcm2835_sdhost.c bcmsdhost needs-flag
68
69 # DMA Controller (BCM2835_DMA0_BASE)
70 device bcmdmac
71 attach bcmdmac at obio with bcmdmac_amba
72 file arch/arm/broadcom/bcm2835_dmac.c bcmdmac needs-flag
73
74 # USB (BCM2835_USB_BASE)
75 attach dwctwo at obio with bcmdwctwo
76 file arch/arm/broadcom/bcm2835_dwctwo.c bcmdwctwo needs-flag
77
78 # GPIO misc. functions
79 define bcm2835_gpio_subr
80 file arch/arm/broadcom/bcm2835_gpio_subr.c bcm2835_gpio_subr
81
82 # SPI controller (BCM2835_SPI0_BASE)
83 device bcmspi: spibus, bcm2835_gpio_subr
84 attach bcmspi at obio
85 file arch/arm/broadcom/bcm2835_spi.c bcmspi needs-flag
86
87 # BSC (I2C) controller (BCM2835_BSC[01]_BASE)
88 device bsciic: i2cbus, bcm2835_gpio_subr
89 attach bsciic at obio
90 file arch/arm/broadcom/bcm2835_bsc.c bsciic needs-flag
91
92 # Generic framebuffer console driver
93 attach genfb at obio with bcmgenfb: edid
94 file arch/arm/broadcom/bcm2835_genfb.c bcmgenfb needs-flag
95
96 # VCHIQ
97 include "external/bsd/vchiq/conf/files.vchiq"
98
99 # VC audio
100 device vcaudio: audiobus, auconv, mulaw, aurateconv, auvolconv
101 attach vcaudio at vchiqbus
102 file arch/arm/broadcom/bcm2835_vcaudio.c vcaudio
103
104 # GPIO
105 device bcmgpio: gpiobus
106 attach bcmgpio at obio
107 file arch/arm/broadcom/bcm2835_gpio.c
108
109 # Clock Manager (BCM2835_CM_BASE)
110 device bcmcm
111 attach bcmcm at obio with bcmcm_amba
112 file arch/arm/broadcom/bcm2835_cm.c bcmcm needs-flag
113
114 # PWM Controller (BCM2835_PWM_BASE)
115 device bcmpwm
116 attach bcmpwm at obio with bcmpwm_amba
117 file arch/arm/broadcom/bcm2835_pwm.c bcmpwm needs-flag
118
119