[PATCH v2 6/8] dm: Introduce dev_phys_to_bus()/dev_bus_to_phys()

Simon Glass sjg at chromium.org
Sat Dec 12 16:39:54 CET 2020


On Thu, 10 Dec 2020 at 04:45, Nicolas Saenz Julienne
<nsaenzjulienne at suse.de> wrote:
>
> These functions, instead of relying on hard-coded platform-specific
> address translations, make use of the DMA constraints provided by the DM
> core. This allows for per-device translations.
>
> We can't yet get rid of the legacy phys_to_bus()/bus_to_phys()
> implementations as some of its users are not integrated into the
> device model.
>
> Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne at suse.de>
> ---
>  include/phys2bus.h | 16 ++++++++++++++++
>  1 file changed, 16 insertions(+)

Reviewed-by: Simon Glass <sjg at chromium.org>

But please make sure tests are added.


More information about the U-Boot mailing list