Skip to contentSkip to conversation

Add QUICC Engine (QE) infrastructure

PATCH New Kim Phillips 1 participant 1 message Oct 3, 2006 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add QUICC Engine (QE) infrastructure

From: Li Yang <[email protected]>

note: linuxppc-dev rejected patch 2/7, so I split 2/7 into two, of which this is the second and last.

Add QUICC Engine (QE) configuration, header files, and QE management and library code that are used by QE devices drivers.

Includes Leo's modifications up to, and including, the platform_device to of_device adaptation:

"The series of patches add generic QE infrastructure called qe_lib, and MPC8360EMDS board support. Qe_lib is used by QE device drivers such as ucc_geth driver.

This version updates QE interrupt controller to use new irq mapping mechanism, addresses all the comments received with last submission and includes some style fixes.

v2: Change to use device tree for BCSR and MURAM; Remove I/O port interrupt handling code as it is not generic enough.

v3: Address comments from Kumar; Update definition of several device tree nodes; Copyright style change."

In addition, the following changes have been made:

o removed typedefs
o uint -> u32 conversions
o removed following defines:
QE_SIZEOF_BD, BD_BUFFER_ARG, BD_BUFFER_CLEAR, BD_BUFFER, BD_STATUS_AND_LENGTH_SET, BD_STATUS_AND_LENGTH, and BD_BUFFER_SET because they hid sizeof/in_be32/out_be32 operations from the reader.
o fixed qe_snums_init() serial num assignment to use a const array
o made CONFIG_UCC_FAST select UCC_SLOW
o reduced NR_QE_IC_INTS from 128 to 64
o remove _IO_BASE, etc. defines (not used)
o removed irrelevant comments, added others to resemble removed BD_ defines
o realigned struct definitions in headers
o various other style fixes including things like pinMask -> pin_mask
o fixed a ton of whitespace issues

---
 arch/powerpc/Kconfig           |   12 +
 arch/powerpc/sysdev/Makefile   |    1 
 include/asm-powerpc/immap_qe.h |  485 ++++++++++++++++++++++++++++++++++++++++
 include/asm-powerpc/qe.h       |  457 ++++++++++++++++++++++++++++++++++++++
 include/asm-powerpc/qe_ic.h    |   64 +++++
 include/asm-powerpc/ucc.h      |   84 +++++++
 include/asm-powerpc/ucc_fast.h |  243 ++++++++++++++++++++
 include/asm-powerpc/ucc_slow.h |  289 ++++++++++++++++++++++++
 include/linux/fsl_devices.h    |   65 ++++-
 9 files changed, 1686 insertions(+), 14 deletions(-)
arch/powerpc/Kconfig +12 -0
index de1ef2f..e1dbe7f 100644
@@ -355,6 +355,16 @@ config APUS
 	  <http://linux-apus.sourceforge.net/>.
 endchoice
 
+config QUICC_ENGINE
+	bool
+	depends on PPC_MPC836x
+	default y
+	help
+	  The QUICC Engine (QE) is a new generation of communications
+	  coprocessors on Freescale embedded CPUs (akin to CPM in older chips).
+	  Selecting this option means that you wish to build a kernel
+	  for a machine with a QE coprocessor.
+
 config PPC_PSERIES
 	depends on PPC_MULTIPLATFORM && PPC64
 	bool "IBM pSeries & new (POWER5-based) iSeries"
@@ -1059,6 +1069,8 @@ # XXX source "arch/ppc/8xx_io/Kconfig"
 
 # XXX source "arch/ppc/8260_io/Kconfig"
 
+source "arch/powerpc/sysdev/qe_lib/Kconfig"
+
 source "arch/powerpc/platforms/iseries/Kconfig"
 
 source "lib/Kconfig"
arch/powerpc/sysdev/Makefile +1 -0
index f15f4d7..91f052d 100644
@@ -12,6 +12,7 @@ obj-$(CONFIG_MMIO_NVRAM)	+= mmio_nvram.o
 obj-$(CONFIG_FSL_SOC)		+= fsl_soc.o
 obj-$(CONFIG_PPC_TODC)		+= todc.o
 obj-$(CONFIG_TSI108_BRIDGE)	+= tsi108_pci.o tsi108_dev.o
+obj-$(CONFIG_QUICC_ENGINE)	+= qe_lib/
 
 ifeq ($(CONFIG_PPC_MERGE),y)
 obj-$(CONFIG_PPC_I8259)		+= i8259.o
include/asm-powerpc/immap_qe.h new file +485 -0

485 lines not on this page · raw message

include/asm-powerpc/qe.h new file +457 -0

457 lines not on this page · raw message

include/asm-powerpc/qe_ic.h new file +64 -0

64 lines not on this page · raw message

include/asm-powerpc/ucc.h new file +84 -0

84 lines not on this page · raw message

include/asm-powerpc/ucc_fast.h new file +243 -0

243 lines not on this page · raw message

include/asm-powerpc/ucc_slow.h new file +289 -0

289 lines not on this page · raw message

include/linux/fsl_devices.h +51 -14

97 lines not on this page · raw message

Signature · 1 line
1.4.2.3