Yan He | 620fe16 | 2013-01-29 12:32:20 -0800 | [diff] [blame] | 1 | /* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. |
Niranjana Vishwanathapura | f1427ac | 2012-05-03 14:28:21 -0600 | [diff] [blame] | 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 | #ifndef __ASM_ARCH_MSM_PCIE_H |
| 14 | #define __ASM_ARCH_MSM_PCIE_H |
| 15 | |
| 16 | #include <linux/types.h> |
| 17 | |
| 18 | /* gpios */ |
| 19 | enum msm_pcie_gpio { |
| 20 | MSM_PCIE_GPIO_RST_N, |
| 21 | MSM_PCIE_GPIO_PWR_EN, |
| 22 | MSM_PCIE_MAX_GPIO |
| 23 | }; |
| 24 | |
Niranjana Vishwanathapura | 459a27d | 2012-07-20 12:23:55 -0600 | [diff] [blame] | 25 | /* gpio info structure */ |
Niranjana Vishwanathapura | f1427ac | 2012-05-03 14:28:21 -0600 | [diff] [blame] | 26 | struct msm_pcie_gpio_info_t { |
| 27 | char *name; |
| 28 | uint32_t num; |
| 29 | uint32_t on; |
| 30 | }; |
| 31 | |
| 32 | /* msm pcie platfrom data */ |
| 33 | struct msm_pcie_platform { |
| 34 | struct msm_pcie_gpio_info_t *gpio; |
Niranjana Vishwanathapura | 459a27d | 2012-07-20 12:23:55 -0600 | [diff] [blame] | 35 | |
Niranjana Vishwanathapura | 68210ff | 2012-06-24 18:03:49 -0600 | [diff] [blame] | 36 | uint32_t axi_addr; |
| 37 | uint32_t axi_size; |
Niranjana Vishwanathapura | 459a27d | 2012-07-20 12:23:55 -0600 | [diff] [blame] | 38 | uint32_t wake_n; |
Yan He | 620fe16 | 2013-01-29 12:32:20 -0800 | [diff] [blame] | 39 | uint32_t vreg_n; |
Rohit Vaswani | afe4820 | 2013-03-05 15:10:47 -0800 | [diff] [blame] | 40 | uint32_t parf_deemph; |
| 41 | uint32_t parf_swing; |
Niranjana Vishwanathapura | f1427ac | 2012-05-03 14:28:21 -0600 | [diff] [blame] | 42 | }; |
| 43 | |
| 44 | #endif |