fan53555.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * fan53555.h - Fairchild Regulator FAN53555 Driver
  3. *
  4. * Copyright (C) 2012 Marvell Technology Ltd.
  5. * Yunfan Zhang <yfzhang@marvell.com>
  6. *
  7. * This package 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. */
  12. #ifndef __FAN53555_H__
  13. #define __FAN53555_H__
  14. /* VSEL ID */
  15. enum {
  16. FAN53555_VSEL_ID_0 = 0,
  17. FAN53555_VSEL_ID_1,
  18. };
  19. /* Transition slew rate limiting from a low to high voltage.
  20. * -----------------------
  21. * Bin |Slew Rate(mV/uS)
  22. * ------|----------------
  23. * 000 | 64.00
  24. * ------|----------------
  25. * 001 | 32.00
  26. * ------|----------------
  27. * 010 | 16.00
  28. * ------|----------------
  29. * 011 | 8.00
  30. * ------|----------------
  31. * 100 | 4.00
  32. * ------|----------------
  33. * 101 | 2.00
  34. * ------|----------------
  35. * 110 | 1.00
  36. * ------|----------------
  37. * 111 | 0.50
  38. * -----------------------
  39. */
  40. enum {
  41. FAN53555_SLEW_RATE_64MV = 0,
  42. FAN53555_SLEW_RATE_32MV,
  43. FAN53555_SLEW_RATE_16MV,
  44. FAN53555_SLEW_RATE_8MV,
  45. FAN53555_SLEW_RATE_4MV,
  46. FAN53555_SLEW_RATE_2MV,
  47. FAN53555_SLEW_RATE_1MV,
  48. FAN53555_SLEW_RATE_0_5MV,
  49. };
  50. struct fan53555_platform_data {
  51. struct regulator_init_data *regulator;
  52. unsigned int slew_rate;
  53. /* Sleep VSEL ID */
  54. unsigned int sleep_vsel_id;
  55. };
  56. #endif /* __FAN53555_H__ */