cnss2: Update new register addresses for Peach Devices
Update new register addresses for Peach Devices. Change-Id: I9543af4ca8aa4130533ea1975793ddce36b97eb1 CRs-Fixed: 3387208
This commit is contained in:

committed by
Madan Koyyalamudi

parent
edab97e465
commit
436eadfdaa
17
cnss2/pci.c
17
cnss2/pci.c
@@ -818,8 +818,13 @@ static void cnss_pci_select_window(struct cnss_pci_data *pci_priv, u32 offset)
|
||||
u32 window_enable = WINDOW_ENABLE_BIT | window;
|
||||
u32 val;
|
||||
|
||||
writel_relaxed(window_enable, pci_priv->bar +
|
||||
QCA6390_PCIE_REMAP_BAR_CTRL_OFFSET);
|
||||
if (plat_priv->device_id == PEACH_DEVICE_ID) {
|
||||
writel_relaxed(window_enable, pci_priv->bar +
|
||||
PEACH_PCIE_REMAP_BAR_CTRL_OFFSET);
|
||||
} else {
|
||||
writel_relaxed(window_enable, pci_priv->bar +
|
||||
QCA6390_PCIE_REMAP_BAR_CTRL_OFFSET);
|
||||
}
|
||||
|
||||
if (window != pci_priv->remap_window) {
|
||||
pci_priv->remap_window = window;
|
||||
@@ -828,7 +833,13 @@ static void cnss_pci_select_window(struct cnss_pci_data *pci_priv, u32 offset)
|
||||
}
|
||||
|
||||
/* Read it back to make sure the write has taken effect */
|
||||
val = readl_relaxed(pci_priv->bar + QCA6390_PCIE_REMAP_BAR_CTRL_OFFSET);
|
||||
if (plat_priv->device_id == PEACH_DEVICE_ID) {
|
||||
val = readl_relaxed(pci_priv->bar +
|
||||
PEACH_PCIE_REMAP_BAR_CTRL_OFFSET);
|
||||
} else {
|
||||
val = readl_relaxed(pci_priv->bar +
|
||||
QCA6390_PCIE_REMAP_BAR_CTRL_OFFSET);
|
||||
}
|
||||
if (val != window_enable) {
|
||||
cnss_pr_err("Failed to config window register to 0x%x, current value: 0x%x\n",
|
||||
window_enable, val);
|
||||
|
Reference in New Issue
Block a user