spi-core.h 637 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (C) 2012 Heiko Stuebner <heiko@sntech.de>
  4. */
  5. #ifndef __PLAT_S3C_SPI_CORE_H
  6. #define __PLAT_S3C_SPI_CORE_H
  7. /* These functions are only for use with the core support code, such as
  8. * the cpu specific initialisation code
  9. */
  10. /* re-define device name depending on support. */
  11. static inline void s3c64xx_spi_setname(char *name)
  12. {
  13. #ifdef CONFIG_S3C64XX_DEV_SPI0
  14. s3c64xx_device_spi0.name = name;
  15. #endif
  16. #ifdef CONFIG_S3C64XX_DEV_SPI1
  17. s3c64xx_device_spi1.name = name;
  18. #endif
  19. #ifdef CONFIG_S3C64XX_DEV_SPI2
  20. s3c64xx_device_spi2.name = name;
  21. #endif
  22. }
  23. #endif /* __PLAT_S3C_SPI_CORE_H */