blob: cb8247f4d51ff94fc7a7782f1f8bb9ff7d56bbfd [file] [log] [blame]
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07001/*
Duy Truong790f06d2013-02-13 16:38:12 -08002 * Copyright (c) 2011, The Linux Foundation. All rights reserved.
Bryan Huntsman3f2bc4d2011-08-16 17:27:22 -07003 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 and
6 * only version 2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 */
13
14/*
15 * Qualcomm PMIC8XXX gpio rpc driver header file
16 *
17 */
18
19#ifndef __GPIO_PM8XXX_RPC_H
20#define __GPIO_PM8XXX_RPC_H
21
22#define PM8XXX_GPIO_DEV_NAME "pm8xxx-gpio-rpc"
23
24struct pm8xxx_gpio_rpc_platform_data {
25 int ngpios;
26 int gpio_base;
27};
28
29/* GPIO parameters */
30/* direction */
31#define PM_GPIO_DIR_OUT 0x01
32#define PM_GPIO_DIR_IN 0x02
33#define PM_GPIO_DIR_BOTH (PM_GPIO_DIR_OUT | PM_GPIO_DIR_IN)
34
35#endif