mipi_toshiba.h 1016 B

12345678910111213141516171819202122232425262728293031
  1. /* Copyright (c) 2009-2011, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. *
  12. */
  13. #ifndef MIPI_TOSHIBA_H
  14. #define MIPI_TOSHIBA_H
  15. #include <linux/pwm.h>
  16. #include <linux/mfd/pm8xxx/pm8921.h>
  17. int mipi_toshiba_device_register(struct msm_panel_info *pinfo,
  18. u32 channel, u32 panel);
  19. #define MIPI_TOSHIBA_PWM_FREQ_HZ 300
  20. #define MIPI_TOSHIBA_PWM_PERIOD_USEC (USEC_PER_SEC / MIPI_TOSHIBA_PWM_FREQ_HZ)
  21. #define MIPI_TOSHIBA_PWM_LEVEL 255
  22. #define MIPI_TOSHIBA_PWM_DUTY_LEVEL \
  23. (MIPI_TOSHIBA_PWM_PERIOD_USEC / MIPI_TOSHIBA_PWM_LEVEL)
  24. #endif /* MIPI_TOSHIBA_H */