From 1e5604cf01f8626f447ca4419345e015b939bc4f Mon Sep 17 00:00:00 2001 From: Yan He Date: Fri, 29 May 2015 17:46:23 -0700 Subject: [PATCH] msm: ep_pcie: add the phy reset clock Add the phy reset clock for PCIe endpoint mode and add the support of this optional clock. Change-Id: Id92e2fd589d0e97e8a3db2e1eeb1d6c99a464777 Signed-off-by: Yan He --- drivers/platform/msm/ep_pcie/ep_pcie_com.h | 2 +- drivers/platform/msm/ep_pcie/ep_pcie_core.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/platform/msm/ep_pcie/ep_pcie_com.h b/drivers/platform/msm/ep_pcie/ep_pcie_com.h index f1350e7ca8d2..df9a3cd8acb1 100644 --- a/drivers/platform/msm/ep_pcie/ep_pcie_com.h +++ b/drivers/platform/msm/ep_pcie/ep_pcie_com.h @@ -109,7 +109,7 @@ #define EP_PCIE_LOG_PAGES 50 #define EP_PCIE_MAX_VREG 2 -#define EP_PCIE_MAX_CLK 5 +#define EP_PCIE_MAX_CLK 6 #define EP_PCIE_MAX_PIPE_CLK 1 #define EP_PCIE_ERROR -30655 diff --git a/drivers/platform/msm/ep_pcie/ep_pcie_core.c b/drivers/platform/msm/ep_pcie/ep_pcie_core.c index 54997b46dbca..9be5b7d7b634 100644 --- a/drivers/platform/msm/ep_pcie/ep_pcie_core.c +++ b/drivers/platform/msm/ep_pcie/ep_pcie_core.c @@ -66,7 +66,8 @@ static struct ep_pcie_clk_info_t {NULL, "pcie_0_mstr_axi_clk", 0, true}, {NULL, "pcie_0_slv_axi_clk", 0, true}, {NULL, "pcie_0_aux_clk", 1000000, true}, - {NULL, "pcie_0_ldo", 0, true} + {NULL, "pcie_0_ldo", 0, true}, + {NULL, "pcie_0_phy_reset", 0, false} }; static struct ep_pcie_clk_info_t @@ -286,11 +287,10 @@ static int ep_pcie_clk_init(struct ep_pcie_dev_t *dev) info = &dev->clk[i]; if (!info->hdl) { - EP_PCIE_ERR(dev, + EP_PCIE_DBG(dev, "PCIe V%d: handle of Clock %s is NULL\n", dev->rev, info->name); - rc = -EINVAL; - break; + continue; } if (info->freq) {