]> git.baikalelectronics.ru Git - uboot.git/commit
pcie: designware: mvebu: do not configure ATU for IO when not used
authorMarcin Wojtas <mw@semihalf.com>
Fri, 30 Apr 2021 13:33:15 +0000 (15:33 +0200)
committerStefan Roese <sr@denx.de>
Sun, 16 May 2021 04:48:45 +0000 (06:48 +0200)
commitc3847d9c243ced3734cdb3db957b25ad4cdb991e
treed067ac84f76a5b2a9d07c349c8606f93b1056788
parenteec69e897dff2e573e142d71cae4f47f2cf7745d
pcie: designware: mvebu: do not configure ATU for IO when not used

The pcie_dw_mvebu configure ATU regions for memory, configuration
and IO space types. However the latter is not obligatory
and when not specified in the device tree, causes wrong
ATU configuration. Fix that by adding a dependency on the
detected PCIE regions count.

Signed-off-by: Marcin Wojtas <mw@semihalf.com>
Reviewed-on: https://sj1git1.cavium.com/18136
Reviewed-by: Kostya Porotchkin <kostap@marvell.com>
Tested-by: Kostya Porotchkin <kostap@marvell.com>
drivers/pci/pcie_dw_mvebu.c