da9211.h 1003 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * da9211.h - Regulator device driver for DA9211/DA9213
  3. * Copyright (C) 2014 Dialog Semiconductor Ltd.
  4. *
  5. * This library is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU Library General Public
  7. * License as published by the Free Software Foundation; either
  8. * version 2 of the License, or (at your option) any later version.
  9. *
  10. * This library is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * Library General Public License for more details.
  14. */
  15. #ifndef __LINUX_REGULATOR_DA9211_H
  16. #define __LINUX_REGULATOR_DA9211_H
  17. #include <linux/regulator/machine.h>
  18. #define DA9211_MAX_REGULATORS 2
  19. enum da9211_chip_id {
  20. DA9211,
  21. DA9213,
  22. };
  23. struct da9211_pdata {
  24. /*
  25. * Number of buck
  26. * 1 : 4 phase 1 buck
  27. * 2 : 2 phase 2 buck
  28. */
  29. int num_buck;
  30. struct regulator_init_data *init_data[DA9211_MAX_REGULATORS];
  31. };
  32. #endif