Skip to content
Commit 4abf68d5 authored by Nicolas Saenz Julienne's avatar Nicolas Saenz Julienne Committed by Matthias Brugger
Browse files

dm: Introduce DMA constraints into the core device model



Calculating the DMA offset between a bus address space and CPU's every
time we call phys_to_bus() and bus_to_phys() isn't ideal performance
wise, as it implies traversing the device tree from the device's node up
to the root. Since this information is static and available before the
device's initialization, parse it before the probe call an provide the
DMA offset in 'struct udevice' for the address translation code to use
it.

Signed-off-by: default avatarNicolas Saenz Julienne <nsaenzjulienne@suse.de>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
Tested-by: default avatarPeter Robinson <pbrobinson@gmail.com>
Signed-off-by: default avatarMatthias Brugger <mbrugger@suse.com>
parent 283628c4
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