1#         $NetBSD: files.imx31,v 1.8 2017/09/08 05:29:12 hkenken Exp $
2#
3# Configuration info for the Freescale i.MX31
4#
5
6defparam opt_imx.h                                MEMSIZE
7defflag opt_imx.h                                 IMX51
8
9define    bus_dma_generic
10
11file      arch/arm/imx/imx_space.c
12file      arch/arm/imx/imx_dma.c                  bus_dma_generic
13
14# iMX L2 Cache Controller
15device    l2cc
16attach    l2cc at mainbus
17file      arch/arm/imx/imx31_l2cc.c               l2cc
18
19# iMX AHB
20device    ahb  { [addr=-1], [size=0], [intr=-1], [irqbase=-1]} : bus_space_generic
21attach    ahb at mainbus
22file      arch/arm/imx/imx31_ahb.c                ahb
23
24# iMX AdVanced Interrupt Controller
25include "arch/arm/pic/files.pic"
26device    avic: pic, pic_splfuncs
27attach    avic at ahb
28file      arch/arm/imx/imx31_icu.c                avic                needs-flag
29file      arch/arm/arm32/irq_dispatch.S
30
31# iMX IP bus
32device    aips { [addr=-1], [size=0], [intr=-1]} : bus_space_generic
33attach    aips at ahb
34file      arch/arm/imx/imx31_aips.c               aips
35
36# iMX EMI (external memory interface)
37device    emi { [offset=-1], [size=0], [intr=-1] } : bus_space_generic
38attach    emi at ahb
39file      arch/arm/imx/imx31_emi.c                emi
40
41# iMX GPIO
42device    imxgpio: gpiobus
43attach    imxgpio at ahb
44file      arch/arm/imx/imx31_gpio.c               imxgpio             needs-flag
45
46# iMX M3IF - Multi Master Memory Interface
47# iMX ESDCTL/MDDRC - Enhanced SDRAM/LPDDR memory controller
48# iMX PCMCIA - PCMCIA memory controller
49# iMX NANDFC - NAND Flash memory controller
50# iMX WEIM - Wireless External Interface Module
51
52# iMX clock
53file      arch/arm/imx/imxclock.c
54file      arch/arm/imx/imx31_clock.c
55
56# Clock Control Module
57device    imxccm
58attach    imxccm    at aips
59file      arch/arm/imx/imx31_ccm.c      imxccm              needs-flag
60
61defparam opt_imx31clk.h IMX31_IPGCLK_FREQ
62
63# iMX UART
64device    imxuart
65attach    imxuart at aips with imx31_uart
66file      arch/arm/imx/imxuart.c                            imxuart   needs-flag
67file      arch/arm/imx/imx31_uart.c               imx31_uart
68defflag   opt_imxuart.h                                     IMXUARTCONSOLE
69
70attach    ehci at ahb with ehci_ahb : bus_dma_generic
71file      arch/arm/imx/echi_ahb.c                           ehci_ahb
72
73attach    ohci at ahb with ohci_ahb : bus_dma_generic
74file      arch/arm/imx/ochi_ahb.c                           ohci_ahb
75
76attach    wdc at ahb with wdc_ahb : bus_dma_generic
77file      arch/arm/imx/wdc_ahb.c                            wdc_ahb
78