rtc.h 344 B

1234567891011121314151617
  1. #ifndef _ASM_RTC_H
  2. #define _ASM_RTC_H
  3. void time_init(void);
  4. extern void (*board_time_init)(void);
  5. extern void (*rtc_sh_get_time)(struct timespec *);
  6. extern int (*rtc_sh_set_time)(const time_t);
  7. #define RTC_CAP_4_DIGIT_YEAR (1 << 0)
  8. struct sh_rtc_platform_info {
  9. unsigned long capabilities;
  10. };
  11. #include <cpu/rtc.h>
  12. #endif /* _ASM_RTC_H */