qe_lib: Add common files
PATCH 1/9 qe_lib: Add common files
Signed-off-by Shlomi Gridish <[email protected]>
Signed-off-by Li Yang <[email protected]>
Signed-off-by Kim Phillips <[email protected]>
---
arch/powerpc/Kconfig | 12 + arch/powerpc/sysdev/Makefile | 1 arch/powerpc/sysdev/qe_lib/Kconfig | 29 ++ arch/powerpc/sysdev/qe_lib/Makefile | 8 + arch/powerpc/sysdev/qe_lib/qe_common.c | 362 ++++++++++++++++++++++++ include/asm-powerpc/qe.h | 492 ++++++++++++++++++++++++++++++++ 6 files changed, 904 insertions(+), 0 deletions(-)
arch/powerpc/Kconfig +0 -0
@@ -355,6 +355,16 @@ config APUS
<http://linux-apus.sourceforge.net/>.
endchoice
+config QUICC_ENGINE
+ bool
+ depends on PPC_MPC836x
+ default y
+ help
+ The QE(QUICC Engine) is a new generation of coprocessor on + Freescale embedded CPUs(like CPM in older chips). Selecting + this option means that you wish to build a kernel for a machine + with QE coprocessor on it. + config PPC_PSERIES depends on PPC_MULTIPLATFORM && PPC64 bool "IBM pSeries & new (POWER5-based) iSeries"
@@ -1047,6 +1057,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 +0 -0
@@ -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
arch/powerpc/sysdev/qe_lib/Kconfig new file +29 -0
@@ -0,0 +1,29 @@ +# +# QE Communication options +# + +menu "QE Options" + depends on QUICC_ENGINE + +config UCC_SLOW + bool "UCC Slow Protocols Support" + default n + select UCC + help + This option provides qe_lib support to UCC slow + protocols: UART, BISYNC, QMC + +config UCC_FAST + bool "UCC Fast Protocols Support" + default n + select UCC + help + This option provides qe_lib support to UCC fast + protocols: HDLC, Ethernet, ATM, transparent + +config UCC + bool + default y if UCC_FAST || UCC_SLOW + +endmenu +
arch/powerpc/sysdev/qe_lib/Makefile new file +8 -0
@@ -0,0 +1,8 @@ +# +# Makefile for the linux ppc-specific parts of QE +# +obj-$(CONFIG_QUICC_ENGINE)+= qe_common.o qe.o qe_ic.o qe_io.o + +obj-$(CONFIG_UCC) += ucc.o +obj-$(CONFIG_UCC_SLOW) += ucc_slow.o +obj-$(CONFIG_UCC_FAST) += ucc_fast.o ucc_slow.o
arch/powerpc/sysdev/qe_lib/qe_common.c new file +362 -0
362 lines not on this page · raw message
include/asm-powerpc/qe.h new file +489 -0
489 lines not on this page · raw message