linux.git
7 years agoMLK-10108-2: ASoC: imx-mqs: set tdm slot in hw_params() for sai master mode
Zidan Wang [Thu, 2 Apr 2015 09:48:48 +0000 (17:48 +0800)]
MLK-10108-2: ASoC: imx-mqs: set tdm slot in hw_params() for sai master mode

Set tdm slot in hw_params() for sai master mode.

Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
7 years agoMLK-10515-2: ASoC: fsl_mqs: Move clk get_rate to hw_param
Shengjiu Wang [Tue, 31 Mar 2015 10:17:35 +0000 (18:17 +0800)]
MLK-10515-2: ASoC: fsl_mqs: Move clk get_rate to hw_param

It is too early to put clk get rate in probe, because the rate for
the clock may not be ready.

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
7 years agoMLK-9723-7: ARM: imx_v7_defconfig: build in mqs
Shengjiu Wang [Tue, 21 Oct 2014 07:15:16 +0000 (15:15 +0800)]
MLK-9723-7: ARM: imx_v7_defconfig: build in mqs

enable mqs sound card.

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
(cherry picked from commit 21cf6e439bdf9a0cf287b1dd04ceb56d0486167d)

7 years agoMLK-9723-5: ASoC: imx-mqs: add mqs machine driver
Shengjiu Wang [Tue, 21 Oct 2014 06:28:14 +0000 (14:28 +0800)]
MLK-9723-5: ASoC: imx-mqs: add mqs machine driver

Implement machine driver for mqs, which use the sai as cpu dai.
sai work on master mode.

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
(cherry picked from commit cac9eb41debc6444d753dc936cdf76874260b9e4)

7 years agoMLK-9723-4: ASoC: fsl_mqs: add mqs codec driver
Shengjiu Wang [Mon, 29 Sep 2014 02:56:03 +0000 (10:56 +0800)]
MLK-9723-4: ASoC: fsl_mqs: add mqs codec driver

Implement codec driver for mqs. mqs is a very simple IP. which support:

Word length: 16bit.
DAI format: Left-Justified, slave mode.

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
(cherry picked from commit 9da6bdd2072b850e9bb910512123eff7d80a0e2f)

7 years agoMLK-9723-3: include: imx6q-iomuxc-gpr: add bit description for MQS
Shengjiu Wang [Mon, 29 Sep 2014 02:56:56 +0000 (10:56 +0800)]
MLK-9723-3: include: imx6q-iomuxc-gpr: add bit description for MQS

Add MQS's bit description in gpr header file.

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
(cherry picked from commit 1e576de4b46a0fadd1c8df7f08229ac759e765f5)

7 years agoMLK-11420 ARM: dts: imx7d-12x12-lpddr3-arm2: add sai<->WM8958 sound card support
Zidan Wang [Wed, 26 Aug 2015 07:42:39 +0000 (15:42 +0800)]
MLK-11420 ARM: dts: imx7d-12x12-lpddr3-arm2: add sai<->WM8958 sound card support

add sai<->WM8958 sound card support

Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
7 years agoMLK-11421 video: mipi_dsi_samsung: add hx8369 wvga panel
Fancy Fang [Wed, 26 Aug 2015 06:41:10 +0000 (14:41 +0800)]
MLK-11421 video: mipi_dsi_samsung: add hx8369 wvga panel

Add hx8369 wvga panel driver for mipi dsi.

Signed-off-by: Fancy Fang <chen.fang@freescale.com>
7 years agoMLK-11418 misc: sram: Set default alignment to 4Kbytes
Nicolin Chen [Tue, 5 Nov 2013 11:23:58 +0000 (19:23 +0800)]
MLK-11418 misc: sram: Set default alignment to 4Kbytes

cherry-pick below patch from v3.14.y:
ENGR00286273-2 misc: sram: Set default alignment to 4Kbytes

As Kernel 3.0.35 does, we set the default iram alignment to 4Kbytes,
although it would waste few memory space.

We here try to do this as an expediency because currently we couldn't
find a perfect solution for 4Kbytes alignment requirement from SDMA.

Signed-off-by: Nicolin Chen <b42378@freescale.com>
(cherry picked from commit cc35bf5bd3472efca29a0858c0ad468a63c60950)

7 years agoMLK-11392-1 ASoC: fsl_sai: Move pm runtime enable/disable out trigger function
Shengjiu Wang [Fri, 21 Aug 2015 05:01:17 +0000 (13:01 +0800)]
MLK-11392-1 ASoC: fsl_sai: Move pm runtime enable/disable out trigger function

When building kernel with CONFIG_DEBUG_ATOMIC_SLEEP=y, there will be
kernel dump.

BUG: sleeping function called from invalid context at drivers/base/power/runtime.c:954
in_atomic(): 1, irqs_disabled(): 128, pid: 705, name: aplay
CPU: 0 PID: 705 Comm: aplay Not tainted 3.10.53-02755-gbee6071 #1472
[<80013f4c>] (unwind_backtrace+0x0/0xf8) from [<800119c0>] (show_stack+0x10/0x14)
[<800119c0>] (show_stack+0x10/0x14) from [<8031fd68>] (__pm_runtime_resume+0x88/0x90)
[<8031fd68>] (__pm_runtime_resume+0x88/0x90) from [<80509ba8>] (fsl_sai_trigger+0x98/0x300)
[<80509ba8>] (fsl_sai_trigger+0x98/0x300) from [<804fef9c>] (soc_pcm_trigger+0x90/0xa0)
[<804fef9c>] (soc_pcm_trigger+0x90/0xa0) from [<804eae60>] (snd_pcm_do_start+0x2c/0x30)
[<804eae60>] (snd_pcm_do_start+0x2c/0x30) from [<804eaad8>] (snd_pcm_action_single+0x38/0x78)
[<804eaad8>] (snd_pcm_action_single+0x38/0x78) from [<804eada8>] (snd_pcm_action_lock_irq+0x84/0xa4)
[<804eada8>] (snd_pcm_action_lock_irq+0x84/0xa4) from [<804eba58>] (snd_pcm_common_ioctl1+0x16c/0xd68)
[<804eba58>] (snd_pcm_common_ioctl1+0x16c/0xd68) from [<804ecc8c>] (snd_pcm_playback_ioctl1+0x158/0x4d0)
[<804ecc8c>] (snd_pcm_playback_ioctl1+0x158/0x4d0) from [<800d5bb8>] (do_vfs_ioctl+0x80/0x624)
[<800d5bb8>] (do_vfs_ioctl+0x80/0x624) from [<800d6198>] (SyS_ioctl+0x3c/0x5c)
[<800d6198>] (SyS_ioctl+0x3c/0x5c) from [<8000e200>] (ret_fast_syscall+0x0/0x30)

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
(cherry picked from commit 99095f3362bc53eb414dabbbe7da5778f3d54f25)

7 years agoMLK-10337: ASoC: fsl_sai: Enable PM runtime support
Fabio Estevam [Thu, 26 Feb 2015 06:28:20 +0000 (14:28 +0800)]
MLK-10337: ASoC: fsl_sai: Enable PM runtime support

