MIPS: Netlogic: Support for XLR/XLS Fast Message Network
authorGanesan Ramalingam <ganesanr@broadcom.com>
Wed, 31 Oct 2012 12:01:42 +0000 (12:01 +0000)
committerJohn Crispin <blogic@openwrt.org>
Fri, 9 Nov 2012 10:37:20 +0000 (11:37 +0100)
commited21cfe207276e2d2883173399dd0380db372e18
tree99382401195a5163fc6fd2191d786034512aa874
parent38541742da05f65d77e514a70bae9b84251c4bc4
MIPS: Netlogic: Support for XLR/XLS Fast Message Network

On XLR/XLS, the cpu cores communicate with fast on-chip devices
(e.g. network accelerator, security engine etc.) using the Fast
Messaging Network(FMN). The FMN queues and credits needs to be
configured and intialized before it can be used.

The co-processor 2 on XLR/XLS CPU cores has registers for FMN access,
and the XLR/XLS has custom instructions for sending and loading
messages.  The FMN can deliver also per-cpu interrupts when messages
are available at the CPU.

This patch adds FMN initialization, adds interrupt setup and handling,
and also provides support for sending and receiving FMN messages.

Signed-off-by: Ganesan Ramalingam <ganesanr@broadcom.com>
Signed-off-by: Jayachandran C <jchandra@broadcom.com>
Patchwork: http://patchwork.linux-mips.org/patch/4468
Signed-off-by: John Crispin <blogic@openwrt.org>
12 files changed:
arch/mips/include/asm/netlogic/common.h
arch/mips/include/asm/netlogic/interrupt.h
arch/mips/include/asm/netlogic/mips-extns.h
arch/mips/include/asm/netlogic/xlr/fmn.h [new file with mode: 0644]
arch/mips/include/asm/netlogic/xlr/xlr.h
arch/mips/netlogic/common/irq.c
arch/mips/netlogic/common/smp.c
arch/mips/netlogic/xlp/setup.c
arch/mips/netlogic/xlr/Makefile
arch/mips/netlogic/xlr/fmn-config.c [new file with mode: 0644]
arch/mips/netlogic/xlr/fmn.c [new file with mode: 0644]
arch/mips/netlogic/xlr/setup.c