[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1323439648-22697-10-git-send-email-sjur.brandeland@stericsson.com>
Date: Fri, 9 Dec 2011 15:07:27 +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>,
Paul Bolle <pebolle@...cali.nl>,
Dan Carpenter <dan.carpenter@...cle.com>,
Sjur Brændeland <sjur.brandeland@...ricsson.com>
Subject: [PATCHv2 09/10] 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 | 60 +++++++++++++++++++++++++++++++++++++++++++++++++
drivers/xshm/Makefile | 5 ++++
4 files changed, 68 insertions(+), 0 deletions(-)
create mode 100644 drivers/xshm/Kconfig
create mode 100644 drivers/xshm/Makefile
diff --git a/drivers/Kconfig b/drivers/Kconfig
index 041426c..742f028 100644
--- a/drivers/Kconfig
+++ b/drivers/Kconfig
@@ -138,4 +138,6 @@ source "drivers/virt/Kconfig"
source "drivers/devfreq/Kconfig"
+source "drivers/xshm/Kconfig"
+
endmenu
diff --git a/drivers/Makefile b/drivers/Makefile
index 91077ac..30eae54 100644
--- a/drivers/Makefile
+++ b/drivers/Makefile
@@ -121,6 +121,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..97c9e11
--- /dev/null
+++ b/drivers/xshm/Kconfig
@@ -0,0 +1,60 @@
+#
+# XSHM Framework
+#
+
+config XSHM
+ tristate
+ default n
+ depends on EXPERIMENTAL
+if XSHM
+
+menu "XSHM drivers and interfaces"
+ depends on XSHM
+
+config DUMMY_C2C
+ tristate "Dummy C2C GENIO driver"
+ 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.0.4
--
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