From 021fd6178bcd41986c43a9dd104dc1228cdc34e2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sjur=20Br=C3=A6ndeland?= Date: Fri, 18 Nov 2011 15:25:02 +0100 Subject: [PATCH] modem_shm: Makefile and Kconfig for M7400 Shared Memory Drivers MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Add Kconfig and Makefile for modem shm. MODEM_SHM should be selected from architectures supporting C2C. Signed-off-by: Sjur Brændeland --- drivers/Kconfig | 2 ++ drivers/Makefile | 1 + drivers/modem_shm/Kconfig | 62 ++++++++++++++++++++++++++++++++++++++ drivers/modem_shm/Makefile | 5 +++ 4 files changed, 70 insertions(+) create mode 100644 drivers/modem_shm/Kconfig create mode 100644 drivers/modem_shm/Makefile diff --git a/drivers/Kconfig b/drivers/Kconfig index 5afe5d1f199b..918e943312c1 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -136,4 +136,6 @@ source "drivers/virt/Kconfig" source "drivers/devfreq/Kconfig" +source "drivers/modem_shm/Kconfig" + endmenu diff --git a/drivers/Makefile b/drivers/Makefile index c07be024b962..a315636e05f1 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -120,6 +120,7 @@ obj-$(CONFIG_VLYNQ) += vlynq/ obj-$(CONFIG_STAGING) += staging/ obj-y += platform/ obj-y += ieee802154/ +obj-$(CONFIG_MODEM_SHM) += modem_shm/ #common clk code obj-y += clk/ diff --git a/drivers/modem_shm/Kconfig b/drivers/modem_shm/Kconfig new file mode 100644 index 000000000000..7e188018d173 --- /dev/null +++ b/drivers/modem_shm/Kconfig @@ -0,0 +1,62 @@ +# +# MODEM_SHM Framework +# + +config MODEM_SHM + tristate + default n + depends on EXPERIMENTAL + +if MODEM_SHM && NET + +menu "Modem Shared Memory" + +config DUMMY_C2C + tristate "Dummy C2C GENIO driver" + depends on !C2C + default MODEM_SHM + ---help--- + Say "Y" or "M" if you want to compile a dummy C2C driver. + Use this if you want to compile without the real + C2C driver available. + If unsure say N. + +config MODEM_SHM_BUS + tristate + default MODEM_SHM_DEV + +config MODEM_SHM_BOOT + tristate + depends on MODEM_SHM_DEV + default MODEM_SHM_DEV + +config MODEM_SHM_DEV + tristate "SHM Channels for Modem Shared Memory" + depends on DUMMY_C2C || C2C + select MODEM_SHM_BUS + select MODEM_SHM_BOOT + default MODEM_SHM + ---help--- + Say "Y" to use Modem Shared Memory IPC mechanism. + SHM is an IPC protocol used to talk to external device such + as modem over a shared memory (e.g. Chip to Chip). + Only say "M" here if you want to test MODEM_SHM and need to load + and unload its module. + If unsure say N. + +config MODEM_SHM_CHR + tristate "Character device for Modem Shared Memory" + depends on MODEM_SHM_DEV + default MODEM_SHM_DEV + ---help--- + Say "Y" to use a character device for the Modem Shared + Memory IPC mechanism. MODEM_SHM is an IPC protocol used to + talk to external device such as modem over a shared memory + (e.g. Chip to Chip). + Only say "M" here if you want to test MODEM_SHM and need to load + and unload its module. + If unsure say N. + +endmenu + +endif diff --git a/drivers/modem_shm/Makefile b/drivers/modem_shm/Makefile new file mode 100644 index 000000000000..3bd227446caa --- /dev/null +++ b/drivers/modem_shm/Makefile @@ -0,0 +1,5 @@ +obj-$(CONFIG_MODEM_SHM_BUS) += shm_bus.o +obj-$(CONFIG_MODEM_SHM_BOOT) += shm_boot.o +obj-$(CONFIG_MODEM_SHM_DEV) += shm_dev.o +obj-$(CONFIG_MODEM_SHM_CHR) += shm_chr.o +obj-$(CONFIG_DUMMY_C2C) += dummy_c2c_genio.o -- 2.39.5