]> git.karo-electronics.de Git - karo-tx-linux.git/log
karo-tx-linux.git
11 years agoRevert "tty: serial: imx: Allow UART to be a source for wakeup"
Alan Tull [Fri, 16 Dec 2011 20:09:13 +0000 (14:09 -0600)]
Revert "tty: serial: imx: Allow UART to be a source for wakeup"

This reverts commit 6565023ad182d3347972aad3f1a13ba57266e81a.

11 years agotty: serial: imx: Allow UART to be a source for wakeup
Fabio Estevam [Tue, 13 Dec 2011 20:50:50 +0000 (18:50 -0200)]
tty: serial: imx: Allow UART to be a source for wakeup

Allow UART to be a source for wakeup from low power mode.

Tested on a mx6sabrelite (where ttymxc1 is the console) by doing:

echo enabled >  /sys/devices/platform/imx-uart.1/tty/ttymxc1/power/wakeup

echo mem > /sys/power/state

and then pressing a key in the console will wakeup the sytem.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
11 years agoENGR00170482 ARM: mx6qsabrelite: Fix the total RAM size
Fabio Estevam [Fri, 16 Dec 2011 12:01:05 +0000 (10:01 -0200)]
ENGR00170482 ARM: mx6qsabrelite: Fix the total RAM size

On mx6qsabrelite there is a total of 1GB of RAM.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
11 years agousb: gadget: audio: queue wLength-sized requests
Felipe Balbi [Mon, 29 Aug 2011 08:54:08 +0000 (11:54 +0300)]
usb: gadget: audio: queue wLength-sized requests

On Audio class, the wLength field of the Setup
packet, contains the data payload size of the
following Data phase. Instead of harcoding values,
use wLength.

This also fixes a bug where Gadget driver had to
receive 3 bytes, but it was queueing a ZLP.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agousb: gadget: audio: actually support both speeds
Felipe Balbi [Fri, 26 Aug 2011 09:48:15 +0000 (12:48 +0300)]
usb: gadget: audio: actually support both speeds

While testing g_audio with HighSpeed UDC on a
FS Hub, we had no configurations to present to
the host. That's because both speeds where
mutually exclusive.

Signed-off-by: Felipe Balbi <balbi@ti.com>
11 years agoUSB: gadget: section mismatch warning fixed
Michal Nazarewicz [Mon, 21 Jun 2010 11:57:04 +0000 (13:57 +0200)]
USB: gadget: section mismatch warning fixed

In may gadgets bind and bind like functions were in a init section
as they were only run during initialisation.  However, being
callback functions they were referenced from structures in “normal”
sections.  Changing the tag from “__init” to “__ref” fixes the
warnings.

Signed-off-by: Michal Nazarewicz <m.nazarewicz@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
11 years agoENGR00170447 MX6Q: Fix CSI SMFC cannot disable normally
Even Xu [Fri, 16 Dec 2011 03:09:27 +0000 (11:09 +0800)]
ENGR00170447 MX6Q: Fix CSI SMFC cannot disable normally

Root cause is:
Ipu driver use msleep to wait for smfc idle, msleep isn't a
Accurate timer, but CSI SMFC is a real-time channel, so use
Interrupt handler to replace msleep.

Signed-off-by: Even Xu <b21019@freescale.com>
11 years agoENGR00170452: gpu-viv: change from dma_sync_single_for_device to outer_clean_range
wu guoxing [Fri, 16 Dec 2011 04:15:05 +0000 (12:15 +0800)]
ENGR00170452: gpu-viv: change from dma_sync_single_for_device to outer_clean_range

dma_sync_single_for_device can only used for kernel physical memory,
while in gpu, we will also clean user physical memory for pixmap,
direct texture, etc. outer_clean_range can operate on both.

Signed-off-by: Wu Guoxing <b39297@freescale.com>
Acked-by: Lily Zhang <r58066@freescale.com>
11 years agoENGR00170212: MX6 - Implement a SW workaround for TKT065875
Ranjani Vaidyanathan [Mon, 12 Dec 2011 18:42:58 +0000 (12:42 -0600)]
ENGR00170212: MX6 - Implement a SW workaround for TKT065875

Only CPU0 executes WFI followed by ISBs in uncached iRAM.
All other cores execute the regular cpu_do_idle()
This puts a restriction that all interrupts should only be routed to CPU0.
This bug should be fixed in TO1.1.

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
11 years agoENGR00170434: MX6 - Add support to read Silicon version
Ranjani Vaidyanathan [Thu, 15 Dec 2011 17:55:00 +0000 (11:55 -0600)]
ENGR00170434: MX6 - Add support to read Silicon version

Read the silicon version stored in ROM at address ox48.

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
11 years agoENGR00170340 [MX6] Fix incorrect frequencies reported from cpuinfo
Nancy Chen [Thu, 15 Dec 2011 15:56:10 +0000 (09:56 -0600)]
ENGR00170340 [MX6] Fix incorrect frequencies reported from cpuinfo

Fix incorrect frequencies reported from /proc/cpuinfo.

Signed-off-by: Nancy Chen <Nancy.Chen@freescale.com>
11 years agoENGR00170341 board-mx6q-sabreauto: update spdif for sabreauto platform
Adrian Alonso [Thu, 15 Dec 2011 01:24:18 +0000 (19:24 -0600)]
ENGR00170341 board-mx6q-sabreauto: update spdif for sabreauto platform

