Merge tag 'u-boot-stm32-20190723' of https://gitlab.denx.de/u-boot/custodians/u-boot-stm
- add rtc driver for stm32mp1 - add remoteproc driver for stm32mp1 - use kernel qspi compatible string for stm32
This commit is contained in:
@@ -26,6 +26,24 @@
|
||||
*/
|
||||
u64 of_translate_address(const struct device_node *no, const __be32 *in_addr);
|
||||
|
||||
/**
|
||||
* of_translate_dma_address() - translate a device-tree DMA address to a CPU
|
||||
* address
|
||||
*
|
||||
* Translate a DMA address from the device-tree into a CPU physical address,
|
||||
* this walks up the tree and applies the various bus mappings on the way.
|
||||
*
|
||||
* Note: We consider that crossing any level with #size-cells == 0 to mean
|
||||
* that translation is impossible (that is we are not dealing with a value
|
||||
* that can be mapped to a cpu physical address). This is not really specified
|
||||
* that way, but this is traditionally the way IBM at least do things
|
||||
*
|
||||
* @np: node to check
|
||||
* @in_addr: pointer to input DMA address
|
||||
* @return translated DMA address or OF_BAD_ADDR on error
|
||||
*/
|
||||
u64 of_translate_dma_address(const struct device_node *no, const __be32 *in_addr);
|
||||
|
||||
/**
|
||||
* of_get_address() - obtain an address from a node
|
||||
*
|
||||
|
||||
@@ -767,7 +767,7 @@ ofnode ofnode_by_prop_value(ofnode from, const char *propname,
|
||||
node = ofnode_next_subnode(node))
|
||||
|
||||
/**
|
||||
* ofnode_translate_address() - Tranlate a device-tree address
|
||||
* ofnode_translate_address() - Translate a device-tree address
|
||||
*
|
||||
* Translate an address from the device-tree into a CPU physical address. This
|
||||
* function walks up the tree and applies the various bus mappings along the
|
||||
@@ -780,6 +780,20 @@ ofnode ofnode_by_prop_value(ofnode from, const char *propname,
|
||||
*/
|
||||
u64 ofnode_translate_address(ofnode node, const fdt32_t *in_addr);
|
||||
|
||||
/**
|
||||
* ofnode_translate_dma_address() - Translate a device-tree DMA address
|
||||
*
|
||||
* Translate a DMA address from the device-tree into a CPU physical address.
|
||||
* This function walks up the tree and applies the various bus mappings along
|
||||
* the way.
|
||||
*
|
||||
* @ofnode: Device tree node giving the context in which to translate the
|
||||
* DMA address
|
||||
* @in_addr: pointer to the DMA address to translate
|
||||
* @return the translated DMA address; OF_BAD_ADDR on error
|
||||
*/
|
||||
u64 ofnode_translate_dma_address(ofnode node, const fdt32_t *in_addr);
|
||||
|
||||
/**
|
||||
* ofnode_device_is_compatible() - check if the node is compatible with compat
|
||||
*
|
||||
|
||||
@@ -499,7 +499,7 @@ int dev_read_resource_byname(struct udevice *dev, const char *name,
|
||||
struct resource *res);
|
||||
|
||||
/**
|
||||
* dev_translate_address() - Tranlate a device-tree address
|
||||
* dev_translate_address() - Translate a device-tree address
|
||||
*
|
||||
* Translate an address from the device-tree into a CPU physical address. This
|
||||
* function walks up the tree and applies the various bus mappings along the
|
||||
@@ -511,6 +511,19 @@ int dev_read_resource_byname(struct udevice *dev, const char *name,
|
||||
*/
|
||||
u64 dev_translate_address(struct udevice *dev, const fdt32_t *in_addr);
|
||||
|
||||
/**
|
||||
* dev_translate_dma_address() - Translate a device-tree DMA address
|
||||
*
|
||||
* Translate a DMA address from the device-tree into a CPU physical address.
|
||||
* This function walks up the tree and applies the various bus mappings along
|
||||
* the way.
|
||||
*
|
||||
* @dev: device giving the context in which to translate the DMA address
|
||||
* @in_addr: pointer to the DMA address to translate
|
||||
* @return the translated DMA address; OF_BAD_ADDR on error
|
||||
*/
|
||||
u64 dev_translate_dma_address(struct udevice *dev, const fdt32_t *in_addr);
|
||||
|
||||
/**
|
||||
* dev_read_alias_highest_id - Get highest alias id for the given stem
|
||||
* @stem: Alias stem to be examined
|
||||
@@ -751,6 +764,11 @@ static inline u64 dev_translate_address(struct udevice *dev, const fdt32_t *in_a
|
||||
return ofnode_translate_address(dev_ofnode(dev), in_addr);
|
||||
}
|
||||
|
||||
static inline u64 dev_translate_dma_address(struct udevice *dev, const fdt32_t *in_addr)
|
||||
{
|
||||
return ofnode_translate_dma_address(dev_ofnode(dev), in_addr);
|
||||
}
|
||||
|
||||
static inline int dev_read_alias_highest_id(const char *stem)
|
||||
{
|
||||
return fdtdec_get_alias_highest_id(gd->fdt_blob, stem);
|
||||
|
||||
Reference in New Issue
Block a user