[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1324032554-30398-11-git-send-email-sjur.brandeland@stericsson.com>
Date: Fri, 16 Dec 2011 11:49:13 +0100
From: Sjur Brændeland <sjur.brandeland@...ricsson.com>
To: linux-kernel@...r.kernel.org
Cc: Arnd Bergmann <arnd@...db.de>,
Linus Walleij <linus.walleij@...aro.org>, sjurbren@...il.com,
Sjur Brændeland <sjur.brandeland@...ricsson.com>
Subject: [PATCHv4 10/11] xshm: Makefile and Kconfig for M7400 Shared Memory Drivers
CONFIG_XSHM should be selected from architectures supporting
C2C, this will enable the XSHM configuration.
Signed-off-by: Sjur Brændeland <sjur.brandeland@...ricsson.com>
---
drivers/Kconfig | 2 +
drivers/Makefile | 1 +
drivers/xshm/Kconfig | 61 +++++++++++++++++++++++++++++++++++++++++++++++++
drivers/xshm/Makefile | 5 ++++
4 files changed, 69 insertions(+), 0 deletions(-)
create mode 100644 drivers/xshm/Kconfig
create mode 100644 drivers/xshm/Makefile
diff --git a/drivers/Kconfig b/drivers/Kconfig
index b5e6f24..c91a13c 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 1b31421..eedd8e5 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 0000000..0993346
--- /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 0000000..001cd79
--- /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
--
1.7.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists