riscv: Allwinner D1 clock and reset driver

Add the SOC_ALLWINNER_D1 config option, following other platforms.

Co-authored-by:	mhorne
Reviewed by:	manu (previous version)
Sponsored by:	The FreeBSD Foundation (in part)
Differential Revision:	https://reviews.freebsd.org/D47515
This commit is contained in:
Julien Cassette 2024-11-16 15:02:03 -04:00 committed by Mitchell Horne
parent 9ddd516b88
commit c5c02a131a
4 changed files with 1083 additions and 2 deletions

View File

@ -1,3 +1,6 @@
RISCV opt_global.h # For cpu RISCV to work
INTRNG opt_global.h
PV_STATS opt_pmap.h
# SoC Support
SOC_ALLWINNER_D1 opt_soc.h

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,15 @@
arm/allwinner/aw_rtc.c optional aw_rtc fdt
arm/allwinner/aw_wdog.c optional aw_wdog
arm/allwinner/aw_rtc.c optional aw_rtc fdt
arm/allwinner/aw_wdog.c optional aw_wdog
# Allwinner clock drivers
dev/clk/allwinner/aw_ccung.c optional aw_ccu fdt
dev/clk/allwinner/aw_clk_frac.c optional aw_ccu fdt
dev/clk/allwinner/aw_clk_m.c optional aw_ccu fdt
dev/clk/allwinner/aw_clk_mipi.c optional aw_ccu fdt
dev/clk/allwinner/aw_clk_nkmp.c optional aw_ccu fdt
dev/clk/allwinner/aw_clk_nm.c optional aw_ccu fdt
dev/clk/allwinner/aw_clk_nmm.c optional aw_ccu fdt
dev/clk/allwinner/aw_clk_np.c optional aw_ccu fdt
dev/clk/allwinner/aw_clk_prediv_mux.c optional aw_ccu fdt
dev/clk/allwinner/ccu_d1.c optional soc_allwinner_d1 aw_ccu fdt

View File

@ -2,6 +2,10 @@
# Allwinner SoC support
#
# SoC support
options SOC_ALLWINNER_D1
device aw_ccu # Allwinner clock controller
device aw_rtc # Allwinner Real-time Clock
device aw_wdog # Allwinner Watchdog