rtc-core.h 779 B

123456789101112131415161718192021222324252627
  1. /* linux/arch/arm/plat-samsung/include/plat/rtc-core.h
  2. *
  3. * Copyright (c) 2011 Heiko Stuebner <heiko@sntech.de>
  4. *
  5. * Samsung RTC Controller core functions
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. */
  11. #ifndef __ASM_PLAT_RTC_CORE_H
  12. #define __ASM_PLAT_RTC_CORE_H __FILE__
  13. /* These functions are only for use with the core support code, such as
  14. * the cpu specific initialisation code
  15. */
  16. /* re-define device name depending on support. */
  17. static inline void s3c_rtc_setname(char *name)
  18. {
  19. #if defined(CONFIG_SAMSUNG_DEV_RTC) || defined(CONFIG_PLAT_S3C24XX)
  20. s3c_device_rtc.name = name;
  21. #endif
  22. }
  23. #endif /* __ASM_PLAT_RTC_CORE_H */