tps65090-regulator.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * Regulator driver interface for TI TPS65090 PMIC family
  3. *
  4. * Copyright (c) 2012, NVIDIA CORPORATION. All rights reserved.
  5. * This program is free software; you can redistribute it and/or modify it
  6. * under the terms and conditions of the GNU General Public License,
  7. * version 2, as published by the Free Software Foundation.
  8. * This program is distributed in the hope it will be useful, but WITHOUT
  9. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  10. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  11. * more details.
  12. * You should have received a copy of the GNU General Public License
  13. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. */
  15. #ifndef __REGULATOR_TPS65090_H
  16. #define __REGULATOR_TPS65090_H
  17. #include <linux/regulator/machine.h>
  18. #define tps65090_rails(_name) "tps65090_"#_name
  19. enum {
  20. TPS65090_ID_DCDC1,
  21. TPS65090_ID_DCDC2,
  22. TPS65090_ID_DCDC3,
  23. TPS65090_ID_FET1,
  24. TPS65090_ID_FET2,
  25. TPS65090_ID_FET3,
  26. TPS65090_ID_FET4,
  27. TPS65090_ID_FET5,
  28. TPS65090_ID_FET6,
  29. TPS65090_ID_FET7,
  30. };
  31. /*
  32. * struct tps65090_regulator_platform_data
  33. *
  34. * @regulator: The regulator init data.
  35. * @slew_rate_uV_per_us: Slew rate microvolt per microsec.
  36. */
  37. struct tps65090_regulator_platform_data {
  38. struct regulator_init_data regulator;
  39. };
  40. #endif /* __REGULATOR_TPS65090_H */