aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ppc/syslib/virtex_devices.h
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2007-04-28 05:50:01 +1000
committerPaul Mackerras <paulus@samba.org>2007-04-30 11:02:04 +1000
commitd26cd57071b4358bcf3a9140a90b38514c7f345e (patch)
treec10aa45ac56778f07e0ae175a972abb359faadc4 /arch/ppc/syslib/virtex_devices.h
parent[POWERPC] Merge common virtex header files (diff)
downloadlinux-dev-d26cd57071b4358bcf3a9140a90b38514c7f345e.tar.xz
linux-dev-d26cd57071b4358bcf3a9140a90b38514c7f345e.zip
[POWERPC] New registration for common Xilinx Virtex ppc405 platform devices
Currently virtex support in mainline make use of the infrastructure in arch/ppc/syslib/ppc_sys.c for registering common devices on virtex ppc405 platforms. The ppc_sys.c code is not well suited to the dynamic nature of FPGA designs and makes adding new board ports more complex. This patch adds a new listing of common devices which does not depend on the ppc_sys.c infrastructure. Signed-off-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to '')
-rw-r--r--arch/ppc/syslib/virtex_devices.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/ppc/syslib/virtex_devices.h b/arch/ppc/syslib/virtex_devices.h
new file mode 100644
index 000000000000..4a17dd3927c1
--- /dev/null
+++ b/arch/ppc/syslib/virtex_devices.h
@@ -0,0 +1,27 @@
+/*
+ * Common support header for virtex ppc405 platforms
+ *
+ * Copyright 2007 Secret Lab Technologies Ltd.
+ *
+ * This file is licensed under the terms of the GNU General Public License
+ * version 2. This program is licensed "as is" without any warranty of any
+ * kind, whether express or implied.
+ */
+
+#ifndef __ASM_VIRTEX_DEVICES_H__
+#define __ASM_VIRTEX_DEVICES_H__
+
+#include <linux/platform_device.h>
+
+void __init virtex_early_serial_map(void);
+
+/* Prototype for device fixup routine. Implement this routine in the
+ * board specific fixup code and the generic setup code will call it for
+ * each device is the platform device list.
+ *
+ * If the hook returns a non-zero value, then the device will not get
+ * registered with the platform bus
+ */
+int virtex_device_fixup(struct platform_device *dev);
+
+#endif /* __ASM_VIRTEX_DEVICES_H__ */