]> git.dujemihanovic.xyz Git - u-boot.git/commit
exynos: Rework legacy PWM usage
authorTom Rini <trini@konsulko.com>
Sun, 4 Dec 2022 15:03:26 +0000 (10:03 -0500)
committerTom Rini <trini@konsulko.com>
Fri, 23 Dec 2022 15:07:03 +0000 (10:07 -0500)
commitb9d1f88b3aae10c15c0cd767acccc1026f5ef6d8
tree07ba6f52b7f2a0f5b3105aede4e842bc7b525671
parent52d91e1c20b399ddab276e2c03e5788ed5e5fdd2
exynos: Rework legacy PWM usage

The way that the timer support is currently done for exynos/nexell
platforms relies on the legacy PWM infrastructure, and that needs to be
updated. However, we really cannot safely undef CONFIG_DM_PWM to build
the timer.c file without warnings. For now, rename the relevant legacy
functions to be prefixed with s5p_ and add prototypes to the arch pwm.h
files.

Cc: Minkyu Kang <mk7.kang@samsung.com>
Cc: Jaehoon Chung <jh80.chung@samsung.com>
Cc: Dzmitry Sankouski <dsankouski@gmail.com>
Cc: Stefan Bosch <stefan_b@posteo.net>
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/cpu/armv7/s5p-common/pwm.c
arch/arm/cpu/armv7/s5p-common/timer.c
arch/arm/mach-exynos/include/mach/pwm.h
arch/arm/mach-nexell/include/mach/pwm.h
arch/arm/mach-s5pc1xx/include/mach/pwm.h
board/friendlyarm/nanopi2/board.c
board/friendlyarm/nanopi2/onewire.c