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
14#ifndef __LINUX_MFD_BCM590XX_H
15#define __LINUX_MFD_BCM590XX_H
16
17#include <linux/device.h>
18#include <linux/i2c.h>
19#include <linux/regmap.h>
20
21/* max register address */
22#define BCM590XX_MAX_REGISTER_PRI	0xe7
23#define BCM590XX_MAX_REGISTER_SEC	0xf0
24
25struct bcm590xx {
26	struct device *dev;
27	struct i2c_client *i2c_pri;
28	struct i2c_client *i2c_sec;
29	struct regmap *regmap_pri;
30	struct regmap *regmap_sec;
31	unsigned int id;
32};
33
34#endif /*  __LINUX_MFD_BCM590XX_H */
35