aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/bcm590xx.h
diff options
context:
space:
mode:
authorMatt Porter <mporter@linaro.org>2014-03-11 19:33:54 -0400
committerLee Jones <lee.jones@linaro.org>2014-03-19 04:59:59 -0400
commit037b60f2ca9403d02cbee60ad0a10f3806f9dc4b (patch)
tree4f2e42a0adf1595269b6d70a2c43d3c3f374f84d /include/linux/mfd/bcm590xx.h
parentc6215037ac5594ef375e07e33572d85aeb0f5e3e (diff)
mfd: Add bcm590xx pmu driver
Add a driver for the BCM590xx PMU multi-function devices. The driver initially supports regmap initialization and instantiation of the voltage regulator device function of the PMU. Signed-off-by: Matt Porter <mporter@linaro.org> Reviewed-by: Tim Kryger <tim.kryger@linaro.org> Reviewed-by: Markus Mayer <markus.mayer@linaro.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include/linux/mfd/bcm590xx.h')
-rw-r--r--include/linux/mfd/bcm590xx.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/linux/mfd/bcm590xx.h b/include/linux/mfd/bcm590xx.h
new file mode 100644
index 000000000000..434df2d4e587
--- /dev/null
+++ b/include/linux/mfd/bcm590xx.h
@@ -0,0 +1,31 @@
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 0xe7
23
24struct bcm590xx {
25 struct device *dev;
26 struct i2c_client *i2c_client;
27 struct regmap *regmap;
28 unsigned int id;
29};
30
31#endif /* __LINUX_MFD_BCM590XX_H */