1*84c99db8SAshish Jangam /* 2*84c99db8SAshish Jangam * Platform data declarations for DA9052 PMICs. 3*84c99db8SAshish Jangam * 4*84c99db8SAshish Jangam * Copyright(c) 2011 Dialog Semiconductor Ltd. 5*84c99db8SAshish Jangam * 6*84c99db8SAshish Jangam * Author: David Dajun Chen <[email protected]> 7*84c99db8SAshish Jangam * 8*84c99db8SAshish Jangam * This program is free software; you can redistribute it and/or modify 9*84c99db8SAshish Jangam * it under the terms of the GNU General Public License as published by 10*84c99db8SAshish Jangam * the Free Software Foundation; either version 2 of the License, or 11*84c99db8SAshish Jangam * (at your option) any later version. 12*84c99db8SAshish Jangam * 13*84c99db8SAshish Jangam * This program is distributed in the hope that it will be useful, 14*84c99db8SAshish Jangam * but WITHOUT ANY WARRANTY; without even the implied warranty of 15*84c99db8SAshish Jangam * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16*84c99db8SAshish Jangam * GNU General Public License for more details. 17*84c99db8SAshish Jangam * 18*84c99db8SAshish Jangam * You should have received a copy of the GNU General Public License 19*84c99db8SAshish Jangam * along with this program; if not, write to the Free Software 20*84c99db8SAshish Jangam * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 21*84c99db8SAshish Jangam * 22*84c99db8SAshish Jangam */ 23*84c99db8SAshish Jangam 24*84c99db8SAshish Jangam #ifndef __MFD_DA9052_PDATA_H__ 25*84c99db8SAshish Jangam #define __MFD_DA9052_PDATA_H__ 26*84c99db8SAshish Jangam 27*84c99db8SAshish Jangam #define DA9052_MAX_REGULATORS 14 28*84c99db8SAshish Jangam 29*84c99db8SAshish Jangam struct da9052; 30*84c99db8SAshish Jangam 31*84c99db8SAshish Jangam struct da9052_pdata { 32*84c99db8SAshish Jangam struct led_platform_data *pled; 33*84c99db8SAshish Jangam int (*init) (struct da9052 *da9052); 34*84c99db8SAshish Jangam int irq_base; 35*84c99db8SAshish Jangam int gpio_base; 36*84c99db8SAshish Jangam int use_for_apm; 37*84c99db8SAshish Jangam struct regulator_init_data *regulators[DA9052_MAX_REGULATORS]; 38*84c99db8SAshish Jangam }; 39*84c99db8SAshish Jangam 40*84c99db8SAshish Jangam #endif 41