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

TOMOYO Linux Cross Reference
Linux/include/linux/regulator/max1586.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ 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.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0-or-later */
  2 /*
  3  * max1586.h  --  Voltage regulation for the Maxim 1586
  4  *
  5  * Copyright (C) 2008 Robert Jarzmik
  6  */
  7 
  8 #ifndef REGULATOR_MAX1586
  9 #define REGULATOR_MAX1586
 10 
 11 #include <linux/regulator/machine.h>
 12 
 13 #define MAX1586_V3 0
 14 #define MAX1586_V6 1
 15 
 16 /* precalculated values for v3_gain */
 17 #define MAX1586_GAIN_NO_R24   1000000  /* 700000 .. 1475000 mV */
 18 #define MAX1586_GAIN_R24_3k32 1051098  /* 735768 .. 1550369 mV */
 19 #define MAX1586_GAIN_R24_5k11 1078648  /* 755053 .. 1591005 mV */
 20 #define MAX1586_GAIN_R24_7k5  1115432  /* 780802 .. 1645262 mV */
 21 
 22 /**
 23  * max1586_subdev_data - regulator data
 24  * @id: regulator Id (either MAX1586_V3 or MAX1586_V6)
 25  * @name: regulator cute name (example for V3: "vcc_core")
 26  * @platform_data: regulator init data (constraints, supplies, ...)
 27  */
 28 struct max1586_subdev_data {
 29         int                             id;
 30         const char                      *name;
 31         struct regulator_init_data      *platform_data;
 32 };
 33 
 34 /**
 35  * max1586_platform_data - platform data for max1586
 36  * @num_subdevs: number of regulators used (may be 1 or 2)
 37  * @subdevs: regulator used
 38  *           At most, there will be a regulator for V3 and one for V6 voltages.
 39  * @v3_gain: gain on the V3 voltage output multiplied by 1e6.
 40  *           This can be calculated as ((1 + R24/R25 + R24/185.5kOhm) * 1e6)
 41  *           for an external resistor configuration as described in the
 42  *           data sheet (R25=100kOhm).
 43  */
 44 struct max1586_platform_data {
 45         int num_subdevs;
 46         struct max1586_subdev_data *subdevs;
 47         int v3_gain;
 48 };
 49 
 50 #endif
 51 

~ [ 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