From c03a5b84722f52296e72e4cc225d7a632149c3f4 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] xshm: Makefile and Kconfig for M7400 Shared Memory Drivers MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit CONFIG_XSHM should be selected from architectures supporting C2C, this will enable the XSHM configuration. Signed-off-by: Sjur Brændeland Signed-off-by: Linus Walleij --- drivers/Kconfig | 2 ++ drivers/Makefile | 1 + drivers/xshm/Kconfig | 61 +++++++++++++++++++++++++++++++++++++++++++ drivers/xshm/Makefile | 5 ++++ 4 files changed, 69 insertions(+) create mode 100644 drivers/xshm/Kconfig create mode 100644 drivers/xshm/Makefile diff --git a/drivers/Kconfig b/drivers/Kconfig index b5e6f243f749..c91a13cc8c8f 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -136,4 +136,6 @@ source "drivers/hv/Kconfig" source "drivers/devfreq/Kconfig" +source "drivers/xshm/Kconfig" + endmenu diff --git a/drivers/Makefile b/drivers/Makefile index 1b3142127bf5..eedd8e5d4af1 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_XSHM) += xshm/ #common clk code obj-y += clk/ diff --git a/drivers/xshm/Kconfig b/drivers/xshm/Kconfig new file mode 100644 index 000000000000..099334691ece --- /dev/null +++ b/drivers/xshm/Kconfig @@ -0,0 +1,61 @@ +# +# XSHM Framework +# + +config XSHM + tristate + default n + depends on EXPERIMENTAL + +if XSHM && NET + +menu "XSHM drivers and interfaces" + +config DUMMY_C2C + tristate "Dummy C2C GENIO driver" + depends on !C2C + default XSHM + ---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. + +config XSHM_BUS + tristate + default XSHM_DEV + +config XSHM_BOOT + tristate + depends on XSHM_DEV + default XSHM_DEV + +config XSHM_DEV + tristate "XSHM Channels for External Shared Memory (XSHM)" + depends on DUMMY_C2C || C2C + select XSHM_BUS + select XSHM_BOOT + default XSHM + ---help--- + Say "Y" to use External Shared Memory (XSHM) IPC mechanism. + XSHM 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 XSHM and need to load + and unload its module. + If unsure say N. + +config XSHM_CHR + tristate "Character device for External Shared Memory (XSHM)" + depends on XSHM_DEV + default XSHM_DEV + ---help--- + Say "Y" to use a character device for the External Shared + Memory (XSHM) IPC mechanism. XSHM 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 XSHM and need to load + and unload its module. + If unsure say N. + +endmenu + +endif diff --git a/drivers/xshm/Makefile b/drivers/xshm/Makefile new file mode 100644 index 000000000000..001cd7973fb4 --- /dev/null +++ b/drivers/xshm/Makefile @@ -0,0 +1,5 @@ +obj-$(CONFIG_XSHM_BUS) += xshm_bus.o +obj-$(CONFIG_XSHM_BOOT) += xshm_boot.o +obj-$(CONFIG_XSHM_DEV) += xshm_dev.o +obj-$(CONFIG_XSHM_CHR) += xshm_chr.o +obj-$(CONFIG_DUMMY_C2C) += dummy_c2c_genio.o -- 2.39.5