Skip to content
Snippets Groups Projects
Commit 6e06acb7 authored by Stephen Warren's avatar Stephen Warren Committed by Simon Glass
Browse files

fdt: allow fdtdec_get_addr_size_*() to translate addresses


Some code may want to read reg values from DT, but from nodes that aren't
associated with DM devices, so using dev_get_addr_index() isn't
appropriate. In this case, fdtdec_get_addr_size_*() are the functions to
use. However, "translation" (via the chain of ranges properties in parent
nodes) may still be desirable. Add a function parameter to request that,
and implement it. Update all call sites to default to the original
behaviour.

Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
Squashed in build fix from Stephen:
Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 11e44fc6
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment