virtex_devices.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. #ifndef __ASM_VIRTEX_DEVICES_H__
  11. #define __ASM_VIRTEX_DEVICES_H__
  12. #include <linux/platform_device.h>
  13. /* ML300/403 reference design framebuffer driver platform data struct */
  14. struct xilinxfb_platform_data {
  15. u32 rotate_screen;
  16. u32 screen_height_mm;
  17. u32 screen_width_mm;
  18. };
  19. void __init virtex_early_serial_map(void);
  20. /* Prototype for device fixup routine. Implement this routine in the
  21. * board specific fixup code and the generic setup code will call it for
  22. * each device is the platform device list.
  23. *
  24. * If the hook returns a non-zero value, then the device will not get
  25. * registered with the platform bus
  26. */
  27. int virtex_device_fixup(struct platform_device *dev);
  28. /* SPI Controller IP */
  29. struct xspi_platform_data {
  30. s16 bus_num;
  31. u16 num_chipselect;
  32. u32 speed_hz;
  33. };
  34. #endif /* __ASM_VIRTEX_DEVICES_H__ */