]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fsl-rio: Split rio driver into two parts, RapidIO endpoint and message unit
authorLiu Gang <Gang.Liu@freescale.com>
Sat, 12 Nov 2011 12:02:28 +0000 (20:02 +0800)
committerKumar Gala <galak@kernel.crashing.org>
Sun, 20 Nov 2011 16:03:31 +0000 (10:03 -0600)
commitd86bca8c246128905d552bcb2d25a6311bfe3db1
tree14d3da9eaaea000b9dd685ca913ff1a5d9e5da69
parentee39872e314813446a19183459845f36b6f997f2
fsl-rio: Split rio driver into two parts, RapidIO endpoint and message unit

The Freescale PowerPC RapidIO controller consists of a RapidIO endpoint and
a RapidIO message unit(RMU). Or use RapidIO message manager(RMan) to
replace the RMU in DPAA architecture. Therefore, we should split the code
into two function modules according to the hardware architecture. Add new
struct for RMU module, and new initialization function to set up RMU
module. This policy is very conducive to adding new module like RMan, or
adding multi-ports or message units support.

Signed-off-by: Lian Minghuan <Minghuan.Lian@freescale.com>
Signed-off-by: Liu Gang <Gang.Liu@freescale.com>
Acked-by: Alexandre Bounine <alexandre.bounine@idt.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/sysdev/Makefile
arch/powerpc/sysdev/fsl_rio.c
arch/powerpc/sysdev/fsl_rio.h [new file with mode: 0644]
arch/powerpc/sysdev/fsl_rmu.c [new file with mode: 0644]