]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
Create API to map between CPU physical and bus addresses
authorStephen Warren <swarren@wwwdotorg.org>
Wed, 25 Mar 2015 02:07:33 +0000 (20:07 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 19:47:07 +0000 (21:47 +0200)
commit3c79030de9e6efa63496d2ee8109201d7d83ccfa
tree9d495a31a35e8c8726b64adfa909050f3058a1c9
parent0efef6a637431a77892e1809c6d6c711f06fb0d3
Create API to map between CPU physical and bus addresses

On some SoCs, DMA-capable peripherals see a different address space to
the CPU's physical address space. Create an API to allow platform-agnostic
drivers to convert between the two address spaces when programming DMA
operations.

This API will exist on all platforms, but will have a dummy implementation
when this feature is not required. Other platforms will enable
CONFIG_PHYS_TO_BUS and provide the required implementation.

Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
drivers/Kconfig
include/phys2bus.h [new file with mode: 0644]