* Update spdif config options for sabreauto platform
* Correct pad settings
* Only SPDIF RX in sabreauto, unset SPDIF TX support.
* spdif and i2c3 doesn't conflict in sabreauto platform
  remove spdif early param and logic that set either pads.

Signed-off-by: Adrian Alonso <aalonso@freescale.com>
11 years agoENGR00170350 dvi detect: request cable detect pin when real init
Jason Chen [Thu, 15 Dec 2011 07:39:31 +0000 (15:39 +0800)]
ENGR00170350 dvi detect: request cable detect pin when real init

request cable detect pin when real init

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00170168-2 mxc_vout: add non FB_VMODE_YWRAP support
Jason Chen [Wed, 14 Dec 2011 06:09:08 +0000 (14:09 +0800)]
ENGR00170168-2 mxc_vout: add non FB_VMODE_YWRAP support

when use pan display, the case could be:
1. a small window wrap in a big frame buffer
2. a frame switch in a serial buffers

the ipuv3 fb driver used to support case 1, and for case 2,
if the fb format is interleaved, there is no problem, but for
non-interleaved format (like I420), there will be a display bug.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00170168-1 ipuv3 fb: add non FB_VMODE_YWRAP support
Jason Chen [Wed, 14 Dec 2011 06:02:16 +0000 (14:02 +0800)]
ENGR00170168-1 ipuv3 fb: add non FB_VMODE_YWRAP support

when use pan display, the case could be:
1. a small window wrap in a big frame buffer
2. a frame switch in a serial buffers

the ipuv3 fb driver used to support case 1, and for case 2,
if the fb format is interleaved, there is no problem, but for
non-interleaved format (like I420), there will be a display bug.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00170342 PWM: fix pwm output can't be set to 100% full duty
Yuxi Sun [Thu, 15 Dec 2011 02:12:53 +0000 (10:12 +0800)]
ENGR00170342 PWM: fix pwm output can't be set to 100% full duty

The chip document says the counter counts up to period_cycles + 1
and then is reset to 0, so the actual period of the PWM wave is
period_cycles + 2

Signed-off-by: Yuxi Sun <b36102@freescale.com>
11 years agoENGR00170244-6 ARM: AHCI: Enable PDDQ mode on mx53 smd board
Richard Zhu [Wed, 14 Dec 2011 05:11:39 +0000 (13:11 +0800)]
ENGR00170244-6 ARM: AHCI: Enable PDDQ mode on mx53 smd board

In order to save the power consumption, enable the
PDDQ mode of AHCI PHY when there is no sata disk
on the port

Signed-off-by: Richard Zhu <r65037@freescale.com>
11 years agoENGR00170244-5 ARM: AHCI: Enable PDDQ mode on mx53 loco board
Richard Zhu [Wed, 14 Dec 2011 05:11:07 +0000 (13:11 +0800)]
ENGR00170244-5 ARM: AHCI: Enable PDDQ mode on mx53 loco board

In order to save the power consumption, enable the
PDDQ mode of AHCI PHY when there is no sata disk
on the port

Signed-off-by: Richard Zhu <r65037@freescale.com>
11 years agoENGR00170244-4 ARM: AHCI: Enable PDDQ mode on mx6 sabrelite board
Richard Zhu [Wed, 14 Dec 2011 05:10:34 +0000 (13:10 +0800)]
ENGR00170244-4 ARM: AHCI: Enable PDDQ mode on mx6 sabrelite board

In order to save the power consumption, enable the
PDDQ mode of AHCI PHY when there is no sata disk
on the port

Signed-off-by: Richard Zhu <r65037@freescale.com>
11 years agoENGR00170244-3 ARM: AHCI: Enable PDDQ mode on mx6 sabreauto board
Richard Zhu [Wed, 14 Dec 2011 05:09:49 +0000 (13:09 +0800)]
ENGR00170244-3 ARM: AHCI: Enable PDDQ mode on mx6 sabreauto board

In order to save the power consumption, enable the
PDDQ mode of AHCI PHY when there is no sata disk
on the port

Signed-off-by: Richard Zhu <r65037@freescale.com>
11 years agoENGR00170244-2 ARM: AHCI: Enable PDDQ mode on mx6 arm2 board
Richard Zhu [Wed, 14 Dec 2011 04:55:52 +0000 (12:55 +0800)]
ENGR00170244-2 ARM: AHCI: Enable PDDQ mode on mx6 arm2 board

In order to save the power consumption, enable the
PDDQ mode of AHCI PHY when there is no sata disk
on the port

Signed-off-by: Richard Zhu <r65037@freescale.com>
11 years agoENGR00170244-1 ARM: AHCI: Enable PDDQ mode when no disk is attached
Richard Zhu [Wed, 14 Dec 2011 04:54:11 +0000 (12:54 +0800)]
ENGR00170244-1 ARM: AHCI: Enable PDDQ mode when no disk is attached

In order to save the power consumption, enable the
PDDQ mode of AHCI PHY when there is no sata disk
on the port

Signed-off-by: Richard Zhu <r65037@freescale.com>
11 years agoENGR00162649 sgtl5000: reduce the DAC volume
Gary Zhang [Tue, 13 Dec 2011 08:11:18 +0000 (16:11 +0800)]
ENGR00162649 sgtl5000: reduce the DAC volume

