]> git.karo-electronics.de Git - karo-tx-linux.git/log
karo-tx-linux.git
10 years agommc: sdhci-esdhc-imx: add flag ESDHC_FLAG_USDHC
Dong Aisheng [Mon, 21 Oct 2013 07:23:31 +0000 (15:23 +0800)]
mmc: sdhci-esdhc-imx: add flag ESDHC_FLAG_USDHC

Add flag ESDHC_FLAG_USDHC to tell that the ESDHC is actually an USDHC
block, and replace the is_imx6q_usdhc() occurrences with inline function
esdhc_is_usdhc() which checks the flag.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Dong Aisheng <b29396@freescale.com>
Signed-off-by: Chris Ball <chris@printf.net>
10 years agommc: sdhci-esdhc-imx: add flag ESDHC_FLAG_ENGCM07207
Shawn Guo [Thu, 17 Oct 2013 07:19:44 +0000 (15:19 +0800)]
mmc: sdhci-esdhc-imx: add flag ESDHC_FLAG_ENGCM07207

Just like the use of the flag ESDHC_FLAG_MULTIBLK_NO_INT, let's add
another flag ESDHC_FLAG_ENGCM07207 to enable the workaround for errata
ENGcm07207 and set the flag for i.MX25 and i.MX35 ESDHC.

While at it, let's use BIT() macro for ESDHC_FLAG_MULTIBLK_NO_INT as
well.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Dong Aisheng <b29396@freescale.com>
Signed-off-by: Chris Ball <chris@printf.net>
10 years agoARM: dts: imx6sl: add pinctrl uhs states for usdhc
Dong Aisheng [Tue, 17 Sep 2013 08:25:44 +0000 (16:25 +0800)]
ARM: dts: imx6sl: add pinctrl uhs states for usdhc

This is needed for SD3.0 cards working on UHS mode.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoENGR00284180-2 ARM: dts: imx6sl-evk: enable the SPI NOR
Huang Shijie [Thu, 17 Oct 2013 08:57:10 +0000 (16:57 +0800)]
ENGR00284180-2 ARM: dts: imx6sl-evk: enable the SPI NOR

enable the spi nor for imx6sl-evk boards.

Signed-off-by: Huang Shijie <b32955@freescale.com>
10 years agoENGR00284180-1 ARM: dts: imx6sl: add a pinctrl for ECSPI1
Huang Shijie [Thu, 17 Oct 2013 08:51:49 +0000 (16:51 +0800)]
ENGR00284180-1 ARM: dts: imx6sl: add a pinctrl for ECSPI1

add a pinctrl for ECSPI1. This pinctrl can be used in the imx6sl-evk board.

Signed-off-by: Huang Shijie <b32955@freescale.com>
10 years agoENGR00283508-6 arm: dts: imx6sl: support hog pins sleep mode
Anson Huang [Mon, 14 Oct 2013 19:33:58 +0000 (15:33 -0400)]
ENGR00283508-6 arm: dts: imx6sl: support hog pins sleep mode

As i.MX6SL EVK board is very sensitive to DSM power, so we
need to lower IO power of hog pins:

MX6SL_PAD_KEY_ROW5__GPIO4_IO03
MX6SL_PAD_KEY_COL6__GPIO4_IO04
MX6SL_PAD_LCD_RESET__GPIO2_IO19

Signed-off-by: Anson Huang <b20788@freescale.com>
10 years agoENGR00283508-5 pinctrl: imx: support pin sleep mode in suspend
Anson Huang [Mon, 14 Oct 2013 19:32:48 +0000 (15:32 -0400)]
ENGR00283508-5 pinctrl: imx: support pin sleep mode in suspend

When system suspend, need to switch pwm pin to sleep mode,
this is to save IO power. Using pinctrl mode switch framework
to make it happen.

Signed-off-by: Anson Huang <b20788@freescale.com>
10 years agoENGR00283508-4 arm: dts: imx6sl: support kpp pin sleep mode
Anson Huang [Mon, 14 Oct 2013 19:20:52 +0000 (15:20 -0400)]
ENGR00283508-4 arm: dts: imx6sl: support kpp pin sleep mode

Improve those kpp pins pad setting with no_pad_ctrl defined,
actually they are using default pad setting, to support pin
mode switch, we need to set them manually.

As i.MX6SL EVK board is very sensitive to DSM power, so we
need to lower IO power of KPP pins:

MX6SL_PAD_KEY_ROW0__KEY_ROW0
MX6SL_PAD_KEY_ROW1__KEY_ROW1
MX6SL_PAD_KEY_ROW2__KEY_ROW2
MX6SL_PAD_KEY_COL0__KEY_COL0
MX6SL_PAD_KEY_COL1__KEY_COL1
MX6SL_PAD_KEY_COL2__KEY_COL2

Signed-off-by: Anson Huang <b20788@freescale.com>
10 years agoENGR00283508-3 keyboard: imx: support pin sleep mode in suspend
Anson Huang [Mon, 14 Oct 2013 19:19:20 +0000 (15:19 -0400)]
ENGR00283508-3 keyboard: imx: support pin sleep mode in suspend

When system suspend, need to switch keyboard pins to sleep mode,
this is to save IO power. Using pinctrl mode switch framework
to make it happen.

Signed-off-by: Anson Huang <b20788@freescale.com>
10 years agoENGR00283508-2 arm: dts: imx6sl: support pwm pin sleep mode
Anson Huang [Mon, 14 Oct 2013 19:07:51 +0000 (15:07 -0400)]
ENGR00283508-2 arm: dts: imx6sl: support pwm pin sleep mode

As i.MX6SL EVK board is very sensitive to DSM power, so we
need to lower IO power of PWM pin:

MX6SL_PAD_PWM1__GPIO3_IO23

Signed-off-by: Anson Huang <b20788@freescale.com>
10 years agoENGR00283508-1 pwm: imx: support pin sleep mode in suspend
Anson Huang [Mon, 14 Oct 2013 19:06:15 +0000 (15:06 -0400)]
ENGR00283508-1 pwm: imx: support pin sleep mode in suspend

When system suspend, need to switch pwm pin to sleep mode,
this is to save IO power. Using pinctrl mode switch framework
to make it happen.

Signed-off-by: Anson Huang <b20788@freescale.com>
10 years agoserial: imx: optimization: remove the workqueues for DMA
gregkh@linuxfoundation.org [Thu, 17 Oct 2013 20:16:04 +0000 (13:16 -0700)]
serial: imx: optimization: remove the workqueues for DMA

I worried that the delay of the sdma_run_channel0() maybe too long for
interrupt context, so I added the workqueues for RX/TX DMA.

But tested with bluetooth device, I find that the delay of sdma_run_channel0()
is about 8us (tested in imx6dl sabreauto board). I think the delay
is acceptable.

This patch removes the RX/TX workqueues for DMA, it makes the
code more clear.

Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agoENGR00283496 ARM: clk: imx6sl: update epdc pixel clock tree
Robby Cai [Mon, 14 Oct 2013 03:32:25 +0000 (11:32 +0800)]
ENGR00283496 ARM: clk: imx6sl: update epdc pixel clock tree

Add CLK_SET_RATE_PARENT flag for epdc pixel clock to allow the rate change
operation to propagate up to the clock's parent in order to get desired rate.

Signed-off-by: Robby Cai <R63905@freescale.com>
10 years agoserial: imx: use the dmaengine_tx_status
Huang Shijie [Fri, 11 Oct 2013 02:12:12 +0000 (10:12 +0800)]
serial: imx: use the dmaengine_tx_status

Use the dmaengine_tx_status to simplify the code, do not change any logic.

Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agoserial: imx: fix the wrong number of scatterlist entries when xmit->head is 0
Huang Shijie [Fri, 11 Oct 2013 07:39:07 +0000 (15:39 +0800)]
serial: imx: fix the wrong number of scatterlist entries when xmit->head is 0

When the (xmit->tail > xmit->head) is true and the xmit->head is 0,
we only need one DMA scatterlist in actually. Current code uses two DMA
scatterlists in this case, this is obviously wrong.

This patch fixes it.

Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agoserial: imx: check the DMA for imx_tx_empty
Huang Shijie [Thu, 10 Oct 2013 07:05:16 +0000 (15:05 +0800)]
serial: imx: check the DMA for imx_tx_empty

Assume the following situation:

  If the DMA is enabled, and the a TX DMA operation is working,
But we have not issued the TX DMA operation (or we have issued the
TX DMA operation with dma_async_issue_pending(), but the DMA has not
started to move the data from the memory to the TXFIFO).

At this time, we may get the wrong status of the transmitter when we
call the imx_tx_empty. In such situation, only check the USR2_TXDC
does not enough for us.

This patch checks the DMA's situation, and return 0 when the TX DMA is
working.

Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agoserial: imx: implement the flush_buffer hook
Huang Shijie [Wed, 9 Oct 2013 07:13:23 +0000 (15:13 +0800)]
serial: imx: implement the flush_buffer hook

The current driver does not implement the flush_buffer hook for
uart_ops. When we enable the DMA for the driver, and test it with Bluetooth,
we may meet the following bug for TX:

    [1] User application may call the flush operation at any time.
        The uart_flush_buffer() calls the uart_circ_clear() to set
        the xmit->head and xmit->tail with 0.

    [2] The TX DMA callback can be called at any time too.
        The dma_tx_call() will update the xmit->tail.

    If [2] occurs just after the [1], we will get the wrong xmit->tail.

This patch implements the flush_buffer hook to fix this issue.

Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
10 years agoENGR00281769 [iMX6SL] Allow uart to be sourced from 24MHz XTAL
Ranjani Vaidyanathan [Tue, 15 Oct 2013 17:36:42 +0000 (12:36 -0500)]
ENGR00281769 [iMX6SL] Allow uart to be sourced from 24MHz XTAL

In order to optmize low power IDLE numbers all PLLs should be in bypass.
On imx6sl, UART can be sourced directly from the 24MHz XTAL. Its frequency
is limited to 4MHz due to an internal divide by 6 divider.
For customer who don't require higher uart speeds add "uart_at_4M"
to the kernel command line.

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
10 years agoahci: imx: setup power saving methods
Richard Zhu [Tue, 15 Oct 2013 02:44:54 +0000 (10:44 +0800)]
ahci: imx: setup power saving methods

In order to save power consumption as much as possible.

* Disable sata phy internal pll reference clock when sysetem enter
  into suspend mode, enable it after resume.

* Setup module parameter used to enable imx ahci test power down
  mode(PDDQ) or not, when there is no device detected on the port

* minor modifications:
  - The format of the copyright is changed, because that the original
    one can't pass fsl internal patch reivew without the character
    '(c)'.
  - Exports ahci_platform_ops and ahci_error_handler().

NOTE:
* The hot-plug can't be supported when PDDQ mode is ever enabled.

* module parameter usage how-to:
  - default: enable PDDQ mode when no device detected.
  - add "ahci-imx.hotplug=1" into kernel command line if your don't
    want to enable PDDQ mode when no device detected on the port.

tj: Slightly updated description and comments.

Signed-off-by: Richard Zhu <r65037@freescale.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
10 years agoENGR00283480 imx_v7_defconfig: enable MLB150 module
Luwei Zhou [Sat, 12 Oct 2013 07:53:48 +0000 (15:53 +0800)]
ENGR00283480 imx_v7_defconfig: enable MLB150 module

Add MLB150 module support in imx_v7_defconfig

Signed-off-by: Luwei Zhou <b45643@freescale.com>
10 years agoENGR00283475 mxc: mlb : add MLB150 driver support.
Luwei Zhou [Sat, 12 Oct 2013 05:59:59 +0000 (13:59 +0800)]
ENGR00283475 mxc: mlb : add MLB150 driver support.

This patch add MLB150 driver support.Copy files from 3.0.35 kernel.

* Using of_xxx API to get resource from dts
* Using devm_xxx API to simply the code
* Change clk_enable()/clk_disable() to clk_prepare_enable()/
  clk_disable_unprepare()
* Fix some warning when compiling
* Fix issue when handling errors in mxc_mlb150_probe()
* Remove declaration of gpio_mlb_active(), gpio_mlb_inactive()
  out of mxc_mlb.h, because the functions are not invoked.
* Add UAPI support.

Signed-off-by: Luwei Zhou <b45643@freescale.com>
10 years agoENGR00283470 ARM: dts: imxqdl-sabreauto: add dts support for MLB150
Luwei Zhou [Sat, 12 Oct 2013 05:48:13 +0000 (13:48 +0800)]
ENGR00283470 ARM: dts: imxqdl-sabreauto: add dts support for MLB150

This patch add MLB150 dts support on SabreAuto.The PAD setting
is aligned to 3.0.35 kernel.

Signed-off-by: Luwei Zhou <b45643@freescale.com>
10 years agoENGR00283540-02: net: fec: use pinctrl PM helpers
Fugang Duan [Mon, 14 Oct 2013 08:52:32 +0000 (16:52 +0800)]
ENGR00283540-02: net: fec: use pinctrl PM helpers

when system suspend, need to set pins to low power state to
save IO power consumption, there are three states of pinctrl:
"default", "idle" and "sleep". Currently enet supports default
and sleep state.

Signed-off-by: Fugang Duan <B38611@freescale.com>
Signed-off-by: Anson Huang <b20788@freescale.com>
10 years agoENGR00283540-01 dts:imx6sl: add fec sleep pinctrl for pin PM state
Anson Huang [Sat, 12 Oct 2013 17:35:12 +0000 (13:35 -0400)]
ENGR00283540-01 dts:imx6sl: add fec sleep pinctrl for pin PM state

when system suspend, need to set pins to low power state to
save IO power consumption, there are three states of pinctrl:
"default", "idle" and "sleep". Currently enet supports default
and sleep state.

Signed-off-by: Anson Huang <b20788@freescale.com>
Signed-off-by: Fugang Duan <B38611@freescale.com>
10 years agodrivers: pinctrl sleep and idle states in the core
Linus Walleij [Wed, 5 Jun 2013 13:30:33 +0000 (15:30 +0200)]
drivers: pinctrl sleep and idle states in the core

