diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2007-04-27 15:50:01 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-04-29 21:02:04 -0400 |
commit | d26cd57071b4358bcf3a9140a90b38514c7f345e (patch) | |
tree | c10aa45ac56778f07e0ae175a972abb359faadc4 /arch/ppc/syslib/virtex_devices.h | |
parent | 5ff084f21da25ffcc5e0cb0293a0ea588cb46272 (diff) |
[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 'arch/ppc/syslib/virtex_devices.h')
-rw-r--r-- | arch/ppc/syslib/virtex_devices.h | 27 |
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 @@ | |||
1 | /* | ||
2 | * Common support header for virtex ppc405 platforms | ||
3 | * | ||
4 | * Copyright 2007 Secret Lab Technologies Ltd. | ||
5 | * | ||
6 | * This file is licensed under the terms of the GNU General Public License | ||
7 | * version 2. This program is licensed "as is" without any warranty of any | ||
8 | * kind, whether express or implied. | ||
9 | */ | ||
10 | |||
11 | #ifndef __ASM_VIRTEX_DEVICES_H__ | ||
12 | #define __ASM_VIRTEX_DEVICES_H__ | ||
13 | |||
14 | #include <linux/platform_device.h> | ||
15 | |||
16 | void __init virtex_early_serial_map(void); | ||
17 | |||
18 | /* Prototype for device fixup routine. Implement this routine in the | ||
19 | * board specific fixup code and the generic setup code will call it for | ||
20 | * each device is the platform device list. | ||
21 | * | ||
22 | * If the hook returns a non-zero value, then the device will not get | ||
23 | * registered with the platform bus | ||
24 | */ | ||
25 | int virtex_device_fixup(struct platform_device *dev); | ||
26 | |||
27 | #endif /* __ASM_VIRTEX_DEVICES_H__ */ | ||