adau7118.h 689 B

123456789101112131415161718192021222324
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _LINUX_ADAU7118_H
  3. #define _LINUX_ADAU7118_H
  4. struct regmap;
  5. struct device;
  6. /* register map */
  7. #define ADAU7118_REG_VENDOR_ID 0x00
  8. #define ADAU7118_REG_DEVICE_ID1 0x01
  9. #define ADAU7118_REG_DEVICE_ID2 0x02
  10. #define ADAU7118_REG_REVISION_ID 0x03
  11. #define ADAU7118_REG_ENABLES 0x04
  12. #define ADAU7118_REG_DEC_RATIO_CLK_MAP 0x05
  13. #define ADAU7118_REG_HPF_CONTROL 0x06
  14. #define ADAU7118_REG_SPT_CTRL1 0x07
  15. #define ADAU7118_REG_SPT_CTRL2 0x08
  16. #define ADAU7118_REG_SPT_CX(num) (0x09 + (num))
  17. #define ADAU7118_REG_DRIVE_STRENGTH 0x11
  18. #define ADAU7118_REG_RESET 0x12
  19. int adau7118_probe(struct device *dev, struct regmap *map, bool hw_mode);
  20. #endif