Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f6b8a570 authored by Thierry Reding's avatar Thierry Reding
Browse files

pwm: Add Ingenic JZ4740 support



This commit moves the driver to drivers/pwm and converts it to the new
PWM framework.

Signed-off-by: default avatarThierry Reding <thierry.reding@avionic-design.de>
Acked-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Tested-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Acked-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 46a98765
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ extern struct platform_device jz4740_pcm_device;
extern struct platform_device jz4740_codec_device;
extern struct platform_device jz4740_adc_device;
extern struct platform_device jz4740_wdt_device;
extern struct platform_device jz4740_pwm_device;

void jz4740_serial_device_register(void);

+0 −3
Original line number Diff line number Diff line
@@ -7,6 +7,3 @@ config JZ4740_QI_LB60
	bool "Qi Hardware Ben NanoNote"

endchoice

config HAVE_PWM
	bool
+1 −1
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@
# Object file lists.

obj-y += prom.o irq.o time.o reset.o setup.o dma.o \
	gpio.o clock.o platform.o timer.o pwm.o serial.o
	gpio.o clock.o platform.o timer.o serial.o

obj-$(CONFIG_DEBUG_FS) += clock-debugfs.o

+1 −0
Original line number Diff line number Diff line
@@ -437,6 +437,7 @@ static struct platform_device *jz_platform_devices[] __initdata = {
	&jz4740_codec_device,
	&jz4740_rtc_device,
	&jz4740_adc_device,
	&jz4740_pwm_device,
	&qi_lb60_gpio_keys,
	&qi_lb60_pwm_beeper,
	&qi_lb60_charger_device,
+6 −0
Original line number Diff line number Diff line
@@ -323,3 +323,9 @@ struct platform_device jz4740_wdt_device = {
	.num_resources = ARRAY_SIZE(jz4740_wdt_resources),
	.resource      = jz4740_wdt_resources,
};

/* PWM */
struct platform_device jz4740_pwm_device = {
	.name = "jz4740-pwm",
	.id   = -1,
};
Loading