mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-29 08:00:26 +09:00
pci: layerscape: Add stream_id_cur field to ls_pcie structure
Add stream_id_cur field to ls_pcie structure and initialize it with 0 for all pcie controllers. This field will be used for streamId calculation. Signed-off-by: Wasim Khan <wasim.khan@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
This commit is contained in:
parent
5ff7b84084
commit
c81b1ea7b0
@ -1,6 +1,6 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0+
|
// SPDX-License-Identifier: GPL-2.0+
|
||||||
/*
|
/*
|
||||||
* Copyright 2017 NXP
|
* Copyright 2017-2019 NXP
|
||||||
* Copyright 2014-2015 Freescale Semiconductor, Inc.
|
* Copyright 2014-2015 Freescale Semiconductor, Inc.
|
||||||
* Layerscape PCIe driver
|
* Layerscape PCIe driver
|
||||||
*/
|
*/
|
||||||
@ -339,6 +339,7 @@ static void ls_pcie_setup_ctrl(struct ls_pcie *pcie)
|
|||||||
dbi_writel(pcie, 0, PCIE_DBI_RO_WR_EN);
|
dbi_writel(pcie, 0, PCIE_DBI_RO_WR_EN);
|
||||||
|
|
||||||
ls_pcie_disable_bars(pcie);
|
ls_pcie_disable_bars(pcie);
|
||||||
|
pcie->stream_id_cur = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ls_pcie_ep_setup_atu(struct ls_pcie *pcie)
|
static void ls_pcie_ep_setup_atu(struct ls_pcie *pcie)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/* SPDX-License-Identifier: GPL-2.0+ */
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
||||||
/*
|
/*
|
||||||
* Copyright 2017 NXP
|
* Copyright 2017-2019 NXP
|
||||||
* Copyright 2014-2015 Freescale Semiconductor, Inc.
|
* Copyright 2014-2015 Freescale Semiconductor, Inc.
|
||||||
* Layerscape PCIe driver
|
* Layerscape PCIe driver
|
||||||
*/
|
*/
|
||||||
@ -144,6 +144,7 @@ struct ls_pcie {
|
|||||||
bool big_endian;
|
bool big_endian;
|
||||||
bool enabled;
|
bool enabled;
|
||||||
int next_lut_index;
|
int next_lut_index;
|
||||||
|
int stream_id_cur;
|
||||||
int mode;
|
int mode;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user