* [PATCH v1] pwm: lpss: Split Tangier configuration
@ 2017-04-03 14:25 Andy Shevchenko
2017-04-03 14:26 ` Andy Shevchenko
0 siblings, 1 reply; 2+ messages in thread
From: Andy Shevchenko @ 2017-04-03 14:25 UTC (permalink / raw)
To: Hans de Goede, Thierry Reding, linux-pwm, Ilkka Koskinen,
Mika Westerberg
Cc: Andy Shevchenko
As a preparation for special treatment for Broxton we split Tangier
configuration.
Fixes: b89b4b7a3d0a ("pwm: lpss: pci: Enable PWM module on Intel Edison")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/pwm/pwm-lpss-pci.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/drivers/pwm/pwm-lpss-pci.c b/drivers/pwm/pwm-lpss-pci.c
index 053088b9b66e..073dfb2337e0 100644
--- a/drivers/pwm/pwm-lpss-pci.c
+++ b/drivers/pwm/pwm-lpss-pci.c
@@ -38,6 +38,13 @@ static const struct pwm_lpss_boardinfo pwm_lpss_bxt_info = {
.base_unit_bits = 22,
};
+/* Tangier */
+static const struct pwm_lpss_boardinfo pwm_lpss_tng_info = {
+ .clk_rate = 19200000,
+ .npwm = 4,
+ .base_unit_bits = 22,
+};
+
static int pwm_lpss_probe_pci(struct pci_dev *pdev,
const struct pci_device_id *id)
{
@@ -97,7 +104,7 @@ static const struct pci_device_id pwm_lpss_pci_ids[] = {
{ PCI_VDEVICE(INTEL, 0x0ac8), (unsigned long)&pwm_lpss_bxt_info},
{ PCI_VDEVICE(INTEL, 0x0f08), (unsigned long)&pwm_lpss_byt_info},
{ PCI_VDEVICE(INTEL, 0x0f09), (unsigned long)&pwm_lpss_byt_info},
- { PCI_VDEVICE(INTEL, 0x11a5), (unsigned long)&pwm_lpss_bxt_info},
+ { PCI_VDEVICE(INTEL, 0x11a5), (unsigned long)&pwm_lpss_tng_info},
{ PCI_VDEVICE(INTEL, 0x1ac8), (unsigned long)&pwm_lpss_bxt_info},
{ PCI_VDEVICE(INTEL, 0x2288), (unsigned long)&pwm_lpss_bsw_info},
{ PCI_VDEVICE(INTEL, 0x2289), (unsigned long)&pwm_lpss_bsw_info},
--
2.11.0
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH v1] pwm: lpss: Split Tangier configuration
2017-04-03 14:25 [PATCH v1] pwm: lpss: Split Tangier configuration Andy Shevchenko
@ 2017-04-03 14:26 ` Andy Shevchenko
0 siblings, 0 replies; 2+ messages in thread
From: Andy Shevchenko @ 2017-04-03 14:26 UTC (permalink / raw)
To: Hans de Goede, Thierry Reding, linux-pwm, Ilkka Koskinen,
Mika Westerberg
On Mon, 2017-04-03 at 17:25 +0300, Andy Shevchenko wrote:
> As a preparation for special treatment for Broxton we split Tangier
> configuration.
> Fixes: b89b4b7a3d0a ("pwm: lpss: pci: Enable PWM module on Intel
> Edison")
Fixes tag is present here to be sure we will apply it at least for
v4.11 cycle.
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
> drivers/pwm/pwm-lpss-pci.c | 9 ++++++++-
> 1 file changed, 8 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/pwm/pwm-lpss-pci.c b/drivers/pwm/pwm-lpss-pci.c
> index 053088b9b66e..073dfb2337e0 100644
> --- a/drivers/pwm/pwm-lpss-pci.c
> +++ b/drivers/pwm/pwm-lpss-pci.c
> @@ -38,6 +38,13 @@ static const struct pwm_lpss_boardinfo
> pwm_lpss_bxt_info = {
> .base_unit_bits = 22,
> };
>
> +/* Tangier */
> +static const struct pwm_lpss_boardinfo pwm_lpss_tng_info = {
> + .clk_rate = 19200000,
> + .npwm = 4,
> + .base_unit_bits = 22,
> +};
> +
> static int pwm_lpss_probe_pci(struct pci_dev *pdev,
> const struct pci_device_id *id)
> {
> @@ -97,7 +104,7 @@ static const struct pci_device_id
> pwm_lpss_pci_ids[] = {
> { PCI_VDEVICE(INTEL, 0x0ac8), (unsigned
> long)&pwm_lpss_bxt_info},
> { PCI_VDEVICE(INTEL, 0x0f08), (unsigned
> long)&pwm_lpss_byt_info},
> { PCI_VDEVICE(INTEL, 0x0f09), (unsigned
> long)&pwm_lpss_byt_info},
> - { PCI_VDEVICE(INTEL, 0x11a5), (unsigned
> long)&pwm_lpss_bxt_info},
> + { PCI_VDEVICE(INTEL, 0x11a5), (unsigned
> long)&pwm_lpss_tng_info},
> { PCI_VDEVICE(INTEL, 0x1ac8), (unsigned
> long)&pwm_lpss_bxt_info},
> { PCI_VDEVICE(INTEL, 0x2288), (unsigned
> long)&pwm_lpss_bsw_info},
> { PCI_VDEVICE(INTEL, 0x2289), (unsigned
> long)&pwm_lpss_bsw_info},
--
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-04-03 14:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-03 14:25 [PATCH v1] pwm: lpss: Split Tangier configuration Andy Shevchenko
2017-04-03 14:26 ` Andy Shevchenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).