]> git.baikalelectronics.ru Git - kernel.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>
Thu, 24 Nov 2011 08:01:34 +0000 (02:01 -0600)
commit12796ecb0b194c223d0aeb4e51ab82d15b0af7f0
tree761f559ad55b2c72f01ce9c59280f2168a677358
parent74546289ff0757434364f780fcd7948b999be61e
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]