11028a37dSJames Ban /* 2005547e0SJames Ban * da9211.h - Regulator device driver for DA9211/DA9213 31028a37dSJames Ban * Copyright (C) 2014 Dialog Semiconductor Ltd. 41028a37dSJames Ban * 51028a37dSJames Ban * This library is free software; you can redistribute it and/or 61028a37dSJames Ban * modify it under the terms of the GNU Library General Public 71028a37dSJames Ban * License as published by the Free Software Foundation; either 81028a37dSJames Ban * version 2 of the License, or (at your option) any later version. 91028a37dSJames Ban * 101028a37dSJames Ban * This library is distributed in the hope that it will be useful, 111028a37dSJames Ban * but WITHOUT ANY WARRANTY; without even the implied warranty of 121028a37dSJames Ban * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 131028a37dSJames Ban * Library General Public License for more details. 141028a37dSJames Ban */ 151028a37dSJames Ban 161028a37dSJames Ban #ifndef __LINUX_REGULATOR_DA9211_H 171028a37dSJames Ban #define __LINUX_REGULATOR_DA9211_H 181028a37dSJames Ban 191028a37dSJames Ban #include <linux/regulator/machine.h> 201028a37dSJames Ban 211028a37dSJames Ban #define DA9211_MAX_REGULATORS 2 221028a37dSJames Ban 23005547e0SJames Ban enum da9211_chip_id { 24005547e0SJames Ban DA9211, 25005547e0SJames Ban DA9213, 26005547e0SJames Ban }; 27005547e0SJames Ban 281028a37dSJames Ban struct da9211_pdata { 291028a37dSJames Ban /* 301028a37dSJames Ban * Number of buck 311028a37dSJames Ban * 1 : 4 phase 1 buck 321028a37dSJames Ban * 2 : 2 phase 2 buck 331028a37dSJames Ban */ 341028a37dSJames Ban int num_buck; 35*bf3baca6SJames Ban struct regulator_init_data *init_data[DA9211_MAX_REGULATORS]; 361028a37dSJames Ban }; 371028a37dSJames Ban #endif 38