xref: /linux/include/linux/mfd/da9055/pdata.h (revision 90a38d999739f35f4fc925c875e6ee518546b66c)
1*90a38d99SGeert Uytterhoeven /* Copyright (C) 2012 Dialog Semiconductor Ltd.
22896434cSAshish Jangam  *
32896434cSAshish Jangam  *  This program is free software; you can redistribute it and/or modify
42896434cSAshish Jangam  *  it under the terms of the GNU General Public License as published by
52896434cSAshish Jangam  *  the Free Software Foundation; either version 2 of the License, or
62896434cSAshish Jangam  *  (at your option) any later version.
72896434cSAshish Jangam  *
82896434cSAshish Jangam  */
92896434cSAshish Jangam #ifndef __DA9055_PDATA_H
102896434cSAshish Jangam #define __DA9055_PDATA_H
112896434cSAshish Jangam 
122896434cSAshish Jangam #define DA9055_MAX_REGULATORS	8
132896434cSAshish Jangam 
142896434cSAshish Jangam struct da9055;
152896434cSAshish Jangam 
162896434cSAshish Jangam enum gpio_select {
172896434cSAshish Jangam 	NO_GPIO = 0,
182896434cSAshish Jangam 	GPIO_1,
192896434cSAshish Jangam 	GPIO_2
202896434cSAshish Jangam };
212896434cSAshish Jangam 
222896434cSAshish Jangam struct da9055_pdata {
232896434cSAshish Jangam 	int (*init) (struct da9055 *da9055);
242896434cSAshish Jangam 	int irq_base;
252896434cSAshish Jangam 	int gpio_base;
262896434cSAshish Jangam 
272896434cSAshish Jangam 	struct regulator_init_data *regulators[DA9055_MAX_REGULATORS];
282896434cSAshish Jangam 	bool reset_enable;		/* Enable RTC in RESET Mode */
292896434cSAshish Jangam 	enum gpio_select *gpio_rsel;	/* Select regulator set thru GPIO 1/2 */
302896434cSAshish Jangam 	enum gpio_select *gpio_ren;	/* Enable regulator thru GPIO 1/2 */
312896434cSAshish Jangam };
322896434cSAshish Jangam #endif /* __DA9055_PDATA_H */
33