Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 1 | /* |
Duy Truong | 790f06d | 2013-02-13 16:38:12 -0800 | [diff] [blame] | 2 | * Copyright (c) 2011, The Linux Foundation. All rights reserved. |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 3 | * |
| 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 | |
| 24 | struct 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 |