asrc: add initial support

It's from fsl git commit 4a19e4ade .

Signed-off-by: Richard Zhao <richard.zhao@linaro.org>
asrc: add DT support and build fix

Signed-off-by: Richard Zhao <richard.zhao@linaro.org>
thermal: Add a new trip type to use cooling device instance number

This patch adds a new trip type THERMAL_TRIP_STATE_INSTANCE. This
trip behaves same as THERMAL_TRIP_ACTIVE but also passes the cooling
device instance number. This helps the cooling device registered as
different instances to perform appropriate cooling action decision in
the set_cur_state call back function.

Also since the trip temperature's are in ascending order so some logic
is put in place to skip the un-necessary checks.

Signed-off-by: Amit Daniel Kachhap <amit.kachhap@linaro.org>
thermal: Add generic cpufreq cooling implementation

This patch adds support for generic cpu thermal cooling low level
implementations using frequency scaling up/down based on the registration
parameters. Different cpu related cooling devices can be registered by the
user and the binding of these cooling devices to the corresponding
trip points can be easily done as the registration APIs return the
cooling device pointer. The user of these APIs are responsible for
passing clipping frequency . The drivers can also register to recieve
notification about any cooling action called. Even the driver can effect
the cooling action by modifying the default data such as freq_clip_max if
needed.

Signed-off-by: Amit Daniel Kachhap <amit.kachhap@linaro.org>
thermal: Add generic cpuhotplug cooling implementation

This patch adds support for generic cpu thermal cooling low level
implementations using cpuhotplug based on the thermal level requested
from user. Different cpu related cooling devices can be registered by the
user and the binding of these cooling devices to the corresponding
trip points can be easily done as the registration APIs return the
cooling device pointer. The user of these APIs are responsible for
passing the cpumask.

Signed-off-by: Amit Daniel Kachhap <amit.kachhap@linaro.org>
ARM: imx: Add basic imx6q thermal management

Adds support for temperature sensor readings, registers with common
thermal framework, and uses the new common cpu_cooling interface.

Signed-off-by: Robert Lee <rob.lee@linaro.org>
lt: imx6q: thermal: add workaround for fuse not containing the calib. data.

Let fuse_data = 0x5704c67d for testing.

Signed-off-by: Ying-Chun Liu <paul.liu@linaro.org>
anatop: patching to device-tree property "reg"

Change "reg" to "anatop-reg-offset" due to there is a warning of handling no
size field in reg.

Signed-off-by: Ying-Chun Liu <paul.liu@linaro.org>
Merge branch 'lt-3.2-imx6-anatop' of git://git.linaro.org/people/paulliu/linux-2.6 into lt-3.2-imx6
Merge branch 'lt-3.2-imx6-thermal0' of git://git.linaro.org/people/paulliu/linux-2.6 into lt-3.2-imx6
ENGR00163603-2 IMX/SDMA : save the real count for one DMA transaction.

When we use the SDMA in the UART driver(such as imx6q), we will
meet one situation:
  Assume we set 64 bytes for the RX DMA buffer.
  The receiving DMA buffer has received some data, but not full.
  An Aging DMA request will be received by the SDMA controller if we enable the
  IDDMAEN(UCR4[6]) in this case.

So the UART driver needs to know the count of the real received bytes,
and push them to upper layer.

Add two new fields to sdmac, and update the `residue` in sdma_tx_status().

Signed-off-by: Huang Shijie <b32955@freescale.com>
ENGR00163603-3 MX6Q/UART : add DMA support to uart driver

add the DMA support for the uart driver.

Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Haitao Zhang <haitao.zhang@linaro.org>
ENGR00169388-3 IMX/UART : fix the compiling error

use the platformdata to fix the compiling error.

We save the DMA RX/TX request numbers in the platformdata.

Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Haitao Zhang <haitao.zhang@linaro.org>
ENGR00163703 uart: console write routing is unsafe on SMP

The console feature's write routing is unsafe on SMP with
the startup/shutdown call. It happend to cause Android bootup
without shell runnable.

Actually on Android boot, there's 3 consumers of the console
* the kernel printk
* the init process using /dev/kmsg to call printk to show log
* shell, which open /dev/console and write with sys_write()

The shell goes into the normal uart open/write routing,
but the other two go into the console operations.
The open routing calls imx serial startup, which will write USR1/2
register without any lock and critical with imx_console_write call.

Here add spin_lock for startup/shutdown/console_write routing.
Remove the imx_setup_ufcr() call on startup when CONSOLE enabled,
as this will cause clock reinit, and output garbage.

Signed-off-by: Xinyu Chen <xinyu.chen@freescale.com>
Signed-off-by: Haitao Zhang <haitao.zhang@linaro.org>
ENGR00169433 IMX/UART : fix a bug in UART RX

The origin code did not check the running situation.
It will cause a NULL pointer issue.

This patch fixes it.

Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Haitao Zhang <haitao.zhang@linaro.org>
ENGR00169402 IMX/UART : do optimization for UART TX

The original code will copy the upper layer's data to its
own buffer. But this is not necessary.

Map the upper layer's buffer directly to DMA's scatterlist.
This will enhance the performance of UART TX.

Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Haitao Zhang <haitao.zhang@linaro.org>
ENGR00170901-2 IMX/UART : add a wait queue for DMA RX in SMP

The DMA RX thread may run on another CPU, while the application
runs on one CPU.

The application will close the uart when it finishes the required reading.
But the DMA RX thread maybe still running in this situation.

So add a wait queue to synchronize the __TWO__ sides in the SMP.

Signed-off-by: Huang Shijie <b32955@freescale.com>
SIgned-off-by: Haitao Zhang <haitao.zhang@linaro.org>
LINARO: Update lt-mx6_defconfig

Add support for CPU_THERMAL support
Add supoort for ASCR support

Signed-off-by: Haitao Zhang <haitao.zhang@linaro.org>
ASoC: imx-ssi: disable S24_LE and S20_3LE temporally

This format run too fast, disable it temporally.

Signed-off-by: Richard Zhao <richard.zhao@linaro.org>
MAINTAINERS: stable: Update address

commit bc7a2f3abc636d7cab84258a48e77b08fb5fd3d6 upstream.

The old address hasn't worked since the great intrusion of August 2011.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>