1. if the DAC volume is largest, output is harsh.
so reduce the DAC volume.
2. increase ADC volume

Signed-off-by: Gary Zhang <b13634@freescale.com>
11 years agoENGR00170225 mx5x: build failed due to ipuv3 fb platform data change
Xinyu Chen [Wed, 14 Dec 2011 03:34:17 +0000 (11:34 +0800)]
ENGR00170225 mx5x: build failed due to ipuv3 fb platform data change

The change impact the mx5 bbg and loco build.

Signed-off-by: Xinyu Chen <xinyu.chen@freescale.com>
11 years agoENGR00170150 [MX6]Fix suspend/resume fail of debug kernel
Anson Huang [Tue, 13 Dec 2011 08:43:37 +0000 (16:43 +0800)]
ENGR00170150 [MX6]Fix suspend/resume fail of debug kernel

Need to push and pop all registers, otherwise, some registers
will be modified in the function call, add protection to avoid
this scenario.

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00170127 [IMX6Q]: incorrect kernel config for WLAN
Ryan QIAN [Tue, 13 Dec 2011 01:59:12 +0000 (09:59 +0800)]
ENGR00170127 [IMX6Q]: incorrect kernel config for WLAN

- Add CONFIG_HOSTAP as CONFIG_WIRELESS_EXT's dependency

Signed-off-by: Ryan QIAN <b32804@freescale.com>
11 years agoENGR00170141: Fix debug messages generated by CPUFREQ
Ranjani Vaidyanathan [Tue, 13 Dec 2011 00:25:22 +0000 (18:25 -0600)]
ENGR00170141: Fix debug messages generated by CPUFREQ

When dvfs-core is enabled along with "debug" in command line, CPUFREQ
printed too many debug messages.
Fix this by changing the threshold settings for DVFS-CORE and
make the transitions more conservative and infrequent.
Also  use the CPUFREQ debug flag.

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
11 years agoENGR00170119 MX6Q:ARD: Sabre-auto(ARD) SATA support
Prabhu Sundararaj [Mon, 12 Dec 2011 19:12:57 +0000 (14:12 -0500)]
ENGR00170119 MX6Q:ARD: Sabre-auto(ARD) SATA support

Add support for MX6 Sabre-auto (ARD) board

Signed-off-by: Prabhu Sundararaj <prabhu.sundararaj@freescale.com>
11 years agoENGR00170145-2 ipuv3 fb: reserve overlay fb buffer with valid resource
Xinyu Chen [Tue, 13 Dec 2011 07:30:42 +0000 (15:30 +0800)]
ENGR00170145-2 ipuv3 fb: reserve overlay fb buffer with valid resource

Reserve the overlay fb triple buffer when we have a valid
resource for start and end.
Clear the GB fb buffers when we reserve memory for it.

Signed-off-by: Xinyu Chen <xinyu.chen@freescale.com>
11 years agoENGR00170145-1 ipuv3: add resource for overlay fb buffer reservation
Xinyu Chen [Tue, 13 Dec 2011 07:29:59 +0000 (15:29 +0800)]
ENGR00170145-1 ipuv3: add resource for overlay fb buffer reservation

We have already had framebuffer reservation for BG display
by set the base/size resource in fb platform data.
But we may also have FG fb buffer reserve requirement.
So add addtional base/size resource in fb plaform data,
add a IORESROUCE_MEM resource when fb device register
to meet such requirement.

Signed-off-by: Xinyu Chen <xinyu.chen@freescale.com>
11 years agoENGR00169885-2 usb-udc: Add Doc for udc
Peter Chen [Fri, 9 Dec 2011 06:17:24 +0000 (14:17 +0800)]
ENGR00169885-2 usb-udc: Add Doc for udc

Add remote wakeup test method to udc doc

Signed-off-by: Peter Chen <peter.chen@freescale.com>
11 years agoENGR00169885-1 usb-udc: add remote wakeup support
Peter Chen [Fri, 9 Dec 2011 05:37:47 +0000 (13:37 +0800)]
ENGR00169885-1 usb-udc: add remote wakeup support

Meanwhile, fix the bug that there is no prime for GetStatus at
status phase

About how to test remote wakeup, please see:
Documentation/arm/imx/udc.txt

Signed-off-by: Peter Chen <peter.chen@freescale.com>
11 years agoENGR00161124 [dvfs, cpufreq] Use regulator API to set cpu voltage
Nancy Chen [Mon, 12 Dec 2011 17:17:11 +0000 (11:17 -0600)]
ENGR00161124 [dvfs, cpufreq] Use regulator API to set cpu voltage

Change dvfs driver and cpufreq driver to use regulator API to set cpu voltage.

Signed-off-by: Nancy Chen <Nancy.Chen@freescale.com>
11 years agoENGR00169730 MX6Q:ARD:Rename to correct function names from ARM2 to SABRE AUTO
Prabhu Sundararaj [Thu, 8 Dec 2011 15:43:22 +0000 (10:43 -0500)]
ENGR00169730 MX6Q:ARD:Rename to correct function names from ARM2 to SABRE AUTO

Renaming to correct function and variable names from ARM2 to SABRE AUTO

Signed-off-by: Prabhu Sundararaj <prabhu.sundararaj@freescale.com>
11 years agofix the building warnings
Jason Liu [Mon, 19 Dec 2011 12:39:18 +0000 (20:39 +0800)]
fix the building warnings

