blob: 6ebd9b4b8f1c92e0586f02a81485646883df0cee [file] [log] [blame]
Grant Likelyd26cd572007-04-28 05:50:01 +10001/*
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>
Grant Likelydc8afdc2007-10-01 07:47:00 +100015#include <linux/xilinxfb.h>
Andrei Konovalov147394c2007-05-08 00:40:18 -070016
Grant Likelyd26cd572007-04-28 05:50:01 +100017void __init virtex_early_serial_map(void);
18
19/* Prototype for device fixup routine. Implement this routine in the
20 * board specific fixup code and the generic setup code will call it for
21 * each device is the platform device list.
22 *
23 * If the hook returns a non-zero value, then the device will not get
24 * registered with the platform bus
25 */
26int virtex_device_fixup(struct platform_device *dev);
27
Andrei Konovalovae918c02007-07-17 04:04:11 -070028/* SPI Controller IP */
29struct xspi_platform_data {
30 s16 bus_num;
31 u16 num_chipselect;
32 u32 speed_hz;
33};
34
Grant Likelyd26cd572007-04-28 05:50:01 +100035#endif /* __ASM_VIRTEX_DEVICES_H__ */