mp2629.h 422 B

1234567891011121314151617181920212223242526
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright 2020 Monolithic Power Systems, Inc
  4. */
  5. #ifndef __MP2629_H__
  6. #define __MP2629_H__
  7. #include <linux/device.h>
  8. #include <linux/regmap.h>
  9. struct mp2629_data {
  10. struct device *dev;
  11. struct regmap *regmap;
  12. };
  13. enum mp2629_adc_chan {
  14. MP2629_BATT_VOLT,
  15. MP2629_SYSTEM_VOLT,
  16. MP2629_INPUT_VOLT,
  17. MP2629_BATT_CURRENT,
  18. MP2629_INPUT_CURRENT,
  19. MP2629_ADC_CHAN_END
  20. };
  21. #endif