Signed-off-by: Jason Liu <r64343@freescale.com>
11 years agofix build issues: remove the include of smp_lock.h
Jason Liu [Fri, 16 Dec 2011 12:11:42 +0000 (20:11 +0800)]
fix build issues: remove the include of smp_lock.h

since smp_lock.h has been removed on v3.0

Signed-off-by: Jason Liu <r64343@freescale.com>
11 years agomxcfb: add BACKLIGHT_RAW type for kernel upgrade
Wayne Zou [Fri, 16 Dec 2011 02:20:48 +0000 (10:20 +0800)]
mxcfb: add BACKLIGHT_RAW type for kernel upgrade

Signed-off-by: Wayne Zou <b36644@freescale.com>
11 years agofix the smp boot error
Jason Liu [Wed, 14 Dec 2011 15:17:23 +0000 (23:17 +0800)]
fix the smp boot error

Signed-off-by: Jason Liu <jason.hui@linaro.org>
11 years agobuild fix and driver fix
Jason Liu [Wed, 14 Dec 2011 14:03:31 +0000 (22:03 +0800)]
build fix and driver fix

Signed-off-by: Jason Liu <jason.hui@linaro.org>
11 years agoRevert "ENGR00125411 eMMC: Boot Partition switch func used in MFG tool"
Jason Liu [Wed, 14 Dec 2011 11:43:07 +0000 (19:43 +0800)]
Revert "ENGR00125411 eMMC: Boot Partition switch func used in MFG tool"

This reverts commit 9f26eaa231cf2a19064c5589a3515bdd60af596a.

11 years agoRevert "ENGR00126228 eMMC: Configure boot_partition_enable"
Jason Liu [Wed, 14 Dec 2011 11:42:03 +0000 (19:42 +0800)]
Revert "ENGR00126228 eMMC: Configure boot_partition_enable"

This reverts commit b35268ca923a8785ab311170b0a84210b3c7863e.

11 years agoRevert "ENGR00133884 eMMC: improve boot_info message output"
Jason Liu [Wed, 14 Dec 2011 11:41:43 +0000 (19:41 +0800)]
Revert "ENGR00133884 eMMC: improve boot_info message output"

This reverts commit 70c73cd0dde38fd44b4c019cb7288cbea90008f3.

11 years agoRevert "ENGR00152547-03 [MX6Q]add SDHC3.0 support on uSDHC controller"
Jason Liu [Wed, 14 Dec 2011 11:41:25 +0000 (19:41 +0800)]
Revert "ENGR00152547-03 [MX6Q]add SDHC3.0 support on uSDHC controller"

This reverts commit 7da674ed743b6feb9471fc290e10fc21194f09be.

11 years agoRevert "ENGR00154217 [MX6Q/D]fix mmc suspend/resume issue."
Jason Liu [Wed, 14 Dec 2011 11:41:04 +0000 (19:41 +0800)]
Revert "ENGR00154217 [MX6Q/D]fix mmc suspend/resume issue."

This reverts commit e3f2cd88631b667173047e66d311ba0f815f8a35.

11 years agoRevert "ENGR00139261 [MX6Q]support 8 bit MMC and eMMC DDR mode"
Jason Liu [Wed, 14 Dec 2011 11:40:23 +0000 (19:40 +0800)]
Revert "ENGR00139261 [MX6Q]support 8 bit MMC and eMMC DDR mode"

This reverts commit bcc0edfb10bfd8ab2974b0cf108490be72281146.

Conflicts:

drivers/mmc/host/sdhci-esdhc-imx.c
drivers/mmc/host/sdhci.h

Signed-off-by: Jason Liu <jason.hui@linaro.org>
11 years agoRevert "ENGR00155612-3 [mx6q]add delay after cmd6 for eMMC compatibility"
Jason Liu [Wed, 14 Dec 2011 11:36:46 +0000 (19:36 +0800)]
Revert "ENGR00155612-3 [mx6q]add delay after cmd6 for eMMC compatibility"

This reverts commit dee9bc3d9c98bc45ad42960a6650dffc66140d19.

11 years agofix build error
Jason Liu [Wed, 14 Dec 2011 10:49:30 +0000 (18:49 +0800)]
fix build error

Signed-off-by: Jason Liu <jason.hui@linaro.org>
11 years agoENGR00170005: Enable DVFS-CORE at boot
Ranjani Vaidyanathan [Sun, 11 Dec 2011 06:12:37 +0000 (00:12 -0600)]
ENGR00170005: Enable DVFS-CORE at boot

DVFS-CORE should be enabled at boot by default.

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
11 years agoENGR00169891 v4l2 capture: avoid streamon with only one buffer queued
Xinyu Chen [Fri, 9 Dec 2011 06:47:57 +0000 (14:47 +0800)]
ENGR00169891 v4l2 capture: avoid streamon with only one buffer queued

If user space only queue one buffer into ready list, and
call streamon, camera csi enc ISR will crash.
Since for CSI ENC, the ping pong buffer is initilized without
checking ready buffer on streamon.
The second buffer will be wrongly in cam_data struct, and causes
DMA fill buffers into cam_data global variable.
Here just add one sanity check for ready buffer.

