fpc1020_regulator.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* FPC1020 Touch sensor driver
  2. *
  3. * Copyright (c) 2013,2014 Fingerprint Cards AB <tech@fingerprints.com>
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU General Public License Version 2
  7. * as published by the Free Software Foundation.
  8. */
  9. #ifndef LINUX_SPI_FPC1020_REGULATOR_H
  10. #define LINUX_SPI_FPC1020_REGULATOR_H
  11. #define SUPPLY_1V8 1800000UL
  12. #define SUPPLY_3V3 3300000UL
  13. #define SUPPLY_SPI_MIN SUPPLY_1V8
  14. #define SUPPLY_SPI_MAX SUPPLY_1V8
  15. #define SUPPLY_IO_MIN SUPPLY_1V8
  16. #define SUPPLY_IO_MAX SUPPLY_1V8
  17. #define SUPPLY_ANA_MIN SUPPLY_1V8
  18. #define SUPPLY_ANA_MAX SUPPLY_1V8
  19. #define SUPPLY_TX_MIN SUPPLY_3V3
  20. #define SUPPLY_TX_MAX SUPPLY_3V3
  21. #define SUPPLY_SPI_REQ_CURRENT 10U
  22. #define SUPPLY_IO_REQ_CURRENT 6000U
  23. #define SUPPLY_ANA_REQ_CURRENT 6000U
  24. extern int fpc1020_regulator_configure(fpc1020_data_t *fpc1020);
  25. extern int fpc1020_regulator_release(fpc1020_data_t *fpc1020);
  26. extern int fpc1020_regulator_set(fpc1020_data_t *fpc1020, bool enable);
  27. #endif /* LINUX_SPI_FPC1020_REGULATOR_H */