#
1.9 |
|
27-Jan-2024 |
kettenis |
Add support for newer SoCs that store the data as number of days since the Unix epoch instead of a calender date.
ok jca@
|
Revision tags: OPENBSD_7_3_BASE OPENBSD_7_4_BASE
|
#
1.8 |
|
17-Oct-2022 |
kettenis |
Convert more drivers to use todr_attach(). The quality of the RTC is set such that "discrete" RTC chips are preferred over RTCs integrated on a SoC.
ok deraadt@, miod@
|
#
1.7 |
|
12-Oct-2022 |
kettenis |
Extend struct todr_chip_handle with a todr_quality member. This allows us to assign a quality to RTC implementation and pick the "best" RTC if a system has multiple RTCs (or multiple interfaces to an RTC). This allows us to prefer a battery-backed I2C RTC over an RTC that is part of the SoC which is only running of the SoC is powered. It also allows us to work around issues with firmware RTC interfaces that may lie to us or even crash the system.
This change makes sure the todr_quality member of the struct is always initialized. In most cases the quality will be set to zero; further adjustments of the quality for specific subsystems/architectures will follow.
ok cheloha@, patrick@
|
Revision tags: OPENBSD_7_1_BASE OPENBSD_7_2_BASE
|
#
1.6 |
|
24-Oct-2021 |
mpi |
Constify struct cfattach.
ok visa@ a long time ago, ok patrick@
|
Revision tags: OPENBSD_7_0_BASE
|
#
1.5 |
|
24-Apr-2021 |
mpi |
Remove unused function pointers from `todr_handle'.
from miod@
|
Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE
|
#
1.4 |
|
11-Aug-2019 |
kettenis |
Add clock support to sxirtc(4); needed by newer Linux DTs.
ok patrick@
|
Revision tags: OPENBSD_6_5_BASE
|
#
1.3 |
|
21-Jan-2019 |
jsg |
Adapt to allwinner device tree changes in linux >= 5.0-rc1 "allwinner,sun6i-a31-rtc" has been removed from h3/h5/r40/a64
ok kettenis@
|
Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
|
#
1.2 |
|
27-Mar-2017 |
kettenis |
Reject times in the first year that can be represented by the clock to catch RTC clocks that aren't battery powered.
ok deraadt@, millert@, visa@, tom@
|
#
1.1 |
|
21-Jan-2017 |
patrick |
Move Allwinner drivers that will soon be used by OpenBSD/arm64 to the new MI FDT driver directory.
"go ahead" kettenis@
|
#
1.8 |
|
17-Oct-2022 |
kettenis |
Convert more drivers to use todr_attach(). The quality of the RTC is set such that "discrete" RTC chips are preferred over RTCs integrated on a SoC.
ok deraadt@, miod@
|
#
1.7 |
|
12-Oct-2022 |
kettenis |
Extend struct todr_chip_handle with a todr_quality member. This allows us to assign a quality to RTC implementation and pick the "best" RTC if a system has multiple RTCs (or multiple interfaces to an RTC). This allows us to prefer a battery-backed I2C RTC over an RTC that is part of the SoC which is only running of the SoC is powered. It also allows us to work around issues with firmware RTC interfaces that may lie to us or even crash the system.
This change makes sure the todr_quality member of the struct is always initialized. In most cases the quality will be set to zero; further adjustments of the quality for specific subsystems/architectures will follow.
ok cheloha@, patrick@
|
Revision tags: OPENBSD_7_1_BASE OPENBSD_7_2_BASE
|
#
1.6 |
|
24-Oct-2021 |
mpi |
Constify struct cfattach.
ok visa@ a long time ago, ok patrick@
|
Revision tags: OPENBSD_7_0_BASE
|
#
1.5 |
|
24-Apr-2021 |
mpi |
Remove unused function pointers from `todr_handle'.
from miod@
|
Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE
|
#
1.4 |
|
11-Aug-2019 |
kettenis |
Add clock support to sxirtc(4); needed by newer Linux DTs.
ok patrick@
|
Revision tags: OPENBSD_6_5_BASE
|
#
1.3 |
|
21-Jan-2019 |
jsg |
Adapt to allwinner device tree changes in linux >= 5.0-rc1 "allwinner,sun6i-a31-rtc" has been removed from h3/h5/r40/a64
ok kettenis@
|
Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
|
#
1.2 |
|
27-Mar-2017 |
kettenis |
Reject times in the first year that can be represented by the clock to catch RTC clocks that aren't battery powered.
ok deraadt@, millert@, visa@, tom@
|
#
1.1 |
|
21-Jan-2017 |
patrick |
Move Allwinner drivers that will soon be used by OpenBSD/arm64 to the new MI FDT driver directory.
"go ahead" kettenis@
|
#
1.7 |
|
12-Oct-2022 |
kettenis |
Extend struct todr_chip_handle with a todr_quality member. This allows us to assign a quality to RTC implementation and pick the "best" RTC if a system has multiple RTCs (or multiple interfaces to an RTC). This allows us to prefer a battery-backed I2C RTC over an RTC that is part of the SoC which is only running of the SoC is powered. It also allows us to work around issues with firmware RTC interfaces that may lie to us or even crash the system.
This change makes sure the todr_quality member of the struct is always initialized. In most cases the quality will be set to zero; further adjustments of the quality for specific subsystems/architectures will follow.
ok cheloha@, patrick@
|
Revision tags: OPENBSD_7_1_BASE OPENBSD_7_2_BASE
|
#
1.6 |
|
24-Oct-2021 |
mpi |
Constify struct cfattach.
ok visa@ a long time ago, ok patrick@
|
Revision tags: OPENBSD_7_0_BASE
|
#
1.5 |
|
24-Apr-2021 |
mpi |
Remove unused function pointers from `todr_handle'.
from miod@
|
Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE
|
#
1.4 |
|
11-Aug-2019 |
kettenis |
Add clock support to sxirtc(4); needed by newer Linux DTs.
ok patrick@
|
Revision tags: OPENBSD_6_5_BASE
|
#
1.3 |
|
21-Jan-2019 |
jsg |
Adapt to allwinner device tree changes in linux >= 5.0-rc1 "allwinner,sun6i-a31-rtc" has been removed from h3/h5/r40/a64
ok kettenis@
|
Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
|
#
1.2 |
|
27-Mar-2017 |
kettenis |
Reject times in the first year that can be represented by the clock to catch RTC clocks that aren't battery powered.
ok deraadt@, millert@, visa@, tom@
|
#
1.1 |
|
21-Jan-2017 |
patrick |
Move Allwinner drivers that will soon be used by OpenBSD/arm64 to the new MI FDT driver directory.
"go ahead" kettenis@
|
#
1.6 |
|
24-Oct-2021 |
mpi |
Constify struct cfattach.
ok visa@ a long time ago, ok patrick@
|
Revision tags: OPENBSD_7_0_BASE
|
#
1.5 |
|
24-Apr-2021 |
mpi |
Remove unused function pointers from `todr_handle'.
from miod@
|
Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE
|
#
1.4 |
|
11-Aug-2019 |
kettenis |
Add clock support to sxirtc(4); needed by newer Linux DTs.
ok patrick@
|
Revision tags: OPENBSD_6_5_BASE
|
#
1.3 |
|
21-Jan-2019 |
jsg |
Adapt to allwinner device tree changes in linux >= 5.0-rc1 "allwinner,sun6i-a31-rtc" has been removed from h3/h5/r40/a64
ok kettenis@
|
Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
|
#
1.2 |
|
27-Mar-2017 |
kettenis |
Reject times in the first year that can be represented by the clock to catch RTC clocks that aren't battery powered.
ok deraadt@, millert@, visa@, tom@
|
#
1.1 |
|
21-Jan-2017 |
patrick |
Move Allwinner drivers that will soon be used by OpenBSD/arm64 to the new MI FDT driver directory.
"go ahead" kettenis@
|
#
1.5 |
|
24-Apr-2021 |
mpi |
Remove unused function pointers from `todr_handle'.
from miod@
|
Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE
|
#
1.4 |
|
11-Aug-2019 |
kettenis |
Add clock support to sxirtc(4); needed by newer Linux DTs.
ok patrick@
|
Revision tags: OPENBSD_6_5_BASE
|
#
1.3 |
|
21-Jan-2019 |
jsg |
Adapt to allwinner device tree changes in linux >= 5.0-rc1 "allwinner,sun6i-a31-rtc" has been removed from h3/h5/r40/a64
ok kettenis@
|
Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
|
#
1.2 |
|
27-Mar-2017 |
kettenis |
Reject times in the first year that can be represented by the clock to catch RTC clocks that aren't battery powered.
ok deraadt@, millert@, visa@, tom@
|
#
1.1 |
|
21-Jan-2017 |
patrick |
Move Allwinner drivers that will soon be used by OpenBSD/arm64 to the new MI FDT driver directory.
"go ahead" kettenis@
|
#
1.4 |
|
11-Aug-2019 |
kettenis |
Add clock support to sxirtc(4); needed by newer Linux DTs.
ok patrick@
|
Revision tags: OPENBSD_6_5_BASE
|
#
1.3 |
|
21-Jan-2019 |
jsg |
Adapt to allwinner device tree changes in linux >= 5.0-rc1 "allwinner,sun6i-a31-rtc" has been removed from h3/h5/r40/a64
ok kettenis@
|
Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
|
#
1.2 |
|
27-Mar-2017 |
kettenis |
Reject times in the first year that can be represented by the clock to catch RTC clocks that aren't battery powered.
ok deraadt@, millert@, visa@, tom@
|
#
1.1 |
|
21-Jan-2017 |
patrick |
Move Allwinner drivers that will soon be used by OpenBSD/arm64 to the new MI FDT driver directory.
"go ahead" kettenis@
|
#
1.3 |
|
21-Jan-2019 |
jsg |
Adapt to allwinner device tree changes in linux >= 5.0-rc1 "allwinner,sun6i-a31-rtc" has been removed from h3/h5/r40/a64
ok kettenis@
|
Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
|
#
1.2 |
|
27-Mar-2017 |
kettenis |
Reject times in the first year that can be represented by the clock to catch RTC clocks that aren't battery powered.
ok deraadt@, millert@, visa@, tom@
|
#
1.1 |
|
21-Jan-2017 |
patrick |
Move Allwinner drivers that will soon be used by OpenBSD/arm64 to the new MI FDT driver directory.
"go ahead" kettenis@
|
Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
|
#
1.2 |
|
27-Mar-2017 |
kettenis |
Reject times in the first year that can be represented by the clock to catch RTC clocks that aren't battery powered.
ok deraadt@, millert@, visa@, tom@
|
#
1.1 |
|
21-Jan-2017 |
patrick |
Move Allwinner drivers that will soon be used by OpenBSD/arm64 to the new MI FDT driver directory.
"go ahead" kettenis@
|