Signed-off-by: Xinyu Chen <xinyu.chen@freescale.com>
11 years agoENGR00162729 MX6 ESAI: To reset the codec before initing a stream playbacking
Lionel Xu [Fri, 9 Dec 2011 06:25:53 +0000 (14:25 +0800)]
ENGR00162729 MX6 ESAI: To reset the codec before initing a stream playbacking

Sometimes there is no sound after starting a stream playbacking, this problem
can be resolved by resetting external codec at the beginning of startup.

Signed-off-by: Lionel Xu <R63889@freescale.com>
11 years agoENGR00162181-4 MX6Q/GPMI : only decrease the DMA clock when GPMI is enabled.
Huang Shijie [Fri, 9 Dec 2011 07:13:56 +0000 (15:13 +0800)]
ENGR00162181-4 MX6Q/GPMI : only decrease the DMA clock when GPMI is enabled.

Do not decrease the DMA clock if GPMI is not enabled.
just for workaround.

Signed-off-by: Huang Shijie <b32955@freescale.com>
11 years agoENGR00162181-3 MX6Q/GPMI : decrease the DMA clock from 200M to 11M
Huang Shijie [Wed, 7 Dec 2011 07:18:25 +0000 (15:18 +0800)]
ENGR00162181-3 MX6Q/GPMI : decrease the DMA clock from 200M to 11M

This is just a workaroud for the DMA timeout.

Signed-off-by: Huang Shijie <b32955@freescale.com>
11 years agoENGR00162181-2 GPMI : select the MXS-DMA and MTD_CHAR
Huang Shijie [Tue, 6 Dec 2011 09:24:29 +0000 (17:24 +0800)]
ENGR00162181-2 GPMI : select the MXS-DMA and MTD_CHAR

select the MXS-DMA and MTD_CHAR macros.
The gpmi driver needs them to be enabled.

Signed-off-by: Huang Shijie <b32955@freescale.com>
11 years agoENGR00162181-1 MX6Q/GPMI : init the GPMI block
Huang Shijie [Tue, 6 Dec 2011 06:56:00 +0000 (14:56 +0800)]
ENGR00162181-1 MX6Q/GPMI : init the GPMI block

The GPMI block SHOULD be initialized when the system starts.

Signed-off-by: Huang Shijie <b32955@freescale.com>
11 years agoENGR00156855 [mx6q arm2] HDMI EDID read failed
Sandor Yu [Thu, 8 Dec 2011 06:35:13 +0000 (14:35 +0800)]
ENGR00156855 [mx6q arm2] HDMI EDID read failed

It cause by some HDMI sink device not support I2C 400kbps access.
Change EDID I2C speed from 400kbps to 100bps.

Signed-off-by: Sandor Yu <R01008@freescale.com>
11 years agoENGR00163052: CPUFREQ does not report correct frequency
Ranjani Vaidyanathan [Tue, 6 Dec 2011 18:27:18 +0000 (12:27 -0600)]
ENGR00163052: CPUFREQ does not report correct frequency

When DVFS_CORE is enabled, the following command reports incorrect frequency:
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq

Fix this by ensuring the CPUFREQ does not change the frequency
when DVFS_CORE is active. And DVFS-CORE informs CPUFREQ of the
change done to CPU frequency.

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
11 years agoENGR00169782 [MX6Q]: Add new AR6003 driver to 2.6.38, replacing staging one
Ryan QIAN [Thu, 8 Dec 2011 05:38:33 +0000 (13:38 +0800)]
ENGR00169782 [MX6Q]: Add new AR6003 driver to 2.6.38, replacing staging one

- remove the staging driver from default config of MX6

Signed-off-by: Ryan QIAN <b32804@freescale.com>
11 years agoENGR00169764 fix linux-2.6.38 kernel build error.
Liu Xiaowen [Thu, 8 Dec 2011 03:05:38 +0000 (11:05 +0800)]
ENGR00169764 fix linux-2.6.38 kernel build error.

fix linux-2.6.38 kernel build error.

Signed-off-by: Liu Xiaowen <b37945@freescale.com>
11 years agoENGR00162655 MX6 Sabre-lite SATA support
Mahesh Mahadevan [Tue, 6 Dec 2011 16:40:41 +0000 (10:40 -0600)]
ENGR00162655 MX6 Sabre-lite SATA support

Add support for MX6 Sabre-lite board

Signed-off-by: Mahesh Mahadevan <r9aadq@freescale.com>
11 years agoENGR00162797 SSI: add I2S mode for stereo playback
Gary Zhang [Wed, 7 Dec 2011 06:46:54 +0000 (14:46 +0800)]
ENGR00162797 SSI: add I2S mode for stereo playback

Former stereo playback uses network mode which does not
suppot 24bit format well.
Add I2S mode to do the same manner with codec.

Signed-off-by: Gary Zhang <b13634@freescale.com>
11 years agoENGR00169661:Remove the discharge for VBUS and DP
Tony LIU [Wed, 7 Dec 2011 09:06:22 +0000 (17:06 +0800)]
ENGR00169661:Remove the discharge for VBUS and DP

header file

- remove the definition of discharge dp
Signed-off-by: Tony LIU <junjie.liu@freescale.com>
11 years agoENGR00169661:Remove the discharge for VBUS and DP
Tony LIU [Wed, 7 Dec 2011 09:04:16 +0000 (17:04 +0800)]
ENGR00169661:Remove the discharge for VBUS and DP

MSL part

-remove the implementation of discharge DP

Signed-off-by: Tony LIU <junjie.liu@freescale.com>
11 years agoENGR00169661:Remove the discharge for VBUS and DP
Tony LIU [Wed, 7 Dec 2011 05:31:35 +0000 (13:31 +0800)]
ENGR00169661:Remove the discharge for VBUS and DP

- VBUS discharge code should be removed from suspend_irq function
- On Arik, there is a huge capacitance(C86), even discharge VBUS,
  the Drop of VBUS is still very slow
- On Arik, the B session valid threshold is not 0.8V or 1.4V, it is
  about 2V~3V, so we can receive B session valid interrupt very soon
- No DP discharge needed, but wait for SE0 is needed
Signed-off-by: Tony LIU <junjie.liu@freescale.com>
11 years agoENGR00169657 mxc_edid: no aspect vmode setting for detailed timing block
Jason Chen [Wed, 7 Dec 2011 02:22:57 +0000 (10:22 +0800)]
ENGR00169657 mxc_edid: no aspect vmode setting for detailed timing block

Add aspect ratio setting into vmode for detailed timing block.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00161867 MX6Q: change CONFIG_FORCE_MAX_ZONEORDER from 13 to 14
Wayne Zou [Wed, 7 Dec 2011 05:40:55 +0000 (13:40 +0800)]
ENGR00161867 MX6Q: change CONFIG_FORCE_MAX_ZONEORDER from 13 to 14

Fix the bug: can't allocate buffer if setting resolution to 1920*1080p

Bug detailed description:
use 1920,1080 output resolution
mxc_sdc_fb mxc_sdc_fb.0: Unable to allocate framebuffer memory

Signed-off-by: Wayne Zou <b36644@freescale.com>
11 years agoENGR00163669-3 mipi_dsi: Add blank/unblank support for mipi dsi display
Wayne Zou [Thu, 1 Dec 2011 11:56:27 +0000 (19:56 +0800)]
ENGR00163669-3 mipi_dsi: Add blank/unblank support for mipi dsi display

mipi_dsi: Add blank/unblank support for mipi dsi display

Signed-off-by: Wayne Zou <b36644@freescale.com>
11 years agoENGR00163669-2 mx6q mipi_dsi: Add support for mipi dsi display
Wayne Zou [Thu, 1 Dec 2011 11:54:06 +0000 (19:54 +0800)]
ENGR00163669-2 mx6q mipi_dsi: Add support for mipi dsi display

mx6q mipi_dsi: support for mipi dsi display

Signed-off-by: Wayne Zou <b36644@freescale.com>
11 years agoENGR00163669-1 mxc fb: remove FB_EVENT_PREMODE_CHANGE for mxc fb drivers
Wayne Zou [Thu, 1 Dec 2011 11:52:39 +0000 (19:52 +0800)]
ENGR00163669-1 mxc fb: remove FB_EVENT_PREMODE_CHANGE for mxc fb drivers

remove FB_EVENT_PREMODE_CHANGE for mxc ldb/tve drivers
add dispdrv setup interface for ldb/tve drivers
re-structure the dispdrv framework for display devices

Signed-off-by: Wayne Zou <b36644@freescale.com>
11 years agoENGR00169509-2 ipuv3 fb: change wait for vsync ioctl irq from eof to nfack
Jason Chen [Tue, 6 Dec 2011 06:01:34 +0000 (14:01 +0800)]
ENGR00169509-2 ipuv3 fb: change wait for vsync ioctl irq from eof to nfack

change wait for vsync ioctl irq from eof to nfack

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00169509-1 ipuv3 fb: change wait for vsync ioctl irq from eof to nfack
Jason Chen [Tue, 6 Dec 2011 06:01:16 +0000 (14:01 +0800)]
ENGR00169509-1 ipuv3 fb: change wait for vsync ioctl irq from eof to nfack

change wait for vsync ioctl irq from eof to nfack

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00169433 IMX/UART : fix a bug in UART RX
Huang Shijie [Mon, 5 Dec 2011 10:53:47 +0000 (18:53 +0800)]
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>
11 years agoENGR00169402 IMX/UART : do optimization for UART TX
Huang Shijie [Mon, 5 Dec 2011 07:18:11 +0000 (15:18 +0800)]
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>
11 years agoENGR00169390 merge ov5642 performance optimization into ics kernel.
Liu Xiaowen [Mon, 5 Dec 2011 05:48:35 +0000 (13:48 +0800)]
ENGR00169390 merge ov5642 performance optimization into ics kernel.

merge ov5642 performance optimization into ics kernel.

Signed-off-by: Liu Xiaowen <b37945@freescale.com>
11 years agoENGR00169387 add user space memory allocation for v4l2.
Liu Xiaowen [Mon, 5 Dec 2011 05:45:25 +0000 (13:45 +0800)]
ENGR00169387 add user space memory allocation for v4l2.

add user space memory allocation for kernel v4l2 interface in ics.

Signed-off-by: Liu Xiaowen <b37945@freescale.com>
11 years agoENGR00163699-2 MX6Q: Add OV8820 mipi camera driver
Even Xu [Fri, 2 Dec 2011 03:32:42 +0000 (11:32 +0800)]
ENGR00163699-2 MX6Q: Add OV8820 mipi camera driver

This sensor just for MIPI CSI2 4 lanes validation
1. Support 4 lanes
2. Only support 480X480 Resolution
3. Only support RAW output format

