1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-or-later */ 2*4882a593Smuzhiyun /* 3*4882a593Smuzhiyun * tps62360.h -- TI tps62360 4*4882a593Smuzhiyun * 5*4882a593Smuzhiyun * Interface for regulator driver for TI TPS62360 Processor core supply 6*4882a593Smuzhiyun * 7*4882a593Smuzhiyun * Copyright (C) 2012 NVIDIA Corporation 8*4882a593Smuzhiyun 9*4882a593Smuzhiyun * Author: Laxman Dewangan <ldewangan@nvidia.com> 10*4882a593Smuzhiyun */ 11*4882a593Smuzhiyun 12*4882a593Smuzhiyun #ifndef __LINUX_REGULATOR_TPS62360_H 13*4882a593Smuzhiyun #define __LINUX_REGULATOR_TPS62360_H 14*4882a593Smuzhiyun 15*4882a593Smuzhiyun /* 16*4882a593Smuzhiyun * struct tps62360_regulator_platform_data - tps62360 regulator platform data. 17*4882a593Smuzhiyun * 18*4882a593Smuzhiyun * @reg_init_data: The regulator init data. 19*4882a593Smuzhiyun * @en_discharge: Enable discharge the output capacitor via internal 20*4882a593Smuzhiyun * register. 21*4882a593Smuzhiyun * @en_internal_pulldn: internal pull down enable or not. 22*4882a593Smuzhiyun * @vsel0_gpio: Gpio number for vsel0. It should be -1 if this is tied with 23*4882a593Smuzhiyun * fixed logic. 24*4882a593Smuzhiyun * @vsel1_gpio: Gpio number for vsel1. It should be -1 if this is tied with 25*4882a593Smuzhiyun * fixed logic. 26*4882a593Smuzhiyun * @vsel0_def_state: Default state of vsel0. 1 if it is high else 0. 27*4882a593Smuzhiyun * @vsel1_def_state: Default state of vsel1. 1 if it is high else 0. 28*4882a593Smuzhiyun */ 29*4882a593Smuzhiyun struct tps62360_regulator_platform_data { 30*4882a593Smuzhiyun struct regulator_init_data *reg_init_data; 31*4882a593Smuzhiyun bool en_discharge; 32*4882a593Smuzhiyun bool en_internal_pulldn; 33*4882a593Smuzhiyun int vsel0_gpio; 34*4882a593Smuzhiyun int vsel1_gpio; 35*4882a593Smuzhiyun int vsel0_def_state; 36*4882a593Smuzhiyun int vsel1_def_state; 37*4882a593Smuzhiyun }; 38*4882a593Smuzhiyun 39*4882a593Smuzhiyun #endif /* __LINUX_REGULATOR_TPS62360_H */ 40