> 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
- Re: CVS commit: src/sys/dev/i2c Manuel Bouyer
- Re: CVS commit: src/sys/dev/i2c Jared McNeill
- Re: CVS commit: src/sys/dev/i2c Manuel Bouyer
- Re: CVS commit: src/sys/dev/i2c Jared McNeill
- Re: CVS commit: src/sys/dev/i2c Valery Ushakov
- Re: CVS commit: src/sys/dev/i2c Frank Kardel
- Re: CVS commit: src/sys/dev/i2c Jason Thorpe
- Re: CVS commit: src/sys/dev/i2c Jason Thorpe
- CVS commit: src/sys/dev/i2c Jared D. McNeill
- CVS commit: src/sys/dev/i2c Jared D. McNeill
- CVS commit: src/sys/dev/i2c Jared D. McNeill
- CVS commit: src/sys/dev/i2c Jared D. McNeill
- CVS commit: src/sys/dev/i2c Jared D. McNeill
- CVS commit: src/sys/dev/i2c Jared D. McNeill
- CVS commit: src/sys/dev/i2c Jared D. McNeill
- CVS commit: src/sys/dev/i2c Jared D. McNeill
- CVS commit: src/sys/dev/i2c Jared D. McNeill
- CVS commit: src/sys/dev/i2c Jared D. McNeill