blob: 99d1a4d053c1448c7d8c88352c1e640dadb486e5 [file] [log] [blame]
Yan He620fe162013-01-29 12:32:20 -08001/* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
Niranjana Vishwanathapuraf1427ac2012-05-03 14:28:21 -06002 *
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 */
19enum msm_pcie_gpio {
20 MSM_PCIE_GPIO_RST_N,
21 MSM_PCIE_GPIO_PWR_EN,
22 MSM_PCIE_MAX_GPIO
23};
24
Niranjana Vishwanathapura459a27d2012-07-20 12:23:55 -060025/* gpio info structure */
Niranjana Vishwanathapuraf1427ac2012-05-03 14:28:21 -060026struct msm_pcie_gpio_info_t {
27 char *name;
28 uint32_t num;
29 uint32_t on;
30};
31
32/* msm pcie platfrom data */
33struct msm_pcie_platform {
34 struct msm_pcie_gpio_info_t *gpio;
Niranjana Vishwanathapura459a27d2012-07-20 12:23:55 -060035
Niranjana Vishwanathapura68210ff2012-06-24 18:03:49 -060036 uint32_t axi_addr;
37 uint32_t axi_size;
Niranjana Vishwanathapura459a27d2012-07-20 12:23:55 -060038 uint32_t wake_n;
Yan He620fe162013-01-29 12:32:20 -080039 uint32_t vreg_n;
Rohit Vaswaniafe48202013-03-05 15:10:47 -080040 uint32_t parf_deemph;
41 uint32_t parf_swing;
Niranjana Vishwanathapuraf1427ac2012-05-03 14:28:21 -060042};
43
44#endif