Home | History | Annotate | Line # | Download | only in marvell
      1 #	$NetBSD: files.discovery,v 1.23 2021/04/24 23:36:56 thorpej 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 
     20 defparam	opt_marvell.h	MPSC_CONSOLE
     21 defparam	opt_marvell.h	GT_MPSC_DEFAULT_BAUD_RATE
     22 defparam	opt_marvell.h	GT_MPSC_FREQUENCY GT_MPSC_CLOCK_SOURCE
     23 defparam	opt_marvell.h	GT_MPP_WATCHDOG
     24 defflag 	opt_marvell.h	GT_DEVBUS GT_ECC GT_COMM GT_WATCHDOG
     25 
     26 device	gt { [unit = -1], [offset = -1], [irq = -1] }
     27 file	dev/marvell/gt.c		gt
     28 
     29 # PCI Interface
     30 device	gtpci: pcibus
     31 file	dev/marvell/gtpci.c		gtpci & (gtpci_gt|gtpci_mbus) needs-flag
     32 attach	gtpci at gt with gtpci_gt
     33 
     34 # PCI Express Interface
     35 device	mvpex: pcibus
     36 file	dev/marvell/mvpex.c		mvpex & (mvpex_gt|mvpex_mbus) needs-flag
     37 attach	mvpex at gt with mvpex_gt
     38 
     39 # Fast ethernet
     40 device	gfec { [port = -1], [irq = -1] }
     41 attach	gfec at gt
     42 device	gfe: ether, ifnet, arp, mii
     43 attach	gfe at gfec
     44 file	dev/marvell/if_gfe.c		gfec | gfe
     45 
     46 # Multi-Protocol Serial controller
     47 device	gtmpsc: tty
     48 attach	gtmpsc at gt
     49 file	dev/marvell/gtmpsc.c		gtmpsc needs-flag
     50 
     51 device	obio { [offset = -1], [size = 0], [irq = -1] }
     52 attach	obio at gt
     53 file	dev/marvell/obio.c		obio
     54 
     55 # Serial-ATA II Host Controller (SATAHC)
     56 attach	mvsata at gt with mvsata_gt
     57 file	dev/marvell/mvsata_mv.c		mvsata_gt | mvsata_mbus
     58 
     59 # Gigabit Ethernet Controller Interface
     60 device	mvgbec { [port = -1], [irq = -1] }
     61 attach	mvgbec at gt with mvgbec_gt
     62 device	mvgbe: ether, ifnet, arp, mii
     63 attach	mvgbe at mvgbec
     64 file	dev/marvell/if_mvgbe.c		mvgbec | mvgbe
     65 
     66 # USB 2.0 Interface
     67 attach	ehci at gt with mvusb_gt
     68 file	dev/marvell/ehci_mv.c		mvusb_gt | mvusb_mbus
     69 
     70 # Cryptographic Engines and Security Accelerator
     71 device	mvcesa: opencrypto
     72 file	dev/marvell/mvcesa.c		mvcesa
     73 attach	mvcesa at gt with mvcesa_gt
     74 
     75 # Two-Wire Serial Interface
     76 device	gttwsi: i2cbus, mvi2c
     77 file	dev/marvell/gttwsi.c		gttwsi
     78 attach	gttwsi at gt with gttwsi_gt
     79 
     80 # UART Interface
     81 attach	com at gt with mvuart_gt
     82 file	dev/marvell/com_mv.c		mvuart_gt | mvuart_mbus
     83 
     84 # IDMA Controller and XOR Engine
     85 device	gtidmac: dmover_service
     86 file	dev/marvell/gtidmac.c		gtidmac
     87 attach	gtidmac at gt with gtidmac_gt
     88 
     89 # Secure Digital Input/Output (SDIO) Interface
     90 device	mvsdio: sdmmcbus
     91 file	dev/marvell/mvsdio.c		mvsdio
     92 defparam	opt_mvsdio.h		MVSDIO_CARD_DETECT
     93 					MVSDIO_WRITE_PROTECT
     94 
     95 # SPI Serial Peripheral Interface
     96 device 	mvspi: spibus
     97 file	dev/marvell/mvspi.c		mvspi
     98