Skip to content
Commit ac58db06 authored by Simon Glass's avatar Simon Glass
Browse files

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.

Series-to: u-boot
Series-cc: trini, marek
Series-version: 3
Series-links: 371032
Cover-letter:
spl: Preparation for Universal Payload
This series tidies up SPL a little and adds some core ofnode functions
needed to support Universal Payload. It also includes a few minor fix-ups
for sandbox.

For SPL the changes include CONFIG naming, removing various #ifdefs and
tidying up the FIT code.

One notable piece of the ofnode improvements is support for flattening
a livetree. This should be useful in future as we move FDT fixups to use
the ofnode API.
END

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent bc9640a7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment