[U-Boot] [PATCHv2 3/3] dm: pcie_fsl: Fix the calculation of controller index

Bin Meng bmeng.cn at gmail.com
Mon Aug 26 06:10:33 UTC 2019


On Sun, Aug 25, 2019 at 11:42 PM Z.q. Hou <zhiqiang.hou at nxp.com> wrote:
>
> From: Hou Zhiqiang <Zhiqiang.Hou at nxp.com>
>
> The PCIe controller register address in CCSR is different
> on various platforms, the current code erroneously use
> the hardcoded address (0xffe240000) and stride (0x10000)
> to calculate the controller's index.
>
> Fix it by adding the related info to the driver data
> structure.
>
> Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou at nxp.com>
> ---
> V2:
>  - No change.
>
>  drivers/pci/pcie_fsl.c | 14 ++++++++++++--
>  drivers/pci/pcie_fsl.h |  7 +++++++
>  2 files changed, 19 insertions(+), 2 deletions(-)
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list