request BUS_FREQ_AUDIO for SAI.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
(cherry picked from commit 2b869e1b16162d752c1345082d5d76b9bf720e88)

7 years agoMLK-11369-5 ARM: imx_v7_defconfig: enable WM8960 and WM8958 sound card, and ASRC
Zidan Wang [Mon, 17 Aug 2015 07:33:10 +0000 (15:33 +0800)]
MLK-11369-5 ARM: imx_v7_defconfig: enable WM8960 and WM8958 sound card, and ASRC

enable WM8960 and WM8958 sound card, and ASRC

Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
7 years agoMLK-11369-4 ASoC: imx-wm8958: port wm8958 machine driver from imx_3.14.y
Zidan Wang [Tue, 10 Feb 2015 03:26:58 +0000 (11:26 +0800)]
MLK-11369-4 ASoC: imx-wm8958: port wm8958 machine driver from imx_3.14.y

port wm8958 machine driver from imx_3.14.y.

Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
7 years agoMLK-11369-2 ARM: dts: add sai<->wm8960 sound card support for imx7d-sdb
Zidan Wang [Mon, 17 Aug 2015 07:13:17 +0000 (15:13 +0800)]
MLK-11369-2 ARM: dts: add sai<->wm8960 sound card support for imx7d-sdb

add sai<->wm8960 sound card support for imx7d-sdb.

Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
7 years agoMLK-11369-1 ASoC: imx-wm8960: port wm8960 machine driver from imx_3.14.y branch
Zidan Wang [Mon, 3 Aug 2015 05:21:12 +0000 (13:21 +0800)]
MLK-11369-1 ASoC: imx-wm8960: port wm8960 machine driver from imx_3.14.y branch

port wm8960 machine driver from imx_3.14.y branch

Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
7 years agoMLK-11179 ASoC: fsl: implement specify audio DMA buffer size from devicetree
Zidan Wang [Fri, 26 Jun 2015 08:06:45 +0000 (16:06 +0800)]
MLK-11179 ASoC: fsl: implement specify audio DMA buffer size from devicetree

If the property "fsl,dma-buffer-size" is present, using the specified buffer size.
Otherwise, using the default audio buffer size.

Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
(cherry picked from commit bba153dd92a4f58b81c4c26fb3a95c45445c65e0)

7 years agoMLK-10611-1 ASoC: fsl-sai: Just one device can playback(captrue) when using the same SAI
Zidan Wang [Fri, 10 Apr 2015 01:52:36 +0000 (09:52 +0800)]
MLK-10611-1 ASoC: fsl-sai: Just one device can playback(captrue) when using the same SAI

Just one device can playback(captrue) when using the same SAI.

Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
(cherry picked from commit 7981a488c4da440db21f0544b519b44636a0cabb)

7 years agoMLK-9974: ASoC: fsl_sai: There is underrun detected in the beginning sometimes
Shengjiu Wang [Mon, 29 Dec 2014 05:40:08 +0000 (13:40 +0800)]
MLK-9974: ASoC: fsl_sai: There is underrun detected in the beginning sometimes

Write initial words to SAI FIFO to reduce underrun error

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
(cherry picked from commit 7ba8ae883d84540fac5ed4147d124399537bc0b3)
(cherry picked from commit f4435f35aa2a97551d2c4a12ca316c354a880f85)

7 years agoMLK-11401-1 ARM: imx: correct mipi PGC power up/down flow
Anson Huang [Mon, 24 Aug 2015 16:24:20 +0000 (00:24 +0800)]
MLK-11401-1 ARM: imx: correct mipi PGC power up/down flow

For SW power up/down mipi phy in GPC, below flow should
be executed:

1. map mipi phy to A7 domain;
2. enable mipi phy PGC bit if it is a disable operation;
3. do software power up/down request in GPC;
4. wait for the software request bit clear.

Previous flow is incorrect, as it miss #4 step, correct it.

Signed-off-by: Anson Huang <b20788@freescale.com>
(cherry picked from commit 707ed61de83e7cc1c7d7b15cc8a1c00bea0bc8d1)

Conflicts:
arch/arm/mach-imx/gpcv2.c

7 years agoMLK-11162 video: mipi_dsi_samsung: add runtime pm for mipi phy
Fancy Fang [Wed, 24 Jun 2015 05:28:11 +0000 (13:28 +0800)]
MLK-11162 video: mipi_dsi_samsung: add runtime pm for mipi phy

Using runtime pm framework to control the mipi
phy on/off dynamically.

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

Conflicts:
drivers/video/mxc/mipi_dsi_samsung.c

7 years agoMLK-11113 video: mipi_dsi_samsung: add fastmix support when suspend
Fancy Fang [Mon, 15 Jun 2015 08:52:55 +0000 (16:52 +0800)]
MLK-11113 video: mipi_dsi_samsung: add fastmix support when suspend

In 7D platform, the fastmix will power down MIPI DSI when
system doing suspend. So when system resume, the MIPI DSI
will be in the 'reset' state and all the registers should
be configured again.

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

Conflicts:
drivers/video/mxc/mipi_dsi_samsung.c

7 years agoMLK-11395-9 video: mipi_dsi_samsung: the initial code for samsung's mipi dsi
Fancy Fang [Tue, 25 Aug 2015 02:34:06 +0000 (10:34 +0800)]
MLK-11395-9 video: mipi_dsi_samsung: the initial code for samsung's mipi dsi

The initial source code for the new mipi dsi module which can
support the basic necessary functions(blank/unblank, set brightness
and etc). New functions can be added if required later.

Signed-off-by: Fancy Fang <chen.fang@freescale.com>
7 years agoMLK-11395-8 video: mipi_dsi_samsung: add build support
Fancy Fang [Fri, 21 Aug 2015 09:10:23 +0000 (17:10 +0800)]
MLK-11395-8 video: mipi_dsi_samsung: add build support

Add build support for this new samsung's mipi dsi.
The old mipi dsi build option is removed from the
kernel default config. Instead, add the new mipi
dsi build option to the default config.

Signed-off-by: Fancy Fang <chen.fang@freescale.com>
7 years agoMLK-11395-7 ARM: dts: imx7d-12x12-lpddr3-arm2: create an new dts for mipi dsi
Fancy Fang [Fri, 21 Aug 2015 08:08:31 +0000 (16:08 +0800)]
MLK-11395-7 ARM: dts: imx7d-12x12-lpddr3-arm2: create an new dts for mipi dsi

Since mipi display and normal lcd display cannot exsit
together, an new dts should be created for the mipi
display.

Signed-off-by: Fancy Fang <chen.fang@freescale.com>
7 years agoMLK-11395-6 ARM: dts: imx7d-12x12-lpddr3-arm2: add dts support for mipi dsi
Fancy Fang [Fri, 21 Aug 2015 07:57:16 +0000 (15:57 +0800)]
MLK-11395-6 ARM: dts: imx7d-12x12-lpddr3-arm2: add dts support for mipi dsi

