qe_lib: Add common files
PATCH 2/12 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/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 | 487 ++++++++++++++++++++++++++++++++ 5 files changed, 887 insertions(+), 0 deletions(-)
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 +484 -0
484 lines not on this page · raw message