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

TOMOYO Linux Cross Reference
Linux/include/linux/mfd/wm8350/rtc.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/wm8350/rtc.h (Architecture m68k) and /include/linux/mfd/wm8350/rtc.h (Architecture i386)


  1 /* SPDX-License-Identifier: GPL-2.0-or-later *      1 /* SPDX-License-Identifier: GPL-2.0-or-later */
  2 /*                                                  2 /*
  3  * rtc.h  --  RTC driver for Wolfson WM8350 PM      3  * rtc.h  --  RTC driver for Wolfson WM8350 PMIC
  4  *                                                  4  *
  5  * Copyright 2007 Wolfson Microelectronics PLC      5  * Copyright 2007 Wolfson Microelectronics PLC
  6  */                                                 6  */
  7                                                     7 
  8 #ifndef __LINUX_MFD_WM8350_RTC_H                    8 #ifndef __LINUX_MFD_WM8350_RTC_H
  9 #define __LINUX_MFD_WM8350_RTC_H                    9 #define __LINUX_MFD_WM8350_RTC_H
 10                                                    10 
 11 #include <linux/platform_device.h>                 11 #include <linux/platform_device.h>
 12                                                    12 
 13 /*                                                 13 /*
 14  * Register values.                                14  * Register values.
 15  */                                                15  */
 16 #define WM8350_RTC_SECONDS_MINUTES                 16 #define WM8350_RTC_SECONDS_MINUTES              0x10
 17 #define WM8350_RTC_HOURS_DAY                       17 #define WM8350_RTC_HOURS_DAY                    0x11
 18 #define WM8350_RTC_DATE_MONTH                      18 #define WM8350_RTC_DATE_MONTH                   0x12
 19 #define WM8350_RTC_YEAR                            19 #define WM8350_RTC_YEAR                         0x13
 20 #define WM8350_ALARM_SECONDS_MINUTES               20 #define WM8350_ALARM_SECONDS_MINUTES            0x14
 21 #define WM8350_ALARM_HOURS_DAY                     21 #define WM8350_ALARM_HOURS_DAY                  0x15
 22 #define WM8350_ALARM_DATE_MONTH                    22 #define WM8350_ALARM_DATE_MONTH                 0x16
 23 #define WM8350_RTC_TIME_CONTROL                    23 #define WM8350_RTC_TIME_CONTROL                 0x17
 24                                                    24 
 25 /*                                                 25 /*
 26  * R16 (0x10) - RTC Seconds/Minutes                26  * R16 (0x10) - RTC Seconds/Minutes
 27  */                                                27  */
 28 #define WM8350_RTC_MINS_MASK                       28 #define WM8350_RTC_MINS_MASK                    0x7F00
 29 #define WM8350_RTC_MINS_SHIFT                      29 #define WM8350_RTC_MINS_SHIFT                        8
 30 #define WM8350_RTC_SECS_MASK                       30 #define WM8350_RTC_SECS_MASK                    0x007F
 31 #define WM8350_RTC_SECS_SHIFT                      31 #define WM8350_RTC_SECS_SHIFT                        0
 32                                                    32 
 33 /*                                                 33 /*
 34  * R17 (0x11) - RTC Hours/Day                      34  * R17 (0x11) - RTC Hours/Day
 35  */                                                35  */
 36 #define WM8350_RTC_DAY_MASK                        36 #define WM8350_RTC_DAY_MASK                     0x0700
 37 #define WM8350_RTC_DAY_SHIFT                       37 #define WM8350_RTC_DAY_SHIFT                         8
 38 #define WM8350_RTC_HPM_MASK                        38 #define WM8350_RTC_HPM_MASK                     0x0020
 39 #define WM8350_RTC_HPM_SHIFT                       39 #define WM8350_RTC_HPM_SHIFT                         5
 40 #define WM8350_RTC_HRS_MASK                        40 #define WM8350_RTC_HRS_MASK                     0x001F
 41 #define WM8350_RTC_HRS_SHIFT                       41 #define WM8350_RTC_HRS_SHIFT                         0
 42                                                    42 
 43 /* Bit values for R21 (0x15) */                    43 /* Bit values for R21 (0x15) */
 44 #define WM8350_RTC_DAY_SUN                         44 #define WM8350_RTC_DAY_SUN                           1
 45 #define WM8350_RTC_DAY_MON                         45 #define WM8350_RTC_DAY_MON                           2
 46 #define WM8350_RTC_DAY_TUE                         46 #define WM8350_RTC_DAY_TUE                           3
 47 #define WM8350_RTC_DAY_WED                         47 #define WM8350_RTC_DAY_WED                           4
 48 #define WM8350_RTC_DAY_THU                         48 #define WM8350_RTC_DAY_THU                           5
 49 #define WM8350_RTC_DAY_FRI                         49 #define WM8350_RTC_DAY_FRI                           6
 50 #define WM8350_RTC_DAY_SAT                         50 #define WM8350_RTC_DAY_SAT                           7
 51                                                    51 
 52 #define WM8350_RTC_HPM_AM                          52 #define WM8350_RTC_HPM_AM                            0
 53 #define WM8350_RTC_HPM_PM                          53 #define WM8350_RTC_HPM_PM                            1
 54                                                    54 
 55 /*                                                 55 /*
 56  * R18 (0x12) - RTC Date/Month                     56  * R18 (0x12) - RTC Date/Month
 57  */                                                57  */
 58 #define WM8350_RTC_MTH_MASK                        58 #define WM8350_RTC_MTH_MASK                     0x1F00
 59 #define WM8350_RTC_MTH_SHIFT                       59 #define WM8350_RTC_MTH_SHIFT                         8
 60 #define WM8350_RTC_DATE_MASK                       60 #define WM8350_RTC_DATE_MASK                    0x003F
 61 #define WM8350_RTC_DATE_SHIFT                      61 #define WM8350_RTC_DATE_SHIFT                        0
 62                                                    62 
 63 /* Bit values for R22 (0x16) */                    63 /* Bit values for R22 (0x16) */
 64 #define WM8350_RTC_MTH_JAN                         64 #define WM8350_RTC_MTH_JAN                           1
 65 #define WM8350_RTC_MTH_FEB                         65 #define WM8350_RTC_MTH_FEB                           2
 66 #define WM8350_RTC_MTH_MAR                         66 #define WM8350_RTC_MTH_MAR                           3
 67 #define WM8350_RTC_MTH_APR                         67 #define WM8350_RTC_MTH_APR                           4
 68 #define WM8350_RTC_MTH_MAY                         68 #define WM8350_RTC_MTH_MAY                           5
 69 #define WM8350_RTC_MTH_JUN                         69 #define WM8350_RTC_MTH_JUN                           6
 70 #define WM8350_RTC_MTH_JUL                         70 #define WM8350_RTC_MTH_JUL                           7
 71 #define WM8350_RTC_MTH_AUG                         71 #define WM8350_RTC_MTH_AUG                           8
 72 #define WM8350_RTC_MTH_SEP                         72 #define WM8350_RTC_MTH_SEP                           9
 73 #define WM8350_RTC_MTH_OCT                         73 #define WM8350_RTC_MTH_OCT                          10
 74 #define WM8350_RTC_MTH_NOV                         74 #define WM8350_RTC_MTH_NOV                          11
 75 #define WM8350_RTC_MTH_DEC                         75 #define WM8350_RTC_MTH_DEC                          12
 76 #define WM8350_RTC_MTH_JAN_BCD                     76 #define WM8350_RTC_MTH_JAN_BCD                    0x01
 77 #define WM8350_RTC_MTH_FEB_BCD                     77 #define WM8350_RTC_MTH_FEB_BCD                    0x02
 78 #define WM8350_RTC_MTH_MAR_BCD                     78 #define WM8350_RTC_MTH_MAR_BCD                    0x03
 79 #define WM8350_RTC_MTH_APR_BCD                     79 #define WM8350_RTC_MTH_APR_BCD                    0x04
 80 #define WM8350_RTC_MTH_MAY_BCD                     80 #define WM8350_RTC_MTH_MAY_BCD                    0x05
 81 #define WM8350_RTC_MTH_JUN_BCD                     81 #define WM8350_RTC_MTH_JUN_BCD                    0x06
 82 #define WM8350_RTC_MTH_JUL_BCD                     82 #define WM8350_RTC_MTH_JUL_BCD                    0x07
 83 #define WM8350_RTC_MTH_AUG_BCD                     83 #define WM8350_RTC_MTH_AUG_BCD                    0x08
 84 #define WM8350_RTC_MTH_SEP_BCD                     84 #define WM8350_RTC_MTH_SEP_BCD                    0x09
 85 #define WM8350_RTC_MTH_OCT_BCD                     85 #define WM8350_RTC_MTH_OCT_BCD                    0x10
 86 #define WM8350_RTC_MTH_NOV_BCD                     86 #define WM8350_RTC_MTH_NOV_BCD                    0x11
 87 #define WM8350_RTC_MTH_DEC_BCD                     87 #define WM8350_RTC_MTH_DEC_BCD                    0x12
 88                                                    88 
 89 /*                                                 89 /*
 90  * R19 (0x13) - RTC Year                           90  * R19 (0x13) - RTC Year
 91  */                                                91  */
 92 #define WM8350_RTC_YHUNDREDS_MASK                  92 #define WM8350_RTC_YHUNDREDS_MASK               0x3F00
 93 #define WM8350_RTC_YHUNDREDS_SHIFT                 93 #define WM8350_RTC_YHUNDREDS_SHIFT                   8
 94 #define WM8350_RTC_YUNITS_MASK                     94 #define WM8350_RTC_YUNITS_MASK                  0x00FF
 95 #define WM8350_RTC_YUNITS_SHIFT                    95 #define WM8350_RTC_YUNITS_SHIFT                      0
 96                                                    96 
 97 /*                                                 97 /*
 98  * R20 (0x14) - Alarm Seconds/Minutes              98  * R20 (0x14) - Alarm Seconds/Minutes
 99  */                                                99  */
