[OpenWrt-Devel] [PATCH v2 1/5] kernel: other: add PWM controller support

John Crispin blogic at openwrt.org
Sun Nov 22 03:55:15 EST 2015


Hi Tim,



On 19/11/2015 18:53, Tim Harvey wrote:
> This adds basic PWM controller support and support for i.MX
> 
> Signed-off-by: Tim Harvey <tharvey at gateworks.com>
> ---
> v2:
> - add TARGET_imx6 dep for pwm-imx
> 
>  package/kernel/linux/modules/other.mk | 36 +++++++++++++++++++++++++++++++++++
>  1 file changed, 36 insertions(+)
> 
> diff --git a/package/kernel/linux/modules/other.mk b/package/kernel/linux/modules/other.mk
> index 55fb6f1..6493b91 100644
> --- a/package/kernel/linux/modules/other.mk
> +++ b/package/kernel/linux/modules/other.mk

is there a specific reason not to create a new file for PWM ?

	John

> @@ -359,6 +359,42 @@ endef
>  $(eval $(call KernelPackage,mmc))
>  
>  
> +define KernelPackage/pwm
> +  SUBMENU:=$(OTHER_MENU)
> +  TITLE:=Pulse-Width Modulation support
> +  KCONFIG:= \
> +	CONFIG_PWM=y \
> +	CONFIG_REGULATOR_PWM=n \
> +	CONFIG_PWM_FSL_FTM=n
> +endef
> +
> +define KernelPackage/pwm/description
> + Pulse Width Modulation subsystem.
> +endef
> +
> +$(eval $(call KernelPackage,pwm))
> +
> +define AddDepends/pwm
> +  SUBMENU:=$(OTHER_MENU)
> +  DEPENDS+=kmod-pwm $(1)
> +endef
> +
> +define KernelPackage/pwm-imx
> +  SUBMENU:=$(OTHER_MENU)
> +  TITLE:=IMX Pulse-Width Modulation support
> +  KCONFIG:=CONFIG_PWM_IMX
> +  FILES:= $(LINUX_DIR)/drivers/pwm/pwm-imx.ko
> +  DEPENDS:=@TARGET_imx6
> +  AUTOLOAD:=$(call AutoProbe,pwm-imx)
> +  $(call AddDepends/pwm)
> +endef
> +
> +define KernelPackage/pwm-imx/description
> + Freescale IMX Pulse Width Modulation support.
> +endef
> +
> +$(eval $(call KernelPackage,pwm-imx))
> +
>  define KernelPackage/sdhci
>    SUBMENU:=$(OTHER_MENU)
>    TITLE:=Secure Digital Host Controller Interface support
> 
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list