On Thu, Mar 12, 2015 at 01:17:31AM +0800, qipeng.zha wrote:
> From: "qipeng.zha" <[email protected]>
> 
> Add pci device id for Broxton platform.
> 
> Signed-off-by: qipeng.zha <[email protected]>
> ---
>  drivers/pwm/pwm-lpss-pci.c | 2 ++
>  drivers/pwm/pwm-lpss.c     | 6 ++++++
>  drivers/pwm/pwm-lpss.h     | 1 +
>  3 files changed, 9 insertions(+)
> 
> diff --git a/drivers/pwm/pwm-lpss-pci.c b/drivers/pwm/pwm-lpss-pci.c
> index cf20d2b..ab6c84e 100644
> --- a/drivers/pwm/pwm-lpss-pci.c
> +++ b/drivers/pwm/pwm-lpss-pci.c
> @@ -48,6 +48,8 @@ static const struct pci_device_id pwm_lpss_pci_ids[] = {
>       { PCI_VDEVICE(INTEL, 0x0f09), (unsigned long)&pwm_lpss_byt_info},
>       { PCI_VDEVICE(INTEL, 0x2288), (unsigned long)&pwm_lpss_bsw_info},
>       { PCI_VDEVICE(INTEL, 0x2289), (unsigned long)&pwm_lpss_bsw_info},
> +     { PCI_VDEVICE(INTEL, 0x0AC8), (unsigned long)&pwm_lpss_bxt_info},
> +     { PCI_VDEVICE(INTEL, 0x1AC8), (unsigned long)&pwm_lpss_bxt_info},

Please keep these sorted by device id.

>       { },
>  };
>  MODULE_DEVICE_TABLE(pci, pwm_lpss_pci_ids);
> diff --git a/drivers/pwm/pwm-lpss.c b/drivers/pwm/pwm-lpss.c
> index e979825..0d37592 100644
> --- a/drivers/pwm/pwm-lpss.c
> +++ b/drivers/pwm/pwm-lpss.c
> @@ -47,6 +47,12 @@ const struct pwm_lpss_boardinfo pwm_lpss_bsw_info = {
>  };
>  EXPORT_SYMBOL_GPL(pwm_lpss_bsw_info);
>  
> +/* Broxton */
> +const struct pwm_lpss_boardinfo pwm_lpss_bxt_info = {
> +     .clk_rate = 19200000
> +};
> +EXPORT_SYMBOL_GPL(pwm_lpss_bxt_info);

I wonder if we can just reuse pwm_lpss_bsw_info for now as the clock
rate is the same, no?

> +
>  static inline struct pwm_lpss_chip *to_lpwm(struct pwm_chip *chip)
>  {
>       return container_of(chip, struct pwm_lpss_chip, chip);
> diff --git a/drivers/pwm/pwm-lpss.h b/drivers/pwm/pwm-lpss.h
> index aa041bb..af78137 100644
> --- a/drivers/pwm/pwm-lpss.h
> +++ b/drivers/pwm/pwm-lpss.h
> @@ -24,6 +24,7 @@ struct pwm_lpss_boardinfo {
>  
>  extern const struct pwm_lpss_boardinfo pwm_lpss_byt_info;
>  extern const struct pwm_lpss_boardinfo pwm_lpss_bsw_info;
> +extern const struct pwm_lpss_boardinfo pwm_lpss_bxt_info;
>  
>  struct pwm_lpss_chip *pwm_lpss_probe(struct device *dev, struct resource *r,
>                                    const struct pwm_lpss_boardinfo *info);
> -- 
> 1.8.3.2
--
To unsubscribe from this list: send the line "unsubscribe linux-pwm" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to