pci: mpc85xx: Wrap LAW programming with CONFIG_FSL_LAW
authorBin Meng <bmeng.cn@gmail.com>
Thu, 25 Feb 2021 09:22:40 +0000 (17:22 +0800)
committerPriyanka Jain <priyanka.jain@nxp.com>
Fri, 5 Mar 2021 04:55:43 +0000 (10:25 +0530)
commit5a40f5c09dfdc1ddc9413584d5a99f2879e10de8
treea9babd20e56d904a4ce3169681d9b01044067953
parent2e91e8b3327015af4fc8b99bc81d9268a65eb559
pci: mpc85xx: Wrap LAW programming with CONFIG_FSL_LAW

For the QEMU ppce500 machine, LAW registers are not implemented
hence CONFIG_FSL_LAW is not turned on and all LAW APIs are not
available. We should wrap all LAW registers programming in the
mpc85xx PCI driver with CONFIG_FSL_LAW.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
drivers/pci/pci_mpc85xx.c