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

TOMOYO Linux Cross Reference
Linux/include/linux/mfd/samsung/s2mps14.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 ] ~

Diff markup

Differences between /include/linux/mfd/samsung/s2mps14.h (Architecture mips) and /include/linux/mfd/samsung/s2mps14.h (Architecture alpha)


  1 /* SPDX-License-Identifier: GPL-2.0+ */             1 /* SPDX-License-Identifier: GPL-2.0+ */
  2 /*                                                  2 /*
  3  * Copyright (c) 2014 Samsung Electronics Co.,      3  * Copyright (c) 2014 Samsung Electronics Co., Ltd
  4  *              http://www.samsung.com              4  *              http://www.samsung.com
  5  */                                                 5  */
  6                                                     6 
  7 #ifndef __LINUX_MFD_S2MPS14_H                       7 #ifndef __LINUX_MFD_S2MPS14_H
  8 #define __LINUX_MFD_S2MPS14_H                       8 #define __LINUX_MFD_S2MPS14_H
  9                                                     9 
 10 /* S2MPS14 registers */                            10 /* S2MPS14 registers */
 11 enum s2mps14_reg {                                 11 enum s2mps14_reg {
 12         S2MPS14_REG_ID,                            12         S2MPS14_REG_ID,
 13         S2MPS14_REG_INT1,                          13         S2MPS14_REG_INT1,
 14         S2MPS14_REG_INT2,                          14         S2MPS14_REG_INT2,
 15         S2MPS14_REG_INT3,                          15         S2MPS14_REG_INT3,
 16         S2MPS14_REG_INT1M,                         16         S2MPS14_REG_INT1M,
 17         S2MPS14_REG_INT2M,                         17         S2MPS14_REG_INT2M,
 18         S2MPS14_REG_INT3M,                         18         S2MPS14_REG_INT3M,
 19         S2MPS14_REG_ST1,                           19         S2MPS14_REG_ST1,
 20         S2MPS14_REG_ST2,                           20         S2MPS14_REG_ST2,
 21         S2MPS14_REG_PWRONSRC,                      21         S2MPS14_REG_PWRONSRC,
 22         S2MPS14_REG_OFFSRC,                        22         S2MPS14_REG_OFFSRC,
 23         S2MPS14_REG_BU_CHG,                        23         S2MPS14_REG_BU_CHG,
 24         S2MPS14_REG_RTCCTRL,                       24         S2MPS14_REG_RTCCTRL,
 25         S2MPS14_REG_CTRL1,                         25         S2MPS14_REG_CTRL1,
 26         S2MPS14_REG_CTRL2,                         26         S2MPS14_REG_CTRL2,
 27         S2MPS14_REG_RSVD1,                         27         S2MPS14_REG_RSVD1,
 28         S2MPS14_REG_RSVD2,                         28         S2MPS14_REG_RSVD2,
 29         S2MPS14_REG_RSVD3,                         29         S2MPS14_REG_RSVD3,
 30         S2MPS14_REG_RSVD4,                         30         S2MPS14_REG_RSVD4,
 31         S2MPS14_REG_RSVD5,                         31         S2MPS14_REG_RSVD5,
 32         S2MPS14_REG_RSVD6,                         32         S2MPS14_REG_RSVD6,
 33         S2MPS14_REG_CTRL3,                         33         S2MPS14_REG_CTRL3,
 34         S2MPS14_REG_RSVD7,                         34         S2MPS14_REG_RSVD7,
 35         S2MPS14_REG_RSVD8,                         35         S2MPS14_REG_RSVD8,
 36         S2MPS14_REG_WRSTBI,                        36         S2MPS14_REG_WRSTBI,
 37         S2MPS14_REG_B1CTRL1,                       37         S2MPS14_REG_B1CTRL1,
 38         S2MPS14_REG_B1CTRL2,                       38         S2MPS14_REG_B1CTRL2,
 39         S2MPS14_REG_B2CTRL1,                       39         S2MPS14_REG_B2CTRL1,
 40         S2MPS14_REG_B2CTRL2,                       40         S2MPS14_REG_B2CTRL2,
 41         S2MPS14_REG_B3CTRL1,                       41         S2MPS14_REG_B3CTRL1,
 42         S2MPS14_REG_B3CTRL2,                       42         S2MPS14_REG_B3CTRL2,
 43         S2MPS14_REG_B4CTRL1,                       43         S2MPS14_REG_B4CTRL1,
 44         S2MPS14_REG_B4CTRL2,                       44         S2MPS14_REG_B4CTRL2,
 45         S2MPS14_REG_B5CTRL1,                       45         S2MPS14_REG_B5CTRL1,
 46         S2MPS14_REG_B5CTRL2,                       46         S2MPS14_REG_B5CTRL2,
 47         S2MPS14_REG_L1CTRL,                        47         S2MPS14_REG_L1CTRL,
 48         S2MPS14_REG_L2CTRL,                        48         S2MPS14_REG_L2CTRL,
 49         S2MPS14_REG_L3CTRL,                        49         S2MPS14_REG_L3CTRL,
 50         S2MPS14_REG_L4CTRL,                        50         S2MPS14_REG_L4CTRL,
 51         S2MPS14_REG_L5CTRL,                        51         S2MPS14_REG_L5CTRL,
 52         S2MPS14_REG_L6CTRL,                        52         S2MPS14_REG_L6CTRL,
 53         S2MPS14_REG_L7CTRL,                        53         S2MPS14_REG_L7CTRL,
 54         S2MPS14_REG_L8CTRL,                        54         S2MPS14_REG_L8CTRL,
 55         S2MPS14_REG_L9CTRL,                        55         S2MPS14_REG_L9CTRL,
 56         S2MPS14_REG_L10CTRL,                       56         S2MPS14_REG_L10CTRL,
 57         S2MPS14_REG_L11CTRL,                       57         S2MPS14_REG_L11CTRL,
 58         S2MPS14_REG_L12CTRL,                       58         S2MPS14_REG_L12CTRL,
 59         S2MPS14_REG_L13CTRL,                       59         S2MPS14_REG_L13CTRL,
 60         S2MPS14_REG_L14CTRL,                       60         S2MPS14_REG_L14CTRL,
 61         S2MPS14_REG_L15CTRL,                       61         S2MPS14_REG_L15CTRL,
 62         S2MPS14_REG_L16CTRL,                       62         S2MPS14_REG_L16CTRL,
 63         S2MPS14_REG_L17CTRL,                       63         S2MPS14_REG_L17CTRL,
 64         S2MPS14_REG_L18CTRL,                       64         S2MPS14_REG_L18CTRL,
 65         S2MPS14_REG_L19CTRL,                       65         S2MPS14_REG_L19CTRL,
 66         S2MPS14_REG_L20CTRL,                       66         S2MPS14_REG_L20CTRL,
 67         S2MPS14_REG_L21CTRL,                       67         S2MPS14_REG_L21CTRL,
 68         S2MPS14_REG_L22CTRL,                       68         S2MPS14_REG_L22CTRL,
 69         S2MPS14_REG_L23CTRL,                       69         S2MPS14_REG_L23CTRL,
 70         S2MPS14_REG_L24CTRL,                       70         S2MPS14_REG_L24CTRL,
 71         S2MPS14_REG_L25CTRL,                       71         S2MPS14_REG_L25CTRL,
 72         S2MPS14_REG_LDODSCH1,                      72         S2MPS14_REG_LDODSCH1,
 73         S2MPS14_REG_LDODSCH2,                      73         S2MPS14_REG_LDODSCH2,
 74         S2MPS14_REG_LDODSCH3,                      74         S2MPS14_REG_LDODSCH3,
 75 };                                                 75 };
 76                                                    76 
 77 /* S2MPS14 regulator ids */                        77 /* S2MPS14 regulator ids */
 78 enum s2mps14_regulators {                          78 enum s2mps14_regulators {
 79         S2MPS14_LDO1,                              79         S2MPS14_LDO1,
 80         S2MPS14_LDO2,                              80         S2MPS14_LDO2,
 81         S2MPS14_LDO3,                              81         S2MPS14_LDO3,
 82         S2MPS14_LDO4,                              82         S2MPS14_LDO4,
 83         S2MPS14_LDO5,                              83         S2MPS14_LDO5,
 84         S2MPS14_LDO6,                              84         S2MPS14_LDO6,
 85         S2MPS14_LDO7,                              85         S2MPS14_LDO7,
 86         S2MPS14_LDO8,                              86         S2MPS14_LDO8,
 87         S2MPS14_LDO9,                              87         S2MPS14_LDO9,
 88         S2MPS14_LDO10,                             88         S2MPS14_LDO10,
 89         S2MPS14_LDO11,                             89         S2MPS14_LDO11,
 90         S2MPS14_LDO12,                             90         S2MPS14_LDO12,
 91         S2MPS14_LDO13,                             91         S2MPS14_LDO13,
 92         S2MPS14_LDO14,                             92         S2MPS14_LDO14,
 93         S2MPS14_LDO15,                             93         S2MPS14_LDO15,
 94         S2MPS14_LDO16,                             94         S2MPS14_LDO16,
 95         S2MPS14_LDO17,                             95         S2MPS14_LDO17,
 96         S2MPS14_LDO18,                             96         S2MPS14_LDO18,
 97         S2MPS14_LDO19,                             97         S2MPS14_LDO19,
 98         S2MPS14_LDO20,                             98         S2MPS14_LDO20,
 99         S2MPS14_LDO21,                             99         S2MPS14_LDO21,
100         S2MPS14_LDO22,                            100         S2MPS14_LDO22,
101         S2MPS14_LDO23,                            101         S2MPS14_LDO23,
102         S2MPS14_LDO24,                            102         S2MPS14_LDO24,
103         S2MPS14_LDO25,                            103         S2MPS14_LDO25,
104         S2MPS14_BUCK1,                            104         S2MPS14_BUCK1,
105         S2MPS14_BUCK2,                            105         S2MPS14_BUCK2,
106         S2MPS14_BUCK3,                            106         S2MPS14_BUCK3,
107         S2MPS14_BUCK4,                            107         S2MPS14_BUCK4,
108         S2MPS14_BUCK5,                            108         S2MPS14_BUCK5,
109                                                   109 
110         S2MPS14_REGULATOR_MAX,                    110         S2MPS14_REGULATOR_MAX,
111 };                                                111 };
112                                                   112 
113 /* Regulator constraints for BUCKx */             113 /* Regulator constraints for BUCKx */
114 #define S2MPS14_BUCK1235_START_SEL      0x20      114 #define S2MPS14_BUCK1235_START_SEL      0x20
115 #define S2MPS14_BUCK4_START_SEL         0x40      115 #define S2MPS14_BUCK4_START_SEL         0x40
116 /*                                                116 /*
117  * Default ramp delay in uv/us. Datasheet says    117  * Default ramp delay in uv/us. Datasheet says that ramp delay can be
118  * controlled however it does not specify whic    118  * controlled however it does not specify which register is used for that.
119  * Let's assume that default value will be set    119  * Let's assume that default value will be set.
120  */                                               120  */
121 #define S2MPS14_BUCK_RAMP_DELAY         12500     121 #define S2MPS14_BUCK_RAMP_DELAY         12500
122                                                   122 
123 #define S2MPS14_LDO_VSEL_MASK           0x3F      123 #define S2MPS14_LDO_VSEL_MASK           0x3F
124 #define S2MPS14_BUCK_VSEL_MASK          0xFF      124 #define S2MPS14_BUCK_VSEL_MASK          0xFF
125 #define S2MPS14_ENABLE_MASK             (0x03     125 #define S2MPS14_ENABLE_MASK             (0x03 << S2MPS14_ENABLE_SHIFT)
126 #define S2MPS14_ENABLE_SHIFT            6         126 #define S2MPS14_ENABLE_SHIFT            6
127 /* On/Off controlled by PWREN */                  127 /* On/Off controlled by PWREN */
128 #define S2MPS14_ENABLE_SUSPEND          (0x01     128 #define S2MPS14_ENABLE_SUSPEND          (0x01 << S2MPS14_ENABLE_SHIFT)
129 /* On/Off controlled by LDO10EN or EMMCEN */      129 /* On/Off controlled by LDO10EN or EMMCEN */
130 #define S2MPS14_ENABLE_EXT_CONTROL      (0x00     130 #define S2MPS14_ENABLE_EXT_CONTROL      (0x00 << S2MPS14_ENABLE_SHIFT)
131 #define S2MPS14_LDO_N_VOLTAGES          (S2MPS    131 #define S2MPS14_LDO_N_VOLTAGES          (S2MPS14_LDO_VSEL_MASK + 1)
132 #define S2MPS14_BUCK_N_VOLTAGES         (S2MPS    132 #define S2MPS14_BUCK_N_VOLTAGES         (S2MPS14_BUCK_VSEL_MASK + 1)
133                                                   133 
134 #endif /*  __LINUX_MFD_S2MPS14_H */               134 #endif /*  __LINUX_MFD_S2MPS14_H */
135                                                   135 

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