Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(449)

Side by Side Diff: arch/arm/mach-tegra/nv/include/nvodm_query_pins_ap15.h

Issue 3256004: [ARM] tegra: add nvos/nvrm/nvmap drivers (Closed) Base URL: ssh://git@gitrw.chromium.org/kernel.git
Patch Set: remove ap15 headers Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /*
2 * Copyright (c) 2008-2009 NVIDIA Corporation.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 *
8 * Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer.
10 *
11 * Redistributions in binary form must reproduce the above copyright notice,
12 * this list of conditions and the following disclaimer in the documentation
13 * and/or other materials provided with the distribution.
14 *
15 * Neither the name of the NVIDIA Corporation nor the names of its contributors
16 * may be used to endorse or promote products derived from this software
17 * without specific prior written permission.
18 *
19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
23 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGE.
30 *
31 */
32
33 /** @file
34 * <b>NVIDIA Tegra ODM Kit:
35 * Pin configurations for NVIDIA APX 2300, APX 2500, Tegra 600 and Tegra 650 processors</b>
36 *
37 * @b Description: Defines the names and configurable settings for pin electrica l
38 * attributes, such as drive strength and slew.
39 */
40
41 // This is an auto-generated file. Do not edit.
42 // Regenerate with "genpadconfig.py ap15 drivers/hwinc/ap15/arapb_misc.h"
43
44 #ifndef INCLUDED_NVODM_QUERY_PINS_AP15_H
45 #define INCLUDED_NVODM_QUERY_PINS_AP15_H
46
47 #ifdef __cplusplus
48 extern "C"
49 {
50 #endif
51
52 /**
53 * This specifies the list of pin configuration registers supported by
54 * AP15-compatible products. This should be used to generate the pin
55 * pin-attribute query array.
56 * @see NvOdmQueryPinAttributes.
57 * @ingroup nvodm_pins
58 * @{
59 */
60
61 typedef enum
62 {
63
64 /// Pin configuration registers for NVIDIA APX 2300 products
65 NvOdmPinRegister_Apx2300_PullUpDown_A = 0x100000A0UL,
66 NvOdmPinRegister_Apx2300_PullUpDown_B = 0x100000A4UL,
67 NvOdmPinRegister_Apx2300_PullUpDown_C = 0x100000A8UL,
68 NvOdmPinRegister_Apx2300_PullUpDown_D = 0x100000ACUL,
69 NvOdmPinRegister_Apx2300_PullUpDown_E = 0x100000B0UL,
70 NvOdmPinRegister_Apx2300_PadCtrl_AOCFG1 = 0x10000868UL,
71 NvOdmPinRegister_Apx2300_PadCtrl_AOCFG2 = 0x1000086CUL,
72 NvOdmPinRegister_Apx2300_PadCtrl_ATCFG1 = 0x10000870UL,
73 NvOdmPinRegister_Apx2300_PadCtrl_ATCFG2 = 0x10000874UL,
74 NvOdmPinRegister_Apx2300_PadCtrl_CDEV1CFG = 0x10000878UL,
75 NvOdmPinRegister_Apx2300_PadCtrl_CDEV2CFG = 0x1000087CUL,
76 NvOdmPinRegister_Apx2300_PadCtrl_CSUSCFG = 0x10000880UL,
77 NvOdmPinRegister_Apx2300_PadCtrl_DAP1CFG = 0x10000884UL,
78 NvOdmPinRegister_Apx2300_PadCtrl_DAP2CFG = 0x10000888UL,
79 NvOdmPinRegister_Apx2300_PadCtrl_DAP3CFG = 0x1000088CUL,
80 NvOdmPinRegister_Apx2300_PadCtrl_DAP4CFG = 0x10000890UL,
81 NvOdmPinRegister_Apx2300_PadCtrl_DBGCFG = 0x10000894UL,
82 NvOdmPinRegister_Apx2300_PadCtrl_LCDCFG1 = 0x10000898UL,
83 NvOdmPinRegister_Apx2300_PadCtrl_LCDCFG2 = 0x1000089CUL,
84 NvOdmPinRegister_Apx2300_PadCtrl_SDIO2CFG = 0x100008A0UL,
85 NvOdmPinRegister_Apx2300_PadCtrl_SDIO3CFG = 0x100008A4UL,
86 NvOdmPinRegister_Apx2300_PadCtrl_SPICFG = 0x100008A8UL,
87 NvOdmPinRegister_Apx2300_PadCtrl_UAACFG = 0x100008ACUL,
88 NvOdmPinRegister_Apx2300_PadCtrl_UABCFG = 0x100008B0UL,
89 NvOdmPinRegister_Apx2300_PadCtrl_UART2CFG = 0x100008B4UL,
90 NvOdmPinRegister_Apx2300_PadCtrl_UART3CFG = 0x100008B8UL,
91 NvOdmPinRegister_Apx2300_PadCtrl_VICFG1 = 0x100008BCUL,
92 NvOdmPinRegister_Apx2300_PadCtrl_VICFG2 = 0x100008C0UL,
93 NvOdmPinRegister_Apx2300_PadCtrl_XM2CFGA = 0x100008C4UL,
94 NvOdmPinRegister_Apx2300_PadCtrl_XM2CFGC = 0x100008C8UL,
95 NvOdmPinRegister_Apx2300_PadCtrl_XM2CFGD = 0x100008CCUL,
96 NvOdmPinRegister_Apx2300_PadCtrl_XM2CLKCFG = 0x100008D0UL,
97 NvOdmPinRegister_Apx2300_PadCtrl_MEMCOMP = 0x100008D4UL,
98
99 /// Pin configuration registers for NVIDIA APX 2500 products
100 NvOdmPinRegister_Apx2500_PullUpDown_A = 0x100000A0UL,
101 NvOdmPinRegister_Apx2500_PullUpDown_B = 0x100000A4UL,
102 NvOdmPinRegister_Apx2500_PullUpDown_C = 0x100000A8UL,
103 NvOdmPinRegister_Apx2500_PullUpDown_D = 0x100000ACUL,
104 NvOdmPinRegister_Apx2500_PullUpDown_E = 0x100000B0UL,
105 NvOdmPinRegister_Apx2500_PadCtrl_AOCFG1 = 0x10000868UL,
106 NvOdmPinRegister_Apx2500_PadCtrl_AOCFG2 = 0x1000086CUL,
107 NvOdmPinRegister_Apx2500_PadCtrl_ATCFG1 = 0x10000870UL,
108 NvOdmPinRegister_Apx2500_PadCtrl_ATCFG2 = 0x10000874UL,
109 NvOdmPinRegister_Apx2500_PadCtrl_CDEV1CFG = 0x10000878UL,
110 NvOdmPinRegister_Apx2500_PadCtrl_CDEV2CFG = 0x1000087CUL,
111 NvOdmPinRegister_Apx2500_PadCtrl_CSUSCFG = 0x10000880UL,
112 NvOdmPinRegister_Apx2500_PadCtrl_DAP1CFG = 0x10000884UL,
113 NvOdmPinRegister_Apx2500_PadCtrl_DAP2CFG = 0x10000888UL,
114 NvOdmPinRegister_Apx2500_PadCtrl_DAP3CFG = 0x1000088CUL,
115 NvOdmPinRegister_Apx2500_PadCtrl_DAP4CFG = 0x10000890UL,
116 NvOdmPinRegister_Apx2500_PadCtrl_DBGCFG = 0x10000894UL,
117 NvOdmPinRegister_Apx2500_PadCtrl_LCDCFG1 = 0x10000898UL,
118 NvOdmPinRegister_Apx2500_PadCtrl_LCDCFG2 = 0x1000089CUL,
119 NvOdmPinRegister_Apx2500_PadCtrl_SDIO2CFG = 0x100008A0UL,
120 NvOdmPinRegister_Apx2500_PadCtrl_SDIO3CFG = 0x100008A4UL,
121 NvOdmPinRegister_Apx2500_PadCtrl_SPICFG = 0x100008A8UL,
122 NvOdmPinRegister_Apx2500_PadCtrl_UAACFG = 0x100008ACUL,
123 NvOdmPinRegister_Apx2500_PadCtrl_UABCFG = 0x100008B0UL,
124 NvOdmPinRegister_Apx2500_PadCtrl_UART2CFG = 0x100008B4UL,
125 NvOdmPinRegister_Apx2500_PadCtrl_UART3CFG = 0x100008B8UL,
126 NvOdmPinRegister_Apx2500_PadCtrl_VICFG1 = 0x100008BCUL,
127 NvOdmPinRegister_Apx2500_PadCtrl_VICFG2 = 0x100008C0UL,
128 NvOdmPinRegister_Apx2500_PadCtrl_XM2CFGA = 0x100008C4UL,
129 NvOdmPinRegister_Apx2500_PadCtrl_XM2CFGC = 0x100008C8UL,
130 NvOdmPinRegister_Apx2500_PadCtrl_XM2CFGD = 0x100008CCUL,
131 NvOdmPinRegister_Apx2500_PadCtrl_XM2CLKCFG = 0x100008D0UL,
132 NvOdmPinRegister_Apx2500_PadCtrl_MEMCOMP = 0x100008D4UL,
133
134 /// Pin configuration registers for NVIDIA Tegra 600 products
135 NvOdmPinRegister_Tegra600_PullUpDown_A = 0x100000A0UL,
136 NvOdmPinRegister_Tegra600_PullUpDown_B = 0x100000A4UL,
137 NvOdmPinRegister_Tegra600_PullUpDown_C = 0x100000A8UL,
138 NvOdmPinRegister_Tegra600_PullUpDown_D = 0x100000ACUL,
139 NvOdmPinRegister_Tegra600_PullUpDown_E = 0x100000B0UL,
140 NvOdmPinRegister_Tegra600_PadCtrl_AOCFG1 = 0x10000868UL,
141 NvOdmPinRegister_Tegra600_PadCtrl_AOCFG2 = 0x1000086CUL,
142 NvOdmPinRegister_Tegra600_PadCtrl_ATCFG1 = 0x10000870UL,
143 NvOdmPinRegister_Tegra600_PadCtrl_ATCFG2 = 0x10000874UL,
144 NvOdmPinRegister_Tegra600_PadCtrl_CDEV1CFG = 0x10000878UL,
145 NvOdmPinRegister_Tegra600_PadCtrl_CDEV2CFG = 0x1000087CUL,
146 NvOdmPinRegister_Tegra600_PadCtrl_CSUSCFG = 0x10000880UL,
147 NvOdmPinRegister_Tegra600_PadCtrl_DAP1CFG = 0x10000884UL,
148 NvOdmPinRegister_Tegra600_PadCtrl_DAP2CFG = 0x10000888UL,
149 NvOdmPinRegister_Tegra600_PadCtrl_DAP3CFG = 0x1000088CUL,
150 NvOdmPinRegister_Tegra600_PadCtrl_DAP4CFG = 0x10000890UL,
151 NvOdmPinRegister_Tegra600_PadCtrl_DBGCFG = 0x10000894UL,
152 NvOdmPinRegister_Tegra600_PadCtrl_LCDCFG1 = 0x10000898UL,
153 NvOdmPinRegister_Tegra600_PadCtrl_LCDCFG2 = 0x1000089CUL,
154 NvOdmPinRegister_Tegra600_PadCtrl_SDIO2CFG = 0x100008A0UL,
155 NvOdmPinRegister_Tegra600_PadCtrl_SDIO3CFG = 0x100008A4UL,
156 NvOdmPinRegister_Tegra600_PadCtrl_SPICFG = 0x100008A8UL,
157 NvOdmPinRegister_Tegra600_PadCtrl_UAACFG = 0x100008ACUL,
158 NvOdmPinRegister_Tegra600_PadCtrl_UABCFG = 0x100008B0UL,
159 NvOdmPinRegister_Tegra600_PadCtrl_UART2CFG = 0x100008B4UL,
160 NvOdmPinRegister_Tegra600_PadCtrl_UART3CFG = 0x100008B8UL,
161 NvOdmPinRegister_Tegra600_PadCtrl_VICFG1 = 0x100008BCUL,
162 NvOdmPinRegister_Tegra600_PadCtrl_VICFG2 = 0x100008C0UL,
163 NvOdmPinRegister_Tegra600_PadCtrl_XM2CFGA = 0x100008C4UL,
164 NvOdmPinRegister_Tegra600_PadCtrl_XM2CFGC = 0x100008C8UL,
165 NvOdmPinRegister_Tegra600_PadCtrl_XM2CFGD = 0x100008CCUL,
166 NvOdmPinRegister_Tegra600_PadCtrl_XM2CLKCFG = 0x100008D0UL,
167 NvOdmPinRegister_Tegra600_PadCtrl_MEMCOMP = 0x100008D4UL,
168
169 /// Pin configuration registers for NVIDIA Tegra 650 products
170 NvOdmPinRegister_Tegra650_PullUpDown_A = 0x100000A0UL,
171 NvOdmPinRegister_Tegra650_PullUpDown_B = 0x100000A4UL,
172 NvOdmPinRegister_Tegra650_PullUpDown_C = 0x100000A8UL,
173 NvOdmPinRegister_Tegra650_PullUpDown_D = 0x100000ACUL,
174 NvOdmPinRegister_Tegra650_PullUpDown_E = 0x100000B0UL,
175 NvOdmPinRegister_Tegra650_PadCtrl_AOCFG1 = 0x10000868UL,
176 NvOdmPinRegister_Tegra650_PadCtrl_AOCFG2 = 0x1000086CUL,
177 NvOdmPinRegister_Tegra650_PadCtrl_ATCFG1 = 0x10000870UL,
178 NvOdmPinRegister_Tegra650_PadCtrl_ATCFG2 = 0x10000874UL,
179 NvOdmPinRegister_Tegra650_PadCtrl_CDEV1CFG = 0x10000878UL,
180 NvOdmPinRegister_Tegra650_PadCtrl_CDEV2CFG = 0x1000087CUL,
181 NvOdmPinRegister_Tegra650_PadCtrl_CSUSCFG = 0x10000880UL,
182 NvOdmPinRegister_Tegra650_PadCtrl_DAP1CFG = 0x10000884UL,
183 NvOdmPinRegister_Tegra650_PadCtrl_DAP2CFG = 0x10000888UL,
184 NvOdmPinRegister_Tegra650_PadCtrl_DAP3CFG = 0x1000088CUL,
185 NvOdmPinRegister_Tegra650_PadCtrl_DAP4CFG = 0x10000890UL,
186 NvOdmPinRegister_Tegra650_PadCtrl_DBGCFG = 0x10000894UL,
187 NvOdmPinRegister_Tegra650_PadCtrl_LCDCFG1 = 0x10000898UL,
188 NvOdmPinRegister_Tegra650_PadCtrl_LCDCFG2 = 0x1000089CUL,
189 NvOdmPinRegister_Tegra650_PadCtrl_SDIO2CFG = 0x100008A0UL,
190 NvOdmPinRegister_Tegra650_PadCtrl_SDIO3CFG = 0x100008A4UL,
191 NvOdmPinRegister_Tegra650_PadCtrl_SPICFG = 0x100008A8UL,
192 NvOdmPinRegister_Tegra650_PadCtrl_UAACFG = 0x100008ACUL,
193 NvOdmPinRegister_Tegra650_PadCtrl_UABCFG = 0x100008B0UL,
194 NvOdmPinRegister_Tegra650_PadCtrl_UART2CFG = 0x100008B4UL,
195 NvOdmPinRegister_Tegra650_PadCtrl_UART3CFG = 0x100008B8UL,
196 NvOdmPinRegister_Tegra650_PadCtrl_VICFG1 = 0x100008BCUL,
197 NvOdmPinRegister_Tegra650_PadCtrl_VICFG2 = 0x100008C0UL,
198 NvOdmPinRegister_Tegra650_PadCtrl_XM2CFGA = 0x100008C4UL,
199 NvOdmPinRegister_Tegra650_PadCtrl_XM2CFGC = 0x100008C8UL,
200 NvOdmPinRegister_Tegra650_PadCtrl_XM2CFGD = 0x100008CCUL,
201 NvOdmPinRegister_Tegra650_PadCtrl_XM2CLKCFG = 0x100008D0UL,
202 NvOdmPinRegister_Tegra650_PadCtrl_MEMCOMP = 0x100008D4UL,
203
204 NvOdmPinRegister_Force32 = 0x7fffffffUL,
205 } NvOdmPinRegister;
206
207 /*
208 * C pre-processor macros are provided below to help ODMs specify
209 * pin electrical attributes in a more readable and maintainable fashion
210 * than hardcoding hexadecimal numbers directly. Please refer to the
211 * Electrical, Thermal and Mechanical data sheet for your product for more
212 * detailed information regarding the effects these values have
213 */
214
215 /**
216 * Use this macro to program the PullUpDown_A register.
217 *
218 * @param ATA : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
219 * @param ATB : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
220 * @param ATC : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
221 * @param ATD : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
222 * @param ATE : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
223 * @param DAP1 : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
224 * @param DAP2 : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
225 * @param DAP3 : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
226 * @param DAP4 : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
227 * @param DTA : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
228 * @param DTB : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
229 * @param DTC : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
230 * @param DTD : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
231 * @param DTE : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
232 * @param DTF : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
233 * @param GPV : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
234 */
235
236 #define NVODM_QUERY_PIN_AP15_PULLUPDOWN_A(ATA, ATB, ATC, ATD, ATE, DAP1, DAP2, D AP3, DAP4, DTA, DTB, DTC, DTD, DTE, DTF, GPV) \
237 ((((ATA)&3UL) << 0) | (((ATB)&3UL) << 2) | (((ATC)&3UL) << 4) | \
238 (((ATD)&3UL) << 6) | (((ATE)&3UL) << 8) | (((DAP1)&3UL) << 10) | \
239 (((DAP2)&3UL) << 12) | (((DAP3)&3UL) << 14) | (((DAP4)&3UL) << 16) | \
240 (((DTA)&3UL) << 18) | (((DTB)&3UL) << 20) | (((DTC)&3UL) << 22) | \
241 (((DTD)&3UL) << 24) | (((DTE)&3UL) << 26) | (((DTF)&3UL) << 28) | \
242 (((GPV)&3UL) << 30))
243
244 /**
245 * Use this macro to program the PullUpDown_B register.
246 *
247 * @param RM : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = p ull-up). Valid Range 0 - 3
248 * @param I2CP : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
249 * @param PTA : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
250 * @param GPU7 : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
251 * @param KBCA : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
252 * @param KBCB : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
253 * @param KBCC : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
254 * @param KBCD : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
255 * @param SPDI : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
256 * @param SPDO : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
257 * @param GPU : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
258 * @param SLXA : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
259 * @param SLXB : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
260 * @param SLXC : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
261 * @param SLXD : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
262 * @param SLXK : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
263 */
264
265 #define NVODM_QUERY_PIN_AP15_PULLUPDOWN_B(RM, I2CP, PTA, GPU7, KBCA, KBCB, KBCC, KBCD, SPDI, SPDO, GPU, SLXA, SLXB, SLXC, SLXD, SLXK) \
266 ((((RM)&3UL) << 0) | (((I2CP)&3UL) << 2) | (((PTA)&3UL) << 4) | \
267 (((GPU7)&3UL) << 6) | (((KBCA)&3UL) << 8) | (((KBCB)&3UL) << 10) | \
268 (((KBCC)&3UL) << 12) | (((KBCD)&3UL) << 14) | (((SPDI)&3UL) << 16) | \
269 (((SPDO)&3UL) << 18) | (((GPU)&3UL) << 20) | (((SLXA)&3UL) << 22) | \
270 (((SLXB)&3UL) << 24) | (((SLXC)&3UL) << 26) | (((SLXD)&3UL) << 28) | \
271 (((SLXK)&3UL) << 30))
272
273 /**
274 * Use this macro to program the PullUpDown_C register.
275 *
276 * @param CDEV1 : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
277 * @param CDEV2 : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
278 * @param SPIA : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
279 * @param SPIB : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
280 * @param SPIC : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
281 * @param SPID : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
282 * @param SPIE : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
283 * @param SPIF : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
284 * @param SPIG : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
285 * @param SPIH : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
286 * @param IRTX : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
287 * @param IRRX : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
288 * @param XM2A : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
289 * @param XM2C : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
290 * @param XM2D : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
291 * @param XM2S : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
292 */
293
294 #define NVODM_QUERY_PIN_AP15_PULLUPDOWN_C(CDEV1, CDEV2, SPIA, SPIB, SPIC, SPID, SPIE, SPIF, SPIG, SPIH, IRTX, IRRX, XM2A, XM2C, XM2D, XM2S) \
295 ((((CDEV1)&3UL) << 0) | (((CDEV2)&3UL) << 2) | (((SPIA)&3UL) << 4) | \
296 (((SPIB)&3UL) << 6) | (((SPIC)&3UL) << 8) | (((SPID)&3UL) << 10) | \
297 (((SPIE)&3UL) << 12) | (((SPIF)&3UL) << 14) | (((SPIG)&3UL) << 16) | \
298 (((SPIH)&3UL) << 18) | (((IRTX)&3UL) << 20) | (((IRRX)&3UL) << 22) | \
299 (((XM2A)&3UL) << 24) | (((XM2C)&3UL) << 26) | (((XM2D)&3UL) << 28) | \
300 (((XM2S)&3UL) << 30))
301
302 /**
303 * Use this macro to program the PullUpDown_D register.
304 *
305 * @param UAA : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
306 * @param UAB : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
307 * @param UAC : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
308 * @param UAD : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
309 * @param UCA : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
310 * @param UCB : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
311 * @param LD17_0 : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
312 * @param LD19_18 : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
313 * @param LD21_20 : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
314 * @param LD23_22 : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
315 * @param LS : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = p ull-up). Valid Range 0 - 3
316 * @param LC : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = p ull-up). Valid Range 0 - 3
317 * @param CSUS : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
318 * @param SDB : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
319 * @param SDC : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
320 * @param SDD : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
321 */
322
323 #define NVODM_QUERY_PIN_AP15_PULLUPDOWN_D(UAA, UAB, UAC, UAD, UCA, UCB, LD17_0, LD19_18, LD21_20, LD23_22, LS, LC, CSUS, SDB, SDC, SDD) \
324 ((((UAA)&3UL) << 0) | (((UAB)&3UL) << 2) | (((UAC)&3UL) << 4) | \
325 (((UAD)&3UL) << 6) | (((UCA)&3UL) << 8) | (((UCB)&3UL) << 10) | \
326 (((LD17_0)&3UL) << 12) | (((LD19_18)&3UL) << 14) | (((LD21_20)&3UL) << 16) | \
327 (((LD23_22)&3UL) << 18) | (((LS)&3UL) << 20) | (((LC)&3UL) << 22) | \
328 (((CSUS)&3UL) << 24) | (((SDB)&3UL) << 26) | (((SDC)&3UL) << 28) | \
329 (((SDD)&3UL) << 30))
330
331 /**
332 * Use this macro to program the PullUpDown_E register.
333 *
334 * @param KBCF : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
335 * @param KBCE : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
336 * @param PMCA : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
337 * @param PMCB : Configure internal pull-up/down (0 = normal, 1 = pull-down, 2 = pull-up). Valid Range 0 - 3
338 */
339
340 #define NVODM_QUERY_PIN_AP15_PULLUPDOWN_E(KBCF, KBCE, PMCA, PMCB) \
341 ((((KBCF)&3UL) << 0) | (((KBCE)&3UL) << 2) | (((PMCA)&3UL) << 4) | \
342 (((PMCB)&3UL) << 6))
343
344 /**
345 * Use this macro to program the PadCtrl_AOCFG1, PadCtrl_AOCFG2,
346 * PadCtrl_ATCFG1, PadCtrl_ATCFG2, PadCtrl_CDEV1CFG, PadCtrl_CDEV2CFG,
347 * PadCtrl_CSUSCFG, PadCtrl_DAP1CFG, PadCtrl_DAP2CFG, PadCtrl_DAP3CFG,
348 * PadCtrl_DAP4CFG, PadCtrl_DBGCFG, PadCtrl_LCDCFG1, PadCtrl_LCDCFG2,
349 * PadCtrl_SDIO2CFG, PadCtrl_SDIO3CFG, PadCtrl_SPICFG, PadCtrl_UAACFG,
350 * PadCtrl_UABCFG, PadCtrl_UART2CFG, PadCtrl_UART3CFG, PadCtrl_VICFG1 and
351 * PadCtrl_VICFG2 registers.
352 *
353 * @param HSM_EN : Enable high-speed mode (0 = disable). Valid Range 0 - 1
354 * @param SCHMT_EN : Schmitt trigger enable (0 = disable). Valid Range 0 - 1
355 * @param LPMD : Low-power current/impedance selection (0 = 400 ohm, 1 = 200 ohm , 2 = 100 ohm, 3 = 50 ohm). Valid Range 0 - 3
356 * @param CAL_DRVDN : Pull-down drive strength. Valid Range 0 - 31
357 * @param CAL_DRVUP : Pull-up drive strength. Valid Range 0 - 31
358 * @param CAL_DRVDN_SLWR : Pull-up slew control (0 = max). Valid Range 0 - 3
359 * @param CAL_DRVUP_SLWF : Pull-down slew control (0 = max). Valid Range 0 - 3
360 */
361
362 #define NVODM_QUERY_PIN_AP15_PADCTRL_AOCFG1(HSM_EN, SCHMT_EN, LPMD, CAL_DRVDN, C AL_DRVUP, CAL_DRVDN_SLWR, CAL_DRVUP_SLWF) \
363 ((((HSM_EN)&1UL) << 2) | (((SCHMT_EN)&1UL) << 3) | (((LPMD)&3UL) << 4) | \
364 (((CAL_DRVDN)&31UL) << 12) | (((CAL_DRVUP)&31UL) << 20) | \
365 (((CAL_DRVDN_SLWR)&3UL) << 28) | (((CAL_DRVUP_SLWF)&3UL) << 30))
366
367 /**
368 * Use this macro to program the PadCtrl_XM2CFGA register.
369 *
370 * @param HSM_EN : Enable high-speed mode (0 = disable). Valid Range 0 - 1
371 * @param LPMD : Low-power current/impedance selection (0 = 400 ohm, 1 = 200 ohm , 2 = 100 ohm, 3 = 50 ohm). Valid Range 0 - 3
372 * @param VREF_EN : VRef enable. Valid Range 0 - 1
373 * @param CAL_DRVDN : Pull-down drive strength. Valid Range 0 - 31
374 * @param CAL_DRVUP : Pull-up drive strength. Valid Range 0 - 31
375 * @param CAL_DRVDN_SLWR : Pull-up slew control (0 = max). Valid Range 0 - 3
376 * @param CAL_DRVUP_SLWF : Pull-down slew control (0 = max). Valid Range 0 - 3
377 */
378
379 #define NVODM_QUERY_PIN_AP15_PADCTRL_XM2CFGA(HSM_EN, LPMD, VREF_EN, CAL_DRVDN, C AL_DRVUP, CAL_DRVDN_SLWR, CAL_DRVUP_SLWF) \
380 ((((HSM_EN)&1UL) << 2) | (((LPMD)&3UL) << 4) | (((VREF_EN)&1UL) << 6) | \
381 (((CAL_DRVDN)&31UL) << 12) | (((CAL_DRVUP)&31UL) << 20) | \
382 (((CAL_DRVDN_SLWR)&3UL) << 28) | (((CAL_DRVUP_SLWF)&3UL) << 30))
383
384 /**
385 * Use this macro to program the PadCtrl_XM2CFGC, PadCtrl_XM2CFGD and
386 * PadCtrl_XM2CLKCFG registers.
387 *
388 * @param HSM_EN : Enable high-speed mode (0 = disable). Valid Range 0 - 1
389 * @param SCHMT_EN : Schmitt trigger enable (0 = disable). Valid Range 0 - 1
390 * @param LPMD : Low-power current/impedance selection (0 = 400 ohm, 1 = 200 ohm , 2 = 100 ohm, 3 = 50 ohm). Valid Range 0 - 3
391 * @param VREF_EN : VRef enable. Valid Range 0 - 1
392 * @param CAL_DRVDN : Pull-down drive strength. Valid Range 0 - 31
393 * @param CAL_DRVUP : Pull-up drive strength. Valid Range 0 - 31
394 * @param CAL_DRVDN_SLWR : Pull-up slew control (0 = max). Valid Range 0 - 3
395 * @param CAL_DRVUP_SLWF : Pull-down slew control (0 = max). Valid Range 0 - 3
396 */
397
398 #define NVODM_QUERY_PIN_AP15_PADCTRL_XM2CFGC(HSM_EN, SCHMT_EN, LPMD, VREF_EN, CA L_DRVDN, CAL_DRVUP, CAL_DRVDN_SLWR, CAL_DRVUP_SLWF) \
399 ((((HSM_EN)&1UL) << 2) | (((SCHMT_EN)&1UL) << 3) | (((LPMD)&3UL) << 4) | \
400 (((VREF_EN)&1UL) << 6) | (((CAL_DRVDN)&31UL) << 12) | \
401 (((CAL_DRVUP)&31UL) << 20) | (((CAL_DRVDN_SLWR)&3UL) << 28) | \
402 (((CAL_DRVUP_SLWF)&3UL) << 30))
403
404 /**
405 * Use this macro to program the PadCtrl_MEMCOMP register.
406 *
407 * @param E_HSM : Enable high-speed mode (0 = disable). Valid Range 0 - 1
408 * @param COMPPAD_DRVDN : Pull-down drive strength. Valid Range 0 - 31
409 * @param COMPPAD_DRVUP : Pull-up drive strength. Valid Range 0 - 31
410 */
411
412 #define NVODM_QUERY_PIN_AP15_PADCTRL_MEMCOMP(E_HSM, COMPPAD_DRVDN, COMPPAD_DRVUP ) \
413 ((((E_HSM)&1UL) << 2) | (((COMPPAD_DRVDN)&31UL) << 12) | \
414 (((COMPPAD_DRVUP)&31UL) << 20))
415
416 #ifdef __cplusplus
417 }
418 #endif
419
420 /** @} */
421 #endif // INCLUDED_NVODM_QUERY_PINS_AP15_H
422
OLDNEW
« no previous file with comments | « arch/arm/mach-tegra/nv/include/nvodm_query_pins.h ('k') | arch/arm/mach-tegra/nv/include/nvodm_query_pins_ap20.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698