max77828-haptic.h 675 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Vibrator driver for Maxim MAX77828
  3. *
  4. * Copyright (C) 2013 Maxim Integrated Product
  5. * Gyungoh Yoo <jack.yoo@maximintegrated.com>
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. */
  11. #ifndef __MAX77828_HAPTIC_H__
  12. #define __MAX77828_HAPTIC_H__
  13. enum max77828_haptic_motor
  14. {
  15. MAX77828_VIB_MOTOR_ERM,
  16. MAX77828_VIB_MOTOR_LRA,
  17. };
  18. struct max77828_haptic_platform_data
  19. {
  20. enum max77828_haptic_motor mode;
  21. int divisor; /* PWM Frequency Divisor. 32, 64, 128 or 256 */
  22. };
  23. #endif /* __MAX77828_HAPTIC_H__ */