If a device have sleep and idle states in addition to the
default state, look up these in the core and stash them in
the pinctrl state container.

Add accessor functions for pinctrl consumers to put the pins
into "default", "sleep" and "idle" states passing nothing but
the struct device * affected.

Solution suggested by Kevin Hilman, Mark Brown and Dmitry
Torokhov in response to a patch series from Hebbar
Gururaja.

Cc: Hebbar Gururaja <gururaja.hebbar@ti.com>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Stephen Warren <swarren@wwwdotorg.org>
Acked-by: Wolfram Sang <wsa@the-dreams.de>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
10 years agoENGR00283216 media: imx6sl: add runtime pm support for busfreq
Robby Cai [Tue, 8 Oct 2013 07:25:38 +0000 (15:25 +0800)]
ENGR00283216 media: imx6sl: add runtime pm support for busfreq

add runtime pm implementation for eLCDIF/EPDC/PxP

Signed-off-by: Robby Cai <R63905@freescale.com>
10 years agoENGR00281186 dmaengine: pxp: not fetch data from AS buffer if it's not used
Robby Cai [Wed, 25 Sep 2013 05:35:46 +0000 (13:35 +0800)]
ENGR00281186 dmaengine: pxp: not fetch data from AS buffer if it's not used

There's no explicit BIT in PxP register to disable AS buffer.
The right way to disable AS is to set ULC to a higher value than the LRC.
It has been done once in probe time, but not in run time.
This could cause one potential problem because even when ULC, LRC
and buffer address is set to 0 PxP will still fetch one pixel data from addr 0.
This patch fixes it by set ULC higher than LRC for AS if it's not used (i.e.,
no alpha-blending) at run time.

Signed-off-by: Robby Cai <R63905@freescale.com>
10 years agoENGR00277792 video: mxsfb: Enable pan display function
Sandor Yu [Fri, 27 Sep 2013 07:36:10 +0000 (15:36 +0800)]
ENGR00277792 video: mxsfb: Enable pan display function

- Add interrupt handle thread for vsync and frame done irq.
- Support MXCFB_WAIT_FOR_VSYNC call to get vsync signal
  in fb_ioctl function.
- Add flip_sem semaphore to check last frame done interrupt
  in pan display function.
- Add cur_blank variable to record current blank state.
- Move register_framebuffer function after lcdif controller
 enabled, struct of fb_info and lcdif controller should ready
 to work before register_framebuffer.

Signed-off-by: Sandor Yu <R01008@freescale.com>
10 years agoENGR00265935 net: fec: add pm_qos to avoid cpu enter to wait mode
Fugang Duan [Fri, 11 Oct 2013 08:36:48 +0000 (16:36 +0800)]
ENGR00265935 net: fec: add pm_qos to avoid cpu enter to wait mode

Since imx6q/dl enet cannot wake up wait mode, which cause performance
drops. Add pm_qos to request low cpu latency to avoid enter to wait mode.

Signed-off-by: Fugang Duan <B38611@freescale.com>
10 years agoENGR00283192 Avoid vpu rmmod failure and modprobe warning
Hongzhang Yang [Thu, 10 Oct 2013 03:12:06 +0000 (11:12 +0800)]
ENGR00283192 Avoid vpu rmmod failure and modprobe warning

- Avoid vpu rmmod failure caused by regulator free failure
  Do not call regulator_put because regulators returned from
  devm_regulator_get are automatically regulator_put() on
  driver detach

- Avoid vpu modprobe warning caused by unbalanced pm_runtime_enable
  Add missing call to pm_runtime_disable

Signed-off-by: Hongzhang Yang <Hongzhang.Yang@freescale.com>
10 years agoENGR00283037 [gpu]Avoid gpu rmmod failure caused by regulator free failure
Loren HUANG [Wed, 9 Oct 2013 08:33:39 +0000 (16:33 +0800)]
ENGR00283037 [gpu]Avoid gpu rmmod failure caused by regulator free failure

The failure is caused by duplicate regulator resource free.
New devm_xxx API will free the resource automatically after remove()
is called.

Signed-off-by: Loren HUANG <b02279@freescale.com>
Acked-by: Shawn Guo
10 years agoserial: imx: Change cast to handle 64-bit resource_size_t
Olof Johansson [Thu, 12 Sep 2013 04:27:53 +0000 (21:27 -0700)]
serial: imx: Change cast to handle 64-bit resource_size_t

This resolves a warning where resource_size_t is larger than void *:

  drivers/tty/serial/imx.c:1542:6: warning: cast to pointer from integer
   of different size [-Wint-to-pointer-cast]

Since iomem_base is a void *, casting to unsigned long is safe.

It's unclear to me that this comparison is truly needed, but it's there
on several other drivers as well.

Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Huang Shijie <b32955@freescale.com>
10 years agoserial: imx: Use NULL as the last argument of add_preferred_console()
Fabio Estevam [Mon, 2 Sep 2013 01:24:35 +0000 (22:24 -0300)]
serial: imx: Use NULL as the last argument of add_preferred_console()

Commit f7d2c0bbd (serial: i.MX: evaluate linux,stdout-path property) introduced
the following sparse warning:

drivers/tty/serial/imx.c:1916:77: warning: Using plain integer as NULL pointer

Pass NULL as the last argument of add_preferred_console() instead of zero.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Huang Shijie <b32955@freescale.com>
10 years agoENGR00161643-3 UTP : bugfix
Huang Shijie [Tue, 8 Nov 2011 09:39:35 +0000 (17:39 +0800)]
ENGR00161643-3 UTP : bugfix

The origin code lossed one line.
fix it.

Signed-off-by: Huang Shijie <b32955@freescale.com>
10 years agoENGR00160834 UTP : replace kzalloc() with vmalloc()
Huang Shijie [Wed, 26 Oct 2011 09:31:25 +0000 (17:31 +0800)]
ENGR00160834 UTP : replace kzalloc() with vmalloc()

When allocating large memory, such as 128K,
vmalloc() uses single page for the allocation process,
while kzalloc() has to consume a continuous pages for the allocation.

In low memory case, the kzalloc() may fails.
So use the vmalloc() instead.

Also add some sanity check for the NULL pointer.

Signed-off-by: Huang Shijie <b32955@freescale.com>
10 years agoENGR00140950 mfg: fix the bug that ubiformat utility breaks utp protocol
Peter Chen [Tue, 22 Mar 2011 09:27:17 +0000 (17:27 +0800)]
ENGR00140950 mfg: fix the bug that ubiformat utility breaks utp protocol

ubiformat includes command, data, command periods,
it breaks utp protocol for PUT commands. So we add two operations to fix it.
One is sending busy to host before the data periods begins.
The second is adding a new command to waiting ubiformat's command period.

Signed-off-by: Li Xingyu <b02754@freescale.com>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
10 years agoENGR00217717 mfgtool firmware will crash during mfgtool running
Tony LIU [Fri, 20 Jul 2012 02:11:06 +0000 (10:11 +0800)]
ENGR00217717 mfgtool firmware will crash during mfgtool running

