aboutsummaryrefslogtreecommitdiff
path: root/include/linux/gpio-pm8xxx-rpc.h
blob: cb8247f4d51ff94fc7a7782f1f8bb9ff7d56bbfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * Copyright (c) 2011, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
 * only version 2 as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

/*
 * Qualcomm PMIC8XXX gpio rpc driver header file
 *
 */

#ifndef __GPIO_PM8XXX_RPC_H
#define __GPIO_PM8XXX_RPC_H

#define PM8XXX_GPIO_DEV_NAME	"pm8xxx-gpio-rpc"

struct pm8xxx_gpio_rpc_platform_data {
	int	ngpios;
	int	gpio_base;
};

/* GPIO parameters */
/* direction */
#define	PM_GPIO_DIR_OUT			0x01
#define	PM_GPIO_DIR_IN			0x02
#define	PM_GPIO_DIR_BOTH		(PM_GPIO_DIR_OUT | PM_GPIO_DIR_IN)

#endif