Add mipi dsi dts support for imx7d-12x12-lpddr3-arm2 board.

Signed-off-by: Fancy Fang <chen.fang@freescale.com>
7 years agoMLK-11395-5 video: mxsfb: add modelist empty check before using it
Fancy Fang [Tue, 25 Aug 2015 08:13:55 +0000 (16:13 +0800)]
MLK-11395-5 video: mxsfb: add modelist empty check before using it

Signed-off-by: Fancy Fang <chen.fang@freescale.com>
7 years agoMLK-11395-4 ARM: imx: add mipi phy regulator handling to gpcv2
Signed-off-by: Fancy Fang [Tue, 1 Nov 2016 14:33:19 +0000 (16:33 +0200)]
MLK-11395-4 ARM: imx: add mipi phy regulator handling to gpcv2

Add mipi phy regulator notify callback to power on or power off this
phy along with the regulator enable/disable called. This will be used
by mipi dsi/csi later.

Signed-off-by: Fancy Fang <chen.fang@freescale.com>
7 years agoMLK-11395-3 regulator: consumer: add new event macros
Fancy Fang [Fri, 21 Aug 2015 06:19:27 +0000 (14:19 +0800)]
MLK-11395-3 regulator: consumer: add new event macros

Add two new regulator events macro 'REGULATOR_EVENT_PRE_DO_ENABLE'
and 'REGULATOR_EVENT_PRE_DO_DISABLE', since some gpc operations
should be required when MIPI PHY is powered on/off.

Signed-off-by: Fancy Fang <chen.fang@freescale.com>
7 years agoMLK-11395-2: reset: build in CONFIG_RESET_GPIO by default
Shawn Guo [Sun, 14 Jul 2013 13:10:37 +0000 (21:10 +0800)]
MLK-11395-2: reset: build in CONFIG_RESET_GPIO by default

GPIO is widely used as the reset control for various devices.  Let's
build the support in by default.

[shawn.guo: cherry-pick commit 795fcb3bc5bb from imx_3.10.y]
Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
(cherry picked from commit 0cbf78b5b02c57e6fd0e57e811cfe56509c4fd24)

7 years agoMLK-11395-1: reset: register gpio-reset driver in arch_initcall
Shawn Guo [Sun, 14 Jul 2013 12:41:00 +0000 (20:41 +0800)]
MLK-11395-1: reset: register gpio-reset driver in arch_initcall

It's a little bit late to register gpio-reset driver at module_init
time, because gpio-reset provides reset control via gpio for other
devices which are mostly probed at module_init time too.  And it
becomes even worse, when the gpio comes from IO expander on I2C bus,
e.g. pca953x.  In that case, gpio-reset needs to be ready before I2C
bus driver which is generally ready at subsys_initcall time.  Let's
register gpio-reset driver in arch_initcall() to have it ready early
enough.

The defer probe mechanism is not used here, because a reset controller
driver should be reasonably registered early than other devices.  More
importantly, defer probe doe not help in some nasty cases, e.g. the
gpio-pca953x device itself needs a reset from gpio-reset driver start
working.

[shawn.guo: cherry-pick commit 7153f05108ef from imx_3.10.y]
Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
(cherry picked from commit 11e3543010d4ed50db78a5fc809f24c89e8c6e30)

7 years agoreset: Add driver for gpio-controlled reset pins
Philipp Zabel [Thu, 30 May 2013 09:09:00 +0000 (11:09 +0200)]
reset: Add driver for gpio-controlled reset pins

This driver implements a reset controller device that toggle a gpio
connected to a reset pin of a peripheral IC. The delay between assertion
and de-assertion of the reset signal can be configured via device tree.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Pavel Machek <pavel@ucw.cz>
[shawn.guo: cherry-pick commit 27e3604c82cb from imx_3.10.y]
Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Conflicts:
drivers/reset/Makefile

(cherry picked from commit 2c8ba990ad6b33bd28f72384fbd238e0aca6c886)

Conflicts:
drivers/reset/Kconfig
drivers/reset/Makefile

7 years agoMLK-9708 arm: imx: add low power idle support for i.mx6sx
Anson Huang [Mon, 20 Oct 2014 08:16:20 +0000 (16:16 +0800)]
MLK-9708 arm: imx: add low power idle support for i.mx6sx

Enable low power idle for i.MX6SX:

   WFI            -> first level idle;
   WAIT mode      -> second level idle;
   Low power idle -> third level idle, only when system is in low bus mode.

In low powe idle mode, below operations will be done:

   ARM power off;
   AHB freq lower to 3MHz;
   PERCLK freq lower to 6MHz;
   MMDC freq lower to 1MHz;

Anatop will be put into low power mode, and regular band-gap will
be off and low power band-gap will be enabled instead.

Also, in low power idle mode, 24MHz XTAL power will be off and 24MHz clk
source will be switched to RC-OSC to save power, this feature is only
enabled on i.MX6SX TO1.2.

This patch is cherry-picked from L3.14.y, it is the latest version, below
conflicts are fixed.

Signed-off-by: Anson Huang <b20788@freescale.com>
Conflicts:
arch/arm/mach-imx/Makefile
arch/arm/mach-imx/common.h
arch/arm/mach-imx/cpuidle-imx6sx.c
arch/arm/mach-imx/cpuidle.h
arch/arm/mach-imx/mach-imx6sx.c
arch/arm/mach-imx/pm-imx6.c

7 years agoMLK-11396-2 ARM: imx: add suspend/resume for imx6sx lpddr2
Anson Huang [Fri, 21 Aug 2015 16:23:11 +0000 (00:23 +0800)]
MLK-11396-2 ARM: imx: add suspend/resume for imx6sx lpddr2

This patch adds suspend/resume with Mega/Fast mix off support
for i.MX6SX LPDDR2, tested on i.MX6SX-14x14-LPDDR2-ARM2 board.

Signed-off-by: Anson Huang <b20788@freescale.com>
7 years agoMLK-11396-1 ARM: dts: add imx6sx-14x14-lpddr2-arm2 board
Anson Huang [Fri, 21 Aug 2015 16:21:58 +0000 (00:21 +0800)]
MLK-11396-1 ARM: dts: add imx6sx-14x14-lpddr2-arm2 board

Add i.MX6SX-14x14-LPDDR2-ARM2 board support.

Signed-off-by: Anson Huang <b20788@freescale.com>
7 years agoMLK-11390-6 ARM: imx: add busfreq support for imx6sx LPDDR2
Anson Huang [Thu, 20 Aug 2015 04:17:49 +0000 (12:17 +0800)]
MLK-11390-6 ARM: imx: add busfreq support for imx6sx LPDDR2

This patch adds busfreq support for i.MX6SX LPDDR2, tested
on i.MX6SX 19x19 LPDDR2 ARM2 board.

Signed-off-by: Anson Huang <b20788@freescale.com>
7 years agoMLK-11390-5 ARM: imx: add busfreq support for imx6sx DDR3
Anson Huang [Thu, 20 Aug 2015 04:10:27 +0000 (12:10 +0800)]
MLK-11390-5 ARM: imx: add busfreq support for imx6sx DDR3

