iic-core.h 908 B

1234567891011121314151617181920212223242526272829303132333435
  1. /* arch/arm/mach-s3c2410/include/mach/iic-core.h
  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. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License version 2 as
  11. * published by the Free Software Foundation.
  12. */
  13. #ifndef __ASM_ARCH_IIC_CORE_H
  14. #define __ASM_ARCH_IIC_CORE_H __FILE__
  15. /* These functions are only for use with the core support code, such as
  16. * the cpu specific initialisation code
  17. */
  18. /* re-define device name depending on support. */
  19. static inline void s3c_i2c0_setname(char *name)
  20. {
  21. /* currently this device is always compiled in */
  22. s3c_device_i2c0.name = name;
  23. }
  24. static inline void s3c_i2c1_setname(char *name)
  25. {
  26. #ifdef CONFIG_S3C_DEV_I2C1
  27. s3c_device_i2c1.name = name;
  28. #endif
  29. }
  30. #endif /* __ASM_ARCH_IIC_H */