mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-20 00:48:52 +09:00
![Neil Armstrong](/assets/img/avatar_default.png)
This adds the driver for the PWM controller found in the Amlogic SoCs. This PWM is only a set of Gates, Dividers and Counters: PWM output is achieved by calculating a clock that permits calculating two periods (low and high). The counter then has to be set to switch after N cycles for the first half period. The hardware has no "polarity" setting. This driver reverses the period cycles (the low length is inverted with the high length) for PWM_POLARITY_INVERSED. Disabling the PWM stops the output immediately (without waiting for the current period to complete first). Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
22 lines
628 B
Makefile
22 lines
628 B
Makefile
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
# (C) Copyright 2006
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
#
|
|
# (C) Copyright 2001
|
|
# Erik Theisen, Wave 7 Optics, etheisen@mindspring.com.
|
|
|
|
#ccflags-y += -DDEBUG
|
|
|
|
obj-$(CONFIG_DM_PWM) += pwm-uclass.o
|
|
|
|
obj-$(CONFIG_PWM_EXYNOS) += exynos_pwm.o
|
|
obj-$(CONFIG_PWM_IMX) += pwm-imx.o pwm-imx-util.o
|
|
obj-$(CONFIG_PWM_MESON) += pwm-meson.o
|
|
obj-$(CONFIG_PWM_MTK) += pwm-mtk.o
|
|
obj-$(CONFIG_PWM_ROCKCHIP) += rk_pwm.o
|
|
obj-$(CONFIG_PWM_SANDBOX) += sandbox_pwm.o
|
|
obj-$(CONFIG_PWM_SIFIVE) += pwm-sifive.o
|
|
obj-$(CONFIG_PWM_TEGRA) += tegra_pwm.o
|
|
obj-$(CONFIG_PWM_SUNXI) += sunxi_pwm.o
|