Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * Broadcom BCM590xx PMU
0004  *
0005  * Copyright 2014 Linaro Limited
0006  * Author: Matt Porter <mporter@linaro.org>
0007  */
0008 
0009 #ifndef __LINUX_MFD_BCM590XX_H
0010 #define __LINUX_MFD_BCM590XX_H
0011 
0012 #include <linux/device.h>
0013 #include <linux/i2c.h>
0014 #include <linux/regmap.h>
0015 
0016 /* max register address */
0017 #define BCM590XX_MAX_REGISTER_PRI   0xe7
0018 #define BCM590XX_MAX_REGISTER_SEC   0xf0
0019 
0020 struct bcm590xx {
0021     struct device *dev;
0022     struct i2c_client *i2c_pri;
0023     struct i2c_client *i2c_sec;
0024     struct regmap *regmap_pri;
0025     struct regmap *regmap_sec;
0026     unsigned int id;
0027 };
0028 
0029 #endif /*  __LINUX_MFD_BCM590XX_H */