mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 00:25:33 +07:00
5bc7f990cd
On the Turris Mox router different modules can be connected to the main CPU board: currently a module with a SFP cage, a module with MiniPCIe connector, a PCIe pass-through MiniPCIe connector module, a 4-port switch module, an 8-port switch module, and a 4-port USB3 module. For example: [CPU]-[PCIe-pass-through]-[PCIe]-[8-port switch]-[8-port switch]-[SFP] Each of this modules has an input and output shift register, and these are connected via SPI to the CPU board. Via SPI we are able to discover which modules are connected, in which order, and we can also read some information about the modules (eg. their interrupt status), and configure them. From each module 8 bits can be read (of which low 4 bits identify the module) and 8 bits can be written. For example from the module with a SFP cage we can read the LOS, TX-FAULT and MOD-DEF0 signals, while we can write TX-DISABLE and RATE-SELECT signals. This driver creates a new bus type, called "moxtet". For each Mox module it finds via SPI, it creates a new device on the moxtet bus so that drivers can be written for them. It also implements a virtual interrupt controller for the modules which send their interrupt status over the SPI shift register. These modules do this in addition to sending their interrupt status via the shared interrupt line. When the shared interrupt is triggered, we read from the shift register and handle IRQs for all devices which are in interrupt. The topology of how Mox modules are connected can then be read by listing /sys/bus/moxtet/devices. Link: https://lore.kernel.org/r/20190812161118.21476-2-marek.behun@nic.cz Signed-off-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
36 lines
1.1 KiB
Makefile
36 lines
1.1 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Makefile for the bus drivers.
|
|
#
|
|
|
|
# Interconnect bus drivers for ARM platforms
|
|
obj-$(CONFIG_ARM_CCI) += arm-cci.o
|
|
|
|
obj-$(CONFIG_HISILICON_LPC) += hisi_lpc.o
|
|
obj-$(CONFIG_BRCMSTB_GISB_ARB) += brcmstb_gisb.o
|
|
obj-$(CONFIG_MOXTET) += moxtet.o
|
|
|
|
# DPAA2 fsl-mc bus
|
|
obj-$(CONFIG_FSL_MC_BUS) += fsl-mc/
|
|
|
|
obj-$(CONFIG_IMX_WEIM) += imx-weim.o
|
|
obj-$(CONFIG_MIPS_CDMM) += mips_cdmm.o
|
|
obj-$(CONFIG_MVEBU_MBUS) += mvebu-mbus.o
|
|
|
|
# Interconnect bus driver for OMAP SoCs.
|
|
obj-$(CONFIG_OMAP_INTERCONNECT) += omap_l3_smx.o omap_l3_noc.o
|
|
|
|
obj-$(CONFIG_OMAP_OCP2SCP) += omap-ocp2scp.o
|
|
obj-$(CONFIG_QCOM_EBI2) += qcom-ebi2.o
|
|
obj-$(CONFIG_SUN50I_DE2_BUS) += sun50i-de2.o
|
|
obj-$(CONFIG_SUNXI_RSB) += sunxi-rsb.o
|
|
obj-$(CONFIG_SIMPLE_PM_BUS) += simple-pm-bus.o
|
|
obj-$(CONFIG_TEGRA_ACONNECT) += tegra-aconnect.o
|
|
obj-$(CONFIG_TEGRA_GMI) += tegra-gmi.o
|
|
obj-$(CONFIG_TI_SYSC) += ti-sysc.o
|
|
obj-$(CONFIG_TS_NBUS) += ts-nbus.o
|
|
obj-$(CONFIG_UNIPHIER_SYSTEM_BUS) += uniphier-system-bus.o
|
|
obj-$(CONFIG_VEXPRESS_CONFIG) += vexpress-config.o
|
|
|
|
obj-$(CONFIG_DA8XX_MSTPRI) += da8xx-mstpri.o
|