xref: /netbsd-src/sys/dev/marvell/files.discovery (revision 2685996b0ecfa62e9cdfc698150a0a79d02d2e7f)
1*2685996bSthorpej#	$NetBSD: files.discovery,v 1.23 2021/04/24 23:36:56 thorpej Exp $
2ff2281b4Smatt#
3ff2281b4Smatt# Config file and device description for machine-independent support for
4a98d1a33Snisimura# the Marvell (formerly Galileo Technology) Discovery system controllers.
5ff2281b4Smatt#
6ff2281b4Smatt# Ports that include this must also supply some glue code of their own.
7ff2281b4Smatt# Notably:
8ff2281b4Smatt#	* devices here are indirectly configured by the configuration
9a98d1a33Snisimura# 	  file since different systems will be configured somewhat
10ff2281b4Smatt#	  differently,
11ff2281b4Smatt#	* The Multi-Purpose Port (MPP) is configured differently on
12ff2281b4Smatt#	  different systems,
13ff2281b4Smatt#	* CPU attachment is handled in largely a machine-independent
14ff2281b4Smatt#	  fashion,
15ff2281b4Smatt#	* The interrupts on different systems will be handled differently.
16ff2281b4Smatt#
17ff2281b4Smatt# Systems with multiple GT controllers are not currently handled by this
18ff2281b4Smatt# code.
19ff2281b4Smatt
20a69a0868Smattdefparam	opt_marvell.h	MPSC_CONSOLE
21ff2281b4Smattdefparam	opt_marvell.h	GT_MPSC_DEFAULT_BAUD_RATE
22a69a0868Smattdefparam	opt_marvell.h	GT_MPSC_FREQUENCY GT_MPSC_CLOCK_SOURCE
23a748aedcSkiyoharadefparam	opt_marvell.h	GT_MPP_WATCHDOG
24a748aedcSkiyoharadefflag 	opt_marvell.h	GT_DEVBUS GT_ECC GT_COMM GT_WATCHDOG
25ff2281b4Smatt
26*2685996bSthorpejdevice	gt { [unit = -1], [offset = -1], [irq = -1] }
27ff2281b4Smattfile	dev/marvell/gt.c		gt
28ff2281b4Smatt
29a748aedcSkiyohara# PCI Interface
308fd40ab4Sdrochnerdevice	gtpci: pcibus
31f99b65b3Skiyoharafile	dev/marvell/gtpci.c		gtpci & (gtpci_gt|gtpci_mbus) needs-flag
32a748aedcSkiyoharaattach	gtpci at gt with gtpci_gt
33a748aedcSkiyohara
34a748aedcSkiyohara# PCI Express Interface
35f99b65b3Skiyoharadevice	mvpex: pcibus
36f99b65b3Skiyoharafile	dev/marvell/mvpex.c		mvpex & (mvpex_gt|mvpex_mbus) needs-flag
37f99b65b3Skiyoharaattach	mvpex at gt with mvpex_gt
38ff2281b4Smatt
39ff2281b4Smatt# Fast ethernet
40*2685996bSthorpejdevice	gfec { [port = -1], [irq = -1] }
41a748aedcSkiyoharaattach	gfec at gt
42ff2281b4Smattdevice	gfe: ether, ifnet, arp, mii
43a748aedcSkiyoharaattach	gfe at gfec
44a748aedcSkiyoharafile	dev/marvell/if_gfe.c		gfec | gfe
45ff2281b4Smatt
46a748aedcSkiyohara# Multi-Protocol Serial controller
47ff2281b4Smattdevice	gtmpsc: tty
48ff2281b4Smattattach	gtmpsc at gt
49ff2281b4Smattfile	dev/marvell/gtmpsc.c		gtmpsc needs-flag
50ff2281b4Smatt
51*2685996bSthorpejdevice	obio { [offset = -1], [size = 0], [irq = -1] }
5208ea2a49Smattattach	obio at gt
5308ea2a49Smattfile	dev/marvell/obio.c		obio
54411c843bSmatt
55a748aedcSkiyohara# Serial-ATA II Host Controller (SATAHC)
568406aeecSkiyoharaattach	mvsata at gt with mvsata_gt
578406aeecSkiyoharafile	dev/marvell/mvsata_mv.c		mvsata_gt | mvsata_mbus
58a748aedcSkiyohara
59a748aedcSkiyohara# Gigabit Ethernet Controller Interface
60*2685996bSthorpejdevice	mvgbec { [port = -1], [irq = -1] }
613224e25aSkiyoharaattach	mvgbec at gt with mvgbec_gt
623224e25aSkiyoharadevice	mvgbe: ether, ifnet, arp, mii
633224e25aSkiyoharaattach	mvgbe at mvgbec
643224e25aSkiyoharafile	dev/marvell/if_mvgbe.c		mvgbec | mvgbe
65a748aedcSkiyohara
66a748aedcSkiyohara# USB 2.0 Interface
67d7b57ebbSkiyoharaattach	ehci at gt with mvusb_gt
68d7b57ebbSkiyoharafile	dev/marvell/ehci_mv.c		mvusb_gt | mvusb_mbus
69a748aedcSkiyohara
70a748aedcSkiyohara# Cryptographic Engines and Security Accelerator
71068a6eb9Skiyoharadevice	mvcesa: opencrypto
72068a6eb9Skiyoharafile	dev/marvell/mvcesa.c		mvcesa
73068a6eb9Skiyoharaattach	mvcesa at gt with mvcesa_gt
74a748aedcSkiyohara
75a748aedcSkiyohara# Two-Wire Serial Interface
7633c1c575Smattdevice	gttwsi: i2cbus, mvi2c
77a748aedcSkiyoharafile	dev/marvell/gttwsi.c		gttwsi
78a748aedcSkiyoharaattach	gttwsi at gt with gttwsi_gt
79a748aedcSkiyohara
80a748aedcSkiyohara# UART Interface
81f99b65b3Skiyoharaattach	com at gt with mvuart_gt
82f99b65b3Skiyoharafile	dev/marvell/com_mv.c		mvuart_gt | mvuart_mbus
83a748aedcSkiyohara
84a748aedcSkiyohara# IDMA Controller and XOR Engine
85a5e8bd5fSkiyoharadevice	gtidmac: dmover_service
86c1903f84Skiyoharafile	dev/marvell/gtidmac.c		gtidmac
87a5e8bd5fSkiyoharaattach	gtidmac at gt with gtidmac_gt
88c9cd5538Skiyohara
89c9cd5538Skiyohara# Secure Digital Input/Output (SDIO) Interface
90c9cd5538Skiyoharadevice	mvsdio: sdmmcbus
91c9cd5538Skiyoharafile	dev/marvell/mvsdio.c		mvsdio
92c9cd5538Skiyoharadefparam	opt_mvsdio.h		MVSDIO_CARD_DETECT
93c9cd5538Skiyohara					MVSDIO_WRITE_PROTECT
94866b7671Skiyohara
95866b7671Skiyohara# SPI Serial Peripheral Interface
96866b7671Skiyoharadevice 	mvspi: spibus
97866b7671Skiyoharafile	dev/marvell/mvspi.c		mvspi
98