diff options
author | Tom Rini <trini@konsulko.com> | 2020-08-25 10:24:40 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-08-25 13:38:29 -0400 |
commit | 9f9ecd3e4d7839e24c182fb7b24937e19b670f1b (patch) | |
tree | 4250ad58dba47ae6127d4129b9a19dc648fd064d /include/fdtdec.h | |
parent | ec54217ddc6f52f3b7dad7a3fd6d8a3abd64ab7e (diff) | |
parent | 6944937f9c4d21f39dd257bce7b677a0f6849cea (diff) |
Merge https://gitlab.denx.de/u-boot/custodians/u-boot-marvell
- Add basic Marvell/Cavium OcteonTX/TX2 support (Suneel)
- Infrastructure changes to PCI uclass to support these SoC's (Suneel)
- Add PCI, MMC & watchdog driver drivers for OcteonTX/TX2 (Suneel)
- Increase CONFIG_SYS_MALLOC_F_LEN for qemu-x86 (Stefan)
Diffstat (limited to 'include/fdtdec.h')
-rw-r--r-- | include/fdtdec.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/fdtdec.h b/include/fdtdec.h index bc79389260..152eb07b9e 100644 --- a/include/fdtdec.h +++ b/include/fdtdec.h @@ -445,6 +445,19 @@ int fdtdec_get_pci_bar32(const struct udevice *dev, struct fdt_pci_addr *addr, u32 *bar); /** + * Look at the bus range property of a device node and return the pci bus + * range for this node. + * The property must hold one fdt_pci_addr with a length. + * @param blob FDT blob + * @param node node to examine + * @param res the resource structure to return the bus range + * @return 0 if ok, negative on error + */ + +int fdtdec_get_pci_bus_range(const void *blob, int node, + struct fdt_resource *res); + +/** * Look up a 32-bit integer property in a node and return it. The property * must have at least 4 bytes of data. The value of the first cell is * returned. |