]> git.dujemihanovic.xyz Git - u-boot.git/commit
pci: serial: Support reading PCI-register size with base
authorSimon Glass <sjg@chromium.org>
Tue, 26 Sep 2023 14:14:58 +0000 (08:14 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 6 Oct 2023 18:38:13 +0000 (14:38 -0400)
commitf69d3d6d10b15872a279aeb10b7c522627aff6c2
treefcabaf4a86164f385ede03b654bc69cbffb2a3ee
parent61fc132051740e0378a5e71f3db6cb1581e970fe
pci: serial: Support reading PCI-register size with base

The PCI helpers read only the base address for a PCI region. In some cases
the size is needed as well, e.g. to pass along to a driver which needs to
know the size of its register area.

Update the functions to allow the size to be returned. For serial, record
the information and provided it with the serial_info() call.

A limitation still exists in that the size is not available when OF_LIVE
is enabled, so take account of that in the tests.

Signed-off-by: Simon Glass <sjg@chromium.org>
16 files changed:
arch/sandbox/dts/test.dts
drivers/core/fdtaddr.c
drivers/core/ofnode.c
drivers/core/read.c
drivers/core/util.c
drivers/pci/pci-uclass.c
drivers/pci/pci_mvebu.c
drivers/pci/pci_tegra.c
drivers/pci/pcie_mediatek.c
drivers/serial/ns16550.c
include/dm/fdtaddr.h
include/dm/ofnode.h
include/dm/read.h
include/ns16550.h
include/serial.h
test/dm/pci.c