Grant Likely | d26cd57 | 2007-04-28 05:50:01 +1000 | [diff] [blame] | 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 | |
Andrei Konovalov | 147394c | 2007-05-08 00:40:18 -0700 | [diff] [blame] | 16 | /* ML300/403 reference design framebuffer driver platform data struct */ |
| 17 | struct xilinxfb_platform_data { |
| 18 | u32 rotate_screen; |
| 19 | u32 screen_height_mm; |
| 20 | u32 screen_width_mm; |
| 21 | }; |
| 22 | |
Grant Likely | d26cd57 | 2007-04-28 05:50:01 +1000 | [diff] [blame] | 23 | void __init virtex_early_serial_map(void); |
| 24 | |
| 25 | /* Prototype for device fixup routine. Implement this routine in the |
| 26 | * board specific fixup code and the generic setup code will call it for |
| 27 | * each device is the platform device list. |
| 28 | * |
| 29 | * If the hook returns a non-zero value, then the device will not get |
| 30 | * registered with the platform bus |
| 31 | */ |
| 32 | int virtex_device_fixup(struct platform_device *dev); |
| 33 | |
Andrei Konovalov | ae918c0 | 2007-07-17 04:04:11 -0700 | [diff] [blame] | 34 | /* SPI Controller IP */ |
| 35 | struct xspi_platform_data { |
| 36 | s16 bus_num; |
| 37 | u16 num_chipselect; |
| 38 | u32 speed_hz; |
| 39 | }; |
| 40 | |
Grant Likely | d26cd57 | 2007-04-28 05:50:01 +1000 | [diff] [blame] | 41 | #endif /* __ASM_VIRTEX_DEVICES_H__ */ |