Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
proc_comm.h
Go to the documentation of this file.
1 /* arch/arm/mach-msm/proc_comm.h
2  *
3  * Copyright (c) 2007 QUALCOMM Incorporated
4  *
5  * This software is licensed under the terms of the GNU General Public
6  * License version 2, as published by the Free Software Foundation, and
7  * may be copied, distributed, and modified under those terms.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  */
15 
16 #ifndef _ARCH_ARM_MACH_MSM_PROC_COMM_H_
17 #define _ARCH_ARM_MACH_MSM_PROC_COMM_H_
18 
19 #include <linux/init.h>
20 
21 enum {
141 };
142 
143 enum {
160 
161 };
162 
163 /* List of VREGs that support the Pull Down Resistor setting. */
167  PM_VREG_PDOWN_MSME1_ID, /* Not supported in Panoramix */
168  PM_VREG_PDOWN_MSMC1_ID, /* Not supported in PM6620 */
169  PM_VREG_PDOWN_MSMC2_ID, /* Supported in PM7500 only */
170  PM_VREG_PDOWN_GP3_ID, /* Supported in PM7500 only */
171  PM_VREG_PDOWN_MSME2_ID, /* Supported in PM7500 and Panoramix only */
172  PM_VREG_PDOWN_GP4_ID, /* Supported in PM7500 only */
173  PM_VREG_PDOWN_GP1_ID, /* Supported in PM7500 only */
184  PM_VREG_PDOWN_MSMC0_ID, /* Supported in PM6610 only */
185  PM_VREG_PDOWN_GP2_ID, /* Supported in PM7500 only */
186  PM_VREG_PDOWN_GP5_ID, /* Supported in PM7500 only */
187  PM_VREG_PDOWN_GP6_ID, /* Supported in PM7500 only */
194 
195  /* new for HAN */
205 
206  /* backward compatible enums only */
213 
219 };
220 
221 enum {
224 };
225 
226 /* gpio info for PCOM_RPC_GPIO_TLMM_CONFIG_EX */
227 
228 #define GPIO_ENABLE 0
229 #define GPIO_DISABLE 1
230 
231 #define GPIO_INPUT 0
232 #define GPIO_OUTPUT 1
233 
234 #define GPIO_NO_PULL 0
235 #define GPIO_PULL_DOWN 1
236 #define GPIO_KEEPER 2
237 #define GPIO_PULL_UP 3
238 
239 #define GPIO_2MA 0
240 #define GPIO_4MA 1
241 #define GPIO_6MA 2
242 #define GPIO_8MA 3
243 #define GPIO_10MA 4
244 #define GPIO_12MA 5
245 #define GPIO_14MA 6
246 #define GPIO_16MA 7
247 
248 #define PCOM_GPIO_CFG(gpio, func, dir, pull, drvstr) \
249  ((((gpio) & 0x3FF) << 4) | \
250  ((func) & 0xf) | \
251  (((dir) & 0x1) << 14) | \
252  (((pull) & 0x3) << 15) | \
253  (((drvstr) & 0xF) << 17))
254 
255 int msm_proc_comm(unsigned cmd, unsigned *data1, unsigned *data2);
256 void __init proc_comm_boot_wait(void);
257 
258 #endif