linux.git
7 years agousb: chipidea: use bus->sysdev for DMA configuration
Arnd Bergmann [Mon, 13 Mar 2017 02:18:42 +0000 (10:18 +0800)]
usb: chipidea: use bus->sysdev for DMA configuration

Set the dma for chipidea from sysdev. This is inherited from its
parent node. Also, do not set dma mask for child as it is not required
now.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sriram Dash <sriram.dash@nxp.com>
Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit aeb78cda51005fa00943e331c1fb47c6ad74015d)

7 years agousb: separate out sysdev pointer from usb_bus
Arnd Bergmann [Mon, 13 Mar 2017 02:18:41 +0000 (10:18 +0800)]
usb: separate out sysdev pointer from usb_bus

For xhci-hcd platform device, all the DMA parameters are not
configured properly, notably dma ops for dwc3 devices.

The idea here is that you pass in the parent of_node along with
the child device pointer, so it would behave exactly like the
parent already does. The difference is that it also handles all
the other attributes besides the mask.

sysdev will represent the physical device, as seen from firmware
or bus.Splitting the usb_bus->controller field into the
Linux-internal device (used for the sysfs hierarchy, for printks
and for power management) and a new pointer (used for DMA,
DT enumeration and phy lookup) probably covers all that we really
need.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sriram Dash <sriram.dash@nxp.com>
Tested-by: Baolin Wang <baolin.wang@linaro.org>
Tested-by: Brian Norris <briannorris@chromium.org>
Tested-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Tested-by: Vivek Gautam <vivek.gautam@codeaurora.org>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Cc: Felipe Balbi <felipe.balbi@linux.intel.com>
Cc: Grygorii Strashko <grygorii.strashko@ti.com>
Cc: Sinjan Kumar <sinjank@codeaurora.org>
Cc: David Fisher <david.fisher1@synopsys.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: "Thang Q. Nguyen" <tqnguyen@apm.com>
Cc: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Cc: Stephen Boyd <sboyd@codeaurora.org>
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Cc: Ming Lei <tom.leiming@gmail.com>
Cc: Jon Masters <jcm@redhat.com>
Cc: Dann Frazier <dann.frazier@canonical.com>
Cc: Peter Chen <peter.chen@nxp.com>
Cc: Leo Li <pku.leo@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit a8c06e407ef969461b7f51ec72839fe382dd3c29)

7 years agoMLK-14935: ASoC: fsl_sai: Fix mixing initialization data with actual audio samples
Mihai Serban [Thu, 27 Apr 2017 15:47:42 +0000 (18:47 +0300)]
MLK-14935: ASoC: fsl_sai: Fix mixing initialization data with actual audio samples

When starting a playback the initialization data used to reduce underruns
was send to the transmit data register after the DMA requests were enabled.
This patch moves the initialization phase before enabling the DMA so the
data is transmitted in correct order.

Signed-off-by: Mihai Serban <mihai.serban@nxp.com>
7 years agoMLK-14955-2 arm64: defconfig: remove COMPILE_TEST
Frank Li [Fri, 19 May 2017 20:48:20 +0000 (15:48 -0500)]
MLK-14955-2 arm64: defconfig: remove COMPILE_TEST

Auto Enable LOCALVERSION_AUTO
so show git commit hash value in boot log

Linux version 4.9.11-02242-gf4b0aff-dirty

Signed-off-by: Frank Li <Frank.Li@nxp.com>
7 years agoMLK-14955-1 imx8: Added MXC_ARM64 into dependent
Frank Li [Fri, 19 May 2017 20:44:47 +0000 (15:44 -0500)]
MLK-14955-1 imx8: Added MXC_ARM64 into dependent

Otherwise there are warning when remove COMPILE_TEST

Signed-off-by: Frank Li <Frank.Li@nxp.com>
7 years agoMLK-14778: ASoC: fsl: imx-cs42888: Improve support for odd number of channels
Mihai Serban [Mon, 15 May 2017 12:52:57 +0000 (15:52 +0300)]
MLK-14778: ASoC: fsl: imx-cs42888: Improve support for odd number of channels

For samples with more than 2 and odd number of channels the I2S mode
does not work correctly. In I2S mode we are required to activate an even
number of channels (possibly on multiple datalines) and thus configure
the BCLK for even channels. In this case samples with odd (smaller) number
of channels are played faster and the sound is distorted.

To fix this behavior we can enable TDM mode for the special cases of
samples with 3, 5 or 7 channels. But even TDM has some restrictions that
prevent us from having full support for the special cases:
1. TDM is not supported by codec in master mode so 3, 5 and 7 channels
usage is denied.
2. In codec slave mode TDM works only with 8 slots and slot width of 32
bits. For an often used MCLK frequency of 24MHz and the above restrictions
the maximum sample rate is limited to 48KHz = 24576000/(2*8*32).
The 2 denominator is required by ESAI BCLK divisors.

Signed-off-by: Mihai Serban <mihai.serban@nxp.com>
7 years agoMLK-14967-2 ARM64: dts: freescale: imx8qxp: reserve DDR for M4
Anson Huang [Tue, 23 May 2017 12:06:40 +0000 (20:06 +0800)]
MLK-14967-2 ARM64: dts: freescale: imx8qxp: reserve DDR for M4

Reserve first 4M memory for below usage:

0x80000000 - 0x800fffff: ARM Trusted Firmware;
0x80100000 - 0x803fffff: M4/RPMSG;

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
7 years agoMLK-14967-1 ARM64: dts: freescale: imx8qm: reserve DDR space for M4
Anson Huang [Tue, 23 May 2017 12:05:28 +0000 (20:05 +0800)]
MLK-14967-1 ARM64: dts: freescale: imx8qm: reserve DDR space for M4

Reserve first 4M memory for below usage:

0x80000000 - 0x800fffff: ARM Trusted Firmware;
0x80100000 - 0x803fffff: M4/RPMSG;

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
7 years agoMLK-14966-6 mxc: Kconfig: improve build dependency
Anson Huang [Tue, 23 May 2017 10:09:00 +0000 (18:09 +0800)]
MLK-14966-6 mxc: Kconfig: improve build dependency

