bcm590xx.h 831 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Broadcom BCM590xx PMU
  3. *
  4. * Copyright 2014 Linaro Limited
  5. * Author: Matt Porter <mporter@linaro.org>
  6. *
  7. * This program is free software; you can redistribute it and/or modify it
  8. * under the terms of the GNU General Public License as published by the
  9. * Free Software Foundation; either version 2 of the License, or (at your
  10. * option) any later version.
  11. *
  12. */
  13. #ifndef __LINUX_MFD_BCM590XX_H
  14. #define __LINUX_MFD_BCM590XX_H
  15. #include <linux/device.h>
  16. #include <linux/i2c.h>
  17. #include <linux/regmap.h>
  18. /* max register address */
  19. #define BCM590XX_MAX_REGISTER_PRI 0xe7
  20. #define BCM590XX_MAX_REGISTER_SEC 0xf0
  21. struct bcm590xx {
  22. struct device *dev;
  23. struct i2c_client *i2c_pri;
  24. struct i2c_client *i2c_sec;
  25. struct regmap *regmap_pri;
  26. struct regmap *regmap_sec;
  27. unsigned int id;
  28. };
  29. #endif /* __LINUX_MFD_BCM590XX_H */