tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/sys/dev/i2c
> On Dec 14, 2018, at 2:05 PM, Michael Lorenz <macallan%netbsd.org@localhost> wrote:
>
> Module Name: src
> Committed By: macallan
> Date: Fri Dec 14 22:05:36 UTC 2018
>
> Modified Files:
> src/sys/dev/i2c: ds1307.c files.i2c
>
> Log Message:
> add options DSRTC_YEAR_START_2K for machines which use 2000 and not 1970
> as base to count years from, like Iyonix.
> While there apply the offset when writing to the clock as well.
This should not be done with a compile-time option. A better way to handle this is to define a device property ("rtc-base-year" maybe?) as an and to use that if the property exists. You can then set it in the iyonix device_register() function when you get a "dsrtc".
-- thorpej
Home |
Main Index |
Thread Index |
Old Index