diff options
| author | Tom Rini <[email protected]> | 2021-04-15 13:11:19 -0400 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2021-04-15 13:11:19 -0400 |
| commit | 45b3cf88da24206a6cb847efe837fddc120af3e8 (patch) | |
| tree | 0c2054e1af2af9dc752205ec8ee003e4399045b5 /include/dm | |
| parent | b86772eda6033ea795e42f5463d436057919b6be (diff) | |
| parent | 20830d0c01b5d82c916010b5dfdbe099ca1f0444 (diff) | |
Merge https://gitlab.denx.de/u-boot/custodians/u-boot-fsl-qoriq
update ls1028aqds networking protocol, config in ls1021atwr, env in ls1012a
Add seli3 board support, booke watchdog, update eTSEC support in ppc-qemu
Add DM_SERIAL and lpuart in sl28, add DM_ETH support for some of powerpc platforms
Signed-off-by: Priyanka Jain <[email protected]>
Diffstat (limited to 'include/dm')
| -rw-r--r-- | include/dm/of_extra.h | 20 | ||||
| -rw-r--r-- | include/dm/simple_bus.h | 6 |
2 files changed, 23 insertions, 3 deletions
diff --git a/include/dm/of_extra.h b/include/dm/of_extra.h index fc4f9743196..f0d205491c1 100644 --- a/include/dm/of_extra.h +++ b/include/dm/of_extra.h @@ -94,4 +94,24 @@ int ofnode_decode_memory_region(ofnode config_node, const char *mem_type, const char *suffix, fdt_addr_t *basep, fdt_size_t *sizep); +/** + * ofnode_phy_is_fixed_link() - Detect fixed-link pseudo-PHY device + * + * This function detects whether the ethernet controller connects to a + * fixed-link pseudo-PHY device. + * + * This function supports the following two DT bindings: + * - the new DT binding, where 'fixed-link' is a sub-node of the + * Ethernet device + * - the old DT binding, where 'fixed-link' is a property with 5 + * cells encoding various information about the fixed PHY + * + * If both new and old bindings exist, the new one is preferred. + * + * @param eth_node ofnode containing the fixed-link subnode/property + * @param phy_node if fixed-link PHY detected, containing the PHY ofnode + * @return true if a fixed-link pseudo-PHY device exists, false otherwise + */ +bool ofnode_phy_is_fixed_link(ofnode eth_node, ofnode *phy_node); + #endif diff --git a/include/dm/simple_bus.h b/include/dm/simple_bus.h index 4ad4cc4051d..b7104013c05 100644 --- a/include/dm/simple_bus.h +++ b/include/dm/simple_bus.h @@ -7,9 +7,9 @@ #define __DM_SIMPLE_BUS_H struct simple_bus_plat { - u32 base; - u32 size; - u32 target; + fdt_addr_t base; + fdt_size_t size; + fdt_addr_t target; }; #endif |