Add busfreq support for i.MX6SX DDR3 board, tested on
i.MX6SX SDB board, busfreq support below 3 setpoints:

high  -> 400MHz
audio -> 50MHz
low   -> 24MHz

Signed-off-by: Anson Huang <b20788@freescale.com>
7 years agoMLK-11390-4 ARM: imx: remove CLK_SET_PARENT_GATE for bus mux
Anson Huang [Thu, 20 Aug 2015 04:05:18 +0000 (12:05 +0800)]
MLK-11390-4 ARM: imx: remove CLK_SET_PARENT_GATE for bus mux

For some bus mux, need to remove CLK_SET_PARENT_GATE
flag as they can NOT be disabled, and they are only
used by bus-freq and the asm code already follow the
correct sequence of changing parent, so we can remove
CLK_SET_PARENT_GATE flag to avoid set parent fail
after bus-freq transition done.

Signed-off-by: Anson Huang <b20788@freescale.com>
7 years agoMLK-11390-3 ARM: dts: add busfreq support for imx6sx
Anson Huang [Thu, 20 Aug 2015 04:04:34 +0000 (12:04 +0800)]
MLK-11390-3 ARM: dts: add busfreq support for imx6sx

Add busfreq support for i.MX6SX.

Signed-off-by: Anson Huang <b20788@freescale.com>
7 years agoMLK-11390-2 ARM: dts: add imx6sx 19x19 arm2 board
Anson Huang [Thu, 20 Aug 2015 04:02:26 +0000 (12:02 +0800)]
MLK-11390-2 ARM: dts: add imx6sx 19x19 arm2 board

Add i.MX6SX-19x19-ARM2 board support.

Signed-off-by: Anson Huang <b20788@freescale.com>
7 years agoMLK-11390-1 ARM: dts: update imx6sx pinfunc header
Anson Huang [Thu, 20 Aug 2015 04:51:03 +0000 (12:51 +0800)]
MLK-11390-1 ARM: dts: update imx6sx pinfunc header

Update i.MX6SX pinfunc header, add uart mux function.

Signed-off-by: Anson Huang <b20788@freescale.com>
7 years agoMLK-10174-2 usb: chipidea: host: keep controller power if host has dev connected
Li Jun [Thu, 29 Jan 2015 02:32:32 +0000 (10:32 +0800)]
MLK-10174-2 usb: chipidea: host: keep controller power if host has dev connected

This patch is to keep usb controller power on while system suspend if there
is usb device connected by telling GPC to keep mega fast domain power.

Signed-off-by: Li Jun <jun.li@freescale.com>
(cherry picked from commit 74d1524208bfa052f9adac28c8f7d8fb8ed78499)

7 years agoMLK-10174-1 arm: imx: gpc: export an interface to keep mega fast power
Li Jun [Thu, 29 Jan 2015 02:26:52 +0000 (10:26 +0800)]
MLK-10174-1 arm: imx: gpc: export an interface to keep mega fast power

Add an interface for GPC used by drivers to keep mega fast mix domain
power.

Signed-off-by: Li Jun <jun.li@freescale.com>
(cherry picked from commit f40b0d57803b26a889d12cb70f128801ef75055a)

7 years agoMLK-10048-4: ASoC: fsl_asrc: fix dma task timeout issue when use 3 instance
Shengjiu Wang [Mon, 15 Dec 2014 09:28:00 +0000 (17:28 +0800)]
MLK-10048-4: ASoC: fsl_asrc: fix dma task timeout issue when use 3 instance

Merged from 49108fcf7b79ed77d34be33b53a3964b2ac27204
1. Watermark level in sdma use byte as its unit. but asrc driver use
word, there is mismatch between them. Here fix this issue and sdma can
work more efficiency.
2. Enlarge the larst_period_size, when use small size, for some case,
the dma task will timeout, because sdma has no much data for output.

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
(cherry picked from commit 8a96e09e265294f396bd3af29b429e4b7bdff461)

7 years agoMLK-10048-3: ASoC: fsl_asrc: fix asrc crach when suspend/resume
Shengjiu Wang [Mon, 8 Dec 2014 07:08:27 +0000 (15:08 +0800)]
MLK-10048-3: ASoC: fsl_asrc: fix asrc crach when suspend/resume

merge 7e1a620a030d17f93fdd97d076f1cdd042e79337

The reason of crach is that some variables are not protected in
function mxc_asrc_suspend(), when suspend, there is possibility to
access one NULL pointer.
Refine the spin lock usage, add protecting for pair_hold.

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
(cherry picked from commit e90c73f8170bc929cff54b0478da0573e4e26c23)

7 years agoMLK-10048-2: ASoC: fsl_asrc: change the return value
Shengjiu Wang [Mon, 8 Dec 2014 05:04:58 +0000 (13:04 +0800)]
MLK-10048-2: ASoC: fsl_asrc: change the return value

Merge from c086d0151ee3e131b52bef96c5096d1ee603c852

Return value -ERESTARTSYS is not visible for user space according
to include/linux/errno.h. So use -EBUSY replace it.

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
(cherry picked from commit 69d529646a610d8d1360bd116ceec1341aef4211)

7 years agoMLK-11398: ASoC: fsl_asrc: Add Memory to Memory support
Shengjiu Wang [Tue, 9 Sep 2014 09:21:25 +0000 (17:21 +0800)]
MLK-11398: ASoC: fsl_asrc: Add Memory to Memory support

cherry-pick below patch from v3.14.y:
ENGR00330403-4: ASoC: fsl_asrc: Add Memory to Memory support

ASRC M2M function is not able to put upstream due to its self-designed
ioctl protocol. So I just make a single patch for it and make it merge
into P2P driver as simply as possible.

The patch can only be maintained internally unless some one designs a
new protocol or implement the originally protocol by using some common
approach provided by Linux Kernel.

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
(cherry picked from commit b5a7a98da076b0202334db01ecc3833342a7ca11)

7 years agoMLK-10973 ARM: imx6: correct the soc_id on imx6qp
Bai Ping [Tue, 26 May 2015 15:41:13 +0000 (23:41 +0800)]
MLK-10973 ARM: imx6: correct the soc_id on imx6qp

On i.MX6QP, the soc_id exported to the /sys/devices/soc0/soc_id
should be 'i.MX6QP'.

Signed-off-by: Bai Ping <b51503@freescale.com>
(cherry picked from commit 5b478870b0b936a6c89574e6fe62f5537e31ecf0)

7 years agoMLK-11389-03 ARM: imx: enable M/F mix support on imx6sx
Bai Ping [Thu, 20 Aug 2015 13:50:07 +0000 (21:50 +0800)]
MLK-11389-03 ARM: imx: enable M/F mix support on imx6sx

Enable the M/F funtion support on i.MX6SX. The M4 M/F off
support is not added at present, will be enabled after the M4
funtion is ready.

Signed-off-by: Bai Ping <b51503@freescale.com>
7 years agoMLK-11389-02 ARM: dts: imx: add M/F mix property for imx6sx
Bai Ping [Thu, 20 Aug 2015 13:45:58 +0000 (21:45 +0800)]
MLK-11389-02 ARM: dts: imx: add M/F mix property for imx6sx

Add 'fsl,mf-mix-wakeup-irq' property used for M/F mix in gpc node
on i.MX6SX.

Signed-off-by: Bai Ping <b51503@freescale.com>
7 years agoMLK-11389-01 ARM: imx: keep M/F power domain on after suspend
Bai Ping [Wed, 19 Aug 2015 14:02:58 +0000 (22:02 +0800)]
MLK-11389-01 ARM: imx: keep M/F power domain on after suspend

After the system resume back from suspend, the M/F mix domain
power down bit should be cleared to make sure this domain's power
is on in other low power mode.

Signed-off-by: Bai Ping <b51503@freescale.com>
7 years agoMLK-11376-02 ARM: imx: add MSL code for imx6qp
Bai Ping [Tue, 18 Aug 2015 17:17:16 +0000 (01:17 +0800)]
MLK-11376-02 ARM: imx: add MSL code for imx6qp

Add MSL code for i.MX6QP.

Signed-off-by: Bai Ping <b51503@freescale.com>
7 years agoMLK-11376-01 ARM: dts: add dts file for imx6qp
Bai Ping [Tue, 18 Aug 2015 17:13:20 +0000 (01:13 +0800)]
MLK-11376-01 ARM: dts: add dts file for imx6qp

Add dtsi and dts file for i.MX6QP

Signed-off-by: Bai Ping <b51503@freescale.com>
7 years agoMLK-11385 dma: imx-sdma: enable clock before context restored
Robin Gong [Wed, 19 Aug 2015 07:32:44 +0000 (15:32 +0800)]
MLK-11385 dma: imx-sdma: enable clock before context restored

fix sdma driver resume back failed if SDMA clock disabled before suspend:

PM: noirq resume of devices complete after 0.802 msecs
imx-sdma 30bd0000.sdma: Timeout waiting for CH0 ready
imx-sdma 30bd0000.sdma: loaded firmware 4.1
imx-sdma 30bd0000.sdma: restore context error!
dpm_run_callback(): sdma_resume+0x0/0x1c8 returns -110
PM: Device 30bd0000.sdma failed to resume early: error -110

Signed-off-by: Robin Gong <b38343@freescale.com>
7 years agoMLK-11290-02 ARM: dts: imx7d-12x12-lpddr3-arm2: add enet dts file to makefile
Fugang Duan [Wed, 19 Aug 2015 07:24:24 +0000 (15:24 +0800)]
MLK-11290-02 ARM: dts: imx7d-12x12-lpddr3-arm2: add enet dts file to makefile

Add enet dts file to makefile.

Signed-off-by: Fugang Duan <B38611@freescale.com>
7 years agoMLK-11374: ARM: dts: add NAND support for i.MX6UL ddr3 arm2 board
Fugang Duan [Tue, 18 Aug 2015 07:55:26 +0000 (15:55 +0800)]
MLK-11374: ARM: dts: add NAND support for i.MX6UL ddr3 arm2 board

Add GPMI NAND support for i.MX6UL 14x14 ddr3 arm2 board.

Signed-off-by: Han Xu <b45815@freescale.com>
Signed-off-by: Fugang Duan <B38611@freescale.com>
7 years agoMLK-11373: ARM: dts: i.MX7d: add gpmi nand support for 7d-sdb board
Fugang Duan [Tue, 18 Aug 2015 05:41:51 +0000 (13:41 +0800)]
MLK-11373: ARM: dts: i.MX7d: add gpmi nand support for 7d-sdb board

Add gpmi nand support on i.MX7D sdb board.

Signed-off-by: Han Xu <b45815@freescale.com>
Signed-off-by: Fugang Duan <B38611@freescale.com>
7 years agoMLK-11381: arm: imx: dts: imx7d-12x12-lpddr3-arm2 iomuxc_lpsr pad settings
Adrian Alonso [Tue, 18 Aug 2015 18:19:20 +0000 (13:19 -0500)]
MLK-11381: arm: imx: dts: imx7d-12x12-lpddr3-arm2 iomuxc_lpsr pad settings

- Add iomuxc lpsr pad settings, move pinctrl_usbotg1_vbus and
  pinctrl_usbotg2_vbus to iomuxc lpsr domain.

Signed-off-by: Adrian Alonso <aalonso@freescale.com>
7 years agoMLK-11380: arm: imx: dts: imx7d-sdb: add iomuxc_lspr pad settings
Adrian Alonso [Tue, 18 Aug 2015 16:18:14 +0000 (11:18 -0500)]
MLK-11380: arm: imx: dts: imx7d-sdb: add iomuxc_lspr pad settings

- Add additional pad settiongs for iomuxc_lspr controller
- Move pinctrl_pwm1 to iomuxc_lspr domain

Signed-off-by: Adrian Alonso <aalonso@freescale.com>
7 years agoMLK-11358-4: dma: imx-sdma: save and restore context on i.mx6sx/i.mx7d
Robin Gong [Mon, 17 Aug 2015 08:40:07 +0000 (16:40 +0800)]
MLK-11358-4: dma: imx-sdma: save and restore context on i.mx6sx/i.mx7d

Because load context code has been removed in prepare DMA transfer everytime.
Need restore them back once mega/fast powered off.

Signed-off-by: Robin Gong <b38343@freescale.com>
7 years agoMLK-11358-2: ARM: configs: imx_v7_defconfig: enable dmatest module
Robin Gong [Fri, 14 Aug 2015 05:15:49 +0000 (13:15 +0800)]
MLK-11358-2: ARM: configs: imx_v7_defconfig: enable dmatest module

enable dmatest module by default.

Signed-off-by: Robin Gong <b38343@freescale.com>
7 years agoMLK-11358-1: dma: imx-sdma: support dmatest module
Robin Gong [Fri, 14 Aug 2015 04:51:45 +0000 (12:51 +0800)]
MLK-11358-1: dma: imx-sdma: support dmatest module

dmatest is a common dma test module for dma driver which support mem_2_mem copy
.Since  SDMA driver has the mem_2_mem interface, make little code change to
support this feature rather than our internal  mxc_sdma_memcopy_test test
module.

Signed-off-by: Robin Gong <b38343@freescale.com>
7 years agoMLK-11375-2 ARM: imx: disable cpuidle for imx6sx
Anson Huang [Tue, 18 Aug 2015 07:53:54 +0000 (15:53 +0800)]
MLK-11375-2 ARM: imx: disable cpuidle for imx6sx

i.MX6SX CPUIdle with ARM core power down has issue
and cause system hang during kernel boot up, disable
it for now and will enable it when busfreq driver
is ready.

Signed-off-by: Anson Huang <b20788@freescale.com>
7 years agoMLK-11375-1 ARM: imx: bypass pmic ready for imx6sx
Anson Huang [Tue, 18 Aug 2015 07:52:13 +0000 (15:52 +0800)]
MLK-11375-1 ARM: imx: bypass pmic ready for imx6sx

i.MX6SX has same design as i.MX6SL which has bypass
pmic ready signal, as we do NOT enable this function,
so need to bypass it during suspend/resume.

Signed-off-by: Anson Huang <b20788@freescale.com>
7 years agoMLK-11336: mtd: nand: enable LPSR for GPMI NAND
Han Xu [Fri, 7 Aug 2015 15:37:50 +0000 (10:37 -0500)]
MLK-11336: mtd: nand: enable LPSR for GPMI NAND

The LPSR turns off the power for IOMUX when suspending so restore the
IOMUX when resuming in GPMI NAND driver.

The function was not tested yet since NAND only supported on 19x19
LPDDR board.

Signed-off-by: Han Xu <b45815@freescale.com>
Signed-off-by: Fugang Duan <B38611@freescale.com>
(cherry picked from commit: b0375f42a27044667082e53449e534b265d7a029)

7 years agoMLK-11236 mtd: gpmi-nand: Fix nand runtime PM issue
Ye.Li [Fri, 10 Jul 2015 11:13:53 +0000 (19:13 +0800)]
MLK-11236 mtd: gpmi-nand: Fix nand runtime PM issue

Because of the delay of auto suspend, the nand clocks are delayed to
disable when calling the clk_set_rate. This causes the clk_set_rate
failed on some platforms like 6q/6qp, and finally lead the NAND not
working.

Signed-off-by: Ye.Li <Ye.Li@freescale.com>
Signed-off-by: Fugang Duan <B38611@freescale.com>
(cherry picked from commit: 1334dd236d4401d6635accb6c8472d8a5ed088b5)

7 years agoMLK-11133: mtd:gpmi: support runtime pm for gpmi nand
Han Xu [Thu, 18 Jun 2015 21:35:37 +0000 (16:35 -0500)]
MLK-11133: mtd:gpmi: support runtime pm for gpmi nand

support runtime PM on gpmi nand to save the cost to enable/disable clock
in each NAND IO. The driver also claim high-freq bus when resumed.

Signed-off-by: Han Xu <b45815@freescale.com>
(cherry picked from commit: 5b72b3388d1399420f3b49a0ca937ca5792e2d7d)

7 years agoMLK-11044: mtd:nand: enable per1_bch for NAND on all i.MX6 platform
Han Xu [Thu, 4 Jun 2015 16:48:23 +0000 (11:48 -0500)]
MLK-11044: mtd:nand: enable per1_bch for NAND on all i.MX6 platform

The per1_bch was moved in patch below since it was never mentioned in
any GPMI/BCH/APBH documents, but actually it is necessary for BCH module
since BCH use AXI bus transfer data through fabric, need to enable this
clock for BCH at fabric side.

This patch enabled this clock for all i.MX6 platforms and has been
tested on i.MX6Q/i.MX6QP/i.MX6SX and i.MX6UL.

commit 9aa0fb0a606a583e2b6e19892ac2cab1b0e726c4
Author: Han Xu <b45815@freescale.com>
Date: Thu May 28 16:49:18 2015 -0500

mtd: nand: support NAND on i.MX6UL

support i.MX6UL GPMI NAND driver and removed the unecessary clock
per1_bch.

Signed-off-by: Han Xu <b45815@freescale.com>
(cherry picked from commit: 53c5964a104f71c061d95bd98599fbf050644ddb)

7 years agoMLK-10985: mtd: nand: support NAND on i.MX6UL
Han Xu [Thu, 28 May 2015 21:49:18 +0000 (16:49 -0500)]
MLK-10985: mtd: nand: support NAND on i.MX6UL

support i.MX6UL GPMI NAND driver and removed the unecessary clock
per1_bch.

Signed-off-by: Han Xu <b45815@freescale.com>
(cherry picked from commit: 9aa0fb0a606a583e2b6e19892ac2cab1b0e726c4)

7 years agoMLK-10664: mtd: nand: change the maxchips for i.MX7D
Han Xu [Wed, 15 Apr 2015 20:19:43 +0000 (15:19 -0500)]
MLK-10664: mtd: nand: change the maxchips for i.MX7D

change the maximum chips for i.MX7D, this part was missed when adding
i.MX7D NAND support.

Signed-off-by: Han Xu <b45815@freescale.com>
(cherry picked from commit: 313d4d5e701dd6a28dc7d2bd84094b8fbdb7f9ca)

7 years agoMLK-10471: mtd: nand: use maximum ecc strength controller can support
Han Xu [Wed, 15 Apr 2015 19:54:46 +0000 (14:54 -0500)]
MLK-10471: mtd: nand: use maximum ecc strength controller can support

when the maximum ecc NAND oob can afford exceed the ecc strength
controller can provide, use the maximum ecc strength controller can
support instead of the minimum ecc NAND spec required.

kobs-ng will also use the same ecc strength to align with kernel to make
sure all NAND chips can boot.

Signed-off-by: Han Xu <b45815@freescale.com>
(cherry picked from commit: 958a2c5b07524f3502cfdefe66724a9a1f8ad608)

7 years agoMLK-10657: mtd: NAND: correct bitflip for erased NAND page
Han Xu [Tue, 14 Apr 2015 15:29:15 +0000 (10:29 -0500)]
MLK-10657: mtd: NAND: correct bitflip for erased NAND page

i.MX6QP and i.MX7D BCH module integrated a new feature to detect the
bitflip number for erased NAND page. So for these two platform, set the
erase threshold to gf/2 and if bitflip detected, GPMI driver will
correct the data to all 0xFF.

Also updated the imx6qp dts file to ditinguish the GPMI module for i.MX6Q
with the one for i.MX6QP.

Signed-off-by: Han Xu <b45815@freescale.com>
(cherry picked from commit: 4302ab74a301626e7e0b9cb398a23b2e488cfa6b)

7 years agoMLK-10521-2: mtd: gpmi: Add NAND support on i.MX7D
Han Xu [Tue, 31 Mar 2015 19:48:06 +0000 (14:48 -0500)]
MLK-10521-2: mtd: gpmi: Add NAND support on i.MX7D

Support NAND on i.MX7D

Signed-off-by: Han Xu <b45815@freescale.com>
Signed-off-by: Fugang Duan <B38611@freescale.com>
(cherry picked and merged from commit: 39af0df85dcbcb2ebd677ec5d2a2a4e6a61ed826)

7 years agoMLK-11365-02 ARM: imx: add M/F mix support on imx6ul
Bai Ping [Thu, 13 Aug 2015 10:52:08 +0000 (18:52 +0800)]
MLK-11365-02 ARM: imx: add M/F mix support on imx6ul

Add M/F mix support on i.MX6UL.

Signed-off-by: Bai Ping <b51503@freescale.com>
7 years agoMLK-11365-01 ARM: imx: correct the code indent
Bai Ping [Mon, 17 Aug 2015 09:01:03 +0000 (17:01 +0800)]
MLK-11365-01 ARM: imx: correct the code indent

fix the typo of code indent.

Signed-off-by: Bai Ping <b51503@freescale.com>
7 years agoMLK-11343-03 ARM: dts: imx: add clocks in cpu mode
Bai Ping [Wed, 12 Aug 2015 13:55:49 +0000 (21:55 +0800)]
MLK-11343-03 ARM: dts: imx: add clocks in cpu mode

Add pll1, pll1_bypass and pll1_bypass_src clock
reference define in dts file.

Signed-off-by: Bai Ping <b51503@freescale.com>
7 years agoMLK-11343-02 cpufreq: imx: add more clk used by cpufreq
Bai Ping [Wed, 12 Aug 2015 13:55:08 +0000 (21:55 +0800)]
MLK-11343-02 cpufreq: imx: add more clk used by cpufreq

This patch adds pll1, pll_bypass and pll1_bypass_src that
will be used in ARM clock switching code.

Signed-off-by: Bai Ping <b51503@freescale.com>
7 years agoMLK-11343-01 cpufreq: imx: replace clk_get & regulator_get will devm ones
Bai Ping [Wed, 5 Aug 2015 15:05:46 +0000 (23:05 +0800)]
MLK-11343-01 cpufreq: imx: replace clk_get & regulator_get will devm ones

Replace the clk_get and regulator_get will the devm ones to free the
resources automatically when probe failed or driver is removed.

Signed-off-by: Bai Ping <b51503@freescale.com>
7 years agoMLK-11326 dma: mxs-dma: remove the runtime pm dummy code
Fugang Duan [Wed, 5 Aug 2015 10:33:49 +0000 (18:33 +0800)]
MLK-11326 dma: mxs-dma: remove the runtime pm dummy code

Currently, the dma engine driver don't support runtime pm,
and it is not necessary to support the feature since it support
slave sg and cyclic mode, and clock enable/disable during dma
chans allocate and release.

The patch remove the runtime pm dummy code.

Signed-off-by: Fugang Duan <B38611@freescale.com>
(cherry picked from commit: 2c8f8e3e6a21184e6cf8b8e5ba3ec8e76794c951)

7 years agoMLK-11325 dma: mxs-dma: fix dma_io clock enable count mismatch issue
Fugang Duan [Wed, 5 Aug 2015 10:21:04 +0000 (18:21 +0800)]
MLK-11325 dma: mxs-dma: fix dma_io clock enable count mismatch issue

After dma init by calling .mxs_dma_init(), disable dma_io and
dma_bch clocks. When dma chans are requested by devices, clocks
are enabled in .device_alloc_chan_resources(). The patch is to
fix clock enable count mismatch issue.

Signed-off-by: Fugang Duan <B38611@freescale.com>
(cherry picked from commit: 4868cf5e39a0aeb1ad12c5c1a453d233c0f472ce)

7 years agoMLK-11019-2: mxs-sdma: add im7d dma-apbh clock
Adrian Alonso [Fri, 29 May 2015 20:23:55 +0000 (15:23 -0500)]
MLK-11019-2: mxs-sdma: add im7d dma-apbh clock

* iMX7D dma-apbh support add additional clock dependency
* Add clock for mxs-dma support dma_apbh_bch dma_apbh_io

Signed-off-by: Adrian Alonso <aalonso@freescale.com>
Signed-off-by: Fugang Duan <B38611@freescale.com>
(cherry picked from commit: aea75669daac9101592de2cfbadc7aaacbc7d887)

7 years agoMLK-9810 dma: mxs-dma: add power management support
Huang Shijie [Wed, 7 May 2014 06:04:09 +0000 (14:04 +0800)]
MLK-9810 dma: mxs-dma: add power management support

this patch adds power management support for mxs-dma driver.

Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Allen Xu <b45815@freescale.com>
Signed-off-by: Fugang Duan <B38611@freescale.com>
(cherry picked from commit 7a59828eeda36457e6e60383705a0bc5831ffbf7)

7 years agoMLK-10806 ARM: dts: imx7d-12x12-lpddr3-arm2: add BT pin config
Fugang Duan [Tue, 18 Aug 2015 01:53:45 +0000 (09:53 +0800)]
MLK-10806 ARM: dts: imx7d-12x12-lpddr3-arm2: add BT pin config

Add uart3 node and BT reg on pin config.

Signed-off-by: Fugang Duan <B38611@freescale.com>
(cherry picked from commit: 76a0d0595a15346ec954c14e0d4f777d218c0b15)

7 years agoMLK-11281-16 ARM: dts: enable fec1 and fec2 for lpsr mode
Fugang Duan [Tue, 9 Jun 2015 06:38:28 +0000 (14:38 +0800)]
MLK-11281-16 ARM: dts: enable fec1 and fec2 for lpsr mode

Enable fec1 and fec2 for lpsr mode.

Signed-off-by: Fugang Duan <B38611@freescale.com>
(cherry picked from commit: 1fe7e098efc52abecdd3cf4a2ed8add5582393dc)

7 years agoMLK-10835-4 ARM: dts: imx7d-sdb: enable mpl3115,fxas2100x,fxos8700 sensor
Fugang Duan [Tue, 18 Aug 2015 01:44:00 +0000 (09:44 +0800)]
MLK-10835-4 ARM: dts: imx7d-sdb: enable mpl3115,fxas2100x,fxos8700 sensor

Enable mpl3115, fxas2100x, fxos8700 sensor.

Signed-off-by: Fugang Duan <B38611@freescale.com>
(cherry picked from commit: 85e2a3f268ce315ea67ef8805f11a1a1266a3e33)

7 years agoMLK-10462 ARM: dts: imx7d-sdb: enable uart5 and uart6 nodes
Fugang Duan [Tue, 18 Aug 2015 01:36:46 +0000 (09:36 +0800)]
MLK-10462 ARM: dts: imx7d-sdb: enable uart5 and uart6 nodes

Enable uart5 for GPS, uart6 for BCM4339 BT module.

Signed-off-by: Fugang Duan <B38611@freescale.com>
(cherry picked from commit: 4e43a07e6a80c5366e744455f5dc9f9c5a2bde57)

7 years agoMLK-11258 tty: serial: imx: disable overrun interrupt during uart port shutdown
Fugang Duan [Fri, 17 Jul 2015 03:43:31 +0000 (11:43 +0800)]
MLK-11258 tty: serial: imx: disable overrun interrupt during uart port shutdown

Also disable rx fifo overrun interrupt during uart port shutdown.

Signed-off-by: Fugang Duan <B38611@freescale.com>
(cherry picked from commit: 39eb703f6c9f9359723f3fa22e798b1d21b44c67)

7 years agoMLK-10406 ARM: imx: check the clk_set_rate() return value
Fugang Duan [Wed, 11 Mar 2015 11:07:42 +0000 (19:07 +0800)]
MLK-10406 ARM: imx: check the clk_set_rate() return value

Add return value check for clk_set_rate() to avoid set clock
rate fail.

Signed-off-by: Fugang Duan <B38611@freescale.com>
(cherry picked from commit: bcd9d743ef534cf58d2d007e6333270be12c9f06)

7 years agoMLK-10367 tty: serial: imx: set uart module clock to 80Mhz
Fugang Duan [Wed, 4 Mar 2015 07:26:59 +0000 (15:26 +0800)]
MLK-10367 tty: serial: imx: set uart module clock to 80Mhz

When UART module clock is great than 80Mhz, there may have risk after
confirming with IC owner. So set the maximum module clock to 80Mhz.

Signed-off-by: Fugang Duan <B38611@freescale.com>
(cherry picked from commit: 330a1245cb91583d9bc916bbb6d8c7d2c86b26f3)

7 years agoMLK-11307 net: fec: disable timer interrupt when link down and suspend
Fugang Duan [Fri, 31 Jul 2015 04:27:05 +0000 (12:27 +0800)]
MLK-11307 net: fec: disable timer interrupt when link down and suspend

There exists one issue in Android environment when do power key on/off
test that cause system hang. Because suspend function disable enet all
clocks while timer interrupt comming that introduces registers access.
When link down and suspend, the timer interrupt is not necessary
to enable, so disable it.

Signed-off-by: Fugang Duan <B38611@freescale.com>
Tested-by: Fugang Duan <B38611@freescale.com>
Tested-by: Chen Guoyin <B07211@freescale.com>
Tested-by: Zhu Wenbo <B52619@freescale.com>
(cherry picked from commit: 048f62891bc4936991fd58dbaf4a606a30282404)

7 years agoMLK-11363-2 ARM: dts: imx7d-sdb: enable epxp in device node
Fancy Fang [Fri, 14 Aug 2015 06:56:32 +0000 (14:56 +0800)]
MLK-11363-2 ARM: dts: imx7d-sdb: enable epxp in device node

Enable epxp in device node by default on imx7d-sdb board.

Signed-off-by: Fancy Fang <chen.fang@freescale.com>
7 years agoMLK-11363-1 ARM: dts: imx7d-12x12-lpddr3-arm2: enable epxp in device node
Fancy Fang [Fri, 14 Aug 2015 06:55:58 +0000 (14:55 +0800)]
MLK-11363-1 ARM: dts: imx7d-12x12-lpddr3-arm2: enable epxp in device node

Enable epxp in device node by default on imx7d-12x12-lpddr3-arm2
board.

Signed-off-by: Fancy Fang <chen.fang@freescale.com>
7 years agoMLK-11362 video: mxsfb: add busfreq support for this module
Fancy Fang [Fri, 14 Aug 2015 06:28:31 +0000 (14:28 +0800)]
MLK-11362 video: mxsfb: add busfreq support for this module

Add busfreq support for this framebuffer driver.

Signed-off-by: Fancy Fang <chen.fang@freescale.com>
7 years agoMLK-11359 ARM: dts: imx7d-sdb.dts: add sim1
Gao Pan [Fri, 14 Aug 2015 02:06:21 +0000 (10:06 +0800)]
MLK-11359 ARM: dts: imx7d-sdb.dts: add sim1

Add dts support for sim1 on imx_4.1.y branch.

Signed-off-by: Gao Pan <b54642@freescale.com>
7 years agoMLK-11356 ARM: imx_v7_defconfig: add sim
Gao Pan [Fri, 7 Aug 2015 07:36:19 +0000 (15:36 +0800)]
MLK-11356 ARM: imx_v7_defconfig: add sim

Enable CONFIG_MXC_SIM to imx_v7_defconfig.

Signed-off-by: Gao Pan <b54642@freescale.com>
7 years agoMLK-11355 driver/mxc: add mxc special driver
Gao Pan [Fri, 7 Aug 2015 07:13:56 +0000 (15:13 +0800)]
MLK-11355 driver/mxc: add mxc special driver

Add mxc in driver/Konfig and driver/Makefile.

Signed-off-by: Gao Pan <b54642@freescale.com>
7 years agoMLK-11354 sim: imx: relapce devm_request_and_ioremap with devm_ioremap_resource
Gao Pan [Fri, 7 Aug 2015 06:41:00 +0000 (14:41 +0800)]
MLK-11354 sim: imx: relapce devm_request_and_ioremap with devm_ioremap_resource

The API devm_request_and_ioremap meets compile error
on branch imx_4.1.y. It is recommend to replace the api
with devm_ioremap_resource.

Signed-off-by: Gao Pan <b54642@freescale.com>
7 years agoMLK-11353 ARM: dts: imx6ul-14x14-evk.dts: add sim1
Gao Pan [Fri, 7 Aug 2015 06:32:26 +0000 (14:32 +0800)]
MLK-11353 ARM: dts: imx6ul-14x14-evk.dts: add sim1

Add dts support for sim1 on imx_4.1.y branch.

Signed-off-by: Gao Pan <b54642@freescale.com>
7 years agoMLK-10600-2: mxc: sim: Add an option to enable SIM driver build.
Luwei Zhou [Wed, 8 Apr 2015 06:44:51 +0000 (14:44 +0800)]
MLK-10600-2: mxc: sim: Add an option to enable SIM driver build.

Add the option to enable SIM driver build.

Signed-off-by: Luwei Zhou <b45643@freescale.com>
Signed-off-by: Gao Pan <b45643@freescale.com>
(cherry picked from 0f7a6fa3c141bfc7333d9056639b7a5b1154ed1d)

7 years agoMLK-10976: mxc: sim: Using timer interrupt to implement precise timing.
Luwei Zhou [Tue, 26 May 2015 08:49:06 +0000 (16:49 +0800)]
MLK-10976: mxc: sim: Using timer interrupt to implement precise timing.

The EMV4.3 has strict requirement about the reset sequence. The old code use the mdelay, udelay to
achievet, which is not precise enough. Replace it with the timer interrupt. The EMV4.3 requires
40000~45000 clock cycles duration when reset is low.

Signed-off-by: Luwei Zhou <b45643@freescale.com>
(cherry picked from a006fe283c8b97f0a711cb0829bfbdaaf4a5f31f)

7 years agoMLK-10968: mxc: sim: Add the init delay detection function in the driver.
Luwei Zhou [Mon, 25 May 2015 07:16:34 +0000 (15:16 +0800)]
MLK-10968: mxc: sim: Add the init delay detection function in the driver.

In EMV4.3 after warm/cold reset, there would be a receiving window. The receiving
window would be 42000 clock length.If the receiving window expires without receiving
one byte, IFD need to take actions as EMV4.3 spec. The driver need to support this
to identify the sequence of the receiving window expiring event and the receiving event.
Since theinterrupt latency in linux OS is not certain, we need to tune this setting to
pass the cases. Current tuning parameter can work.

Signed-off-by: Luwei Zhou <b45643@freescale.com>
(cherry picked from faf1d8d881a6ad2c6b88fdf312cef142996937c1)