diff options
author | Alexandru Ardelean <alexandru.ardelean@analog.com> | 2020-08-25 18:19:50 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2020-08-25 21:07:11 +0530 |
commit | 78a2f92e4c4a3b775add7f99d04f8acf2fcb48d7 (patch) | |
tree | a4c2cc20cf88d1d67497b50b0a3826cfa22a84d0 /include/linux/dmaengine.h | |
parent | 3061a65c1b3dbcad0d6c03e4edc606698cfa05d2 (diff) | |
download | lwn-78a2f92e4c4a3b775add7f99d04f8acf2fcb48d7.tar.gz lwn-78a2f92e4c4a3b775add7f99d04f8acf2fcb48d7.zip |
dmaengine: axi-dmac: add support for reading bus attributes from registers
Starting with core version 4.3.a the DMA bus attributes can (and should) be
read from the INTERFACE_DESCRIPTION (0x10) register.
For older core versions, this will still need to be provided from the
device-tree.
The bus-type values are identical to the ones stored in the device-trees,
so we just need to read them. Bus-width values are stored in log2 values,
so we just need to use them as shift values to make them equivalent to the
current format.
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Link: https://lore.kernel.org/r/20200825151950.57605-7-alexandru.ardelean@analog.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'include/linux/dmaengine.h')
0 files changed, 0 insertions, 0 deletions