Li Jun [Fri, 16 Jun 2017 16:51:18 +0000 (00:51 +0800)]
MLK-15074-11 ARM64: defconfig: enable CONFIG_BLK_DEV_INITRD
Enable CONFIG_BLK_DEV_INITRD for initramfs of MFG tool.
Signed-off-by: Li Jun <jun.li@nxp.com>
Li Jun [Fri, 16 Jun 2017 17:54:55 +0000 (01:54 +0800)]
MLK-15074-10 usb: gadget: utp: correct the set_fs condition
set_fs() should be done in case:
1. CONFIG_FSL_UTP is not enabled.
2. CONFIG_FSL_UTP is enabled but is_utp_device is false.
Signed-off-by: Li Jun <jun.li@nxp.com>
Li Jun [Fri, 16 Jun 2017 16:49:49 +0000 (00:49 +0800)]
MLK-15074-9 usb: gadget: utp: fix wrong fsg parameter
As common->fsg maybe have not been set correctly while enumration, so
use the correct pointer fsg for utp device check.
Signed-off-by: Li Jun <jun.li@nxp.com>
Li Jun [Fri, 16 Jun 2017 17:40:37 +0000 (01:40 +0800)]
MLK-15074-8 ARM: imx_v7_defconfig: enable CONFIG_FSL_UTP
CONFIG_FSL_UTP is missing for MFG tool, add it.
Signed-off-by: Li Jun <jun.li@nxp.com>
Richard Zhu [Mon, 19 Jun 2017 09:30:12 +0000 (17:30 +0800)]
MLK-15119 PCI: imx: remove the wrong rebased codes
Some codes are wrong rebase back into mainline in
one git pull rebase confliction.
Remove them.
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Fugang Duan [Mon, 19 Jun 2017 09:10:09 +0000 (17:10 +0800)]
MLK-15117 ARM64: dts: imx8qxp-lpddr4-arm2: add extended dts for enet2 port
Since lpddr4 arm2 baord enet2 has pin conflict with esai0,
so add extended dts for enet2 port.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Reviewed-by: Robin Gong <yibin.gong@nxp.com>
Fugang Duan [Mon, 19 Jun 2017 09:05:01 +0000 (17:05 +0800)]
MLK-15118 ARM64: dts: imx8qxp: enable lpuart1/2 and eDMA0
Add lpuart1, lpuart2 and eDMA0 support for imx8qxp.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Reviewed-by: Robin Gong <yibin.gong@nxp.com>
Richard Zhu [Tue, 13 Jun 2017 06:02:40 +0000 (14:02 +0800)]
MLK-15064-4 PCI: imx: enable pcie support
- add the cpu addr offset
Bit[31:24]
pciea 60 - 6f ---> 40 - 4f
pcieb 70 - 7f ---> 80 - 8f
- internal pll is verified on imx8qxp arm2 board
- use the dma_alloc_coherent to alloc the msi region,
because that imx8 pcie only supports up to 32bit
msi address.
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Reviewed-by: Frank Li <frank.li@nxp.com>
Richard Zhu [Tue, 13 Jun 2017 05:59:39 +0000 (13:59 +0800)]
MLK-15064-3 clk: imx: enable pcie support
correct the pd definitions of the pcie clks
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Reviewed-by: Frank Li <frank.li@nxp.com>
Richard Zhu [Mon, 19 Sep 2016 08:39:44 +0000 (16:39 +0800)]
MLK-15064-2 ARM64: DMA: limit the dma mask to be 32bit
Limit the dma mask to be 32bit, because that
the imx8 doesn't have the 64bit dma capapbility
although it is 64bit soc.
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Reviewed-by: Frank Li <frank.li@nxp.com>
Richard Zhu [Fri, 26 May 2017 08:41:46 +0000 (16:41 +0800)]
MLK-15064-1 ARM: imx: pcie: enable imx8 pcie
- use one standalone hsio node to share the region to
pciea, pcieb and sata.
- axi master slave and dbi clks and pipe_clk are required
- enable pcieb
change the pd of the pcieb, otherwise, clk is failed to enable
- add the cpu addr offset
Bit[31:24]
pciea 60 - 6f ---> 40 - 4f
pcieb 70 - 7f ---> 80 - 8f
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Reviewed-by: Frank Li <frank.li@nxp.com>
Guoniu.Zhou [Mon, 5 Jun 2017 02:05:20 +0000 (10:05 +0800)]
MLK-15041: PXP-V3: enable stroe engine block mode and fill function
1. When pxp do rotation, fetch and store engine need block mode.
2. When use pxp store engine fill function, not only need config
store engine, but also need config fetch engine, otherwise, it
will not work.
Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
Liu Ying [Mon, 12 Jun 2017 05:58:09 +0000 (13:58 +0800)]
MLK-15001-42 arm64: dts: fsl-imx8qxp-lpddr4-arm2-it6263: Add it6263 support
This patch adds it6263 LVDS to HDMI transmitter display support.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Thu, 8 Jun 2017 02:16:25 +0000 (10:16 +0800)]
MLK-15001-41 arm64: dtsi: fsl-imx8qxp-ldb: Add LDB support
This patch adds LDB support.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Thu, 8 Jun 2017 02:11:53 +0000 (10:11 +0800)]
MLK-15001-40 arm64: dtsi: fsl-imx8qxp: Add i2c0_mipi_lvds0/1 support
This patch adds i2c0_mipi_lvds0/1 support.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Thu, 8 Jun 2017 01:58:55 +0000 (09:58 +0800)]
MLK-15001-39 arm64: dtsi: fsl-imx8qxp: Add Mixel LVDS combo PHY support
This patch adds Mixel LVDS combo PHY support.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Wed, 7 Jun 2017 09:55:34 +0000 (17:55 +0800)]
MLK-15001-38 arm64: dtsi: fsl-imx8qxp: MIPI DSI PD should be contained by DC PD
The MIPI DSI power domains are the child power domains of DC power domain.
So, let's wrap the MIPI DSI power domains by DC power domain.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Wed, 24 May 2017 09:05:52 +0000 (17:05 +0800)]
MLK-15001-37 arm64: dtsi: fsl-imx8qxp: Add pd_mipi_dsi1 support
This patch adds pd_mipi_dsi1 support.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Wed, 24 May 2017 09:01:09 +0000 (17:01 +0800)]
MLK-15001-36 arm64: dtsi: fsl-imx8qxp: Set the 1st instance num for pd_mipi_dsi
This patch sets the first instance number for pd_mipi_dsi.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Mon, 5 Jun 2017 03:44:11 +0000 (11:44 +0800)]
MLK-15001-35 arm64: dtsi: fsl-imx8qxp: Add display subsystem
This patch adds display subsystem support.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Tue, 6 Jun 2017 03:06:27 +0000 (11:06 +0800)]
MLK-15001-34 arm64: dts: fsl-imx8qxp-lpddr4-arm2: Enable dpu
This patch enables dpu.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Mon, 5 Jun 2017 03:40:23 +0000 (11:40 +0800)]
MLK-15001-33 arm64: dtsi: fsl-imx8qxp: Add basic dpu node
This patch adds basic dpu node support.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Mon, 5 Jun 2017 02:58:40 +0000 (10:58 +0800)]
MLK-15001-32 arm64: dts: fsl-imx8qm-lpddr4-arm2-it6263: Add it6263 support
This patch adds it6263 LVDS to HDMI transmitter display support.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Mon, 5 Jun 2017 02:53:07 +0000 (10:53 +0800)]
MLK-15001-31 arm64: dtsi: fsl-imx8qm: Add LDB support
This patch adds LDB support.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Mon, 5 Jun 2017 02:49:06 +0000 (10:49 +0800)]
MLK-15001-30 arm64: dtsi: fsl-imx8qm: Add Mixel LVDS PHY support
This patch adds Mixel LVDS PHY support.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Mon, 5 Jun 2017 02:46:17 +0000 (10:46 +0800)]
MLK-15001-29 arm64: dtsi: fsl-imx8qm: Add display subsystem
This patch adds display subsystem support.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Mon, 5 Jun 2017 02:44:08 +0000 (10:44 +0800)]
MLK-15001-28 arm64: dts: fsl-imx8qm-lpddr2-arm2: Enable dpu1 and dpu2
This patch enables dpu1 and dpu2.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Mon, 5 Jun 2017 02:37:13 +0000 (10:37 +0800)]
MLK-15001-27 arm64: dtsi: fsl-imx8qm: Add basic dpu nodes
This patch adds basic dpu nodes support.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Mon, 5 Jun 2017 02:10:09 +0000 (10:10 +0800)]
MLK-15001-26 arm64: defconfig: Add ITE IT6263 LVDS to HDMI transmitter support
This patch adds ITE IT6263 LVDS to HDMI transmitter support in arm64 kernel
defconfig.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Mon, 27 Mar 2017 09:26:59 +0000 (17:26 +0800)]
MLK-15001-25 drm/bridge: Add ITE IT6263 LVDS to HDMI transmitter support
This patch adds IT6263 video support.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Mon, 27 Mar 2017 03:31:45 +0000 (11:31 +0800)]
MLK-15001-24 dt-bindings: Add ITE vendor prefix
Add vendor prefix for ITE Tech Inc. http://ite.com.tw/en
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Mon, 12 Jun 2017 05:34:26 +0000 (13:34 +0800)]
MLK-15001-23 drm/imx: ldb: Add i.MX8qxp LDB support
This patch adds i.MX8qxp LDB support.
Logics are added to make i.MX8qxp LDB cope with Mixel LVDS combo PHY.
Also, logics are added to handle pixel link quirks for i.MX8qxp LDB.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Tue, 23 May 2017 06:55:17 +0000 (14:55 +0800)]
MLK-15001-22 phy: Add Mixel LVDS combo PHY support
This patch adds Mixel LVDS combo PHY support(MIPI DSI and LVDS combo).
This LVDS PHY supports one LVDS channel in single mode and two channels in
dual mode.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Fri, 2 Jun 2017 09:46:12 +0000 (17:46 +0800)]
MLK-15001-21 drm/imx: ldb: Add i.MX8qm LDB support
This patch adds i.MX8qm LDB support.
Logics are added to make i.MX8qm LDB cope with Mixel LVDS PHY.
Also, logics are added to handle pixel link padding quirks for i.MX8qm LDB.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Mon, 24 Apr 2017 05:59:40 +0000 (13:59 +0800)]
MLK-15001-20 phy: Add Mixel LVDS PHY support
This patch adds Mixel LVDS PHY support.
This PHY supports two LVDS channels.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Mon, 24 Apr 2017 05:57:11 +0000 (13:57 +0800)]
MLK-15001-19 dt-bindings: Add Mixel vendor prefix
Add vendor prefix for Mixel, Inc. http://mixel.com
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Fri, 2 Jun 2017 09:39:45 +0000 (17:39 +0800)]
MLK-15001-18 drm/imx: ldb: Revert an out-of-tree commit
To follow the upstreaming implementation:
Revert commit
de361832a52a ("MLK-12184 drm/imx: imx-ldb: add mux id check").
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Fri, 2 Jun 2017 09:37:04 +0000 (17:37 +0800)]
MLK-15001-17 arm64: defconfig: Enable i.MX DRM/KMS support
This patch enables i.MX DRM/KMS support in arm64 kernel defconfig.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Sun, 22 Jan 2017 06:23:16 +0000 (14:23 +0800)]
MLK-15001-16 drm/imx: Add DPU KMS support
This patch adds i.MX DPU KMS support.
Currently, only the DPU fetchdecodes are supported as DRM planes.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Thu, 12 Jan 2017 07:07:51 +0000 (15:07 +0800)]
MLK-15001-15 drm/imx: ipuv3-kms: Move to a new ipuv3 folder
Since we want to add i.MX DPU support into imx-drm, the IPUv3 KMS driver
can be put into the ipuv3 folder to organize the driver code better.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Thu, 12 Jan 2017 07:00:37 +0000 (15:00 +0800)]
MLK-15001-14 drm/imx: ipuv3-crtc: Rename some IPUv3 specific functions
Since we want to add i.MX DPU support into imx-drm, the IPUv3 specific
KMS function names should be no more too generic with the prefix 'imx_drm'.
Let's rename them to be prefixed with 'ipu'.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Thu, 8 Jun 2017 02:47:08 +0000 (10:47 +0800)]
MLK-15001-13 drm/imx: Extract IPUv3 specific KMS functions to ipuv3-kms.c
Since we want to add i.MX DPU support into imx-drm, the imx-drm core
driver should be no more IPUv3 specific. Let's make imx-drm more generic
and extract IPUv3 specific KMS functions to ipuv3-kms.c.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Fri, 2 Jun 2017 09:27:44 +0000 (17:27 +0800)]
MLK-15001-12 arm64: defconfig: Enable i.MX DPU core support
This patch enables i.MX DPU core support in the arm64 kernel defconfig.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Wed, 12 Apr 2017 08:30:34 +0000 (16:30 +0800)]
MLK-15001-11 gpu: Move ipuv3 and dpu to imx folder
IPUv3 and DPU are both i.MX display processing units.
To organize the driver code better, let's introduce the imx folder for them.
Later, we may put more drivers into this folder, e.g., the prefetch engines.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Mon, 5 Dec 2016 05:38:22 +0000 (13:38 +0800)]
MLK-15001-10 gpu: Add dpu base driver
DPU is the display processing unit embedded in i.MX8qm and i.MX8qxp.
It was originally designed by Fujitsu.
The first revision has capture controller, display controller and blit engine.
The second revision is a lite one and has display controller and blit engine.
This patch adds a base driver for DPU, which provides a thin register wrapper,
interrurpt support and client platform device register for the upper layer to
use. Currently, the driver only supports the display controller at the pixel
processing level and only the fetchdecodes are supported/tested as the fetch
units.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Tue, 9 May 2017 09:39:41 +0000 (17:39 +0800)]
MLK-15001-9 media: bus format: Add RGB101010_1X7X5_SPWG/JEIDA support
This patch adds 30bit RGB101010 LVDS pixel formats support for
the SPWG and JEIDA LVDS mapping standards. Each pixel is transferred
on 5 lanes with 7bit respectively.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Tue, 9 May 2017 09:38:37 +0000 (17:38 +0800)]
MLK-15001-8 media: bus format: Add RGB666_1X30_PADLO support
This patch adds 30bit RGB666 with low padding support.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Tue, 9 May 2017 09:16:27 +0000 (17:16 +0800)]
MLK-15001-7 media: bus format: Add RGB888_1X30_PADLO support
This patch adds 30bit RGB888 with low padding support.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Wed, 22 Mar 2017 03:50:06 +0000 (11:50 +0800)]
MLK-15001-6 media: bus format: Add RGB101010_1X30 support
This patch adds 30bit RGB101010 pixel format support.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Wed, 31 May 2017 02:58:46 +0000 (10:58 +0800)]
MLK-15001-5 clk: imx8qxp: Add some clocks support for DC and MIPI-LVDS SSs
This patch adds some clocks support for DC and MIPI-LVDS subsystems.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Mon, 5 Jun 2017 03:21:01 +0000 (11:21 +0800)]
MLK-15001-4 arm64: dts: fsl-imx8qm-lpddr4-arm2: Remove it6263 support
No driver works with the it6263 nodes, so let's remove them.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Fri, 2 Jun 2017 08:27:14 +0000 (16:27 +0800)]
MLK-15001-3 arm64: fsl-imx8qm.dtsi: Remove lvds nodes
No driver works with the lvds nodes, so let's remove them.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Fri, 2 Jun 2017 08:24:34 +0000 (16:24 +0800)]
MLK-15001-2 arm64: fsl-imx8qm.dtsi: Remove imxdpu nodes
No driver works with the imxdpu nodes, so let's remove them.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Liu Ying [Fri, 2 Jun 2017 08:18:27 +0000 (16:18 +0800)]
MLK-15001-1 arm64: fsl-imx8qm.dtsi: Remove framebuffer nodes
No driver works with the framebuffer nodes, so let's remove them.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Richard Zhu [Thu, 15 Jun 2017 03:41:34 +0000 (11:41 +0800)]
MLK-15080 PCI: imx: pcie ep can't be probed properly
iMX7D Sabre SD board implement the GPIO expander
connected to a peripheral bus.
Probe deferral would be triggered when try to request
the expanded GPIO at the first time.
pcie ep can't be probed properly at the second probe,
because of the duplicated registration of the sysfs.
Change the registeration point of the sysfs to fix
this issue.
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Han Xu [Thu, 15 Jun 2017 20:39:50 +0000 (15:39 -0500)]
MLK-15076: arm: dts: insulate ULP kernel boot from M4 boot
i.MX7ULP QSPI dtb was used to update the M4 images, it should not able
to boot the kernel even without the M4 image in QSPI.
Also fixed the typo in dtsi to correct the QSPI register address
mapping range.
Signed-off-by: Han Xu <han.xu@nxp.com>
Adrian Alonso [Thu, 15 Jun 2017 17:12:49 +0000 (12:12 -0500)]
MLK-15098: ASoC: fsl: fix imx-pcm build error when no dma
Fix build error when SOC_IMX_PCM_DMA is not enabled
error: expected identifier or ‘(’ before ‘{’ token})
Signed-off-by: Adrian Alonso <adrian.alonso@nxp.com>
Mihai Serban [Wed, 14 Jun 2017 12:40:32 +0000 (15:40 +0300)]
MLK-15053: ASoC: fsl: imx-cs42888: Reject unsupported sampling rates
Dynamic constraints for supported sampling rates cannot prevent aplay to
play audio files with higher rates. So we remove the constraints and hard
reject the unsupported samples.
Signed-off-by: Mihai Serban <mihai.serban@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Fugang Duan [Thu, 15 Jun 2017 09:33:46 +0000 (17:33 +0800)]
MLK-15096 arm64: dts: imx8qm/imx8qxp: enable enet2 port
Since the enet clock issue is fixed at SCU code by commit
07dcb2d71dd1
("Fix bug clock enable code. Ensure that the appropriate parent PLL is
enabled/disabled.") in scu mainline branch, then enable enet2 port for
imx8qm and imx8qxp lpddr4 arm2 boards.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Fugang Duan [Thu, 15 Jun 2017 10:04:09 +0000 (18:04 +0800)]
MLK-15095-02 ARM64: defconfig: add Bluetooth support
Enable Bluetooth stack, driver and HCI interface config for
Bluetooth support.
Run "make savedefconfig" to change the defconfig.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Fugang Duan [Thu, 15 Jun 2017 09:04:15 +0000 (17:04 +0800)]
MLK-15095-01 arm64: dts: imx8qm: add modem reset for Murata 1FD BT on lpddr4 arm2 board
i.MX8QM lpddr4-arm2 support Murata 1FD BT module that need some reset
timing. Add modem reset to support the BT device.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Fugang Duan [Thu, 15 Jun 2017 08:48:31 +0000 (16:48 +0800)]
MLK-15094 tty: serial: fsl_lpuart: check dma_tx_in_progress in callback
There have a corner case that tx DMA .callback() is comming after
.flush_buffer(), then .callback() should check dma_tx_in_progress
flag and return in directly.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Fugang Duan [Mon, 12 Jun 2017 08:56:43 +0000 (16:56 +0800)]
MLK-15093 tty: serial: imx: enable bit TDMAEN in each DMA transfer
In below case:
write() -> flush() -> write() -> flush() ...
.imx_flush_buffer() _MAY_ clear UCR1_TDMAEN bit if the callback is not
comming or DMA transfer is not completed, to ensure DMA trigger is enabled
for the new DMA prep_sg, enable the UCR1_TDMAEN bit in .dma_tx_work().
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Tested-by: Fabio Estevam <fabio.estevam@nxp.com>
Tested-by: David Wolfe <david.wolfe@nxp.com>
Fugang Duan [Thu, 15 Jun 2017 08:45:29 +0000 (16:45 +0800)]
MLK-15092 reset: gpio-reset: add post reset delay
Some devices need to wait for some milliseconds after reset, so add
post reset delay in the gpio-reset chip.
The post reset delay is optional.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Shengjiu Wang [Thu, 15 Jun 2017 07:32:17 +0000 (15:32 +0800)]
MLK-15042: ASoC: fsl_asrc: update supported format
The ASRC support 24 bit input width, but for S20_3LE the input width
is 20 bit, asrc will treat it as 24bit, which like a 24bit data shift
4 bit right, the result is the volume is lower than expected.
ASRC can't shift the 20bit data left 4 bit internally, so remove the
S20_3LE in supported list, add S24_3LE in supported list.
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
(cherry picked from commit
e65a014efe0a69c2db9de422fb780f0ba9c41dba)
Shengjiu Wang [Thu, 15 Jun 2017 05:19:34 +0000 (13:19 +0800)]
MLK-15063: ASoC: fsl: add dpcm_merged_chan for machine driver
Same as commit
cfe36e2e7fce ("MLK-15043-2: ASoC: imx-cs42888: fix
noise issue with FE-BE case"). need to add same configuration
for imx-wm8960, imx-wm8962, imx-mqs.
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
(cherry picked from commit
7195ad8ff56857028a6990296cc06e1c08a4e48e)
Shengjiu Wang [Thu, 15 Jun 2017 05:07:20 +0000 (13:07 +0800)]
MLK-15068: ASoC: fsl_ssi: fix the noise issue with S20_3LE Mono bitsream
In master mode, clock of S20_3LE mono bistream is calculated by formula
"2 * params_width * params_rate", and this clock can't be divided from
clock soure, so switch to use the "2 * params_physical_width * params_rate"
formula to fix this issue.
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
(cherry picked from commit
52a91e870b8cc95cbceeda205761134e25626863)
Li Jun [Wed, 14 Jun 2017 15:16:30 +0000 (23:16 +0800)]
MLK-15081 usb: gadget: utp: fix build warning with aarch64 compiler
Compiler will generate below complain if using %d to print size_t, fix it
by using %zd.
drivers/usb/gadget/function/fsl_updater.c: In function ‘utp_do_read’:
./include/linux/kern_levels.h:4:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
#define KERN_SOH "\001" /* ASCII Start Of Header */
^
./include/linux/kern_levels.h:13:19: note: in expansion of macro ‘KERN_SOH’
#define KERN_INFO KERN_SOH "6" /* informational */
^~~~~~~~
./include/linux/printk.h:284:9: note: in expansion of macro ‘KERN_INFO’
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~
drivers/usb/gadget/function/fsl_updater.c:245:3: note: in expansion of macro ‘pr_info’
pr_info("Copied to %p, %d bytes started from %d\n",
^~~~~~~
Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
Li Jun [Wed, 14 Jun 2017 14:10:19 +0000 (22:10 +0800)]
MLK-15074-7 ARM64: remove mfg_defconfig
As we can build in usb gadget function of utp for MFG tool, so we can
remove the dedicated menuconfig.
Signed-off-by: Li Jun <jun.li@nxp.com>
Li Jun [Thu, 15 Jun 2017 15:18:50 +0000 (23:18 +0800)]
MLK-15074-6 ARM64: defconfig: add USB gadget functions
Build in CONFIG_USB_CONFIGFS, and add legency gadget function drivers
as module.
Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
Li Jun [Thu, 15 Jun 2017 15:14:43 +0000 (23:14 +0800)]
MLK-17054-5 ARM64: defconfig: match the output of 'make savedefconfig'
Update defconfig to match the output of make savedefconfig.
Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
Li Jun [Tue, 13 Jun 2017 14:22:19 +0000 (22:22 +0800)]
MLK-15074-4 ARM: remove imx_v7_mfg_defconfig
As we already build in USB mass storage for UTP via configfs
in kernel, we can use imx_v7_defconfig for MFG tool now, so
remove it.
Reviewed-by: Frank Li <frank.li@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
Li Jun [Tue, 13 Jun 2017 13:57:14 +0000 (21:57 +0800)]
MLK-15074-3 ARM: imx_v7_defconfig: build in USB_CONFIGFS
Build in CONFIG_USB_CONFIGFS for MFG tool, with that, MFG tool can directly
use imx_v7_defconfig, and we can remove imx_v7_mfg_defconfig.
Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
Li Jun [Tue, 13 Jun 2017 13:49:44 +0000 (21:49 +0800)]
MLK-15074-2 usb: gadget: utp: move the Kconfig out of legacy dir
As the UTP is based on mass storage function, instead of legacy
g_mass_storage, so move it out of legacy folder.
Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
Li Jun [Tue, 13 Jun 2017 20:06:38 +0000 (04:06 +0800)]
MLK-15074-1 usb: gadget: f_mass_storage: add utp device check
Add utp device check for utp handling in f_mass_storage.
Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
Shengjiu Wang [Mon, 12 Jun 2017 07:19:42 +0000 (15:19 +0800)]
MLK-15061-2: ASoC: fsl_asrc_m2m: fix asrc m2m can't work in imx8
Power domain need to be enabled when asrc m2m start to work, and
disabled when it stop.
Switch back to use the pm_runtime_get_sync and pm_runtime_put_sync
for which is removed in commit
1a3d82e08fa2 ("ASoC: fsl: refine
the asrc driver for imx8qm").
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Shengjiu Wang [Thu, 15 Jun 2017 07:50:50 +0000 (15:50 +0800)]
MLK-15061-1: ASoC: fsl_asrc_m2m: fix dma_map_sg issue for arm64
For arm64, the dma_map_sg and dma_unmap_sg need the device parameter,
otherwise, it will return error.
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
Shengjiu Wang [Wed, 14 Jun 2017 09:40:17 +0000 (17:40 +0800)]
MLK-15043-2: ASoC: imx-cs42888: fix noise issue with FE-BE case
The case is "aplay -Dhw:0,1 -d 5 -r 8000 -f S16_LE -c 9 audio8k16b9c.wav",
which is to playback 9 channel bitstream. But the maximum supported channel
of codec is 8, ALSA didn't return error for this case, but continue to
playback.
The reason is that in FE-BE case, ASLA only get the FE's hw parameter for
constraint list, omit the BE's parameter. This patch is to merge BE's
parameter to FE. in this situation with the 9 channel case, ASLA will
return error "aplay: set_params:1303: Channels count non available"
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
(cherry picked from commit
cfe36e2e7fce578eeac9a36eac04db2584e6e92e)
Shengjiu Wang [Wed, 14 Jun 2017 09:35:20 +0000 (17:35 +0800)]
MLK-15043-1: ASoC: soc-pcm: add dpcm_merged_chan in snd_soc_dai_link
According to commit
b073ed4e2126 ("ASoC: soc-pcm: DPCM cares BE format"),
Current DPCM only care FE channel, but it will set unsupported channel to
drivers.
So add dpcm_merged_chan, which is used to merge the BE's codec
channels configuration to FE if it exist in snd_soc_dai_link. And
dpcm_runtime_base_chan function is to get the channel configuration of BE,
which likes the dpcm_runtime_base_format function.
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
(cherry picked from commit
19ff1095d4b68d17a5f68a2de5654be72b606809)
Haibo Chen [Tue, 13 Jun 2017 08:34:22 +0000 (16:34 +0800)]
MLK-15010 mmc: host: sdhci-esdhc-imx: add HS400_ES support for imx8
i.MX8QXP and i.MX8QM support Enhanced Strobe HS400 mode. This patch
add HS400_ES mode support, due to HS400_ES do not need tuning, select
HS400_ES mode should be faster than select HS400/HS200 mode.
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Octavian Purdila [Mon, 12 Jun 2017 08:58:44 +0000 (11:58 +0300)]
MLK-15047-2: ARM: imx: add IMX_SOC_IMX7
IMX_SOC_IMX7 is referenced in makefiles and kconfig but it is not
defined, so define it and select it for both IMX7D and IMX7ULP.
Fixes the following build errors:
arch/arm/mach-imx/built-in.o: In function `update_lpddr2_freq_smp':
platform-imx-dma.c:(.text+0xf7c): undefined reference to `imx_scu_base'
platform-imx-dma.c:(text+0xf88): undefined reference to `imx_scu_base'
arch/arm/mach-imx/built-in.o: In function `update_ddr_freq_imx_smp':
platform-imx-dma.c:(text+0x330c): undefined reference to `imx_scu_base'
platform-imx-dma.c:(text+0x3318): undefined reference to `imx_scu_base'
Makefile:969: recipe for target 'vmlinux' failed
make: *** [vmlinux] Error 1
Signed-off-by: Octavian Purdila <octavian.purdila@nxp.com>
Octavian Purdila [Mon, 12 Jun 2017 08:55:39 +0000 (11:55 +0300)]
MLK-15047-1 media: platform: mxc v4l2 capture: add MXC_MIPI_CSI2 dependency
Fixes the following build errors:
ERROR: "mipi_csi2_reset" [drivers/media/platform/mxc/capture/ov5640_camera_mipi_int.ko] undefined!
ERROR: "mipi_csi2_set_datatype" [drivers/media/platform/mxc/capture/ov5640_camera_mipi_int.ko] undefined!
ERROR: "mipi_csi2_enable" [drivers/media/platform/mxc/capture/ov5640_camera_mipi_int.ko] undefined!
ERROR: "mipi_csi2_dphy_status" [drivers/media/platform/mxc/capture/ov5640_camera_mipi_int.ko] undefined!
ERROR: "mipi_csi2_disable" [drivers/media/platform/mxc/capture/ov5640_camera_mipi_int.ko] undefined!
ERROR: "mipi_csi2_set_lanes" [drivers/media/platform/mxc/capture/ov5640_camera_mipi_int.ko] undefined!
ERROR: "mipi_csi2_get_status" [drivers/media/platform/mxc/capture/ov5640_camera_mipi_int.ko] undefined!
ERROR: "mipi_csi2_get_info" [drivers/media/platform/mxc/capture/ov5640_camera_mipi_int.ko] undefined!
ERROR: "mipi_csi2_get_error1" [drivers/media/platform/mxc/capture/ov5640_camera_mipi_int.ko] undefined!
Signed-off-by: Octavian Purdila <octavian.purdila@nxp.com>
Guoniu.Zhou [Sat, 10 Jun 2017 07:51:59 +0000 (15:51 +0800)]
MLK-15030: EPDC: Filled stride value of s0_param layer
When epdc driver use pxp, it didn't fill stride value of s0_parm, so it leads to
epdc can display picture normally.
So fill it in this patch.
Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
Daniel Baluta [Mon, 12 Jun 2017 14:21:26 +0000 (17:21 +0300)]
MLK-15067: ASoC: fsl: imx-wm8958: Don't fail if gpr is missing
There are boards without gpr setting, so it's better not to fail
in such cases and only print a warning.
This is related to commit
ce72b6d2668049 ("MLK-13574-1: ASoC: imx-wm8960:
remove the gpr dependency").
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Bai Ping [Fri, 9 Jun 2017 10:10:35 +0000 (18:10 +0800)]
MLK-15056 arm: imx: use static mapping for imx7ulp AIPSx memory space
The AIPSx address space of i.MX7ULP need to be mapped as SZ_1M block
in iRAM tlb for suspend code use. If we use ioremap to map these
address region into kernel space, we can't make sure that the returned
virtual address is 1M alignment. So we can map this address regions
as static, then if we use the ioremap to map these memory regions, it will
always return the virtual address of static mapping. So we can make sure
the virtual address is 1M aligned.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Fugang Duan [Tue, 6 Jun 2017 10:50:04 +0000 (18:50 +0800)]
MLK-15031-08 tty: serial: fsl_lpuart: optimize the port.lock cover range
In DMA tx callback, .uart_circ_chars_pending() also should be protected
by the port.lock, and in DMA rx callback, it can remove the lock protection
for .lpuart_copy_rx_to_tty() and .tty_flip_buffer_push() code range.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Reviewed-by: Robin Gong <yibin.gong@nxp.com>
Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com>
Fugang Duan [Tue, 6 Jun 2017 10:44:16 +0000 (18:44 +0800)]
MLK-15031-07 tty: serial: fsl_lpuart: add port.icount for DMA rx path
Add port.icount to stat. the DMA RX received count.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Reviewed-by: Robin Gong <yibin.gong@nxp.com>
Fugang Duan [Tue, 6 Jun 2017 08:08:41 +0000 (16:08 +0800)]
MLK-15031-06 tty: serial: fsl_lpuart: re-calcaulate the minimum DMA transfer length
For lpuart32 loopback mode, DMA transfer length should be litter
than the tx/rx fifo free size to ensure there have no overrun.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Reviewed-by: Robin Gong <yibin.gong@nxp.com>
Fugang Duan [Fri, 26 May 2017 08:35:23 +0000 (16:35 +0800)]
MLK-15031-05 tty: serial: fsl_lpuart: enable dma eeop support
imx8qm lpuart support dma eeop:
- rx fifo > watermark level: watermark level RDRF triggler
- rx fifo <= watermark level: idle trigger
- rx fifo empty for some idle timer, eeop stop current DMA major loop
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Reviewed-by: Robin Gong <yibin.gong@nxp.com>
Fugang Duan [Tue, 6 Jun 2017 07:14:42 +0000 (15:14 +0800)]
MLK-15031-04 tty: serial: fsl_lpuart: wait baud rate stable
After set the new baud rate, wait some time for the stable.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Reviewed-by: Robin Gong <yibin.gong@nxp.com>
Fugang Duan [Tue, 6 Jun 2017 05:57:13 +0000 (13:57 +0800)]
MLK-15031-03 tty: serial: fsl_lpuart: fix the typo in clock get failed path
Fix the typo in ipg clock get failed path.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Reviewed-by: Robin Gong <yibin.gong@nxp.com>
Fugang Duan [Tue, 6 Jun 2017 06:11:24 +0000 (14:11 +0800)]
MLK-15031-02 tty: serial: fsl_lpuart: free the rx dma buffer when port is closed
Free the rx dma buffer when the port is closed.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Reviewed-by: Robin Gong <yibin.gong@nxp.com>
Fugang Duan [Fri, 26 May 2017 06:09:27 +0000 (14:09 +0800)]
MLK-15031-01 tty: serial: fsl_lpuart: drop the error frame
Since the driver stats the error frames in port.icount.frame, it can
drop the error frame that no need to push it to the tty buffer.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Reviewed-by: Robin Gong <yibin.gong@nxp.com>
Adrian Hunter [Mon, 20 Mar 2017 17:50:37 +0000 (19:50 +0200)]
mmc: sdhci: Do not use spin lock in set_ios paths
The spin lock is not necessary in set_ios. Anything that is racing with
changes to the I/O state is already broken. The mmc core already provides
synchronization via "claiming" the host. So remove spin_lock and friends
from sdhci_set_ios and related callbacks.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Ludovic Desroches <ludovic.desroches@microchip.com>
(cherry picked from commit
d1e4f74f911daee4d69b5fd0c81902f7d37de579)
Conflicts:
drivers/mmc/host/sdhci-msm.c
drivers/mmc/host/sdhci-of-at91.c
drivers/mmc/host/sdhci.c
Cristina Ciocan [Thu, 8 Jun 2017 13:47:38 +0000 (16:47 +0300)]
MLK-15027: arm: pxp: Fix uninitialized use of variables
This patch fixes build warning that 2 variables may be used uninitialized
in the pxp_fetch_config() function in drivers/dma/pxp/pxp_dma_v3.c .
The variables in_fmt and out_fmt are passed as parameters to
pxp_fetch_shift_calc() only if shift_bypass is false. This flag cannot be
false unless changed in a code block that also assigns in_fmt and out_fmt.
Since the compiler cannot detect this flow, it shows a warning that in_fmt
and out_fmt are not initialized. Fix this by changing the code flow such
that in_fmt and out_fmt are sent as parameters in the same code block where
they are assigned.
Signed-off-by: Cristina Ciocan <cristina-mihaela.ciocan@nxp.com>
Han Xu [Mon, 8 May 2017 21:12:59 +0000 (16:12 -0500)]
MLK-15052-6: ARM: config: Disable the setting CONFIG_MTD_SPI_NOR_USE_4K_SECTORS
Disable the SECT_4K setting for UBIFS test
Signed-off-by: Han Xu <han.xu@nxp.com>
Acked-by: Frank Li <frank.li@nxp.com>
Han Xu [Mon, 5 Jun 2017 21:23:48 +0000 (16:23 -0500)]
MLK-15052-5: ARM64: defconfig: add flexspi in default config
enable flexspi in default config file
Signed-off-by: Han Xu <han.xu@nxp.com>
Acked-by: Frank Li <frank.li@nxp.com>
Han Xu [Mon, 8 May 2017 20:12:33 +0000 (15:12 -0500)]
MLK-15052-4: mtd: spi-nor: fix the micron/st issue
Some MICRON related macros in spi-nor domain were ST, actually. We need
to add the REAL micron defination in header/source files for
mt35xu512aba Micron Octal Nor chip.
Signed-off-by: Han Xu <han.xu@nxp.com>
Acked-by: Frank Li <frank.li@nxp.com>
Han Xu [Mon, 5 Jun 2017 21:19:39 +0000 (16:19 -0500)]
MLK-15052-3: mtd: spi-nor: enable octal read mode in spi framework
Enhanced spi-nor framework to support octal read mode
Signed-off-by: Han Xu <han.xu@nxp.com>
Acked-by: Frank Li <frank.li@nxp.com>
Han Xu [Mon, 5 Jun 2017 21:20:52 +0000 (16:20 -0500)]
MLK-15052-2: mtd: flexspi-nor: support flexspi-nor driver on i.MX8
support the flexspi nor controller for i.MX8 platforms, read data
in octal ddr mode by default.
Signed-off-by: Han Xu <han.xu@nxp.com>
Acked-by: Frank Li <frank.li@nxp.com>