- the root cause of this issue is there is no protection for
  the resource which will be accessed by multiple thread

Signed-off-by: Tony LIU <junjie.liu@freescale.com>
10 years agoENGR00280494-2 Add config for mfgtools
Frank Li [Thu, 3 Oct 2013 19:51:58 +0000 (14:51 -0500)]
ENGR00280494-2 Add config for mfgtools

Build in USB Mass storage
Enable CONFIG_FSL_UTP

Must list all gadgets in config file
otherwise CONFIG_USB_MASS_STORAGE becomes to m

+# CONFIG_USB_ZERO is not set
+# CONFIG_USB_AUDIO is not set
+# CONFIG_USB_ETH is not set
+# CONFIG_USB_G_NCM is not set
+# CONFIG_USB_GADGETFS is not set
+# CONFIG_USB_FUNCTIONFS is not set
+CONFIG_USB_MASS_STORAGE=y
+CONFIG_FSL_UTP=y
+# CONFIG_USB_G_SERIAL is not set
+# CONFIG_USB_MIDI_GADGET is not set
+# CONFIG_USB_G_PRINTER is not set
+# CONFIG_USB_CDC_COMPOSITE is not set
+# CONFIG_USB_G_ACM_MS is not set
+# CONFIG_USB_G_MULTI is not set
+# CONFIG_USB_G_HID is not set
+# CONFIG_USB_G_DBGP is not set
+# CONFIG_USB_G_WEBCAM is not set

Signed-off-by: Frank Li <Frank.li@freescale.com>
10 years agoENGR00280494-1 make the kernel image for mfgtool
Frank Li [Wed, 28 Aug 2013 21:02:06 +0000 (16:02 -0500)]
ENGR00280494-1 make the kernel image for mfgtool

uboot needs pass down below parameters
removable = 1
stall = 0
idVendor = 0x066F
idProduct = 0x37FF
iSerialNumber = ""

Signed-off-by: Lu Lin <b37454@freescale.com>
Signed-off-by: Frank Li<frank.li@freescale.com>
10 years agoASoC: fsl_spdif: Remove redundant semicolon
Sachin Kamat [Fri, 13 Sep 2013 10:22:42 +0000 (15:52 +0530)]
ASoC: fsl_spdif: Remove redundant semicolon

Redundant semicolon at the end of brace is removed.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
Signed-off-by: Nicolin Chen <b42378@freescale.com>
10 years agoASoC: fsl_spdif: Select regmap-mmio
Mark Brown [Sun, 8 Sep 2013 16:20:37 +0000 (17:20 +0100)]
ASoC: fsl_spdif: Select regmap-mmio

The S/PDIF driver needs regmap so select it to make sure it gets
included in the build.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Acked-by: Nicolin Chen <b42378@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Signed-off-by: Nicolin Chen <b42378@freescale.com>
10 years agoENGR00281859-3 ASoC: fsl: Prepare dmaengine before submit it
Nicolin Chen [Tue, 8 Oct 2013 08:39:39 +0000 (16:39 +0800)]
ENGR00281859-3 ASoC: fsl: Prepare dmaengine before submit it

ASRC and HDMI audio might meet unexpected stop, 'ctrl+z' for example,
and then disable its sdma channel. But after 'fg' resume, because sdma
channel's status has already been set into DMA_ERROR, we need to prepare
dmaengine again to clear its error state, otherwise sdma driver would
bypass its channel enabling and 'Input/Output error' would happen to
ALSA lib.
The combined prepare and submit are also being used in soc-dmaengine,
the common ASoC dmaengine driver.

And since we already use a proper way to handle sdma channel status,
there's no need to make an exception for HDMI any more, so drop it.

Signed-off-by: Nicolin Chen <b42378@freescale.com>
10 years agoENGR00281859-2 ASoC: fsl: Use priv instead of params for imx-hdmi-dma
Nicolin Chen [Tue, 8 Oct 2013 07:41:21 +0000 (15:41 +0800)]
ENGR00281859-2 ASoC: fsl: Use priv instead of params for imx-hdmi-dma

'params' might be confused with snd_pcm_hw_params, so use 'priv' instead.

Signed-off-by: Nicolin Chen <b42378@freescale.com>
10 years agoENGR00281859-1 mxc: asrc: Add debug message for asrc_isr()
Nicolin Chen [Tue, 8 Oct 2013 04:41:08 +0000 (12:41 +0800)]
ENGR00281859-1 mxc: asrc: Add debug message for asrc_isr()

asrc_isr() is mainly used to detect and record overload error,
so we add some print massage to make it easy to debug.

Also fixed an incorrect function name -- dev_debug() by using
the correct one -- dev_dbg() in dump_regs().

Signed-off-by: Nicolin Chen <B42378@freescale.com>
10 years agoENGR00281017 [MX6SL]Low power IDLE mode optimizations
Ranjani Vaidyanathan [Fri, 20 Sep 2013 15:36:00 +0000 (10:36 -0500)]
ENGR00281017 [MX6SL]Low power IDLE mode optimizations

Added a new bus freq mode - ultra_low_bus_freq_mode.
In this mode the ARM is the only bus master that is active and
the system is already in low power idle mode.
And when ARM executes WFI in this mode, we do some aggressive
power savings techinques like:
1. Drop DDR freq to 1MHz
2. Drop AHB freq to 3MHz
3. Float the DDR IO pads
4. If all PLLs are in bypass (which should be the case), do
some analog power saving options like reducing the OSC-bias current,
turning off the regular bandgap, disabling the regular 2P5, enabling
the weak 2p5 etc.

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
10 years agoENGR00281804 ARM: imx6: init enet MAC address
Fugang Duan [Sun, 29 Sep 2013 09:40:31 +0000 (17:40 +0800)]
ENGR00281804 ARM: imx6: init enet MAC address

Enet get MAC address order:
From module parameters or kernel command line -> device tree ->
pfuse -> mac registers set by bootloader -> random mac address.

When there have no "fec.macaddr" parameters set in kernel command
line, enet driver get MAC address from device tree. And then if
the MAC address set in device tree and is valid, enet driver get
MAC address from device tree. Otherwise,enet get MAC address from
pfuse. So, in the condition, update the MAC address (read from pfuse)
to device tree.

Signed-off-by: Fugang Duan <B38611@freescale.com>
10 years agoENGR00279948 net: fec: add clock control to save power
Fugang Duan [Sun, 29 Sep 2013 06:56:16 +0000 (14:56 +0800)]
ENGR00279948 net: fec: add clock control to save power

- After probe, disable all clocks incluing ipg, ahb, enet_out, ptp clock.
- Open ethx interface enable necessary clocks.
  Close ethx interface disable all clocks.
- Correct the MDIO clock source.

Signed-off-by: Fugang Duan <B38611@freescale.com>
10 years agoENGR00281789-02 ARM: dts: imx6sl: correct the enet ipg clock
Fugang Duan [Sun, 29 Sep 2013 06:52:43 +0000 (14:52 +0800)]
ENGR00281789-02 ARM: dts: imx6sl: correct the enet ipg clock

Current imx6sl dts define enet_ref clock as ipg clock, which is not
right. The ipg clock is "IMX6SL_CLK_ENET" defined at imx6sl-clock.h.

Signed-off-by: Fugang Duan <B38611@freescale.com>
10 years agoENGR00281789-01 imx6sl: add missing enet clock for imx6sl
Fugang Duan [Sun, 29 Sep 2013 06:48:06 +0000 (14:48 +0800)]
ENGR00281789-01 imx6sl: add missing enet clock for imx6sl

There's a enet clock gate missing in clock tree, thus add it.

Signed-off-by: Fugang Duan <B38611@freescale.com>
10 years agoENGR00280852 ASoC: fsl: Use generic function dmaengine_prep_dma_cyclic()
Nicolin Chen [Fri, 27 Sep 2013 09:04:53 +0000 (17:04 +0800)]
ENGR00280852 ASoC: fsl: Use generic function dmaengine_prep_dma_cyclic()

Use generic dmaengine_prep_dma_cyclic() in imx-hdmi-dma.c and fsl-asrc.c

Signed-off-by: Nicolin Chen <b42378@freescale.com>
10 years agoENGR00280852-9 mxc: asrc: Use threshold to clear dma request
Nicolin Chen [Thu, 26 Sep 2013 10:22:00 +0000 (18:22 +0800)]
ENGR00280852-9 mxc: asrc: Use threshold to clear dma request

Previously, we used sdma's event pending to forcibly re-schedule sdma
for work round, because sdma channel for ASRC input task would fail to
be opened due to its dma request always keeping high after ASRC opens
the pair, which cause sdma miss the trigger point of dma request.

Now, instead of using event pending, we clear the dma request on ASRC
driver side by setting its thresholds to an impossible trigger area
during its stall state. Since ASRC would stall its process when input
fifo is near empty or output fifo is near full, during the stall state,
the specific thresholds, 0 for input fifo and 63 for output fifo, would
never let asrc meet this condition. So dma request can be cleared and
raised again after we restore the true required thresholds.

Accordingly, since we don't need event pending any more, we dropped the
code from the sdma driver.

Signed-off-by: Nicolin Chen <b42378@freescale.com>
10 years agoENGR00280852-8 mxc: asrc: Add polling mode working without dma for debugging
Nicolin Chen [Wed, 25 Sep 2013 11:10:58 +0000 (19:10 +0800)]
ENGR00280852-8 mxc: asrc: Add polling mode working without dma for debugging

Add polling mode for data transmitting without dma support for debugging when
sdma may have issue.

Signed-off-by: Nicolin Chen <b42378@freescale.com>
10 years agoENGR00280852-7 mxc: asrc: Only set ASRC to STALL level in start_conv()
Nicolin Chen [Wed, 25 Sep 2013 10:22:33 +0000 (18:22 +0800)]
ENGR00280852-7 mxc: asrc: Only set ASRC to STALL level in start_conv()

We don't need to set ASRC to STALL level everytime, instead we only need
to do that at the beginning. If we insert null data into input fifo during
the sequence of valid datas, there would be a noise occur to it.

By doing this, we can assure ASRC would keep each period's perturbation of
output dma task within 8 sample sizes, which is the default value for last
period number. Thus we don't need to expand the last period number any more.

This patch also dropped some unused functions since the driver no long needs
them and replaced wrapped function for channel number configuration with direct
regmap_update_bits() to make the driver clean.

Signed-off-by: Nicolin Chen <b42378@freescale.com>
10 years agoENGR00280852-6 mxc: asrc: Use devtype instead of specific DT properties
Nicolin Chen [Wed, 25 Sep 2013 07:16:44 +0000 (15:16 +0800)]
ENGR00280852-6 mxc: asrc: Use devtype instead of specific DT properties

We can determine the IP version from DT compatible name to decide which
clock map and channel bits should be used.

Signed-off-by: Nicolin Chen <b42378@freescale.com>
10 years agoENGR00280852-5 mxc: asrc: Simplify code
Nicolin Chen [Tue, 24 Sep 2013 11:41:35 +0000 (19:41 +0800)]
ENGR00280852-5 mxc: asrc: Simplify code

* Dropped unused header files.
* Use pair-explicit error massage.
* Fixed some coding style issue.

Signed-off-by: Nicolin Chen <b42378@freescale.com>
10 years agoENGR00280852-4 mxc: asrc: Use completion instead of counter
Nicolin Chen [Tue, 24 Sep 2013 10:27:34 +0000 (18:27 +0800)]
ENGR00280852-4 mxc: asrc: Use completion instead of counter

Use completion instead of counter to make driver clean and drop
implicit mdelay by using wait_for_completion().

Signed-off-by: Nicolin Chen <b42378@freescale.com>
10 years agoENGR00280852-3 mxc: asrc: Use regmap to control register accessing
Nicolin Chen [Tue, 24 Sep 2013 10:13:41 +0000 (18:13 +0800)]
ENGR00280852-3 mxc: asrc: Use regmap to control register accessing

Dropped the legency readl/writel() and use regmap instead. Also removed
core clock's clk_prepare() and spin_lock()/unlock() outside regmap due to
regmap already has these features.

This patch also added a missing writable register to the regmap in order
to assure the regsiter updating success.

Signed-off-by: Nicolin Chen <b42378@freescale.com>
10 years agoENGR00280852-2 arm: dtsi: imx6qdl: Set sdma priority of ASRC to medium
Nicolin Chen [Tue, 24 Sep 2013 03:05:50 +0000 (11:05 +0800)]
ENGR00280852-2 arm: dtsi: imx6qdl: Set sdma priority of ASRC to medium

Set the priority as what kernel 3.0.35 does to keep it safe.

Signed-off-by: Nicolin Chen <b42378@freescale.com>
10 years agoENGR00280852-1 mxc: asrc: Add spba clock control for sdma shp script
Nicolin Chen [Tue, 24 Sep 2013 03:01:37 +0000 (11:01 +0800)]
ENGR00280852-1 mxc: asrc: Add spba clock control for sdma shp script

ASRC is using shp_2_mcu and mcu_2_shp sdma scripts that use spba bus to
transfer data, while the driver hasn't include the control code of spba
clock.

This would cause multiple pair conversion failed in most of time. Thus
we need to add its support.

Signed-off-by: Nicolin Chen <b42378@freescale.com>
10 years agoregmap: Make regmap-mmio usable from atomic contexts
Lars-Peter Clausen [Fri, 24 May 2013 08:29:22 +0000 (10:29 +0200)]
regmap: Make regmap-mmio usable from atomic contexts

regmap-mmio uses a spinlock with spin_lock() and spin_unlock() for locking.
To be able to use the regmap API from different contexts (atomic vs non-atomic),
without the risk of race conditions, we need to use spin_lock_irqsave() and
spin_lock_irqrestore() instead. A new field, the spinlock_flags field, is added
to regmap struct to store the flags between regmap_{,un}lock_spinlock(). The
spinlock_flags field itself is also protected by the spinlock.

