pm8058-xo.h 885 B

1234567891011121314151617181920212223242526272829303132
  1. /* Copyright (c) 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. #ifndef __PM8058_XO_H__
  13. #define __PM8058_XO_H__
  14. #include <linux/regulator/machine.h>
  15. #define PM8058_XO_BUFFER_DEV_NAME "pm8058-xo-buffer"
  16. /* XO buffer control ids */
  17. #define PM8058_XO_ID_A0 0
  18. #define PM8058_XO_ID_A1 1
  19. #define PM8058_XO_ID_MAX (PM8058_XO_ID_A1 + 1)
  20. struct pm8058_xo_pdata {
  21. struct regulator_init_data init_data;
  22. int id;
  23. };
  24. #endif