Skip to contentSkip to conversation

pwm: lpss: Split Tangier configuration

PATCH Superseded Andy Shevchenko 1 participant 2 messages Apr 3, 2017

Subsystems (2)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Andy Shevchenko

author reviewer
#0 lore raw

PATCH 1/1 pwm: lpss: Split Tangier configuration

As a preparation for special treatment for Broxton we split Tangier configuration.

Fixes b89b4b7a3d0a ("pwm: lpss: pci: Enable PWM module on Intel Edison")
---
 drivers/pwm/pwm-lpss-pci.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
drivers/pwm/pwm-lpss-pci.c +8 -1
index 053088b9b66e..073dfb2337e0 100644
@@ -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},
Signature · 1 line
2.11.0
author reviewer
#1 lore raw
Quoted 5 lines · 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")

Fixes tag is present here to be sure we will apply it at least for v4.11 cycle.

Quoted 42 lines

---
 drivers/pwm/pwm-lpss-pci.c | 9 ++++++++-

 1 file changed, 8 insertions(+), 1 deletion(-)
drivers/pwm/pwm-lpss-pci.c +0 -0
index 053088b9b66e..073dfb2337e0 100644
@@ -38,6 +38,13 @@ static const struct pwm_lpss_boardinfo
 pwm_lpss_bxt_info = {
  	.base_unit_bits = 22,
  };

drivers/pwm/pwm-lpss-pci.c +7 -0
+/* 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) {

drivers/pwm/pwm-lpss-pci.c +0 -0
@@ -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},

drivers/pwm/pwm-lpss-pci.c +0 -1
-	{ PCI_VDEVICE(INTEL, 0x11a5), (unsigned

long)&pwm_lpss_bxt_info},

drivers/pwm/pwm-lpss-pci.c +1 -0
+	{ 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},

Signature · 2 lines
Andy Shevchenko <[email protected]>
Intel Finland Oy