Thanks to Stephen Warren for the suggestion of this particular solution.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Nicolin Chen <b42378@freescale.com>
10 years agoENGR00281613 imx_v7_defconfig: enable net VLAN 802.1Q
Fugang Duan [Fri, 27 Sep 2013 07:33:36 +0000 (15:33 +0800)]
ENGR00281613 imx_v7_defconfig: enable net VLAN 802.1Q

Enable net VLAN 8021Q in imx_v7_defconfig.

Signed-off-by: Fugang Duan <B38611@freescale.com>
10 years agoENGR00281611 i2c: imx: update i2c clock divider for each transaction
Fugang Duan [Fri, 27 Sep 2013 07:13:19 +0000 (15:13 +0800)]
ENGR00281611 i2c: imx: update i2c clock divider for each transaction

i.MX6 I2C clk is from IPG_PERCLK which is sourced from IPG_CLK.
Under normal operation, IPG_CLK is 66MHz, ipg_perclk is at 22MHz.
In low bus freq mode, IPG_CLK is at 12MHz and IPG_PERCLK is down
to 4MHz. So the I2C driver must update the divider register for
each transaction when the current IPG_PERCLK is not equal to the
clock of previous transaction.

Signed-off-by: Fugang Duan <B38611@freescale.com>
10 years agoENGR00281446 ARM: dts: imx6: correct the power supply node name for epdc
Robby Cai [Thu, 26 Sep 2013 09:57:18 +0000 (17:57 +0800)]
ENGR00281446 ARM: dts: imx6: correct the power supply node name for epdc

The naming convention for power supply node in DTS is "%s-supply".
With this patch regulator_get() will process in the DT way rather than
traditional way. This patch has no functional impact.

Signed-off-by: Robby Cai <R63905@freescale.com>
10 years agoENGR00279204-2 mxc vout: reconfig overlay fb correctly
Liu Ying [Thu, 26 Sep 2013 06:11:08 +0000 (14:11 +0800)]
ENGR00279204-2 mxc vout: reconfig overlay fb correctly

The overlay framebuffer's position and resolution are
set with two different APIs. They depend on each other to
make sure the overlay framebuffer window will not go out
of the background framebuffer window. Potentially, this
causes the overlay framebuffer's position or resolution
of the current video pipeline be impacted by the settings
of the last time. To setup the overlay fb from scratch
correctly, this patch takes the following steps:
- blank framebuffer
- set framebuffer position to the starting point
- reconfigure framebuffer
- set framebuffer position to a specific point
- unblank framebuffer
This procedure applies to non-overlay framebuffers as well.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
10 years agoENGR00279204-1 mxc vout: reconfig fb when necessary
Liu Ying [Thu, 26 Sep 2013 05:41:17 +0000 (13:41 +0800)]
ENGR00279204-1 mxc vout: reconfig fb when necessary

Users may call VIDIOC_S_CTRL or VIDIOC_S_CROP ioctrls
to update streaming parameters on-the-fly after video
has been streamed on, such as for rotation/output
resolution/overlay output position change. Any
unnecessary frame buffer reconfiguration would cause
a pair of frame buffer blank/unblank events happen and
even makes the background framebuffer show up for a
short period of time if the video is rendered on an
overlay framebuffer. This patch compares the last time
video output pipe line settings with the current ones
to determine whether frame buffer reconfiguration is
necessary or not.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
10 years agoENGR00279946 dts: imx6qdl-sabreauto: add baseboard sd card slot support
Dong Aisheng [Wed, 25 Sep 2013 12:04:43 +0000 (20:04 +0800)]
ENGR00279946 dts: imx6qdl-sabreauto: add baseboard sd card slot support

NOTE since SD Card in main board takes a long route hence with
Drive Speed High 80 OHMS causing error on high speed cards.
Per suggestion DSE 40 OHMS is used.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
10 years agoENGR00280140 pxp/v4l2: restore the display content after video playback finishes
Robby Cai [Sun, 22 Sep 2013 09:31:06 +0000 (17:31 +0800)]
ENGR00280140 pxp/v4l2: restore the display content after video playback finishes

After finish video playback, the last frame remains on the display.
It's because the UI display start address (smem_start) has been changed when
do video playback but not changed back again after the playback finishes.
From the function call point of view,

 pxp_set_fbinfo()         // pxp->fb.base tracks right addr for UI framebuffer
 pxp_show_buf(toshow)     // smem_start changed to v4l2 display addr
 pxp_set_fbinfo()         // pxp->fb.base changed to v4l2 display addr
 pxp_show_buf(not toshow) // smem_start still equal to v4l2 display addr
                          // for pan_display

This patch fixes it by calling pxp_set_fbinfo once in open function.

Signed-off-by: Robby Cai <R63905@freescale.com>
10 years agoENGR00281036: [MX6SL]Align LPDDR2 freq change code to 8-byte boundary
Ranjani Vaidyanathan [Tue, 24 Sep 2013 21:06:34 +0000 (16:06 -0500)]
ENGR00281036: [MX6SL]Align LPDDR2 freq change code to 8-byte boundary

This patch fixes 4 issues:
1. Add the .align 8 directive to the LPDDR2 freq change code,
else the fncpy() function fails and the kernel does not boot.
2. Loads the correct L2_BASE_ADDR into register in lpddr2 freq change code
3. Fix the warning in clk_imx6sl.c
4. Change dev_WARN to dev_info in busfreq-imx6.c.

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
10 years agoENGR00280689-02 i.MX6 HDMI: Remove HDCP register define from driver
Sandor Yu [Mon, 23 Sep 2013 06:21:23 +0000 (14:21 +0800)]
ENGR00280689-02 i.MX6 HDMI: Remove HDCP register define from driver

Remove HDCP register define from HDMI kernel driver.

Signed-off-by: Sandor Yu <R01008@freescale.com>
10 years agoENGR00280689-01 i.MX6 HDMI: Remove HDCP register access from driver
Sandor Yu [Mon, 23 Sep 2013 06:20:11 +0000 (14:20 +0800)]
ENGR00280689-01 i.MX6 HDMI: Remove HDCP register access from driver

Remove HDCP register access from HDMI driver.

Signed-off-by: Sandor Yu <R01008@freescale.com>
10 years agoENGR00280000 ARM: dts: imx6qdl-sabreauto: add dts files for ECSPI support
Huang Shijie [Mon, 23 Sep 2013 08:45:48 +0000 (16:45 +0800)]
ENGR00280000 ARM: dts: imx6qdl-sabreauto: add dts files for ECSPI support

The ecspi1 has pin conflict with the i2c3.
This patch adds two dts files for the ECSPI support.

Signed-off-by: Huang Shijie <b32955@freescale.com>
10 years agoENGR00280663-3 mxc vout: handle downsize ratio overflow
Liu Ying [Sun, 22 Sep 2013 04:45:29 +0000 (12:45 +0800)]
ENGR00280663-3 mxc vout: handle downsize ratio overflow

This patch handles downsize ratio overflow error by doing
input cropping with 8 pixel step.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
10 years agoENGR00280663-2 IPUv3 device: check downsize ratio overflow
Liu Ying [Sun, 22 Sep 2013 04:37:39 +0000 (12:37 +0800)]
ENGR00280663-2 IPUv3 device: check downsize ratio overflow

