aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-lpss-pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pwm/pwm-lpss-pci.c')
-rw-r--r--drivers/pwm/pwm-lpss-pci.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/drivers/pwm/pwm-lpss-pci.c b/drivers/pwm/pwm-lpss-pci.c
index 3622f093490e..053088b9b66e 100644
--- a/drivers/pwm/pwm-lpss-pci.c
+++ b/drivers/pwm/pwm-lpss-pci.c
@@ -17,6 +17,27 @@
17 17
18#include "pwm-lpss.h" 18#include "pwm-lpss.h"
19 19
20/* BayTrail */
21static const struct pwm_lpss_boardinfo pwm_lpss_byt_info = {
22 .clk_rate = 25000000,
23 .npwm = 1,
24 .base_unit_bits = 16,
25};
26
27/* Braswell */
28static const struct pwm_lpss_boardinfo pwm_lpss_bsw_info = {
29 .clk_rate = 19200000,
30 .npwm = 1,
31 .base_unit_bits = 16,
32};
33
34/* Broxton */
35static const struct pwm_lpss_boardinfo pwm_lpss_bxt_info = {
36 .clk_rate = 19200000,
37 .npwm = 4,
38 .base_unit_bits = 22,
39};
40
20static int pwm_lpss_probe_pci(struct pci_dev *pdev, 41static int pwm_lpss_probe_pci(struct pci_dev *pdev,
21 const struct pci_device_id *id) 42 const struct pci_device_id *id)
22{ 43{
@@ -80,6 +101,7 @@ static const struct pci_device_id pwm_lpss_pci_ids[] = {
80 { PCI_VDEVICE(INTEL, 0x1ac8), (unsigned long)&pwm_lpss_bxt_info}, 101 { PCI_VDEVICE(INTEL, 0x1ac8), (unsigned long)&pwm_lpss_bxt_info},
81 { PCI_VDEVICE(INTEL, 0x2288), (unsigned long)&pwm_lpss_bsw_info}, 102 { PCI_VDEVICE(INTEL, 0x2288), (unsigned long)&pwm_lpss_bsw_info},
82 { PCI_VDEVICE(INTEL, 0x2289), (unsigned long)&pwm_lpss_bsw_info}, 103 { PCI_VDEVICE(INTEL, 0x2289), (unsigned long)&pwm_lpss_bsw_info},
104 { PCI_VDEVICE(INTEL, 0x31c8), (unsigned long)&pwm_lpss_bxt_info},
83 { PCI_VDEVICE(INTEL, 0x5ac8), (unsigned long)&pwm_lpss_bxt_info}, 105 { PCI_VDEVICE(INTEL, 0x5ac8), (unsigned long)&pwm_lpss_bxt_info},
84 { }, 106 { },
85}; 107};