dmaengine: imx-sdma: Only check ratio on parts that support 1:1
authorAngus Ainslie (Purism) <angus@akkea.ca>
Fri, 29 Mar 2019 15:21:29 +0000 (08:21 -0700)
committerVinod Koul <vkoul@kernel.org>
Fri, 26 Apr 2019 11:48:21 +0000 (17:18 +0530)
commit941acd566b1807b291bbdca31cc5158e26ffcf83
tree8670e1567ce9b9d95c5a85e41da13979cfb3c713
parent9e1630b809ec2a6bf3248441563669fcd1e02646
dmaengine: imx-sdma: Only check ratio on parts that support 1:1

On imx8mq B0 chip, AHB/SDMA clock ratio 2:1 can't be supported,
since SDMA clock ratio has to be increased to 250Mhz, AHB can't reach
to 500Mhz, so use 1:1 instead.

To limit this change to the imx8mq for now this patch also adds an
im8mq-sdma compatible string.

Signed-off-by: Angus Ainslie (Purism) <angus@akkea.ca>
Acked-by: Robin Gong <yibin.gong@nxp.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/imx-sdma.c