Use ARCH_MXC_ARM64 instead of ARCH_FSL_IMX8QM
to improve MXC build dependency.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
7 years agoMLK-14966-5 mmc: imx: add ARCH_MXC_ARM64 into build dependency
Anson Huang [Tue, 23 May 2017 10:07:15 +0000 (18:07 +0800)]
MLK-14966-5 mmc: imx: add ARCH_MXC_ARM64 into build dependency

Add ARCH_MXC_ARM64 for i.MX mmc driver to support
ARM64 platforms.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
7 years agoMLK-14966-4 gpio: imx: add build dependency
Anson Huang [Tue, 23 May 2017 10:05:57 +0000 (18:05 +0800)]
MLK-14966-4 gpio: imx: add build dependency

Add build dependency for i.MX gpio driver.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
7 years agoMLK-14966-3 clk: makefile: use ARCH_MXC_ARM64 for imx dependency
Anson Huang [Tue, 23 May 2017 10:04:06 +0000 (18:04 +0800)]
MLK-14966-3 clk: makefile: use ARCH_MXC_ARM64 for imx dependency

Use ARCH_MXC_ARM64 instead of ARCH_FSL_IMX8QM for i.MX
ARM64 platforms build dependency.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
7 years agoMLK-14966-2 ARM64: configs: select ARCH_MXC_ARM64 by default
Anson Huang [Tue, 23 May 2017 10:03:10 +0000 (18:03 +0800)]
MLK-14966-2 ARM64: configs: select ARCH_MXC_ARM64 by default

Enable ARCH_MXC_ARM64 by default for i.MX ARM64 platforms.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
7 years agoMLK-14966-1 soc: imx: add ARCH_MXC_ARM64 menuconfig
Anson Huang [Tue, 23 May 2017 10:01:15 +0000 (18:01 +0800)]
MLK-14966-1 soc: imx: add ARCH_MXC_ARM64 menuconfig

Add ARCH_MXC_ARM64 for i.MX ARM64 platforms, this
can improve the modules dependency logic.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
7 years agoMLK-14952 arm64: dts: imx8qm/qxp: add enet support
Fugang Duan [Fri, 19 May 2017 10:12:23 +0000 (18:12 +0800)]
MLK-14952 arm64: dts: imx8qm/qxp: add enet support

Add enet support for i.MX8QM and i.MX8QXP lpddr4 arm2 board.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
7 years agoMLK-14951 clk: imx8: correct enet txclk clock tree for i.MX8qm and i.MX8qxp
Fugang Duan [Fri, 19 May 2017 10:05:35 +0000 (18:05 +0800)]
MLK-14951 clk: imx8: correct enet txclk clock tree for i.MX8qm and i.MX8qxp

Correct enet txclk clock tree for i.MX8qm and i.MX8qxp.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
7 years agoMLK-14946-2: pinctrl: imx8qm/qxp: switch to use new format
Peng Fan [Thu, 18 May 2017 10:06:58 +0000 (18:06 +0800)]
MLK-14946-2: pinctrl: imx8qm/qxp: switch to use new format

switch to use new format. Split mux out from pad config.
Change the high two bits in pad config to 0, because driver
will automatically set that two bits to 1.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
7 years agoMLK-14946-1: dt-bindings: pinctrl: imx8qm/qxp: add new format define
Peng Fan [Thu, 18 May 2017 05:56:03 +0000 (13:56 +0800)]
MLK-14946-1: dt-bindings: pinctrl: imx8qm/qxp: add new format define

Add new format definition.
The new format is #define [name] [pinid] [muxvalue]

Signed-off-by: Peng Fan <peng.fan@nxp.com>
7 years agoMLK-14949 arm64: dts: imx8qm/qxp add usdhc alias node
Peng Fan [Thu, 18 May 2017 09:30:29 +0000 (17:30 +0800)]
MLK-14949 arm64: dts: imx8qm/qxp add usdhc alias node

Add usdhc alias node. To i.MX8QXP ARM2 board,
kernel will panic if no alias node provided.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
7 years agoMLK-14948 arm64: dts: imx8qxp: fix usdhc power domain name
Peng Fan [Thu, 18 May 2017 09:23:05 +0000 (17:23 +0800)]
MLK-14948 arm64: dts: imx8qxp: fix usdhc power domain name

Fix usdhc power domain name.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
7 years agoMLK-14706 clk: imx7d: fix whitespace
Irina Tirdea [Fri, 12 May 2017 10:00:24 +0000 (13:00 +0300)]
MLK-14706 clk: imx7d: fix whitespace

Remove whitespace.

Signed-off-by: Irina Tirdea <irina.tirdea@nxp.com>
7 years agoMLK-14706 clk: imx7d: remove duplicate empty line
Irina Tirdea [Fri, 12 May 2017 10:00:23 +0000 (13:00 +0300)]
MLK-14706 clk: imx7d: remove duplicate empty line

Signed-off-by: Irina Tirdea <irina.tirdea@nxp.com>
7 years agoMLK-14706 clk: imx7d: align with upstream: update arm a7 root clock init
Irina Tirdea [Fri, 12 May 2017 10:00:22 +0000 (13:00 +0300)]
MLK-14706 clk: imx7d: align with upstream: update arm a7 root clock init

In upstream, IMX7D_ARM_A7_ROOT_SRC uses imx_clk_mux2 for initialization,
while our code uses imx_clk_mux_flags_bus with additional flags
CLK_SET_RATE_NO_REPARENT | CLK_OPS_PARENT_ENABLE. In the end, both calls
set the flags of IMX7D_ARM_A7_ROOT_SRC clock to
CLK_SET_RATE_NO_REPARENT | CLK_OPS_PARENT_ENABLE.

To align our code to upstream, we can safely use imx_clk_mux2.

Signed-off-by: Irina Tirdea <irina.tirdea@nxp.com>
7 years agoMLK-14706 clk: imx7d: align with upstream: ipg_root_clk
Irina Tirdea [Fri, 12 May 2017 10:00:21 +0000 (13:00 +0300)]
MLK-14706 clk: imx7d: align with upstream: ipg_root_clk

Update imx7d clk platform code according to upstream commit
40e00ef ("clk: imx7d: add the missing ipg_root_clk").