100 #define WM8350_RTC_ALMMINS_MASK                   100 #define WM8350_RTC_ALMMINS_MASK                 0x7F00
101 #define WM8350_RTC_ALMMINS_SHIFT                  101 #define WM8350_RTC_ALMMINS_SHIFT                     8
102 #define WM8350_RTC_ALMSECS_MASK                   102 #define WM8350_RTC_ALMSECS_MASK                 0x007F
103 #define WM8350_RTC_ALMSECS_SHIFT                  103 #define WM8350_RTC_ALMSECS_SHIFT                     0
104                                                   104 
105 /* Bit values for R20 (0x14) */                   105 /* Bit values for R20 (0x14) */
106 #define WM8350_RTC_ALMMINS_DONT_CARE              106 #define WM8350_RTC_ALMMINS_DONT_CARE                -1
107 #define WM8350_RTC_ALMSECS_DONT_CARE              107 #define WM8350_RTC_ALMSECS_DONT_CARE                -1
108                                                   108 
109 /*                                                109 /*
110  * R21 (0x15) - Alarm Hours/Day                   110  * R21 (0x15) - Alarm Hours/Day
111  */                                               111  */
112 #define WM8350_RTC_ALMDAY_MASK                    112 #define WM8350_RTC_ALMDAY_MASK                  0x0F00
113 #define WM8350_RTC_ALMDAY_SHIFT                   113 #define WM8350_RTC_ALMDAY_SHIFT                      8
114 #define WM8350_RTC_ALMHPM_MASK                    114 #define WM8350_RTC_ALMHPM_MASK                  0x0020
115 #define WM8350_RTC_ALMHPM_SHIFT                   115 #define WM8350_RTC_ALMHPM_SHIFT                      5
116 #define WM8350_RTC_ALMHRS_MASK                    116 #define WM8350_RTC_ALMHRS_MASK                  0x001F
117 #define WM8350_RTC_ALMHRS_SHIFT                   117 #define WM8350_RTC_ALMHRS_SHIFT                      0
118                                                   118 
119 /* Bit values for R21 (0x15) */                   119 /* Bit values for R21 (0x15) */
120 #define WM8350_RTC_ALMDAY_DONT_CARE               120 #define WM8350_RTC_ALMDAY_DONT_CARE                 -1
121 #define WM8350_RTC_ALMDAY_SUN                     121 #define WM8350_RTC_ALMDAY_SUN                        1
122 #define WM8350_RTC_ALMDAY_MON                     122 #define WM8350_RTC_ALMDAY_MON                        2
123 #define WM8350_RTC_ALMDAY_TUE                     123 #define WM8350_RTC_ALMDAY_TUE                        3
124 #define WM8350_RTC_ALMDAY_WED                     124 #define WM8350_RTC_ALMDAY_WED                        4
125 #define WM8350_RTC_ALMDAY_THU                     125 #define WM8350_RTC_ALMDAY_THU                        5
126 #define WM8350_RTC_ALMDAY_FRI                     126 #define WM8350_RTC_ALMDAY_FRI                        6
127 #define WM8350_RTC_ALMDAY_SAT                     127 #define WM8350_RTC_ALMDAY_SAT                        7
128                                                   128 
129 #define WM8350_RTC_ALMHPM_AM                      129 #define WM8350_RTC_ALMHPM_AM                         0
130 #define WM8350_RTC_ALMHPM_PM                      130 #define WM8350_RTC_ALMHPM_PM                         1
131                                                   131 
132 #define WM8350_RTC_ALMHRS_DONT_CARE               132 #define WM8350_RTC_ALMHRS_DONT_CARE                 -1
133                                                   133 
134 /*                                                134 /*
135  * R22 (0x16) - Alarm Date/Month                  135  * R22 (0x16) - Alarm Date/Month
136  */                                               136  */
137 #define WM8350_RTC_ALMMTH_MASK                    137 #define WM8350_RTC_ALMMTH_MASK                  0x1F00
138 #define WM8350_RTC_ALMMTH_SHIFT                   138 #define WM8350_RTC_ALMMTH_SHIFT                      8
139 #define WM8350_RTC_ALMDATE_MASK                   139 #define WM8350_RTC_ALMDATE_MASK                 0x003F
140 #define WM8350_RTC_ALMDATE_SHIFT                  140 #define WM8350_RTC_ALMDATE_SHIFT                     0
141                                                   141 
142 /* Bit values for R22 (0x16) */                   142 /* Bit values for R22 (0x16) */
143 #define WM8350_RTC_ALMDATE_DONT_CARE              143 #define WM8350_RTC_ALMDATE_DONT_CARE                -1
144                                                   144 
145 #define WM8350_RTC_ALMMTH_DONT_CARE               145 #define WM8350_RTC_ALMMTH_DONT_CARE                 -1
146 #define WM8350_RTC_ALMMTH_JAN                     146 #define WM8350_RTC_ALMMTH_JAN                        1
147 #define WM8350_RTC_ALMMTH_FEB                     147 #define WM8350_RTC_ALMMTH_FEB                        2
148 #define WM8350_RTC_ALMMTH_MAR                     148 #define WM8350_RTC_ALMMTH_MAR                        3
149 #define WM8350_RTC_ALMMTH_APR                     149 #define WM8350_RTC_ALMMTH_APR                        4
150 #define WM8350_RTC_ALMMTH_MAY                     150 #define WM8350_RTC_ALMMTH_MAY                        5
151 #define WM8350_RTC_ALMMTH_JUN                     151 #define WM8350_RTC_ALMMTH_JUN                        6
152 #define WM8350_RTC_ALMMTH_JUL                     152 #define WM8350_RTC_ALMMTH_JUL                        7
153 #define WM8350_RTC_ALMMTH_AUG                     153 #define WM8350_RTC_ALMMTH_AUG                        8
154 #define WM8350_RTC_ALMMTH_SEP                     154 #define WM8350_RTC_ALMMTH_SEP                        9
155 #define WM8350_RTC_ALMMTH_OCT                     155 #define WM8350_RTC_ALMMTH_OCT                       10
156 #define WM8350_RTC_ALMMTH_NOV                     156 #define WM8350_RTC_ALMMTH_NOV                       11
157 #define WM8350_RTC_ALMMTH_DEC                     157 #define WM8350_RTC_ALMMTH_DEC                       12
158 #define WM8350_RTC_ALMMTH_JAN_BCD                 158 #define WM8350_RTC_ALMMTH_JAN_BCD                 0x01
159 #define WM8350_RTC_ALMMTH_FEB_BCD                 159 #define WM8350_RTC_ALMMTH_FEB_BCD                 0x02
160 #define WM8350_RTC_ALMMTH_MAR_BCD                 160 #define WM8350_RTC_ALMMTH_MAR_BCD                 0x03
161 #define WM8350_RTC_ALMMTH_APR_BCD                 161 #define WM8350_RTC_ALMMTH_APR_BCD                 0x04
162 #define WM8350_RTC_ALMMTH_MAY_BCD                 162 #define WM8350_RTC_ALMMTH_MAY_BCD                 0x05
163 #define WM8350_RTC_ALMMTH_JUN_BCD                 163 #define WM8350_RTC_ALMMTH_JUN_BCD                 0x06
164 #define WM8350_RTC_ALMMTH_JUL_BCD                 164 #define WM8350_RTC_ALMMTH_JUL_BCD                 0x07
165 #define WM8350_RTC_ALMMTH_AUG_BCD                 165 #define WM8350_RTC_ALMMTH_AUG_BCD                 0x08
166 #define WM8350_RTC_ALMMTH_SEP_BCD                 166 #define WM8350_RTC_ALMMTH_SEP_BCD                 0x09
167 #define WM8350_RTC_ALMMTH_OCT_BCD                 167 #define WM8350_RTC_ALMMTH_OCT_BCD                 0x10
168 #define WM8350_RTC_ALMMTH_NOV_BCD                 168 #define WM8350_RTC_ALMMTH_NOV_BCD                 0x11
169 #define WM8350_RTC_ALMMTH_DEC_BCD                 169 #define WM8350_RTC_ALMMTH_DEC_BCD                 0x12
170                                                   170 
171 /*                                                171 /*
172  * R23 (0x17) - RTC Time Control                  172  * R23 (0x17) - RTC Time Control
173  */                                               173  */
174 #define WM8350_RTC_BCD                            174 #define WM8350_RTC_BCD                          0x8000
175 #define WM8350_RTC_BCD_MASK                       175 #define WM8350_RTC_BCD_MASK                     0x8000
176 #define WM8350_RTC_BCD_SHIFT                      176 #define WM8350_RTC_BCD_SHIFT                        15
177 #define WM8350_RTC_12HR                           177 #define WM8350_RTC_12HR                         0x4000
178 #define WM8350_RTC_12HR_MASK                      178 #define WM8350_RTC_12HR_MASK                    0x4000
179 #define WM8350_RTC_12HR_SHIFT                     179 #define WM8350_RTC_12HR_SHIFT                       14
180 #define WM8350_RTC_DST                            180 #define WM8350_RTC_DST                          0x2000
181 #define WM8350_RTC_DST_MASK                       181 #define WM8350_RTC_DST_MASK                     0x2000
182 #define WM8350_RTC_DST_SHIFT                      182 #define WM8350_RTC_DST_SHIFT                        13
183 #define WM8350_RTC_SET                            183 #define WM8350_RTC_SET                          0x0800
184 #define WM8350_RTC_SET_MASK                       184 #define WM8350_RTC_SET_MASK                     0x0800
185 #define WM8350_RTC_SET_SHIFT                      185 #define WM8350_RTC_SET_SHIFT                        11
186 #define WM8350_RTC_STS                            186 #define WM8350_RTC_STS                          0x0400
187 #define WM8350_RTC_STS_MASK                       187 #define WM8350_RTC_STS_MASK                     0x0400
188 #define WM8350_RTC_STS_SHIFT                      188 #define WM8350_RTC_STS_SHIFT                        10
189 #define WM8350_RTC_ALMSET                         189 #define WM8350_RTC_ALMSET                       0x0200
190 #define WM8350_RTC_ALMSET_MASK                    190 #define WM8350_RTC_ALMSET_MASK                  0x0200
191 #define WM8350_RTC_ALMSET_SHIFT                   191 #define WM8350_RTC_ALMSET_SHIFT                      9
192 #define WM8350_RTC_ALMSTS                         192 #define WM8350_RTC_ALMSTS                       0x0100
193 #define WM8350_RTC_ALMSTS_MASK                    193 #define WM8350_RTC_ALMSTS_MASK                  0x0100
194 #define WM8350_RTC_ALMSTS_SHIFT                   194 #define WM8350_RTC_ALMSTS_SHIFT                      8
195 #define WM8350_RTC_PINT                           195 #define WM8350_RTC_PINT                         0x0070
196 #define WM8350_RTC_PINT_MASK                      196 #define WM8350_RTC_PINT_MASK                    0x0070
197 #define WM8350_RTC_PINT_SHIFT                     197 #define WM8350_RTC_PINT_SHIFT                        4
198 #define WM8350_RTC_DSW                            198 #define WM8350_RTC_DSW                          0x000F
199 #define WM8350_RTC_DSW_MASK                       199 #define WM8350_RTC_DSW_MASK                     0x000F
200 #define WM8350_RTC_DSW_SHIFT                      200 #define WM8350_RTC_DSW_SHIFT                         0
201                                                   201 
202 /* Bit values for R23 (0x17) */                   202 /* Bit values for R23 (0x17) */
203 #define WM8350_RTC_BCD_BINARY                     203 #define WM8350_RTC_BCD_BINARY                        0
204 #define WM8350_RTC_BCD_BCD                        204 #define WM8350_RTC_BCD_BCD                           1
205                                                   205 
206 #define WM8350_RTC_12HR_24HR                      206 #define WM8350_RTC_12HR_24HR                         0
207 #define WM8350_RTC_12HR_12HR                      207 #define WM8350_RTC_12HR_12HR                         1
208                                                   208 
209 #define WM8350_RTC_DST_DISABLED                   209 #define WM8350_RTC_DST_DISABLED                      0
210 #define WM8350_RTC_DST_ENABLED                    210 #define WM8350_RTC_DST_ENABLED                       1
211                                                   211 
212 #define WM8350_RTC_SET_RUN                        212 #define WM8350_RTC_SET_RUN                           0
213 #define WM8350_RTC_SET_SET                        213 #define WM8350_RTC_SET_SET                           1
214                                                   214 
215 #define WM8350_RTC_STS_RUNNING                    215 #define WM8350_RTC_STS_RUNNING                       0
216 #define WM8350_RTC_STS_STOPPED                    216 #define WM8350_RTC_STS_STOPPED                       1
217                                                   217 
218 #define WM8350_RTC_ALMSET_RUN                     218 #define WM8350_RTC_ALMSET_RUN                        0
219 #define WM8350_RTC_ALMSET_SET                     219 #define WM8350_RTC_ALMSET_SET                        1
220                                                   220 
221 #define WM8350_RTC_ALMSTS_RUNNING                 221 #define WM8350_RTC_ALMSTS_RUNNING                    0
222 #define WM8350_RTC_ALMSTS_STOPPED                 222 #define WM8350_RTC_ALMSTS_STOPPED                    1
223                                                   223 
224 #define WM8350_RTC_PINT_DISABLED                  224 #define WM8350_RTC_PINT_DISABLED                     0
225 #define WM8350_RTC_PINT_SECS                      225 #define WM8350_RTC_PINT_SECS                         1
226 #define WM8350_RTC_PINT_MINS                      226 #define WM8350_RTC_PINT_MINS                         2
227 #define WM8350_RTC_PINT_HRS                       227 #define WM8350_RTC_PINT_HRS                          3
228 #define WM8350_RTC_PINT_DAYS                      228 #define WM8350_RTC_PINT_DAYS                         4
229 #define WM8350_RTC_PINT_MTHS                      229 #define WM8350_RTC_PINT_MTHS                         5
230                                                   230 
231 #define WM8350_RTC_DSW_DISABLED                   231 #define WM8350_RTC_DSW_DISABLED                      0
232 #define WM8350_RTC_DSW_1HZ                        232 #define WM8350_RTC_DSW_1HZ                           1
233 #define WM8350_RTC_DSW_2HZ                        233 #define WM8350_RTC_DSW_2HZ                           2
234 #define WM8350_RTC_DSW_4HZ                        234 #define WM8350_RTC_DSW_4HZ                           3
235 #define WM8350_RTC_DSW_8HZ                        235 #define WM8350_RTC_DSW_8HZ                           4
236 #define WM8350_RTC_DSW_16HZ                       236 #define WM8350_RTC_DSW_16HZ                          5
237 #define WM8350_RTC_DSW_32HZ                       237 #define WM8350_RTC_DSW_32HZ                          6
238 #define WM8350_RTC_DSW_64HZ                       238 #define WM8350_RTC_DSW_64HZ                          7
239 #define WM8350_RTC_DSW_128HZ                      239 #define WM8350_RTC_DSW_128HZ                         8
240 #define WM8350_RTC_DSW_256HZ                      240 #define WM8350_RTC_DSW_256HZ                         9
241 #define WM8350_RTC_DSW_512HZ                      241 #define WM8350_RTC_DSW_512HZ                        10
242 #define WM8350_RTC_DSW_1024HZ                     242 #define WM8350_RTC_DSW_1024HZ                       11
243                                                   243 
244 /*                                                244 /*
245  * R218 (0xDA) - RTC Tick Control                 245  * R218 (0xDA) - RTC Tick Control
246  */                                               246  */
247 #define WM8350_RTC_TICKSTS                        247 #define WM8350_RTC_TICKSTS                      0x4000
248 #define WM8350_RTC_CLKSRC                         248 #define WM8350_RTC_CLKSRC                       0x2000
249 #define WM8350_RTC_TRIM_MASK                      249 #define WM8350_RTC_TRIM_MASK                    0x03FF
250                                                   250 
251 /*                                                251 /*
252  * RTC Interrupts.                                252  * RTC Interrupts.
253  */                                               253  */
254 #define WM8350_IRQ_RTC_PER                        254 #define WM8350_IRQ_RTC_PER                      7
255 #define WM8350_IRQ_RTC_SEC                        255 #define WM8350_IRQ_RTC_SEC                      8
256 #define WM8350_IRQ_RTC_ALM                        256 #define WM8350_IRQ_RTC_ALM                      9
257                                                   257 
258 struct wm8350_rtc {                               258 struct wm8350_rtc {
259         struct platform_device *pdev;             259         struct platform_device *pdev;
260         struct rtc_device *rtc;                   260         struct rtc_device *rtc;
261         int alarm_enabled;      /* used over s    261         int alarm_enabled;      /* used over suspend/resume */
262         int update_enabled;                       262         int update_enabled;
263 };                                                263 };
264                                                   264 
265 #endif                                            265 #endif
266                                                   266 

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