diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2017-04-06 07:54:00 -0400 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2017-04-06 08:47:30 -0400 |
commit | 3c1460e934f371bf91963b49a2cf173ee73c2cae (patch) | |
tree | d4bde7d2f5f39a08a0c1cdfec775960a7fc7cc6a /drivers/pwm/pwm-lpss-pci.c | |
parent | c1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201 (diff) |
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")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pwm/pwm-lpss-pci.c')
-rw-r--r-- | drivers/pwm/pwm-lpss-pci.c | 9 |
1 files changed, 8 insertions, 1 deletions
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 = { | |||
38 | .base_unit_bits = 22, | 38 | .base_unit_bits = 22, |
39 | }; | 39 | }; |
40 | 40 | ||
41 | /* Tangier */ | ||
42 | static const struct pwm_lpss_boardinfo pwm_lpss_tng_info = { | ||
43 | .clk_rate = 19200000, | ||
44 | .npwm = 4, | ||
45 | .base_unit_bits = 22, | ||
46 | }; | ||
47 | |||
41 | static int pwm_lpss_probe_pci(struct pci_dev *pdev, | 48 | static int pwm_lpss_probe_pci(struct pci_dev *pdev, |
42 | const struct pci_device_id *id) | 49 | const struct pci_device_id *id) |
43 | { | 50 | { |
@@ -97,7 +104,7 @@ static const struct pci_device_id pwm_lpss_pci_ids[] = { | |||
97 | { PCI_VDEVICE(INTEL, 0x0ac8), (unsigned long)&pwm_lpss_bxt_info}, | 104 | { PCI_VDEVICE(INTEL, 0x0ac8), (unsigned long)&pwm_lpss_bxt_info}, |
98 | { PCI_VDEVICE(INTEL, 0x0f08), (unsigned long)&pwm_lpss_byt_info}, | 105 | { PCI_VDEVICE(INTEL, 0x0f08), (unsigned long)&pwm_lpss_byt_info}, |
99 | { PCI_VDEVICE(INTEL, 0x0f09), (unsigned long)&pwm_lpss_byt_info}, | 106 | { PCI_VDEVICE(INTEL, 0x0f09), (unsigned long)&pwm_lpss_byt_info}, |
100 | { PCI_VDEVICE(INTEL, 0x11a5), (unsigned long)&pwm_lpss_bxt_info}, | 107 | { PCI_VDEVICE(INTEL, 0x11a5), (unsigned long)&pwm_lpss_tng_info}, |
101 | { PCI_VDEVICE(INTEL, 0x1ac8), (unsigned long)&pwm_lpss_bxt_info}, | 108 | { PCI_VDEVICE(INTEL, 0x1ac8), (unsigned long)&pwm_lpss_bxt_info}, |
102 | { PCI_VDEVICE(INTEL, 0x2288), (unsigned long)&pwm_lpss_bsw_info}, | 109 | { PCI_VDEVICE(INTEL, 0x2288), (unsigned long)&pwm_lpss_bsw_info}, |
103 | { PCI_VDEVICE(INTEL, 0x2289), (unsigned long)&pwm_lpss_bsw_info}, | 110 | { PCI_VDEVICE(INTEL, 0x2289), (unsigned long)&pwm_lpss_bsw_info}, |