~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/regulator/max8973-regulator.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0-or-later */
  2 /*
  3  * max8973-regulator.h -- MAXIM 8973 regulator
  4  *
  5  * Interface for regulator driver for MAXIM 8973 DC-DC step-down
  6  * switching regulator.
  7  *
  8  * Copyright (C) 2012 NVIDIA Corporation
  9 
 10  * Author: Laxman Dewangan <ldewangan@nvidia.com>
 11  */
 12 
 13 #ifndef __LINUX_REGULATOR_MAX8973_H
 14 #define __LINUX_REGULATOR_MAX8973_H
 15 
 16 /*
 17  * Control flags for configuration of the device.
 18  * Client need to pass this information with ORed
 19  */
 20 #define MAX8973_CONTROL_REMOTE_SENSE_ENABLE                     0x00000001
 21 #define MAX8973_CONTROL_FALLING_SLEW_RATE_ENABLE                0x00000002
 22 #define MAX8973_CONTROL_OUTPUT_ACTIVE_DISCH_ENABLE              0x00000004
 23 #define MAX8973_CONTROL_BIAS_ENABLE                             0x00000008
 24 #define MAX8973_CONTROL_PULL_DOWN_ENABLE                        0x00000010
 25 #define MAX8973_CONTROL_FREQ_SHIFT_9PER_ENABLE                  0x00000020
 26 
 27 #define MAX8973_CONTROL_CLKADV_TRIP_DISABLED                    0x00000000
 28 #define MAX8973_CONTROL_CLKADV_TRIP_75mV_PER_US                 0x00010000
 29 #define MAX8973_CONTROL_CLKADV_TRIP_150mV_PER_US                0x00020000
 30 #define MAX8973_CONTROL_CLKADV_TRIP_75mV_PER_US_HIST_DIS        0x00030000
 31 
 32 #define MAX8973_CONTROL_INDUCTOR_VALUE_NOMINAL                  0x00000000
 33 #define MAX8973_CONTROL_INDUCTOR_VALUE_MINUS_30_PER             0x00100000
 34 #define MAX8973_CONTROL_INDUCTOR_VALUE_PLUS_30_PER              0x00200000
 35 #define MAX8973_CONTROL_INDUCTOR_VALUE_PLUS_60_PER              0x00300000
 36 
 37 /*
 38  * struct max8973_regulator_platform_data - max8973 regulator platform data.
 39  *
 40  * @reg_init_data: The regulator init data.
 41  * @control_flags: Control flags which are ORed value of above flags to
 42  *              configure device.
 43  * @junction_temp_warning: Junction temp in millicelcius on which warning need
 44  *                         to be set. Thermal functionality is only supported on
 45  *                         MAX77621. The threshold warning supported by MAX77621
 46  *                         are 120C and 140C.
 47  * @enable_ext_control: Enable the voltage enable/disable through external
 48  *              control signal from EN input pin. If it is false then
 49  *              voltage output will be enabled/disabled through EN bit of
 50  *              device register.
 51  * @dvs_def_state: Default state of dvs. 1 if it is high else 0.
 52  */
 53 struct max8973_regulator_platform_data {
 54         struct regulator_init_data *reg_init_data;
 55         unsigned long control_flags;
 56         unsigned long junction_temp_warning;
 57         bool enable_ext_control;
 58         unsigned dvs_def_state:1;
 59 };
 60 
 61 #endif /* __LINUX_REGULATOR_MAX8973_H */
 62 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php