arizona.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * wm5102.h -- WM5102 MFD internals
  4. *
  5. * Copyright 2012 Wolfson Microelectronics plc
  6. *
  7. * Author: Mark Brown <broonie@opensource.wolfsonmicro.com>
  8. */
  9. #ifndef _WM5102_H
  10. #define _WM5102_H
  11. #include <linux/of.h>
  12. #include <linux/regmap.h>
  13. #include <linux/pm.h>
  14. extern const struct regmap_config wm5102_i2c_regmap;
  15. extern const struct regmap_config wm5102_spi_regmap;
  16. extern const struct regmap_config wm5110_i2c_regmap;
  17. extern const struct regmap_config wm5110_spi_regmap;
  18. extern const struct regmap_config cs47l24_spi_regmap;
  19. extern const struct regmap_config wm8997_i2c_regmap;
  20. extern const struct regmap_config wm8998_i2c_regmap;
  21. extern const struct dev_pm_ops arizona_pm_ops;
  22. extern const struct of_device_id arizona_of_match[];
  23. extern const struct regmap_irq_chip wm5102_aod;
  24. extern const struct regmap_irq_chip wm5102_irq;
  25. extern const struct regmap_irq_chip wm5110_aod;
  26. extern const struct regmap_irq_chip wm5110_irq;
  27. extern const struct regmap_irq_chip wm5110_revd_irq;
  28. extern const struct regmap_irq_chip cs47l24_irq;
  29. extern const struct regmap_irq_chip wm8997_aod;
  30. extern const struct regmap_irq_chip wm8997_irq;
  31. extern struct regmap_irq_chip wm8998_aod;
  32. extern struct regmap_irq_chip wm8998_irq;
  33. int arizona_dev_init(struct arizona *arizona);
  34. int arizona_dev_exit(struct arizona *arizona);
  35. int arizona_irq_init(struct arizona *arizona);
  36. int arizona_irq_exit(struct arizona *arizona);
  37. #ifdef CONFIG_OF
  38. unsigned long arizona_of_get_type(struct device *dev);
  39. #else
  40. static inline unsigned long arizona_of_get_type(struct device *dev)
  41. {
  42. return 0;
  43. }
  44. #endif
  45. #endif