iic-core.h 709 B

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright 2008 Openmoko, Inc.
  4. * Copyright 2008 Simtec Electronics
  5. * Ben Dooks <ben@simtec.co.uk>
  6. *
  7. * S3C - I2C Controller core functions
  8. */
  9. #ifndef __ASM_ARCH_IIC_CORE_H
  10. #define __ASM_ARCH_IIC_CORE_H __FILE__
  11. /* These functions are only for use with the core support code, such as
  12. * the cpu specific initialisation code
  13. */
  14. /* re-define device name depending on support. */
  15. static inline void s3c_i2c0_setname(char *name)
  16. {
  17. /* currently this device is always compiled in */
  18. s3c_device_i2c0.name = name;
  19. }
  20. static inline void s3c_i2c1_setname(char *name)
  21. {
  22. #ifdef CONFIG_S3C_DEV_I2C1
  23. s3c_device_i2c1.name = name;
  24. #endif
  25. }
  26. #endif /* __ASM_ARCH_IIC_H */