[linux-yocto] [PATCH] intel_pwm: refactor and use the feature fragment
Sullivan, California L
california.l.sullivan at intel.com
Tue Jan 5 14:20:51 PST 2016
This is only targeted at master/4.4 by the way. In 4.1
CONFIG_PWM_PCA9685 has additional dependencies that we do not want to
enable.
Thanks,
Cal Sullivan
On 01/05/2016 02:04 PM, Sullivan, California L wrote:
> From: California Sullivan <california.l.sullivan at intel.com>
>
> Configure PWMs on Intel platforms as modules and add it to intel-common-drivers.
> Remove PWM configurations from baytrail.cfg since its enabled elsewhere.
>
> Signed-off-by: California Sullivan <california.l.sullivan at intel.com>
> ---
> bsp/intel-common/intel-common-drivers.scc | 1 +
> features/pwm/intel_pwm.cfg | 11 ++++++-----
> features/pwm/intel_pwm.scc | 2 ++
> features/soc/baytrail/baytrail.cfg | 5 -----
> 4 files changed, 9 insertions(+), 10 deletions(-)
>
> diff --git a/bsp/intel-common/intel-common-drivers.scc b/bsp/intel-common/intel-common-drivers.scc
> index 7fd0b2f..a7673e7 100644
> --- a/bsp/intel-common/intel-common-drivers.scc
> +++ b/bsp/intel-common/intel-common-drivers.scc
> @@ -65,6 +65,7 @@ include features/thermal/coretemp.scc
> include features/hugetlb/hugetlb.scc
> include features/i2c/i2cdev.scc
> include features/leds/leds.scc
> +include features/pwm/intel_pwm.scc
> include features/spi/spidev.scc
>
> # Miscellaneous
> diff --git a/features/pwm/intel_pwm.cfg b/features/pwm/intel_pwm.cfg
> index 0008a14..6033f08 100644
> --- a/features/pwm/intel_pwm.cfg
> +++ b/features/pwm/intel_pwm.cfg
> @@ -1,6 +1,7 @@
> +# Bay Trail and Braswell PWMs
> +CONFIG_PWM_LPSS=m
> +CONFIG_PWM_LPSS_PCI=m
> +CONFIG_PWM_LPSS_PLATFORM=m
>
> -CONFIG_PWM_LPSS=y
> -CONFIG_PWM_LPSS_PCI=y
> -CONFIG_PWM_LPSS_PLATFORM=y
> -
> -CONFIG_PWM_PCA9685=y
> +# PWM chip found on Galileo Gen2
> +CONFIG_PWM_PCA9685=m
> diff --git a/features/pwm/intel_pwm.scc b/features/pwm/intel_pwm.scc
> index e0c5337..51a0294 100644
> --- a/features/pwm/intel_pwm.scc
> +++ b/features/pwm/intel_pwm.scc
> @@ -2,4 +2,6 @@
> define KFEATURE_DESCRIPTION "Enable Intel PWM Devices"
> define KFEATURE_COMPATIBILITY board
>
> +include pwm.scc
> +
> kconf hardware intel_pwm.cfg
> diff --git a/features/soc/baytrail/baytrail.cfg b/features/soc/baytrail/baytrail.cfg
> index 5f809db..f6dbb9e 100644
> --- a/features/soc/baytrail/baytrail.cfg
> +++ b/features/soc/baytrail/baytrail.cfg
> @@ -36,11 +36,6 @@ CONFIG_SPI_PXA2XX=m
> CONFIG_DW_DMAC=m
> CONFIG_DW_DMAC_PCI=m
>
> -# PWM Support
> -CONFIG_PWM=y
> -CONFIG_PWM_LPSS=m
> -CONFIG_PWM_LPSS_PLATFORM=m
> -
> # USB Device Support
> CONFIG_USB_DWC3=y
> CONFIG_USB_DWC3_GADGET=y
More information about the linux-yocto
mailing list