mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
msm: pcie: add mhi register space as PCIe RC resource
There are MHI registers which PCIe RC can use for debug purposes such as dumping PCIe link ASPM stats. Add mhi register space as a PCIe RC resource so that RC driver can access MHI space. Change-Id: I4392219b4f2e7007f5f263e4a9285bf630b2e71b Signed-off-by: Tony Truong <truong@codeaurora.org>
This commit is contained in:
parent
7468e64836
commit
6461a1d8ae
1 changed files with 5 additions and 0 deletions
|
|
@ -332,6 +332,7 @@ enum msm_pcie_res {
|
|||
MSM_PCIE_RES_ELBI,
|
||||
MSM_PCIE_RES_IATU,
|
||||
MSM_PCIE_RES_CONF,
|
||||
MSM_PCIE_RES_MHI,
|
||||
MSM_PCIE_RES_TCSR,
|
||||
MSM_PCIE_RES_RUMI,
|
||||
MSM_PCIE_MAX_RES,
|
||||
|
|
@ -710,6 +711,7 @@ struct msm_pcie_dev_t {
|
|||
void __iomem *iatu;
|
||||
void __iomem *dm_core;
|
||||
void __iomem *conf;
|
||||
void __iomem *mhi;
|
||||
void __iomem *tcsr;
|
||||
void __iomem *rumi;
|
||||
|
||||
|
|
@ -1063,6 +1065,7 @@ static const struct msm_pcie_res_info_t msm_pcie_res_info[MSM_PCIE_MAX_RES] = {
|
|||
{"elbi", NULL, NULL},
|
||||
{"iatu", NULL, NULL},
|
||||
{"conf", NULL, NULL},
|
||||
{"mhi", NULL, NULL},
|
||||
{"tcsr", NULL, NULL},
|
||||
{"rumi", NULL, NULL}
|
||||
};
|
||||
|
|
@ -4066,6 +4069,7 @@ static int msm_pcie_get_reg(struct msm_pcie_dev_t *pcie_dev)
|
|||
pcie_dev->iatu = pcie_dev->res[MSM_PCIE_RES_IATU].base;
|
||||
pcie_dev->dm_core = pcie_dev->res[MSM_PCIE_RES_DM_CORE].base;
|
||||
pcie_dev->conf = pcie_dev->res[MSM_PCIE_RES_CONF].base;
|
||||
pcie_dev->mhi = pcie_dev->res[MSM_PCIE_RES_MHI].base;
|
||||
pcie_dev->tcsr = pcie_dev->res[MSM_PCIE_RES_TCSR].base;
|
||||
pcie_dev->rumi = pcie_dev->res[MSM_PCIE_RES_RUMI].base;
|
||||
|
||||
|
|
@ -4182,6 +4186,7 @@ static void msm_pcie_release_resources(struct msm_pcie_dev_t *dev)
|
|||
dev->iatu = NULL;
|
||||
dev->dm_core = NULL;
|
||||
dev->conf = NULL;
|
||||
dev->mhi = NULL;
|
||||
dev->tcsr = NULL;
|
||||
dev->rumi = NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue