dmaengine: imx-sdma: add clock ratio 1:1 check
authorAngus Ainslie (Purism) <angus@akkea.ca>
Mon, 28 Jan 2019 16:03:21 +0000 (09:03 -0700)
committerVinod Koul <vkoul@kernel.org>
Mon, 25 Feb 2019 17:55:42 +0000 (23:25 +0530)
commit25aaa75df1e659901d77085bcdd25eaabf265688
treedfbc427cf2fa786c976bcd0b5edeebd3d39b15fd
parent3b6679f91e6f7772b7bfa3417b637f09e5998357
dmaengine: imx-sdma: add clock ratio 1:1 check

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

Based on NXP commit MLK-16841-1 by Robin Gong <yibin.gong@nxp.com>

Signed-off-by: Angus Ainslie (Purism) <angus@akkea.ca>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/imx-sdma.c