IPUv3 IC task downsize scaling ratio cannot exceed or be
equal to 8:1. This patch makes the code return error code
if the ratio overflows.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
10 years agoENGR00280663-1 IPUv3: improve IC scale check logic
Liu Ying [Sun, 22 Sep 2013 02:34:24 +0000 (10:34 +0800)]
ENGR00280663-1 IPUv3: improve IC scale check logic

This patch improves IPU IC task scale check logic
so that we may return with error code if the calculation
for scale coefficients fails.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
10 years agoENGR00280101-3 [iMX6x] Add support for bypass mode rates
Ranjani Vaidyanathan [Tue, 17 Sep 2013 22:14:05 +0000 (17:14 -0500)]
ENGR00280101-3 [iMX6x] Add support for bypass mode rates

Fix the code to report correct PFD and PLL clock rates when
the PLL is in bypass state.

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
10 years agoENGR00280101-2 [iMX6SL/iMX6DL] Add busfreq support
Ranjani Vaidyanathan [Tue, 17 Sep 2013 22:13:05 +0000 (17:13 -0500)]
ENGR00280101-2 [iMX6SL/iMX6DL] Add busfreq support

Change dtsi files to enable busfreq support.

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
10 years agoENGR00280101-1 [iMX6SL] Add busfreq support
Ranjani Vaidyanathan [Tue, 17 Sep 2013 22:09:48 +0000 (17:09 -0500)]
ENGR00280101-1 [iMX6SL] Add busfreq support

Add support to scale the DDR frequency between 400MHz and 24MHz.
Add support to scale AHB between 132MHz and 24MHz.

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
10 years agoENGR00280115 videobuf-dma-contig: make mmapped video buffer bufferable
Liu Ying [Wed, 18 Sep 2013 02:15:34 +0000 (10:15 +0800)]
ENGR00280115 videobuf-dma-contig: make mmapped video buffer bufferable

This patch makes mmapped video buffers bufferable so that software
decoders may render the video buffers efficiently.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
10 years agoARM: dts: imx6q: fix the wrong offset of the Pad Mux register
Huang Shijie [Mon, 16 Sep 2013 08:45:18 +0000 (16:45 +0800)]
ARM: dts: imx6q: fix the wrong offset of the Pad Mux register

The patch "0b7a76a ARM: dts: imx6q{dl}: add DTE pads for uart"
adds the DTE pads for uart. For PAD_EIM_D29, the offset of the
Pad Mux register should be 0x0c8, not 0x0c4.

This patch fixes it.

Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: dts: enable the uart2 for imx6q-arm2
Huang Shijie [Mon, 8 Jul 2013 09:14:22 +0000 (17:14 +0800)]
ARM: dts: enable the uart2 for imx6q-arm2

enable the uart2 for imx6q-arm2 board.
The uart2 works in the DTE mode, with the RTS/CTS and DMA enabled.

Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoENGR00279545 [MX6x:Cpufreq] Initialize mutex before driver registration
Ranjani Vaidyanathan [Thu, 12 Sep 2013 19:44:20 +0000 (14:44 -0500)]
ENGR00279545 [MX6x:Cpufreq] Initialize mutex before driver registration

The mutex, set_cpufreq_lock, should be initialized before the driver is
registered. Else if the default governor is set to performance or ondemand,
the cpufreq driver will try to set the freq to the max freq supported and
this will cause a crash during boot.

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
10 years agoENGR00279413 pxp/v4l2: get the right framebuffer start address at run time
Robby Cai [Thu, 12 Sep 2013 11:11:54 +0000 (19:11 +0800)]
ENGR00279413 pxp/v4l2: get the right framebuffer start address at run time

Previously the driver gets the framebuffer start address at probe time.
But this address might be changed if the framebuffer drivers re-allocate
the frame buffers due to the application changes the yres_virtual.
As a result, some garbage data can be observed on display.
This patch adjusts the way to detect the start address at run time to
fix this problem.

Signed-off-by: Robby Cai <R63905@freescale.com>
10 years agoENGR00279402-2 ARM: imx6q: imx6sl: System reset by checking the source setting
Robin Gong [Thu, 12 Sep 2013 08:34:01 +0000 (16:34 +0800)]
ENGR00279402-2 ARM: imx6q: imx6sl: System reset by checking the source setting

Check the source setting in dts file to support different WDOG reset event.
Correct imx6sl_restart instead of mxc_restart.

Signed-off-by: Robin Gong <b38343@freescale.com>
10 years agoENGR00279402-1 ARM: dts: imx6: add wdog reset source seclect in dts
Robin Gong [Thu, 12 Sep 2013 08:22:26 +0000 (16:22 +0800)]
ENGR00279402-1 ARM: dts: imx6: add wdog reset source seclect in dts

Some boards use another WDOG reset source to reboot system in ldo-bypass mode.
We need add the property in board dts file so that we can easily know the
WDOG reset source currently.

For Sabresd, WDOG1 for ldo-enable mode(WDOG event), WDOG2 for ldo-bypass mode
(reset external pmic to trigger POR event).
For sl-evk board, there is no WDOG pin connected with external pmic as Sabresd
, because mx6sl boot at 400Mhz. Then both ldo-enable and ldo-bypass mode use
the common WDOG1 as reset source.

Signed-off-by: Robin Gong <b38343@freescale.com>
10 years agoENGR00279436 input: touchscreen: egalax: enable multitouch
Fugang Duan [Thu, 12 Sep 2013 09:39:27 +0000 (17:39 +0800)]
ENGR00279436 input: touchscreen: egalax: enable multitouch

Disable single-touch support in imx_v7_defconfig to enable
multitouch feature for egalax.

Signed-off-by: Fugang Duan <B38611@freescale.com>
10 years agoENGR00279368-3 mxc: asrc: Add missing clock control
Nicolin Chen [Thu, 12 Sep 2013 06:56:36 +0000 (14:56 +0800)]
ENGR00279368-3 mxc: asrc: Add missing clock control

* Add missing clock control
* Set ASRC clock to 7.5MHz as 3.0.35 does
* Use the same divisor for ideal ratio mode as 3.0.35 does

Acked-by: Wang Shengjiu <b02247@freescale.com>
Signed-off-by: Nicolin Chen <b42378@freescale.com>
10 years agoENGR00279368-2 ASoC: fsl: Add missing snd_soc_pm_ops to all machine drivers
Nicolin Chen [Thu, 12 Sep 2013 06:32:24 +0000 (14:32 +0800)]
ENGR00279368-2 ASoC: fsl: Add missing snd_soc_pm_ops to all machine drivers

Alsa machine drivers need snd_soc_pm_ops to support normal suspend/resume
feature, thus add this to all machine drivers.

Also add missing SUSPEND and RESUME cases to trigger() in fsl_ssi.c

Acked-by: Wang Shengjiu <b02247@freescale.com>
Signed-off-by: Nicolin Chen <b42378@freescale.com>
10 years agoENGR00279368-1 ASoC: fsl: Drop useless resume function in WM8962 machine driver
Nicolin Chen [Thu, 12 Sep 2013 06:24:20 +0000 (14:24 +0800)]
ENGR00279368-1 ASoC: fsl: Drop useless resume function in WM8962 machine driver

The resume function is useless for the driver because registered jack pin has
already handled suspend/resume cases, thus drop it.

Acked-by: Wang Shengjiu <b02247@freescale.com>
Signed-off-by: Nicolin Chen <b42378@freescale.com>
10 years agoENGR00279401 mxc v4l2 capture: use flush_work instead of flush_work_sync
Liu Ying [Thu, 12 Sep 2013 07:50:13 +0000 (15:50 +0800)]
ENGR00279401 mxc v4l2 capture: use flush_work instead of flush_work_sync

Since commit 43829731d (workqueue: deprecate flush[_delayed]_work_sync()),
flush_work() should be used instead of flush_work_sync().

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
10 years agoENGR00279373 epdc: add GFP_KERNEL flag to make dma memory allocated from cma
Robby Cai [Thu, 12 Sep 2013 06:39:57 +0000 (14:39 +0800)]
ENGR00279373 epdc: add GFP_KERNEL flag to make dma memory allocated from cma

Add GFP_KERNEL flag for dma_alloc_writecombine() and dma_alloc_coherent()
to make dma memory allocated via cma. Otherwise it's from dma pool whose
size is too small by default (256KB) and will cause allocation failure unless
use 'coherent_pool=xxM' in cmdline. We prefer cma now.

Signed-off-by: Robby Cai <R63905@freescale.com>
10 years agoENGR00278941-3: arm: imx: add necessary flow for standby mode
Anson Huang [Wed, 11 Sep 2013 14:05:56 +0000 (10:05 -0400)]
ENGR00278941-3: arm: imx: add necessary flow for standby mode

Need to ensure that the ARM:IPG clock ratio is maintained at
12:5 when WFI is executed. This is the fix for the low power mode
issue on i.MX6SL.

Signed-off-by: Anson Huang <b20788@freescale.com>
10 years agoENGR00278941-2: arm: imx: correct LDO bypass flow logic
Anson Huang [Tue, 10 Sep 2013 20:23:26 +0000 (16:23 -0400)]
ENGR00278941-2: arm: imx: correct LDO bypass flow logic

The LDO analog bypass switch is necessary before entering DSM when LDO
is working at digital bypass mode, previous coding logic is incorrect,
fix it.

Signed-off-by: Anson Huang <b20788@freescale.com>
10 years agoENGR00278941-1: arm: imx: Fix suspend/resume unstable issue
Anson Huang [Tue, 10 Sep 2013 20:22:20 +0000 (16:22 -0400)]
ENGR00278941-1: arm: imx: Fix suspend/resume unstable issue

As we need to float DDR IO when entering DSM, so those registers
we need to access after DDR IO is floated must be contained in TLB,
otherwise, the TLB update may case DDR access and lead to
system hang. To make sure these registers' address is in TLB,
we need to flush TLB first then access them manually.

Signed-off-by: Anson Huang <b20788@freescale.com>
10 years agoENGR00279226 media: ov5642: correct io_regulator sanity check
Liu Ying [Wed, 11 Sep 2013 10:25:44 +0000 (18:25 +0800)]
ENGR00279226 media: ov5642: correct io_regulator sanity check

The following commit introduced a wrong sanity check for
the io_regulator which is intended to be got from device tree.
a364635a535705a8c16df49ff9bc7b9362b083ec

This patch corrects the sanity check.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
(cherry picked from commit a0ff4d112dcd8a71547f2b95731f2fedb21a77e4)

10 years agoENGR00278667-3 [ARM]: imx_v7_defconfig enable adv7180 TV decoder
Oliver Brown [Tue, 10 Sep 2013 08:53:26 +0000 (03:53 -0500)]
ENGR00278667-3 [ARM]: imx_v7_defconfig enable adv7180 TV decoder

Enable the ADV7180 TV Decoder to imx_v7_defconfig

Signed-off-by: Oliver Brown <oliver.brown@freescale.com>
10 years agoENGR00278667-2 [ARM]: dtsi: imx6qdl-sabreauto: add adv7180 driver
Oliver Brown [Sun, 8 Sep 2013 20:38:50 +0000 (15:38 -0500)]
ENGR00278667-2 [ARM]: dtsi: imx6qdl-sabreauto: add adv7180 driver

Changes added to support adv7180 TV Decoder in the SabreAuto 3.10.9
Kernel device tree:
-Added adv7180 support
-Added reg_3p3v.

Signed-off-by: Oliver Brown <oliver.brown@freescale.com>
10 years agoENGR00278667-1 [mxc_v4l2_capture]: Add adv7180 driver in 3.10.9 Kernel
Oliver Brown [Sun, 8 Sep 2013 20:05:28 +0000 (15:05 -0500)]
ENGR00278667-1 [mxc_v4l2_capture]: Add adv7180 driver in 3.10.9 Kernel

Copied file from 3.5.7 Kernel
commit de6459732a23402cbe520812bf4202299330fd68
Author: Oliver Brown <oliver.brown@freescale.com>
Date:   Mon Jun 24 16:41:17 2013 -0500

Added missing call to clk_disable_unprepare() in adv7180_probe.

Signed-off-by: Oliver Brown <oliver.brown@freescale.com>
10 years agoENGR00278665-3 [ARM]: imx_v7_defconfig enable ov5640_mipi support
Oliver Brown [Tue, 10 Sep 2013 08:19:53 +0000 (03:19 -0500)]
ENGR00278665-3 [ARM]: imx_v7_defconfig enable ov5640_mipi support

Enable the ov5640 camera driver in the imx_v7_defconfig.

Signed-off-by: Oliver Brown <oliver.brown@freescale.com>
10 years agoENGR00278665-2 [ARM]: dtsi: imx6qdl-sabresd: add ov5640_mipi camera support
Oliver Brown [Sun, 8 Sep 2013 19:46:13 +0000 (14:46 -0500)]
ENGR00278665-2 [ARM]: dtsi: imx6qdl-sabresd: add ov5640_mipi camera support

Enabled ov5640_mipi in the SabreSD device tree.

Signed-off-by: Oliver Brown <oliver.brown@freescale.com>
10 years agoENGR00278665-1 [mxc_v4l2_capture]: Add ov5640_mipi driver files
Oliver Brown [Sun, 8 Sep 2013 19:41:02 +0000 (14:41 -0500)]
ENGR00278665-1 [mxc_v4l2_capture]: Add ov5640_mipi driver files

Copied file from 3.5.7 Kernel:
commit 0682e12bf9a3b5085fe5dd70574fe856340894d0
Author: Liu Ying <Ying.Liu@freescale.com>
Date:   Thu May 16 12:02:14 2013 +0800

-Added function and file name to some error messages that are
in multiple places.
-Added calls to clk_prepare_enable() and clk_disable_unprepare()
 in ov5640_probe() to manage the sensor clock.
-Added missing sanity check for "io_regulator"
-Fixed several whitespace errors

Signed-off-by: Oliver Brown <oliver.brown@freescale.com>