xref: /netbsd/sys/dev/marvell/files.discovery (revision 6550d01e)
1#	$NetBSD: files.discovery,v 1.18 2010/10/02 05:53:37 kiyohara Exp $
2#
3# Config file and device description for machine-independent support for
4# the Marvell (formerly Galileo Technology) Discovery system controllers.
5#
6# Ports that include this must also supply some glue code of their own.
7# Notably:
8#	* devices here are indirectly configured by the configuration
9# 	  file since different systems will be configured somewhat
10#	  differently,
11#	* The Multi-Purpose Port (MPP) is configured differently on
12#	  different systems,
13#	* CPU attachment is handled in largely a machine-independent
14#	  fashion,
15#	* The interrupts on different systems will be handled differently.
16#
17# Systems with multiple GT controllers are not currently handled by this
18# code.
19
20defparam	opt_marvell.h	MPSC_CONSOLE
21defparam	opt_marvell.h	GT_MPSC_DEFAULT_BAUD_RATE
22defparam	opt_marvell.h	GT_MPSC_FREQUENCY GT_MPSC_CLOCK_SOURCE
23defparam	opt_marvell.h	GT_MPP_WATCHDOG
24defflag 	opt_marvell.h	GT_DEVBUS GT_ECC GT_COMM GT_WATCHDOG
25
26define	gt { [unit = -1], [offset = -1], [irq = -1] }
27device	gt: gt
28file	dev/marvell/gt.c		gt
29
30# PCI Interface
31device	gtpci: pcibus
32file	dev/marvell/gtpci.c		gtpci & (gtpci_gt|gtpci_mbus) needs-flag
33attach	gtpci at gt with gtpci_gt
34
35# PCI Express Interface
36device	mvpex: pcibus
37file	dev/marvell/mvpex.c		mvpex & (mvpex_gt|mvpex_mbus) needs-flag
38attach	mvpex at gt with mvpex_gt
39
40# Fast ethernet
41define	gfec { [port = -1], [irq = -1] }
42device	gfec: gfec
43attach	gfec at gt
44device	gfe: ether, ifnet, arp, mii
45attach	gfe at gfec
46file	dev/marvell/if_gfe.c		gfec | gfe
47
48# Multi-Protocol Serial controller
49device	gtmpsc: tty
50attach	gtmpsc at gt
51file	dev/marvell/gtmpsc.c		gtmpsc needs-flag
52
53define	obio { [offset = -1], [size = 0], [irq = -1] }
54device	obio: obio
55attach	obio at gt
56file	dev/marvell/obio.c		obio
57
58# Serial-ATA II Host Controller (SATAHC)
59attach	mvsata at gt with mvsata_gt
60file	dev/marvell/mvsata_mv.c		mvsata_gt | mvsata_mbus
61
62# Gigabit Ethernet Controller Interface
63define	mvgbec { [port = -1], [irq = -1] }
64device	mvgbec: mvgbec
65attach	mvgbec at gt with mvgbec_gt
66device	mvgbe: ether, ifnet, arp, mii
67attach	mvgbe at mvgbec
68file	dev/marvell/if_mvgbe.c		mvgbec | mvgbe
69
70# USB 2.0 Interface
71attach	ehci at gt with mvusb_gt
72file	dev/marvell/ehci_mv.c		mvusb_gt | mvusb_mbus
73
74# Cryptographic Engines and Security Accelerator
75#device	mvcesa: opencrypto
76#file	dev/marvell/mvcesa.c		mvcesa
77#attach	mvcesa at gt with mvcesa_gt
78
79# Two-Wire Serial Interface
80device	gttwsi: i2cbus
81file	dev/marvell/gttwsi.c		gttwsi
82attach	gttwsi at gt with gttwsi_gt
83
84# UART Interface
85attach	com at gt with mvuart_gt
86file	dev/marvell/com_mv.c		mvuart_gt | mvuart_mbus
87
88# IDMA Controller and XOR Engine
89device	gtidmac: dmover_service
90file	dev/marvell/gtidmac.c		gtidmac
91attach	gtidmac at gt with gtidmac_gt
92
93# Secure Digital Input/Output (SDIO) Interface
94device	mvsdio: sdmmcbus
95file	dev/marvell/mvsdio.c		mvsdio
96defparam	opt_mvsdio.h		MVSDIO_CARD_DETECT
97					MVSDIO_WRITE_PROTECT
98