Skip to contentSkip to conversation

qe_lib: Add common files

PATCH In review Li Yang 1 participant 1 message Sep 28, 2006 PowerPC

lore
Share & tools
lore

Li Yang

author
#0 lore raw

PATCH 2/12 qe_lib: Add common files

---

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
index e5e999e..c6e5b31 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

arch/powerpc/sysdev/qe_lib/Kconfig new file +29 -0
new file mode 100644
index 0000000..28487e4
@@ -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
new file mode 100644
index 0000000..9a54a81
@@ -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