> On Dec 14, 2018, at 2:05 PM, Michael Lorenz <macal...@netbsd.org> 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

Reply via email to