1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/* Copyright (C) 2012 Dialog Semiconductor Ltd.
3 */
4#ifndef __DA9055_PDATA_H
5#define __DA9055_PDATA_H
6
7#define DA9055_MAX_REGULATORS	8
8
9struct da9055;
10
11enum gpio_select {
12	NO_GPIO = 0,
13	GPIO_1,
14	GPIO_2
15};
16
17struct da9055_pdata {
18	int (*init) (struct da9055 *da9055);
19	int irq_base;
20	int gpio_base;
21
22	struct regulator_init_data *regulators[DA9055_MAX_REGULATORS];
23	/* Enable RTC in RESET Mode */
24	bool reset_enable;
25	/*
26	 * Regulator mode control bits value (GPI offset) that
27	 * controls the regulator state, 0 if not available.
28	 */
29	enum gpio_select *reg_ren;
30	/*
31	 * Regulator mode control bits value (GPI offset) that
32	 * controls the regulator set A/B, 0 if  not available.
33	 */
34	enum gpio_select *reg_rsel;
35};
36#endif /* __DA9055_PDATA_H */
37