| 86 | } |
| 87 | |
| 88 | static int |
| 89 | octeon_rtc_attach(device_t dev) |
| 90 | { |
| 91 | cvmx_rtc_options_t supported; |
| 92 | |
| 93 | supported = cvmx_rtc_supported(); |
| 94 | if ((supported & CVMX_RTC_READ) == 0) |
| 95 | return (ENXIO); |
| 96 | |
| 97 | clock_register(dev, 1000000); |
| 98 | return (0); |
| 99 | } |
| 100 | |
| 101 | static int |
| 102 | octeon_rtc_settime(device_t dev, struct timespec *ts) |
nothing calls this directly
no test coverage detected