blob: 59ee8f83270fef74dd63e4d5959905c71e8b60b2 [file] [log] [blame]
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07001/* Copyright (c) 2008-2009, Code Aurora Forum. All rights reserved.
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 */
13
14#ifndef _ARCH_ARM_MACH_MSM_GPIO_H_
15#define _ARCH_ARM_MACH_MSM_GPIO_H_
16
17void msm_gpio_enter_sleep(int from_idle);
18void msm_gpio_exit_sleep(void);
19
20/* Locate the GPIO_OUT register for the given GPIO and return its address
21 * and the bit position of the gpio's bit within the register.
22 *
23 * This function is used by gpiomux-v1 in order to support output transitions.
24 */
25void msm_gpio_find_out(const unsigned gpio, void __iomem **out,
26 unsigned *offset);
27
28#endif