summaryrefslogtreecommitdiffstats
path: root/drivers/fmc
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/fmc')
-rw-r--r--drivers/fmc/Kconfig17
-rw-r--r--drivers/fmc/Makefile4
-rw-r--r--drivers/fmc/fmc-core.c24
3 files changed, 45 insertions, 0 deletions
diff --git a/drivers/fmc/Kconfig b/drivers/fmc/Kconfig
new file mode 100644
index 000000000000..e28790267c69
--- /dev/null
+++ b/drivers/fmc/Kconfig
@@ -0,0 +1,17 @@
1#
2# FMC (ANSI-VITA 57.1) bus support
3#
4
5menuconfig FMC
6 tristate "FMC support"
7 help
8
9 FMC (FPGA Mezzanine Carrier) is a mechanical and electrical
10 standard for mezzanine cards that plug into a carrier board.
11 This kernel subsystem supports the matching between carrier
12 and mezzanine based on identifiers stored in the internal I2C
13 EEPROM, as well as having carrier-independent drivers.
14
15 The framework was born outside of the kernel and at this time
16 the off-tree code base is more complete. Code and documentation
17 is at git://ohwr.org/fmc-projects/fmc-bus.git .
diff --git a/drivers/fmc/Makefile b/drivers/fmc/Makefile
new file mode 100644
index 000000000000..a2784d8b5306
--- /dev/null
+++ b/drivers/fmc/Makefile
@@ -0,0 +1,4 @@
1
2obj-$(CONFIG_FMC) += fmc.o
3
4fmc-y = fmc-core.o
diff --git a/drivers/fmc/fmc-core.c b/drivers/fmc/fmc-core.c
new file mode 100644
index 000000000000..fc3547f32d5e
--- /dev/null
+++ b/drivers/fmc/fmc-core.c
@@ -0,0 +1,24 @@
1/* Temporary placeholder so the empty code can build */
2#include <linux/kernel.h>
3#include <linux/module.h>
4#include <linux/init.h>
5#include <linux/device.h>
6
7static struct bus_type fmc_bus_type = {
8 .name = "fmc",
9};
10
11static int fmc_init(void)
12{
13 return bus_register(&fmc_bus_type);
14}
15
16static void fmc_exit(void)
17{
18 bus_unregister(&fmc_bus_type);
19}
20
21module_init(fmc_init);
22module_exit(fmc_exit);
23
24MODULE_LICENSE("GPL");