Signed-off-by: Irina Tirdea <irina.tirdea@nxp.com>
7 years agoMGS-2907 [#imx-560] fix wrong cache invalidate with dma_map_area
Xianzhong [Tue, 16 May 2017 09:50:56 +0000 (17:50 +0800)]
MGS-2907 [#imx-560] fix wrong cache invalidate with dma_map_area

dma_map_area function is used for both cache clean and invalidate mistakenly,
need correct the cache invalidate with dma_unmap_area function.

Date: May 16, 2017
Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
7 years agoMGS-2902 [#imx-557] fix wrong release_mem_region
Xianzhong [Mon, 15 May 2017 09:14:39 +0000 (17:14 +0800)]
MGS-2902 [#imx-557] fix wrong release_mem_region

the dma allocated memory do not call additional request_mem_region,
but gckGALDEVICE_Destroy call into release_mem_region mistakenly.

this fix the following warning message with rmmod galcore:
Trying to free nonexistent resource <000000003cc00000-0000000044bfffff>

Date: May 15, 2017
Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
7 years agoMLK-14940-2 pinctrl: imx8qm: correct pin name and id
Peng Fan [Wed, 17 May 2017 09:04:07 +0000 (17:04 +0800)]
MLK-14940-2 pinctrl: imx8qm: correct pin name and id

Correct pin name and id.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
7 years agoMLK-14940-1 pinctrl: imx8qxp: correct pin name and id
Peng Fan [Wed, 17 May 2017 08:58:51 +0000 (16:58 +0800)]
MLK-14940-1 pinctrl: imx8qxp: correct pin name and id

Correct pin name and id.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
7 years agoMLK-14932-2 arm64: defconfig: set usdhc driver compile into kernel
Haibo Chen [Tue, 16 May 2017 07:31:05 +0000 (15:31 +0800)]
MLK-14932-2 arm64: defconfig: set usdhc driver compile into kernel

Default compile the usdhc driver into kernel

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
7 years agoMLK-14932-1 mmc: sdhci-esdhc-imx: add depends on COMPILE_TEST
Haibo Chen [Tue, 16 May 2017 07:14:42 +0000 (15:14 +0800)]
MLK-14932-1 mmc: sdhci-esdhc-imx: add depends on COMPILE_TEST

i.MX8 don't define ARCH_MXC, so add COMPILE_TEST to let usdhc driver
also support for i.MX8.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
7 years agoMLK-14933 gpio: kconfig: remove mxc gpio dependency
Anson Huang [Tue, 16 May 2017 15:57:00 +0000 (23:57 +0800)]
MLK-14933 gpio: kconfig: remove mxc gpio dependency

Remove dependency of ARCH_MXC to support GPIO driver on
both ARMv7 and ARMv8 i.MX platforms.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
7 years agoMLK-14800: fbdev: Refactor printed information
Robert Chiras [Thu, 11 May 2017 13:01:00 +0000 (16:01 +0300)]
MLK-14800: fbdev: Refactor printed information

Debug info should not be printed using pr_info on init. Use pr_debug
instead.
Also, verify the cable state before reading the EDID. There is no point
in trying to read EDID (and print an error message), when there is no
device connected to HDMI connector.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
7 years agoMLK-14800: fbdev: Refactor printed information
Robert Chiras [Thu, 11 May 2017 13:00:39 +0000 (16:00 +0300)]
MLK-14800: fbdev: Refactor printed information

Debug info should not be printed using pr_info on init. Use pr_debug
instead.
Also, use the driver name, since there is more than one MIPI DSI driver.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
7 years agoMLK-14800: fbdev: Refactor printed information
Robert Chiras [Thu, 11 May 2017 13:00:15 +0000 (16:00 +0300)]
MLK-14800: fbdev: Refactor printed information

Debug info should not be printed using pr_info on init. Use pr_debug
instead.
Also, use the driver name, since there is more than one MIPI DSI driver.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
7 years agoMLK-14800: fbdev: Refactor printed information
Robert Chiras [Thu, 11 May 2017 12:59:07 +0000 (15:59 +0300)]
MLK-14800: fbdev: Refactor printed information

Debug info should not be printed using pr_info on init. Use pr_debug
instead.
Also, use the driver name, since there is more than one MIPI DSI driver.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
7 years agoMLK-14800: fbdev: Refactor printed information
Robert Chiras [Thu, 11 May 2017 12:57:06 +0000 (15:57 +0300)]
MLK-14800: fbdev: Refactor printed information

Debug info should not be printed using pr_info on init. Use pr_debug
instead.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
7 years agoMLK-14925: ARM: dts: imx6qdl-sabresd-hdcp: fix gpu/vpu probe fail on hdcp board
Robin Gong [Tue, 16 May 2017 02:30:18 +0000 (10:30 +0800)]
MLK-14925: ARM: dts: imx6qdl-sabresd-hdcp: fix gpu/vpu probe fail on hdcp board

Fix the same issue as commit bf23e0c5ea31 on imx6qp-saresd-hdcp board

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
7 years agoMLK-14857: mxc_hdmi: Set default mode a CEA mode
Robert Chiras [Thu, 11 May 2017 11:34:01 +0000 (14:34 +0300)]
MLK-14857: mxc_hdmi: Set default mode a CEA mode

When using fb_find_mode from fbdev/core with a specified user more,
it will return a screeninfo structure with the pixclock corresponding to
a different refresh rate than the requested one. For example, for
1920x1080@60 it will return pixclock=5780. When we get the videmode for
this screeninfo, it will have a refresh of 59Hz, instead of 60Hz.
If we use this mode as default mode when EDID cannot be read, on a
monitor with fixed refresh rate of 60Hz, it won't work. Therefore, we
should save the default mode, the nearest mode from CEA modes defined by
our own driver (which will have the correct refresh rate and pixclock for
the requested resolution).

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
7 years agoMLK-14927 ARM64: dts: freescale: imx8qxp: add lpddr4 arm2 board support
Anson Huang [Tue, 16 May 2017 14:26:15 +0000 (22:26 +0800)]
MLK-14927 ARM64: dts: freescale: imx8qxp: add lpddr4 arm2 board support

Add dtb to support i.MX8QXP LPDDR4 ARM2 board.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
7 years agoMLK-14917 ARM: dts: imx6ul-14x14-ddr3-arm2: fix pfuze200 probe error
Anson Huang [Tue, 16 May 2017 10:17:04 +0000 (18:17 +0800)]
MLK-14917 ARM: dts: imx6ul-14x14-ddr3-arm2: fix pfuze200 probe error

Fix below pfuze probe issue by setting correct range of SW3B:

pfuze100-regulator 0-0008: pfuze200 found.
SW3B: Bringing 3300000uV into 1975000-1975000uV
SW3B: failed to apply 1975000-1975000uV constraint(-22)
pfuze100-regulator 0-0008: register regulatorSW3B failed
pfuze100-regulator: probe of 0-0008 failed with error -22
2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 19, base_baud = 5000000) is a IMX

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
7 years agoMLK-14861-1 mmc: sdhci: make DDR50 tuning optionally
Haibo Chen [Mon, 15 May 2017 09:25:31 +0000 (17:25 +0800)]
MLK-14861-1 mmc: sdhci: make DDR50 tuning optionally

commit 70f2d20917bc ("MLK-14884 mmc: sdhci: make DDR50 tuning optionally")
want to make DDR50 card tuning optionally, but the code logic is not
right, the tuning of DDR50 card will also be impacted by the flag
'SDHCI_SDR50_NEEDS_TUNING'. e.g. imx6sl/imx6sx/imx6ul/imx7d default set
USE_TUNING_SDR50, which means on these SoC, DDR50 card still do tuning
even haven't the flag 'SDHCI_DDR50_NEEDS_TUNING'.

This patch fix the logic issue, separate DDR50 and SDR50 card.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
7 years agoMLK-14895-2 ARM: dts: add usb otg1 ID pinctrl for i.mx6ul evk
Li Jun [Mon, 15 May 2017 15:02:56 +0000 (23:02 +0800)]
MLK-14895-2 ARM: dts: add usb otg1 ID pinctrl for i.mx6ul evk

Add USB OTG1 port ID pin for imx6ul-14x14-evk.dts

Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-14895-1 ARM: dts: add usb otg1 ID pinctrl for i.mx6ull evk
Li Jun [Mon, 15 May 2017 15:00:33 +0000 (23:00 +0800)]
MLK-14895-1 ARM: dts: add usb otg1 ID pinctrl for i.mx6ull evk

Add USB OTG1 port ID pin for imx6ull-14x14-evk.dts

Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-11403: I2C: imx: restore pin setting for i2c
Gao Pan [Tue, 25 Aug 2015 06:00:32 +0000 (14:00 +0800)]
MLK-11403: I2C: imx: restore pin setting for i2c

restore pin setting for i2c in suspend/resume

Signed-off-by: Gao Pan <gaopan@freescale.com>
(cherry picked from commit 8aed73af218f25e0677b8980b3706246dd68790d)
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Conflicts:
drivers/i2c/busses/i2c-imx.c

7 years agoMLK-14902 ARM64: dts: freescale: imx8qm: make default dtb boot up all cores
Anson Huang [Mon, 15 May 2017 09:08:58 +0000 (17:08 +0800)]
MLK-14902 ARM64: dts: freescale: imx8qm: make default dtb boot up all cores

Change dtb's core settings as below on i.MX8QM:

boot up 4 CA53 and 2 CA72 (using CA53 specific flash.bin)
fsl-imx8qm-lpddr4-arm2.dts

boot up 4 CA53 (using CA53 specific flash.bin)
fsl-imx8qm-lpddr4-arm2_ca53.dts

boot up 2 CA72 (using CA72 specific flash.bin)
fsl-imx8qm-lpddr4-arm2_ca72.dts

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
7 years agoMLK-14736 net: fec: move the ahb clock to runtime pm
Fugang Duan [Fri, 12 May 2017 03:12:59 +0000 (11:12 +0800)]
MLK-14736 net: fec: move the ahb clock to runtime pm

Some SOC clock have some limits:
- ahb clock should be disabled before ipg.
- ahb and ipg clocks are required for MAC mii to work.
So, move the ahb clock to runtime pm together with ipg clock.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
7 years agoMLK-14893 ARM64: dts: freescale: imx8qm: add CA72 only dtb
Anson Huang [Fri, 12 May 2017 13:16:47 +0000 (21:16 +0800)]
MLK-14893 ARM64: dts: freescale: imx8qm: add CA72 only dtb

Add CA72 only dtb to support booting up kernel with
CA72 cluster only, need to use CA72 specific flash.bin
and CA72 specific dtb to boot up kernel.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
7 years agoMLK-13967 ARM64: dts: imx8qxp: add SAI0 and ASRC0 nodes
Viorel Suman [Thu, 11 May 2017 16:04:26 +0000 (19:04 +0300)]
MLK-13967 ARM64: dts: imx8qxp: add SAI0 and ASRC0 nodes

Add audio SAI0 and ASRC0 nodes.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
7 years agoMLK-14774 mmc: sdhci-esdhc-imx: restore pins state after suspend
Dong Aisheng [Thu, 11 May 2017 12:38:17 +0000 (20:38 +0800)]
MLK-14774 mmc: sdhci-esdhc-imx: restore pins state after suspend

After commit 3e3274ab9ff3 ("mmc: sdhci-esdhc-imx: Use common
sdhci_suspend|resume_host()"), we lost the pins state store and save
in common sdhci_pltfm_{suspend|resume} API which results in the
pins state lost in state un-retainable suspend/resume, then
CMD transfer will meet timeout subsequently.

Due to sdhci_pltfm_{suspend|resume} API becomes static after
that commit later, we then do manual pins state save and restore
in our platform suspend/resume API instead.

Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
7 years agoMLK-13972-4 ARM64: dts: imx8qxp: add EDMA2 and ACM nodes
Viorel Suman [Wed, 10 May 2017 13:49:15 +0000 (16:49 +0300)]
MLK-13972-4 ARM64: dts: imx8qxp: add EDMA2 and ACM nodes

Add audio EDMA2 and ACM nodes.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
7 years agoMLK-13972-3 ARM64: dts: imx8qxp: add audio power domain
Viorel Suman [Wed, 10 May 2017 13:45:36 +0000 (16:45 +0300)]
MLK-13972-3 ARM64: dts: imx8qxp: add audio power domain

Add audio power domain definitions.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
7 years agoMLK-13972-2 clk: imx8qxp: add audio clocks
Viorel Suman [Wed, 10 May 2017 13:28:51 +0000 (16:28 +0300)]
MLK-13972-2 clk: imx8qxp: add audio clocks

Add audio clocks.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
7 years agoMLK-13972-1 soc: scfw: imx8qxp: fix audio LPCGs
Viorel Suman [Wed, 10 May 2017 13:21:08 +0000 (16:21 +0300)]
MLK-13972-1 soc: scfw: imx8qxp: fix audio LPCGs

Cleanup audio LPCGs: add missing, fix names, remove unneeded.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
7 years agoMLK-14823 dts: imx6sx-sabreauto: correct cd and wp pin
Dong Aisheng [Thu, 11 May 2017 08:46:54 +0000 (16:46 +0800)]
MLK-14823 dts: imx6sx-sabreauto: correct cd and wp pin

Correct CD/WP pin in dts. Otherwise the card detection and write
protection function does not work.

Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
7 years agoMLK-14884 mmc: sdhci: make DDR50 tuning optionally
Dong Aisheng [Thu, 11 May 2017 08:08:08 +0000 (16:08 +0800)]
MLK-14884 mmc: sdhci: make DDR50 tuning optionally

DDR50 tuning is optinally defined in sd 3.0 spec. Per IC guys
suggestion, it internally already uses a fixed optimized timing
and normally does not require tuning.

Make it optionally and platform can claim SDHCI_DDR50_NEEDS_TUNING
support if it wants tuning.

Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
7 years agoMLK-14866-2: dts: imx7ulp-evk: remove duplicated mux setting in config
Dong Aisheng [Wed, 10 May 2017 07:09:09 +0000 (15:09 +0800)]
MLK-14866-2: dts: imx7ulp-evk: remove duplicated mux setting in config

According to RM, Bit[11-8] is MUX_MODE which is configured by
the PIN_FUNC_ID automatically, specify it in config part is wrong
and violates the binding doc. So remove them all.

It can also avoid the future confusing when customer wants to
configure a pad by following the exist code.

Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
7 years agoMLK-14866-1 dt-bindings: pinctrl: add imx7ulp binding doc
Dong Aisheng [Wed, 10 May 2017 07:04:14 +0000 (15:04 +0800)]
MLK-14866-1 dt-bindings: pinctrl: add imx7ulp binding doc

Add i.MX7ULP binding doc. Note i.MX7ULP PIN_FUNC_ID consists of 4
integers as it shares one mux and config register as follows:
<mux_conf_reg input_reg mux_mode input_val>

Also fix the copyright.

Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
7 years agoMLK-14807-2: ARM: dts: imx6: correct all ldo-enable dts
Robin Gong [Tue, 9 May 2017 02:49:10 +0000 (10:49 +0800)]
MLK-14807-2: ARM: dts: imx6: correct all ldo-enable dts

'vin-supply' property used in ldo-bypass mode while 'vin-supply' deleted
in ldo-enable mode on v4.9 rather than dirctly switch 'supply' to internal
regulator and external pmic regulator on v4.1. Correct it for all *-ldo.dts,
otherwise, still work in ldo-bypass mode.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
7 years agoMLK-14807-1: ARM: dts: imx6qp-sabresd-hdcp: gpu probe failed
Robin Gong [Tue, 9 May 2017 02:10:37 +0000 (10:10 +0800)]
MLK-14807-1: ARM: dts: imx6qp-sabresd-hdcp: gpu probe failed

I2C2 have to be disabled on hdcp board since those I2C2 bus pins
used for others, that said there is no all pmic regulators. In this
case, ldo-enable mode should be used and reg_arm/reg_soc/reg_pu should
be swithed to internal ldo instead. Otherwise, no reg_pu regulator
probed successfully by gpu driver, and cause gpu probe failed. Also,
cause cpufreq probe failed too.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
7 years agoMLK-14870: ASoC: fsl_sai: Remove support for S20_3LE
Daniel Baluta [Wed, 10 May 2017 11:21:40 +0000 (14:21 +0300)]
MLK-14870: ASoC: fsl_sai: Remove support for S20_3LE

With current clock configuration we cannot derive bitclk for S20_3LE
format in SAI master mode. There was an attempt to fix this in commit
65e6b5f1b4a7 ("MLK-14536: ASoC: wm8960: Fix playback in CPU DAI master mode")
but this broke codec-master mode, thus the patch was partially reverted in
96f0d36e420 ("MLK-14798: arm: dts: imx6ul: Fix wm8960 codec master mode")

So, remove S20_3LE support for SAI master mode. Clients using this
feature should use codec master mode, which is the default one in the
dts anyway.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
7 years agoMLK-14885 dma: pxp: fix potential multi-definition issue
Fancy Fang [Thu, 11 May 2017 08:23:56 +0000 (16:23 +0800)]
MLK-14885 dma: pxp: fix potential multi-definition issue

When 'CONFIG_MXC_PXP_CLIENT_DEVICE' disabled, the
'register_pxp_device' and 'unregister_pxp_device'
may cause multiple definitions compiling error.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
7 years agoMLK-14841: ARM: dts: Fix DAI CPU node name
Daniel Baluta [Wed, 10 May 2017 13:46:00 +0000 (16:46 +0300)]
MLK-14841: ARM: dts: Fix DAI CPU node name

For wm8962 we use imx-wm8962 machine driver which expects DAI CPU node
name to be "cpu-dai".

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
7 years agoMLK-14795 PCI: designware: fail to read the ep mem on rc board
Richard Zhu [Fri, 5 May 2017 09:22:39 +0000 (17:22 +0800)]
MLK-14795 PCI: designware: fail to read the ep mem on rc board

The mem_base address is configured as the outbound
memory region twice when imx pcie ep/rc validation
is enabled.
Mask the one contained in desigware driver to fix
this issue.
Remove the usleep_range usage in designware driver,
since that function maybe used in imx noirq pm
calls.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
7 years agoMLK-13853-3 ARM64: dts: imx8qm: Enable SPDIF0
Viorel Suman [Wed, 10 May 2017 10:37:49 +0000 (13:37 +0300)]
MLK-13853-3 ARM64: dts: imx8qm: Enable SPDIF0

Add SPDIF0 node and the related EDMA configuration:
channels and interrupts. Comments provided for
component's related EDMA configuration given the
increased number of channels and interrupts.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
7 years agoMLK-13853-2 ARM64: defconfig: add SND_SOC_IMX_SPDIF
Viorel Suman [Wed, 10 May 2017 09:30:24 +0000 (12:30 +0300)]
MLK-13853-2 ARM64: defconfig: add SND_SOC_IMX_SPDIF

Add SND_SOC_IMX_SPDIF to support IMX SPDIF by default.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
7 years agoMLK-13853-1 ARM64: clk: imx8qm: Fix SPDIF TX clk parents
Viorel Suman [Wed, 10 May 2017 09:17:01 +0000 (12:17 +0300)]
MLK-13853-1 ARM64: clk: imx8qm: Fix SPDIF TX clk parents

Set the appropriate parents for SPDIF TX clocks.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
7 years agoMLK-14796 PCI: imx: kernel panic when reboot ep board
Richard Zhu [Thu, 4 May 2017 06:58:35 +0000 (14:58 +0800)]
MLK-14796 PCI: imx: kernel panic when reboot ep board

pp->ops is not assigned properly, thus there
would be kernel panic when reboot ep board.
Initialized pp->ops in ep initializatione,
fix this issue.
don't call dw_pcie_wait_for_link because
the usleep is used in it.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
7 years agoMLK-14851: ASoC: wm8962: fix clock issue for S20_3LE
Shengjiu Wang [Mon, 8 May 2017 07:15:44 +0000 (15:15 +0800)]
MLK-14851: ASoC: wm8962: fix clock issue for S20_3LE

There is error log "wm8962 3-001a: Unsupported BCLK ratio 6"
When the bitstream's format is S20_3LE.
The reason is that the pll output is samplerate*256, which
can't divide to clock samplerate*20*2. So in this patch change
the pll output to samplerate*384, and use the physical_width
for S20_3LE to calculate the bclk.

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
7 years agoMLK-14333 firmware: imx: sdma: fix SSI dual fifo swap
Robin Gong [Mon, 8 May 2017 09:31:18 +0000 (17:31 +0800)]
MLK-14333 firmware: imx: sdma: fix SSI dual fifo swap

There is a bug in ssi sdma script cause dual fifo swap.Correct
it in sdma script.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
7 years agoMLK-14798: arm: dts: imx6ul: Fix wm8960 codec master mode
Daniel Baluta [Mon, 8 May 2017 15:39:47 +0000 (18:39 +0300)]
MLK-14798: arm: dts: imx6ul: Fix wm8960 codec master mode

Commit 65e6b5f1b4a7 ("ASoC: wm8960: Fix playback in CPU DAI master
mode") broke wm8960 codec master mode by choosing "bad" SYSCLK values.

This patch partially reverts commit mentioned above by restoring the
SYSCLK values. It turns out that using params_physical_width instead of
params_width in the previous patch it is enough to fix CPU DAI mode.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
7 years agoMLK-14695-6 ARM64: defconfig: add HID_MULTITOUCH
Anson Huang [Mon, 8 May 2017 12:15:24 +0000 (20:15 +0800)]
MLK-14695-6 ARM64: defconfig: add HID_MULTITOUCH

Add HID_MULTITOUCH to support multi-touch by default.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
7 years agoMLK-14695-5 ARM64: defconfig: add sc rtc support
Anson Huang [Mon, 8 May 2017 12:35:42 +0000 (20:35 +0800)]
MLK-14695-5 ARM64: defconfig: add sc rtc support

Enabled IMX_SC RTC by default.

The other changes in this patch are introduced by
running savedefconfig, it does NOT impact any function.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
7 years agoMLK-14695-4 ARM64: dts: freescale: imx8qm: add sc rtc node
Anson Huang [Mon, 8 May 2017 11:14:38 +0000 (19:14 +0800)]
MLK-14695-4 ARM64: dts: freescale: imx8qm: add sc rtc node

Add system controller RTC support for i.MX8QM.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
7 years agoMLK-14695-3 rtc: add imx sc rtc driver
Anson Huang [Fri, 28 Apr 2017 06:09:33 +0000 (14:09 +0800)]
MLK-14695-3 rtc: add imx sc rtc driver

Add i.MX system controller RTC driver. The RTC
is controlled by system controller, and kernel RTC
driver needs to communicate with system controller
via SC firmware API.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
7 years agoMLK-14695-2 ARM64: dts: freescale: add i.mx8qm lpddr4 arm2 board
Anson Huang [Tue, 2 May 2017 23:51:22 +0000 (07:51 +0800)]
MLK-14695-2 ARM64: dts: freescale: add i.mx8qm lpddr4 arm2 board

Add support for i.MX8QM-LPDDR4-ARM2 board.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
7 years agoMLK-14695-1 ARM64: dts: freescale: imx8qm: update changes on bring-up
Anson Huang [Wed, 3 May 2017 00:06:47 +0000 (08:06 +0800)]
MLK-14695-1 ARM64: dts: freescale: imx8qm: update changes on bring-up

Update changes based on i.MX8QM-LPDDR4-ARM2 board
bring-up.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
7 years agoMLK-14847: Revert "ASoC: fsl-sai: set xCR4/xCR5/xMR for SAI master mode"
Mihai Serban [Fri, 21 Apr 2017 12:57:58 +0000 (15:57 +0300)]
MLK-14847: Revert "ASoC: fsl-sai: set xCR4/xCR5/xMR for SAI master mode"

This reverts commit c768ed336bba ("ASoC: fsl-sai: set xCR4/xCR5/xMR for
SAI master mode")

This change was already introduced by commit 51659ca069ce ("ASoC: fsl-sai:
set xCR4/xCR5/xMR for SAI master mode") from upstream.

Manually adjust the code to match the changes introduced by subsequent
commit b2936555bb38 ("MLK-13609: ASoC: fsl_sai: fix for synchronize mode")
by removing updates to FSL_SAI_TMR/FSL_SAI_RMR registers.

Signed-off-by: Mihai Serban <mihai.serban@nxp.com>
7 years agoMLK-14844 pxp: Add RGB32 format to back-compatible.
Guoniu.Zhou [Mon, 8 May 2017 09:47:24 +0000 (17:47 +0800)]
MLK-14844 pxp: Add RGB32 format to back-compatible.

The latest pxp_dma.h file change PXP_PIX_FMT_RGB32 to PXP_PIX_FMT_XRGB32 format,
but the userspace still use PXP_PIX_FMT_RGB32, so add back it and keep the same
with PXP_PIX_FMT_XRGB32 format.

Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
7 years agoMLK-14667 ARM: imx v7/v7_mfg defconfig: disable CONFIG_MTD_SPI_NOR_USE_4K_SECTORS
Octavian Purdila [Wed, 19 Apr 2017 12:50:04 +0000 (15:50 +0300)]
MLK-14667 ARM: imx v7/v7_mfg defconfig: disable CONFIG_MTD_SPI_NOR_USE_4K_SECTORS

Commit 556fa2d7d7e9 ("ENGR00318895-9: mtd: spi-nor: add more read
transfer flags for n25q256a") was incompletely cherry-picked, leaving
out the removal of the SECT_4K flag:

"From the datasheet, the chip support the 64K sector erase operation.
So remove the SECT_4K for the chip which makes the flash_erase
faster."

However, the above statement is not entirely correct. Using SECT_4K
can result in faster erase operations, if the block to erase is
smaller. The documentation in spi-nor.c also states:

"All newly added entries should describe *hardware* and should use
SECT_4K (or SECT_4K_PMC) if hardware supports erasing 4 KiB
sectors. For usage scenarios excluding small sectors there is config
option that can be disabled: CONFIG_MTD_SPI_NOR_USE_4K_SECTORS.  For
historical (and compatibility) reasons (before we got above config)
some old entries may be missing 4K flag."

Unfortunately, using SECT_4K means that ubifs will fail, because it
needs a minimum LBE of 15K.

Based on the above comments, it looks like the best way to handle the
ubifs issue is to disable CONFIG_MTD_SPI_NOR_USE_4K_SECTORS instead of
removing SECT_4K for the particular n25q256a chip. This approach also
has the advantage that will make ubifs work with any chip that has the
SECT_4K flag.

Signed-off-by: Octavian Purdila <octavian.purdila@nxp.com>
Reviewed-by: Han Xu <han.xu@nxp.com>
7 years agoMGS-2848-2 [#imx-523] fix gpu hang for flat mapping optimization
Xianzhong [Wed, 3 May 2017 14:09:44 +0000 (22:09 +0800)]
MGS-2848-2 [#imx-523] fix gpu hang for flat mapping optimization

fix the logical offset to set the correct buffer for the slave tlb entries,
the pointers are defined with gctPHYS_ADDR and gctUINT32_PTR, not void*.

Date: May 03, 2017
Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
7 years agoMGS-2848 [#imx-523] Optimize MMUv1 FlatMapping performances
Marouen Ghodhbane [Thu, 27 Apr 2017 15:23:16 +0000 (17:23 +0200)]
MGS-2848 [#imx-523] Optimize MMUv1 FlatMapping performances

Allocating The STLB structs seperately in a loop can affect performance
This patch would allocate the STLBs in one shot and keep track of these allocations
in case of multiple FlatMappings.

Date: May 02, 2017
Signed-off-by: Marouen Ghodhbane <marouen.ghodhbane@nxp.com>
Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
7 years agoMLK-14528: ASoC: sdma: Update period/segment max bytes
Daniel Baluta [Fri, 5 May 2017 07:09:55 +0000 (10:09 +0300)]
MLK-14528: ASoC: sdma: Update period/segment max bytes

Commit 665ced16cf044 ("MLK-10050 dma: imx-sdma: add support for sdma
memory copy") enforces maximum SDMA buffer descriptor length at 65532,
but doesn't update period_bytes_max or max_segment size in DMA drivers.

Thus, resulting in the following bug:

$ arecord -Dhw:0,0 -r 192000 -f S20_3LE -c 1 -d 10 audio192k20b1c.wav
imx-sdma: SDMA channel 5: maximum period size exceeded: 65534 > 65532

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
7 years agoMLK-14786: ARM: dts: imx6x-sabreauto-m4: add reg info to the rpmsg node
Octavian Purdila [Thu, 4 May 2017 12:58:24 +0000 (15:58 +0300)]
MLK-14786: ARM: dts: imx6x-sabreauto-m4: add reg info to the rpmsg node

Without this information probing of imx-rpmsg fails as it is not able
to setup the vring due to missing allocated physical memory.

Signed-off-by: Octavian Purdila <octavian.purdila@nxp.com>
7 years agoARM64: dts: imx8qm: add missing sai0 clk, rename asrc0 clk
Viorel Suman [Thu, 4 May 2017 12:17:51 +0000 (15:17 +0300)]
ARM64: dts: imx8qm: add missing sai0 clk, rename asrc0 clk

sai0 node: add missing mclk0 clk.
asrc0 node: rename dma clk to spba.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Reviwed-by: Daniel Baluta <daniel.baluta@nxp.com>
7 years agoMLK-14771 dma: pxp-v3: add new added 2D features support
Guoniu.Zhou [Tue, 2 May 2017 02:59:38 +0000 (10:59 +0800)]
MLK-14771 dma: pxp-v3: add new added 2D features support

 The V3 version PXP has added below new 2D features:
1. Input fetch/store blocks to accept different formats input/output.
2. Add Rotation1 block to do rotation before alpha blending.
3. Add Composite1 block to accept source from input fetch.
4. AS and PS have increased supported pixel formats.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
(cherry picked from commit 4daef24b19890ca65135c48fc24018f64761444f)

7 years agoMLK-14314-14 dma: pxp-v3: derive the shortest path table for 2D nodes
Fancy Fang [Fri, 3 Mar 2017 03:06:59 +0000 (11:06 +0800)]
MLK-14314-14 dma: pxp-v3: derive the shortest path table for 2D nodes

Based on the previously caculated adjacent list and mux
config info, the shortest path table can be derived by
distance calculation between two different 2D nodes.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit c8adf0f7089d5c5e286d7ae74c138a84bed5e280)

7 years agoMLK-14314-13 dma: pxp-v3: construct graph structures to store pxp nodes.
Fancy Fang [Fri, 3 Mar 2017 02:19:58 +0000 (10:19 +0800)]
MLK-14314-13 dma: pxp-v3: construct graph structures to store pxp nodes.

According to the PXP arch diagram, the V3 PXP can be
abstracted to a graph structure. There are totally
16 2D nodes in PXP and 16 2D related mux nodes:

     1. Using '16x16' adjacent array to record the 2D nodes
        relationship and '16' size array to record the
        input and output nodes for each muxe node.
     2. Construct the adjacent list to store all the 2D
        nodes and also config the mux info used by each
        two nodes of one edge during pxp probing stage.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit e8087406df2e04982fd90b4070ac68fafa4ad3d5)

7 years agoMLK-14314-12 dma: pxp-v3: refine pxp timer init in probe()
Fancy Fang [Fri, 3 Mar 2017 01:07:20 +0000 (09:07 +0800)]
MLK-14314-12 dma: pxp-v3: refine pxp timer init in probe()

Extract the timer initialization from pxp_probe()
to a seperate function call to make probing process
more clear.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit c8a127e506bca2e38fae02c03ceae4e6956d6ea3)

7 years agoMLK-14314-11 dma: pxp-v3: refine attributes create in probe()
Fancy Fang [Thu, 13 Apr 2017 10:49:57 +0000 (18:49 +0800)]
MLK-14314-11 dma: pxp-v3: refine attributes create in probe()

Extract the attributes creation from the pxp_probe()
to a seperate function call to make the probing process
more clear.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit 85ab5476bf59a407037b43419b920b681b58b52d)

7 years agoMLK-14314-10 dma: pxp-v3: refine m4 init in probe()
Fancy Fang [Thu, 2 Mar 2017 13:07:22 +0000 (21:07 +0800)]
MLK-14314-10 dma: pxp-v3: refine m4 init in probe()

Extract the m4 related initialization code from
pxp_probe() to make the probing function more
clear.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit f1bd8146332f880b75f08eab64505070069018fb)

7 years agoMLK-14314-9 dma: pxp-v3: refine pxp interrupt init code
Fancy Fang [Thu, 13 Apr 2017 10:37:23 +0000 (18:37 +0800)]
MLK-14314-9 dma: pxp-v3: refine pxp interrupt init code

The PXP interrupt functions in V3 is relatively complex.
So do the interrupt initalization in a sperate function
to make the pxp_probe() more clear.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit 2fa43d26f81cf0331820b41bc198adbb414c0c37)

7 years agoMLK-14314-8 dma: pxp: remove meaningless assignments in probe()
Fancy Fang [Thu, 2 Mar 2017 12:39:29 +0000 (20:39 +0800)]
MLK-14314-8 dma: pxp: remove meaningless assignments in probe()

Remove some assignments which have no real effects for
V2 and V3 PXP drivers, since using devm_kzalloc() to
make the data to be zero.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit a6d6e4d2b6b21427c529a33a7d47ddc918b19eb7)

7 years agoMLK-14314-7 dma: pxp: add some new pixel formats definition.
Fancy Fang [Thu, 2 Mar 2017 10:50:27 +0000 (18:50 +0800)]
MLK-14314-7 dma: pxp: add some new pixel formats definition.

Add several new pixel formats definition which are supported
by PXP V3 ip.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit 5195602ac0225902bd416647fb9cd0636fa11e89)

7 years agoMLK-14314-6 dma: pxp: change some RGB formats definition
Fancy Fang [Thu, 2 Mar 2017 10:37:27 +0000 (18:37 +0800)]
MLK-14314-6 dma: pxp: change some RGB formats definition

Some RGB formats fourcc definition are not precise
according to its original meaning. So make some
changes for them.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit b0b4ad680e267bdf542d2c9a3202c0192bde9cb0)

7 years agoMLK-14314-5 dma: pxp-v3: divide whole pxp into four parts
Fancy Fang [Sat, 11 Mar 2017 09:08:42 +0000 (17:08 +0800)]
MLK-14314-5 dma: pxp-v3: divide whole pxp into four parts

According to the pxp high level architecture diagram,
it is better to divide the whole big pxp module into
four sub-modules:
   1. 2D operation module(legacy pxp and input fetch & store).
   2. Dithering module.
   3. WFE_A module.
   4. WFE_B module.
This division will simplify driver implementations and
management.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit 5e57840b41adb195515bd652d9624feaadf3448e)

7 years agoMLK-14314-4 dma: pxp-v3: abstract ps and out fmts parse functions
Fancy Fang [Thu, 2 Mar 2017 08:16:18 +0000 (16:16 +0800)]
MLK-14314-4 dma: pxp-v3: abstract ps and out fmts parse functions

Abstract PS and OUT formats parsing jobs to seperate
functions 'pxp_parse_ps_fmt()' and 'pxp_parse_out_fmt()'
to make the code clean and easier to maintain.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit 3e2cd1880fdf219c77f119fa5c9fb33e50e8654c)

7 years agoMLK-14314-3 pxp-v3: add 'need_yuv_swap' field
Fancy Fang [Thu, 2 Mar 2017 07:51:39 +0000 (15:51 +0800)]
MLK-14314-3 pxp-v3: add 'need_yuv_swap' field

Add 'need_yuv_swap' field to 'pxp_proc_data' structure to
record the yuv formats which needs byte swap.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit 28ce43b27faad915e93f47b438d23f4ebfe020b5)

7 years agoMLK-14314-2 dma: pxp: refine is_yuv().
Fancy Fang [Thu, 2 Mar 2017 07:03:31 +0000 (15:03 +0800)]
MLK-14314-2 dma: pxp: refine is_yuv().

Use 'switch' statement to replace 'if' statement to
make logic more clear and easier to maintain.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit ca1b4393b86054a81bb40ad856af9c4f166841ea)

7 years agoMLK-14314-1 dma: pxp: remove unused multiple overlay layers support
Fancy Fang [Sat, 11 Mar 2017 07:48:27 +0000 (15:48 +0800)]
MLK-14314-1 dma: pxp: remove unused multiple overlay layers support

The multiple overlay layers are not used on pxp v2 and
v3 module, so remove this.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit c4fd8b36dbf9b53079d88d55ccfedde3a444ec29)

7 years agoMLK-14766: bcmdhd: Fix compile issue when building MMC subsystem as module
Dong Aisheng [Wed, 3 May 2017 14:17:11 +0000 (17:17 +0300)]
MLK-14766: bcmdhd: Fix compile issue when building MMC subsystem as module

Re-apply Dong Aisheng's patch for MLK-13190, as the issue
reappeared with bcmdhd update v1.141.100.6:

BCMDHD_SDIO needs to be tristate for the correct dependency
of MMC core subsystem.
And the old driver buildin mode is static defined by DRIVER_TYPE.
Fix it to depend on CONFIG_BCMDHD_SDIO.

Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Tiberiu Breana <andrei-tiberiu.breana@nxp.com>