Signed-off-by: Even Xu <b21019@freescale.com>
11 years agoENGR00163699-1 MX6Q: Add more mipi csi2 supported datatype
Even Xu [Fri, 2 Dec 2011 03:31:04 +0000 (11:31 +0800)]
ENGR00163699-1 MX6Q: Add more mipi csi2 supported datatype

Add more mipi csi2 supported datatype.

Signed-off-by: Even Xu <b21019@freescale.com>
11 years agoENGR00169388-3 IMX/UART : fix the compiling error
Huang Shijie [Mon, 5 Dec 2011 05:54:37 +0000 (13:54 +0800)]
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>
11 years agoENGR00169388-2 MX6Q/UART : fill DMA fields for the platformdata of mx6q
Huang Shijie [Mon, 5 Dec 2011 05:54:19 +0000 (13:54 +0800)]
ENGR00169388-2 MX6Q/UART : fill DMA fields for the platformdata of mx6q

fill the DMA RX/TX fields for mx6q board.

Signed-off-by: Huang Shijie <b32955@freescale.com>
11 years agoENGR00169388-1 IMX/UART : add DMA fields for platform data
Huang Shijie [Mon, 5 Dec 2011 05:53:55 +0000 (13:53 +0800)]
ENGR00169388-1 IMX/UART : add DMA fields for platform data

add two fields for DMA RX and DMA TX.

Signed-off-by: Huang Shijie <b32955@freescale.com>
11 years agoENGR00163719 Upgrade to 4.6.3
Loren Huang [Fri, 2 Dec 2011 09:06:39 +0000 (17:06 +0800)]
ENGR00163719 Upgrade to 4.6.3

Signed-off-by: Loren Huang <b02279@freescale.com>
Acked-by: Lily Zhang
11 years agoENGR00163703 uart: console write routing is unsafe on SMP
Xinyu Chen [Fri, 2 Dec 2011 06:38:21 +0000 (14:38 +0800)]
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>
11 years agoENGR00163603-4 MX6Q SDMA firmware : fix a bug in the UART receiving.
Huang Shijie [Mon, 28 Nov 2011 09:50:11 +0000 (17:50 +0800)]
ENGR00163603-4 MX6Q SDMA firmware : fix a bug in the UART receiving.

The uart_to_mcu code in the ROM has bug.
The new fireware fixes it.

Signed-off-by: Huang Shijie <b32955@freescale.com>
11 years agoENGR00163603-3 MX6Q/UART : add DMA support to uart driver
Huang Shijie [Fri, 4 Nov 2011 09:15:20 +0000 (17:15 +0800)]
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>
11 years agoENGR00163603-2 IMX/SDMA : save the real count for one DMA transaction.
Huang Shijie [Wed, 23 Nov 2011 08:45:17 +0000 (16:45 +0800)]
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>
11 years agoENGR00163603-1 MX6Q/UART : enable DMA support in the MX6Q-ARM2 board
Huang Shijie [Fri, 18 Nov 2011 06:05:50 +0000 (14:05 +0800)]
ENGR00163603-1 MX6Q/UART : enable DMA support in the MX6Q-ARM2 board

add the DMA feature to the MX6Q-ARM2 board.

Signed-off-by: Huang Shijie <b32955@freescale.com>
11 years agoENGR00163275 [MX6]Fix PLL enable fail panic
Anson Huang [Thu, 1 Dec 2011 07:51:27 +0000 (15:51 +0800)]
ENGR00163275 [MX6]Fix PLL enable fail panic

The root cause is irqs come between PLL register reading
and getting system time, an interrupt handle could take
more than 2ms, which will make the time reading and register
reading unalignment, see below:

1. pll reg read, it is still not locked;
2. here comes an interrupt, and its handler could spent > 2ms;
3. time reading, found current time already > expiration time(1.2ms),
   and we treated the pll lock fail;

There are two method could fix it, one is disable interrupt
during pll lock bit and time expiration check, the other is
to add a second time read after time expiration to make sure
the pll didn't lock during the time we set. I choose the seconde
choise, since it impacts kernel less than disable interrupt;

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00163616 [mx6q]hdmi will hang in daily build image
Tony Lin [Wed, 30 Nov 2011 08:17:15 +0000 (16:17 +0800)]
ENGR00163616 [mx6q]hdmi will hang in daily build image

make sure the pointer is valid before accessing

Signed-off-by: Tony Lin <tony.lin@freescale.com>
11 years agoENGR00163615 mx6q: sabrelite RevC: change GPIO for flexcan
Dong Aisheng [Wed, 30 Nov 2011 08:23:19 +0000 (16:23 +0800)]
ENGR00163615 mx6q: sabrelite RevC: change GPIO for flexcan

GPIOs used by flexcan are changed on RevC board.
Updating the code for RevC board.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
11 years agoENGR00163510 MX6Q: AHCI: One brand 1T HDD can't pwr up properly
Richard Zhu [Wed, 30 Nov 2011 07:28:52 +0000 (15:28 +0800)]
ENGR00163510 MX6Q: AHCI: One brand 1T HDD can't pwr up properly

More time is required by one brand 1T HDD,
change the delay mechanism to fix it.

Signed-off-by: Richard Zhu <r65037@freescale.com>
11 years agoENGR00163497-3 MX6Q: Enable io_init function for camera drivers
Even Xu [Wed, 30 Nov 2011 01:36:18 +0000 (09:36 +0800)]
ENGR00163497-3 MX6Q: Enable io_init function for camera drivers

