blob: 267aedee1c7a3eadde89c6ba3804f8b1d936485e [file] [log] [blame]
Matt Porter037b60f2014-03-11 19:33:54 -04001/*
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 */
Matt Porter9e1e7262014-04-23 19:21:31 -040022#define BCM590XX_MAX_REGISTER_PRI 0xe7
23#define BCM590XX_MAX_REGISTER_SEC 0xf0
Matt Porter037b60f2014-03-11 19:33:54 -040024
25struct bcm590xx {
26 struct device *dev;
Matt Porter9e1e7262014-04-23 19:21:31 -040027 struct i2c_client *i2c_pri;
28 struct i2c_client *i2c_sec;
29 struct regmap *regmap_pri;
30 struct regmap *regmap_sec;
Matt Porter037b60f2014-03-11 19:33:54 -040031 unsigned int id;
32};
33
34#endif /* __LINUX_MFD_BCM590XX_H */