mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-11 15:34:55 +00:00
dma: ti: k3-udma: Fix BCDMA probe by adding check for MMR_RFLOW
RFLOW config related MMR does not exist incase of BCDMA.
Add check to bypass the RFLOW MMR extraction.
Without this, the probe sequence fails checking for
the MMR_RFLOW region, which is valid only for packet based
DMA and obselete for BCDMA.
Fixes: 5abb694d60
("dma: ti: k3-udma: Add support for native configuration of chan/flow")
Signed-off-by: Prasanth Babu Mantena <p-mantena@ti.com>
Tested-by: Jonathan Humphreys <j-humphreys@ti.com>
This commit is contained in:
parent
4be4046075
commit
e7713a7882
1 changed files with 2 additions and 0 deletions
|
@ -1331,6 +1331,8 @@ static int udma_get_mmrs(struct udevice *dev)
|
|||
continue;
|
||||
if (i == MMR_RCHANRT && ud->rchan_cnt == 0)
|
||||
continue;
|
||||
if (i == MMR_RFLOW && ud->match_data->type == DMA_TYPE_BCDMA)
|
||||
continue;
|
||||
|
||||
ud->mmrs[i] = dev_read_addr_name_ptr(dev, mmr_names[i]);
|
||||
if (!ud->mmrs[i])
|
||||
|
|
Loading…
Add table
Reference in a new issue