rtc.h 928 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* MN10300 Real time clock definitions
  2. *
  3. * Copyright (C) 2007 Matsushita Electric Industrial Co., Ltd.
  4. * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public Licence
  8. * as published by the Free Software Foundation; either version
  9. * 2 of the Licence, or (at your option) any later version.
  10. */
  11. #ifndef _ASM_RTC_H
  12. #define _ASM_RTC_H
  13. #ifdef CONFIG_MN10300_RTC
  14. #include <linux/init.h>
  15. extern void check_rtc_time(void);
  16. extern void __init calibrate_clock(void);
  17. extern unsigned long __init get_initial_rtc_time(void);
  18. #else /* !CONFIG_MN10300_RTC */
  19. static inline void check_rtc_time(void)
  20. {
  21. }
  22. static inline void calibrate_clock(void)
  23. {
  24. }
  25. static inline unsigned long get_initial_rtc_time(void)
  26. {
  27. return 0;
  28. }
  29. #endif /* !CONFIG_MN10300_RTC */
  30. #include <asm-generic/rtc.h>
  31. #endif /* _ASM_RTC_H */