git: 02e912089377 - main - pwm: Move allwinner driver into the common directory

From: Emmanuel Vadot <manu_at_FreeBSD.org>
Date: Wed, 10 Jan 2024 18:21:03 UTC
The branch main has been updated by manu:

URL: https://cgit.FreeBSD.org/src/commit/?id=02e9120893770924227138ba49df1edb3896112a

commit 02e9120893770924227138ba49df1edb3896112a
Author:     Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2023-12-25 18:42:03 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2024-01-10 18:20:19 +0000

    pwm: Move allwinner driver into the common directory
    
    No need to keep it under sys/arm/allwinner
    It's easier to find which controller we support by looking under one directory.
    
    Sponsored by:   Beckhoff Automation GmbH & Co. KG
    Differential Revision:  https://reviews.freebsd.org/D43187
---
 sys/conf/files.arm64                               | 2 +-
 sys/{arm => dev/pwm/controller}/allwinner/aw_pwm.c | 0
 sys/modules/allwinner/aw_pwm/Makefile              | 2 +-
 3 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/conf/files.arm64 b/sys/conf/files.arm64
index c5f8207f01f5..db5ef64eb583 100644
--- a/sys/conf/files.arm64
+++ b/sys/conf/files.arm64
@@ -380,6 +380,7 @@ dev/psci/psci.c					standard
 dev/psci/smccc_arm64.S				standard
 dev/psci/smccc.c				standard
 
+dev/pwm/controller/allwinner/aw_pwm.c		optional fdt aw_pwm
 dev/pwm/controller//rockchip/rk_pwm.c		optional fdt rk_pwm
 
 dev/random/armv8rng.c				optional armv8_rng !random_loadable
@@ -442,7 +443,6 @@ arm/allwinner/aw_i2s.c				optional fdt sound aw_i2s
 arm/allwinner/aw_mmc.c				optional mmc aw_mmc fdt | mmccam aw_mmc fdt
 arm/allwinner/aw_nmi.c				optional aw_nmi fdt \
 	compile-with "${NORMAL_C} -I$S/contrib/device-tree/include"
-arm/allwinner/aw_pwm.c				optional aw_pwm fdt
 arm/allwinner/aw_r_intc.c			optional aw_r_intc fdt
 arm/allwinner/aw_rsb.c				optional aw_rsb fdt
 arm/allwinner/aw_rtc.c				optional aw_rtc fdt
diff --git a/sys/arm/allwinner/aw_pwm.c b/sys/dev/pwm/controller/allwinner/aw_pwm.c
similarity index 100%
rename from sys/arm/allwinner/aw_pwm.c
rename to sys/dev/pwm/controller/allwinner/aw_pwm.c
diff --git a/sys/modules/allwinner/aw_pwm/Makefile b/sys/modules/allwinner/aw_pwm/Makefile
index 2ffc5baab879..8aac8f5ebe8a 100644
--- a/sys/modules/allwinner/aw_pwm/Makefile
+++ b/sys/modules/allwinner/aw_pwm/Makefile
@@ -1,5 +1,5 @@
 
-.PATH: ${SRCTOP}/sys/arm/allwinner
+.PATH: ${SRCTOP}/sys/dev/pwm/controller/allwinner
 
 KMOD=	aw_pwm
 SRCS=	aw_pwm.c