spi.h 594 B

123456789101112131415161718192021222324252627
  1. /*
  2. * arch/arm/mach-u300/spi.h
  3. *
  4. * Copyright (C) 2009 ST-Ericsson AB
  5. * License terms: GNU General Public License (GPL) version 2
  6. *
  7. * Author: Linus Walleij <linus.walleij@stericsson.com>
  8. */
  9. #ifndef SPI_H
  10. #define SPI_H
  11. #include <linux/amba/bus.h>
  12. #ifdef CONFIG_SPI_PL022
  13. void __init u300_spi_init(struct amba_device *adev);
  14. void __init u300_spi_register_board_devices(void);
  15. #else
  16. /* Compile out SPI support if PL022 is not selected */
  17. static inline void __init u300_spi_init(struct amba_device *adev)
  18. {
  19. }
  20. static inline void __init u300_spi_register_board_devices(void)
  21. {
  22. }
  23. #endif
  24. #endif