pwm: imx: Split into two drivers

The two PWM implementations called v1 (for i.MX1 and i.MX21) and v2 (for
i.MX27 and later) have nothing in common apart from needing two clocks
named "per" and "ipg" and being integrated in a SoC named i.MX.

So split the file containing the two disjunct drivers into two files and
two complete separate drivers.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
[thierry.reding@gmail.com: fix a modular build issue]
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
This commit is contained in:
Uwe Kleine-König
2019-01-07 20:53:52 +01:00
committed by Thierry Reding
parent b9a5c60bc2
commit d80f820690
4 changed files with 257 additions and 153 deletions
+13 -4
View File
@@ -192,14 +192,23 @@ config PWM_IMG
To compile this driver as a module, choose M here: the module
will be called pwm-img
config PWM_IMX
tristate "i.MX PWM support"
config PWM_IMX1
tristate "i.MX1 PWM support"
depends on ARCH_MXC
help
Generic PWM framework driver for i.MX.
Generic PWM framework driver for i.MX1 and i.MX21
To compile this driver as a module, choose M here: the module
will be called pwm-imx.
will be called pwm-imx1.
config PWM_IMX27
tristate "i.MX27 PWM support"
depends on ARCH_MXC
help
Generic PWM framework driver for i.MX27 and later i.MX SoCs.
To compile this driver as a module, choose M here: the module
will be called pwm-imx27.
config PWM_JZ4740
tristate "Ingenic JZ47xx PWM support"