History log of /freebsd-current/sys/arm/allwinner/aw_rtc.c
Revision Date Author Comments
# be82b3a0 26-Dec-2023 Emmanuel Vadot <manu@FreeBSD.org>

clk: Move clock code in dev/clk

We've removed kernel option EXT_RESOURCES almost two years ago.
While it was ok to have some code under a common 'extres' subdirectory
at first, we now have a lot of consumer of it and we made it mandatory
so no need to have it under a cryptic name.

Reviewed by: mhorne
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D43191


# fdafd315 24-Nov-2023 Warner Losh <imp@FreeBSD.org>

sys: Automated cleanup of cdefs and other formatting

Apply the following automated changes to try to eliminate
no-longer-needed sys/cdefs.h includes as well as now-empty
blank lines in a row.

Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/
Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/
Remove /\n+#if.*\n#endif.*\n+/
Remove /^#if.*\n#endif.*\n/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/
Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/

Sponsored by: Netflix


# 685dc743 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

sys: Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


# 7e1e2ba1 09-May-2022 John Baldwin <jhb@FreeBSD.org>

arm allwinner: Remove unused devclass arguments to DRIVER_MODULE.


# f442e2fc 25-Nov-2020 Emmanuel Vadot <manu@FreeBSD.org>

arm: allwinner: aw_rtc: Add H6 compatible


# 65454883 01-Sep-2020 Mateusz Guzik <mjg@FreeBSD.org>

arm: clean up empty lines in .c and .h files


# cfc8861b 10-Aug-2019 Emmanuel Vadot <manu@FreeBSD.org>

allwinner: Rework the BUS_PASS on drivers

- Put all clock and control unit driver in BUS_PASS_RESOURCE except
for the DE2 CCU as it needs the main CCU to be available.
- Use BUS_PASS_CPU for a20_cpu_cfg as it makes more sense.
- For aw_syscon use SCHEDULER pass as we need it early for drivers
that attach in BUS_PASS_SUPPORTDEV
- For the rest we can use BUS_PASS_SUPPORTDEV


# bfb92761 27-Apr-2019 Emmanuel Vadot <manu@FreeBSD.org>

arm64: allwinner: Add compatible strings for clock devices used on both Allwinner H3 and H5

Allwinner H3 and H5 share many internal components, that's why they can
use the same drivers.
This patch adds the compatible strings to enable clock drivers
probing on Allwinner NanoPI NEO2 device.

Tested on: NanoPi NEO2 (by submitter), OrangePi PC2 (by manu)
Submitted by: Manuel Stühn (freebsdnewbie@freenet.de)
MFC after: 2 months
Differential Revision: https://reviews.freebsd.org/D20069


# abc15d70 25-Apr-2019 Emmanuel Vadot <manu@FreeBSD.org>

arm: allwinner: Add pnp info to aw_rtc and compile it as module too

MFC after: 1 month


# 5f50cbd3 15-Apr-2019 Emmanuel Vadot <manu@FreeBSD.org>

aw_rtc: Register the clocks

Since latest DTS update the rtc is supposed to register two clocks :

- osc32k (the 32k oscillator on the board that the RTC uses directly and
that other peripheral can use)
- iosc (the internal oscillator of the RTC when available which frequency
depend on the SoC revision)

Since we need the RTC before the proper clock control unit (because it uses
those clocks) attach it a BUS_PASS_BUS + MIDDLE and attach the clock control
unit at BUS_PASS_BUS + LAST for the SoC that requires it.

Tested On: A20, H3, A64

MFC after: 1 month


# ef61a34a 25-Aug-2016 Jared McNeill <jmcneill@FreeBSD.org>

Remove dependency on allwinner_soc_family() as it is not available on arm64.

Reviewed by: andrew, manu


# d00d8ed8 17-Aug-2016 Emmanuel Vadot <manu@FreeBSD.org>

Rename allwinner_machdep.{c.h} to aw_machdep.{c.h} as all allwinner source
files are name aw_*


# 7bf46e12 03-Mar-2016 Jared McNeill <jmcneill@FreeBSD.org>

Add support for Allwinner A31 RTC controller.

Very similar to the A10 RTC controller with a few register offsets changed
and a different location for the LOSC switch status.

Submitted by: Emmanuel Vadot <manu@bidouilliste.com>
Reviewed by: jmcneill
Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D5500


# 3f3af790 28-Feb-2016 Jared McNeill <jmcneill@FreeBSD.org>

Add Allwinner A10/A20 RTC driver.

Submitted by: Vladimir Belian <fate10@gmail.com>
Reviewed by: andrew, imp, jmcneill
Approved by: gonzo (mentor)
Differential Revision: https://reviews.freebsd.org/D5414