[PATCHv2 09/10] xshm: Makefile and Kconfig for M7400 Shared Memory Drivers

Sjur Brændeland
2011-12-09T14:08:13Z

CONFIG_XSHM should be selected from architectures supporting
C2C, this will enable the XSHM configuration.

Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.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