virtex_devices.h 977 B

1234567891011121314151617181920212223242526272829303132333435
  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. #include <linux/xilinxfb.h>
  14. void __init virtex_early_serial_map(void);
  15. /* Prototype for device fixup routine. Implement this routine in the
  16. * board specific fixup code and the generic setup code will call it for
  17. * each device is the platform device list.
  18. *
  19. * If the hook returns a non-zero value, then the device will not get
  20. * registered with the platform bus
  21. */
  22. int virtex_device_fixup(struct platform_device *dev);
  23. /* SPI Controller IP */
  24. struct xspi_platform_data {
  25. s16 bus_num;
  26. u16 num_chipselect;
  27. u32 speed_hz;
  28. };
  29. #endif /* __ASM_VIRTEX_DEVICES_H__ */