aboutsummaryrefslogtreecommitdiff
path: root/tools/patman/main.py
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2021-09-10 13:33:35 +0200
committerTom Rini <trini@konsulko.com>2021-09-23 14:15:32 -0400
commit8e85f36a8fabb4bd5216f6bfcc9a8224adb63496 (patch)
tree88d807a4872e12a0df8eefc8463da8af9b286bd5 /tools/patman/main.py
parentdf3ab898f644db6d8b7337f0a7f0995ecf41b730 (diff)
pci: Fix configuring io/memory base and limit registers of PCI bridges
Lower 4 bits of PCI_MEMORY_BASE and PCI_MEMORY_LIMIT registers are reserved and should be zero. So do not set them to non-zero value. Lower 4 bits of PCI_PREF_MEMORY_BASE and PCI_PREF_MEMORY_LIMIT registers contain information if 64-bit memory addressing is supported. So preserve this information when overwriting these registers. Lower 4 bits of PCI_IO_BASE and PCI_IO_LIMIT register contain information if 32-bit io addressing is supported. So preserve this information and do not try to configure 32-bit io addressing (via PCI_IO_BASE_UPPER16 and PCI_IO_LIMIT_UPPER16 registers) when it is unsupported. Signed-off-by: Pali Rohár <pali@kernel.org> Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'tools/patman/main.py')
0 files changed, 0 insertions, 0 deletions