Initial commit of TDM core
PATCH 1/1 Initial commit of TDM core
Signed-off-by Michail Kurochkin <[email protected]>
--- drivers/staging/Kconfig | 4 + drivers/staging/Makefile | 4 +- drivers/staging/tdm/Kconfig | 38 ++ drivers/staging/tdm/Makefile | 19 + drivers/staging/tdm/tdm_core.c | 826 ++++++++++++++++++++++++++++++++++++++++ include/linux/tdm/tdm.h | 292 ++++++++++++++ 6 files changed, 1182 insertions(+), 1 deletions(-) create mode 100644 drivers/staging/tdm/Kconfig create mode 100644 drivers/staging/tdm/Makefile create mode 100644 drivers/staging/tdm/tdm_core.c create mode 100644 include/linux/tdm/tdm.h
drivers/staging/Kconfig +4 -0
@@ -26,6 +26,10 @@ if STAGING source "drivers/staging/et131x/Kconfig" +source "drivers/staging/si3226x/Kconfig" + +source "drivers/staging/tdm/Kconfig" + source "drivers/staging/slicoss/Kconfig" source "drivers/staging/usbip/Kconfig"
drivers/staging/Makefile +3 -1
@@ -1,4 +1,4 @@ -# Makefile for staging directory + # Makefile for staging directory # fix for build system bug... obj-$(CONFIG_STAGING) += staging.o
@@ -7,6 +7,8 @@ obj-y += media/ obj-y += net/ obj-$(CONFIG_ET131X) += et131x/ obj-$(CONFIG_SLICOSS) += slicoss/ +obj-$(CONFIG_SI3226X) += si3226x/ +obj-$(CONFIG_TDM) += tdm/ obj-$(CONFIG_USBIP_CORE) += usbip/ obj-$(CONFIG_W35UND) += winbond/ obj-$(CONFIG_PRISM2_USB) += wlan-ng/
drivers/staging/tdm/Kconfig new file +38 -0
@@ -0,0 +1,38 @@ +# +# TDM driver configuration +# +menuconfig TDM + bool "TDM support" + depends on HAS_IOMEM + help + Time-division multiplexing (TDM) is a type of digital (or rarely analog) + multiplexing in which two or more bit streams or signals are + transferred apparently simultaneously as sub-channels in one + communication channel, but are physically taking turns on the + channel. The time domain is divided into several recurrent + timeslots of fixed length, one for each sub-channel. A sample + byte or data block of sub-channel 1 is transmitted during timeslot 1, + sub-channel 2 during timeslot 2, etc. One TDM frame consists of one + timeslot per sub-channel plus a synchronization channel and + sometimes error correction channel before the synchronization. + +if TDM + +config TDM_DEBUG + bool "Debug support for TDM drivers" + depends on DEBUG_KERNEL + help + Say "yes" to enable debug messaging (like dev_dbg and pr_debug), + sysfs, and debugfs support in TDM controller and protocol drivers. + + +comment "TDM controllers" + +config TDM_KIRKWOOD +# TODO: add depend on kirkwood architecture +# depends on ARCH_KIRKWOOD + tristate "Marvel Kirkwood TDM Controller" + help + This selects a driver for the Marvel Kirkwood TDM Controller. + +endif # TDM
drivers/staging/tdm/Makefile new file +19 -0
@@ -0,0 +1,19 @@ +# +# Makefile for kernel TDM drivers. +# + +ccflags-$(CONFIG_TDM_DEBUG) := -DDEBUG + +# small core, mostly translating board-specific +# config declarations into driver model code +obj-$(CONFIG_TDM) += tdm_core.o + +# TDM controller drivers (bus) +obj-$(CONFIG_TDM_KIRKWOOD) += kirkwood_tdm.o + +# ... add above this line ... + +# TDM protocol drivers (device/link on bus) +#obj-$(CONFIG_TDM_TDMDEV) += tdmdev.o +# ... add above this line ... +
drivers/staging/tdm/tdm_core.c new file +826 -0
826 lines not on this page · raw message
include/linux/tdm/tdm.h new file +292 -0
292 lines not on this page · raw message
Signature · 1 line
1.7.5.4