1
0
Fork 0
Commit Graph

11 Commits (redonkable)

Author SHA1 Message Date
Gao Pan 01aeea145f MLK-15999 imx: mlb: fix build warnings
fix build warnings

Signed-off-by: Gao Pan <pandy.gao@nxp.com>
2018-10-29 11:10:38 +08:00
Gao Pan 2c516cad3e MLK-15995 imx: mlb: only use irq_ahb1 for imx6
Due to IP integration difference, there are 2 ahb irqs
for imx6 and only 1 ahb irq for imx8. This patch makes
mlb driver compatible with irq difference.

Signed-off-by: Gao Pan <pandy.gao@nxp.com>
2018-10-29 11:10:38 +08:00
Gao Pan f419d2b4fb MLK-15993 Kconfig: add mlb support for IMX8QM
add mlb support for IMX8QM

Signed-off-by: Gao Pan <pandy.gao@nxp.com>
2018-10-29 11:10:38 +08:00
Gao Pan dfd9009485 MLK-15992 imx: mlb: add ipg & hclk clocks for imx8 mlb
Add ipg & hclk clock for imx8 mlb due to IP integration difference.

Signed-off-by: Gao Pan <pandy.gao@nxp.com>
2018-10-29 11:10:38 +08:00
Gao Pan efe2e7772a MLK-15990 imx: mlb: change mlb clock name
change mlb clock name from clk_mlb3p to mlb.

Signed-off-by: Gao Pan <pandy.gao@nxp.com>
2018-10-29 11:10:38 +08:00
Gao Pan 8b0d90a2f4 MLK-15988 imx: mlb: remove clk for mlb 6 pin mode
mlb 6 pin mode is not supported in current release,
so remove clk for mlb 6 pin mode.

Signed-off-by: Gao Pan <pandy.gao@nxp.com>
2018-10-29 11:10:38 +08:00
Gao Pan 586d356f20 MLK-15987 imx: mlb: use dma pool when iram doesn't exist
alloc mlb data buffer from dma pool when iram doesn't exist

Signed-off-by: Gao Pan <pandy.gao@nxp.com>
2018-10-29 11:10:38 +08:00
Gao Pan 5931bd44b5 MLK-12185 mlb: imx: fix the operation for mlb status in mlb_isr
As a result that the wrong operation is used for the mlb status
in mlb_isr(), some results are independent of their operations.

for example:
rx_cis = (cdt_val[2] & ~MASK) >> SHIFT, where, MASK = 0xf0000000
and SHIFT = 28. So, the result is always 0 regardless of the values
of its operands.

This patch fixes the operation for mlb status in mlb_isr().

(reported by coverity check)

Signed-off-by: Gao Pan <pandy.gao@nxp.com>
2018-10-29 11:10:38 +08:00
Fugang Duan 7d8c44f3c8 MLK-11910 mxc: mlb: fix irq unsigned_compare issue
After coverity code check, it tips:
unsigned_compare: This less-than-zero comparison of an unsigned value is never true

Interrupt variable must be signed type.

Signed-off-by: Fugang Duan <B38611@freescale.com>
2018-10-29 11:10:38 +08:00
Anson Huang 19eaebcd19 MLK-11566-6 mlb: add i.mx6sx support
i.MX6SX has MLB150, add support for it.

Signed-off-by: Anson Huang <b20788@freescale.com>
(cherry picked from commit 99d374da7d49d45800821b28d55e032387f1cc67)
2018-10-29 11:10:38 +08:00
Gao Pan e79b103b8b MLK-11442 mlb: imx: add mlb support on imx_4.1.y
Add mlb support on imx_4.1.y. The files are copied from imx_3.14.y.

Signed-off-by: Gao Pan <b54642@freescale.com>
2018-10-29 11:10:38 +08:00