pwm-lpss.h 703 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Intel Low Power Subsystem PWM controller driver
  4. *
  5. * Copyright (C) 2014, Intel Corporation
  6. *
  7. * Derived from the original pwm-lpss.c
  8. */
  9. #ifndef __PWM_LPSS_H
  10. #define __PWM_LPSS_H
  11. #include <linux/pwm.h>
  12. #include <linux/types.h>
  13. #include <linux/platform_data/x86/pwm-lpss.h>
  14. #define LPSS_MAX_PWMS 4
  15. struct pwm_lpss_chip {
  16. void __iomem *regs;
  17. const struct pwm_lpss_boardinfo *info;
  18. };
  19. extern const struct pwm_lpss_boardinfo pwm_lpss_byt_info;
  20. extern const struct pwm_lpss_boardinfo pwm_lpss_bsw_info;
  21. extern const struct pwm_lpss_boardinfo pwm_lpss_bxt_info;
  22. extern const struct pwm_lpss_boardinfo pwm_lpss_tng_info;
  23. #endif /* __PWM_LPSS_H */