1. Enable io_init function for camera drivers.
2. Add ov5640_mipi camera driver supported resolutions
3. Fine-turn ov5640_mipi camera driver output image quality

Signed-off-by: Even Xu <b21019@freescale.com>
11 years agoENGR00163497-2 MX6Q: Add io_init for mipi sensor and camera sensor
Even Xu [Wed, 30 Nov 2011 01:33:09 +0000 (09:33 +0800)]
ENGR00163497-2 MX6Q: Add io_init for mipi sensor and camera sensor

1. Add io_init function for mipi sensor and camera sensor.
2. Remove "mipi_sensor" cmd line

Signed-off-by: Even Xu <b21019@freescale.com>
11 years agoENGR00163497-1 Add a "io_init" function to fsl camera platform data
Even Xu [Wed, 30 Nov 2011 01:28:33 +0000 (09:28 +0800)]
ENGR00163497-1 Add a "io_init" function to fsl camera platform data

Add a new member named "io_init" to fsl camera platform data, this
Function can initialize IO of camera sensor before it works.

Signed-off-by: Even Xu <b21019@freescale.com>
11 years agoENGR00162676 Fix for DVFS on MX6 Sabre-lite
Mahesh Mahadevan [Tue, 29 Nov 2011 10:27:32 +0000 (04:27 -0600)]
ENGR00162676 Fix for DVFS on MX6 Sabre-lite

Fix ensures the regulator API works correctly when adjusting
core voltages during DVFS on MX6 Sabre-lite

Signed-off-by: Mahesh Mahadevan <r9aadq@freescale.com>
11 years agoENGR00163247-3 MX6Q: MIPI sensor add prp viewfinder and prp enc support
Even Xu [Mon, 28 Nov 2011 06:28:44 +0000 (14:28 +0800)]
ENGR00163247-3 MX6Q: MIPI sensor add prp viewfinder and prp enc support

1. Enable prp viewfinder setting for DPFG
2. Enable prp viewfinder setting for DFBG
3. Enable prp enc setting
4. Add some error massage for calling mipi csi2 driver fail

Signed-off-by: Even Xu <b21019@freescale.com>
11 years agoENGR00163247-2 MX6Q: MIPI sensor add prp viewfinder and prp enc support
Even Xu [Mon, 28 Nov 2011 06:29:32 +0000 (14:29 +0800)]
ENGR00163247-2 MX6Q: MIPI sensor add prp viewfinder and prp enc support

1. Enable ipu channel mipi setting
2. Change mipi csi2 driver common API to use lock

Signed-off-by: Even Xu <b21019@freescale.com>
11 years agoENGR00163247-1 MX6Q: MIPI sensor add prp viewfinder and prp enc support
Even Xu [Mon, 28 Nov 2011 06:29:16 +0000 (14:29 +0800)]
ENGR00163247-1 MX6Q: MIPI sensor add prp viewfinder and prp enc support

1. Add mipi_en information to mipi csi2 driver info
2. Add mipi related value to ipu channel parameter

Signed-off-by: Even Xu <b21019@freescale.com>
11 years agoENGR00163128 [MX6q_ARM2]SATA Boot: reboot failed if boot from SATA
Richard Zhu [Mon, 28 Nov 2011 05:02:51 +0000 (13:02 +0800)]
ENGR00163128 [MX6q_ARM2]SATA Boot: reboot failed if boot from SATA

The root cause is that the sata power is not enabled after reboot
the system when boot from sata.
Built in the sata driver would fix this issue.
In this way, the sata power would be enabled defautly
when there is a sata device is plugged into the slot, otherwise,
the power would be disabled.
NOTE:
Pls don't plug the sata disk after the system is booted up.
System wouldn't recognized it, since there are no any power and
clocks on the sata slot.

Signed-off-by: Richard Zhu <r65037@freescale.com>
11 years agoENGR00163040 - FEC : Fix ethernet cannot work after system sleep.
Fugang Duan [Fri, 25 Nov 2011 10:27:29 +0000 (18:27 +0800)]
ENGR00163040 - FEC : Fix ethernet cannot work after system sleep.

- Descript:
  Ethernet can't work in uboot and kernel DHCP throught press
 'reset' key when send sleep command 'echo mem > /sys/power/state'
- Cause:
  FEC driver will power down phy when system sleep. If just reset the
  board, FEC driver cannot run resume function. So, need power on phy
  in uboot and linux driver.

Signed-off-by: Fugang Duan <B38611@freescale.com>
11 years agoENGR00163120 pwm backlight: work-around for lvds panel blank issue on mx6q
Jason Chen [Fri, 25 Nov 2011 05:40:42 +0000 (13:40 +0800)]
ENGR00163120 pwm backlight: work-around for lvds panel blank issue on mx6q

make all display can control pwm backlight.

NOTE!!!:

it's not a good solution, will bring side-affect of no backlight display
device can disable pwm backlight of other display device.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00163057 ARM: imx6q: add gpu suspend/resume support
Richard Zhao [Thu, 24 Nov 2011 03:34:28 +0000 (11:34 +0800)]
ENGR00163057 ARM: imx6q: add gpu suspend/resume support

GPU power down/up follow a restrict process.

Signed-off-by: Richard Zhao <richard.zhao@freescale.com>