Skip to contentSkip to conversation

UCC based TDM driver for MPC83xx platforms.

PATCH In review Poonam_Aggrwal-b10812 1 participant 1 message Dec 10, 2007

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/3 UCC based TDM driver for MPC83xx platforms.

From: Poonam Agarwal-b10812 <[email protected]>

The UCC TDM driver basically multiplexes and demultiplexes data from different channels. It can interface with for example SLIC kind of devices to receive TDM data demultiplex it and send to upper applications. At the transmit end it receives data for different channels multiplexes it and sends them on the TDM channel. It internally uses TSA( Time Slot Assigner) which does multiplexing and demultiplexing, UCC to perform SDMA between host buffers and the TSA, CMX to connect TSA to UCC.

This driver will run on MPC8323E-RDB platforms.

---

 drivers/misc/Kconfig   |   21 +
 drivers/misc/Makefile  |    1 +
 drivers/misc/ucc_tdm.c | 1068 ++++++++++++++++++++++++++++++++++++++++++++++++
 drivers/misc/ucc_tdm.h |  227 ++++++++++
 4 files changed, 1317 insertions(+), 0 deletions(-)
 create mode 100644 drivers/misc/ucc_tdm.c
 create mode 100644 drivers/misc/ucc_tdm.h
drivers/misc/Kconfig +21 -0
index b5e67c0..698a72c 100644
@@ -219,6 +219,27 @@ config THINKPAD_ACPI_BAY
 
 	  If you are not sure, say Y here.
 
+config UCC_TDM
+	bool "Freescale UCC  TDM Driver"
+	depends on QUICC_ENGINE && UCC_FAST
+	default n
+	---help---
+	  The TDM driver is for UCC based TDM devices for example, TDM device on
+	  MPC832x RDB. Select it to run PowerVoIP on MPC832x RDB board.
+	  The TDM driver can interface with SLIC kind of devices to transmit
+	  and receive TDM samples. The TDM driver receives Time Division
+	  multiplexed samples(for different channels) from the SLIC device,
+	  demutiplexes them and sends them to the upper layers. At the transmit
+	  end the TDM drivers receives samples for different channels, it
+	  multiplexes them and sends them to the SLIC device.
+
+config TDM_LINEAR_PCM
+	bool "Linear PCM mode"
+	depends on UCC_TDM
+	---help---
+	  This mode should be selected if the TDM driver interface with the
+	  SLIC device is linear PCM(e.g. 16 bit samples). If not selected the
+	  interface will be 8 bit u-law.
 
 config ATMEL_SSC
 	tristate "Device driver for Atmel SSC peripheral"
drivers/misc/Makefile +1 -0
index 87f2685..6f0c49d 100644
@@ -17,3 +17,4 @@ obj-$(CONFIG_SONY_LAPTOP)	+= sony-laptop.o
 obj-$(CONFIG_THINKPAD_ACPI)	+= thinkpad_acpi.o
 obj-$(CONFIG_FUJITSU_LAPTOP)	+= fujitsu-laptop.o
 obj-$(CONFIG_EEPROM_93CX6)	+= eeprom_93cx6.o
+obj-$(CONFIG_UCC_TDM)		+= ucc_tdm.o
drivers/misc/ucc_tdm.c new file +1068 -0

1,068 lines not on this page · raw message

drivers/misc/ucc_tdm.h new file +227 -0

227 lines not on this page · raw message

Signature · 1 line
1.5.2.4