Matt Porter | 037b60f | 2014-03-11 19:33:54 -0400 | [diff] [blame] | 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 */ |
Matt Porter | 9e1e726 | 2014-04-23 19:21:31 -0400 | [diff] [blame] | 22 | #define BCM590XX_MAX_REGISTER_PRI 0xe7 |
| 23 | #define BCM590XX_MAX_REGISTER_SEC 0xf0 |
Matt Porter | 037b60f | 2014-03-11 19:33:54 -0400 | [diff] [blame] | 24 | |
| 25 | struct bcm590xx { |
| 26 | struct device *dev; |
Matt Porter | 9e1e726 | 2014-04-23 19:21:31 -0400 | [diff] [blame] | 27 | struct i2c_client *i2c_pri; |
| 28 | struct i2c_client *i2c_sec; |
| 29 | struct regmap *regmap_pri; |
| 30 | struct regmap *regmap_sec; |
Matt Porter | 037b60f | 2014-03-11 19:33:54 -0400 | [diff] [blame] | 31 | unsigned int id; |
| 32 | }; |
| 33 | |
| 34 | #endif /* __LINUX_MFD_BCM590XX_H */ |