]> git.karo-electronics.de Git - karo-tx-linux.git/log
karo-tx-linux.git
11 years agoENGR00155627-1 [MX6]Add thermal cooling devie
Anson Huang [Thu, 1 Sep 2011 01:57:55 +0000 (09:57 +0800)]
ENGR00155627-1 [MX6]Add thermal cooling devie

1.Common code of thermal_sys has some bug,could
  not set the mode via sysfs using echo enable/disabled
  command;
2.Since the anatop thermal formula still not accurate,
  in order to help test and adjust the trip point of
  anatop thermal zone, we add the set trip point temp
  value into the sysfs interface.

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00155718 [MX6]CPUs hotplug sometimes fail
Anson Huang [Thu, 1 Sep 2011 01:55:11 +0000 (09:55 +0800)]
ENGR00155718 [MX6]CPUs hotplug sometimes fail

Sometimes when system very busy,hotplug may fail
because CPU0 has no chance to kill secondary CPUs
from hardware,secondary CPUs keep enter/exit wfi
,and we have a printk after wfi,that makes CPU0
has no chance to kill secondary CPUs,we should
remove this printk.

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00155611 [mx6q]correct eMMC DDR mode clock setting
Tony Lin [Wed, 31 Aug 2011 05:22:51 +0000 (13:22 +0800)]
ENGR00155611 [mx6q]correct eMMC DDR mode clock setting

in uSDHC controller, SDCLKFS field in SYS_CTRL register
is defined differently from eSDHC

In Single Data Rate mode(DDR_EN bit of MIXERCTRL is '0')
Only the following settings are allowed:
80h) Base clock divided by 256
40h) Base clock divided by 128
20h) Base clock divided by 64
10h) Base clock divided by 32
08h) Base clock divided by 16
04h) Base clock divided by 8
02h) Base clock divided by 4
01h) Base clock divided by 2
00h) Base clock divided by 1
While in Dual Data Rate mode(DDR_EN bit of MIXERCTRL is '1')
Only the following settings are allowed:
80h) Base clock divided by 512
40h) Base clock divided by 256
20h) Base clock divided by 128
10h) Base clock divided by 64
08h) Base clock divided by 32
04h) Base clock divided by 16
02h) Base clock divided by 8
01h) Base clock divided by 4
00h) Base clock divided by 2

so the clock setting function should be changed to fit the definition

Signed-off-by: Tony Lin <tony.lin@freescale.com>
11 years agoENGR00139280: MX6: Add CPUFREQ support
Ranjani Vaidyanathan [Fri, 29 Jul 2011 19:30:19 +0000 (14:30 -0500)]
ENGR00139280: MX6: Add CPUFREQ support

Add support for CPUFREQ for SMP system.
Added support for 1GHz, 800MHz, 400MHz and 160MHz.
Added support for scaling the voltage along with frequency.

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
11 years agoENGR00153925 MX6Q: Fix EGA touch failure on lvds2 port
Frank Li [Mon, 29 Aug 2011 05:58:48 +0000 (13:58 +0800)]
ENGR00153925 MX6Q: Fix EGA touch failure on lvds2 port

lvds2 port use i2c3 port.
Add EGA i2c register data to i2c port3.
but two touch can't work at the same time because irq conflict.

Signed-off-by: Frank Li <Frank.Li@freescale.com>
11 years agoENGR00139255 MX6Q_BSP ESAI: Add esai recording support
Lionel Xu [Mon, 29 Aug 2011 06:01:16 +0000 (14:01 +0800)]
ENGR00139255 MX6Q_BSP ESAI: Add esai recording support

Add ESAI recording to mx6q platform.
To differentiate mx6q and mx53 in codec machine layer code.

Signed-off-by: Lionel Xu <R63889@freescale.com>
11 years agoENGR00155396 usb-host: fix below build warning
Peter Chen [Fri, 26 Aug 2011 06:38:08 +0000 (14:38 +0800)]
ENGR00155396 usb-host: fix below build warning

drivers/usb/host/ehci-hub.c:109:
warning: 'ehci_adjust_port_wakeup_flags' defined but not used

Signed-off-by: Peter Chen <peter.chen@freescale.com>
11 years agoENGR00139255-2 MX6Q_BSP ESAI: Add esai recording support
Lionel Xu [Fri, 26 Aug 2011 10:26:45 +0000 (18:26 +0800)]
ENGR00139255-2 MX6Q_BSP ESAI: Add esai recording support

Add ESAI recording to mx6q platform.
Note: since there is pad conflict between esai record and fec, add a boot
argument esai_record to deal with it. This argument is required to enable
the record functionality.

Signed-off-by: Lionel Xu <R63889@freescale.com>
11 years agoENGR00139255-1 MX6Q_BSP ESAI: Add esai recording support
Lionel Xu [Fri, 26 Aug 2011 10:20:14 +0000 (18:20 +0800)]
ENGR00139255-1 MX6Q_BSP ESAI: Add esai recording support

Add ESAI recording to mx6q platform.
Note: since there is pad conflict between esai record and fec, add a boot
argument esai_record to deal with it. This argument is required to enable
the record functionality.

Signed-off-by: Lionel Xu <R63889@freescale.com>
11 years agoENGR00155151 imx6q clock: fix ldb and ipu-di clock enable register
Jason Chen [Mon, 22 Aug 2011 05:56:41 +0000 (13:56 +0800)]
ENGR00155151 imx6q clock: fix ldb and ipu-di clock enable register

ipu2-di should use CCGR3 4&5, ldb_di should use 6&7.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00154080 ipuv3: fix clear buffer function
Jason Chen [Mon, 22 Aug 2011 03:44:51 +0000 (11:44 +0800)]
ENGR00154080 ipuv3: fix clear buffer function

fix clear buffer function.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00155145 ipuv3 disp pos: restore pos setting after channel disable.
Jason Chen [Mon, 22 Aug 2011 03:42:25 +0000 (11:42 +0800)]
ENGR00155145 ipuv3 disp pos: restore pos setting after channel disable.

FG pos need be reset to 0 when channel disable, but it will lost old setting.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00153474 ipuv3 split mode: vf and enc task display with error
Jason Chen [Mon, 22 Aug 2011 03:24:23 +0000 (11:24 +0800)]
ENGR00153474 ipuv3 split mode: vf and enc task display with error

For split mode, if using vf/enc task, the display is not correct.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00155141 ipuv3 split mode: adjust split calculate function
Jason Chen [Mon, 22 Aug 2011 03:21:59 +0000 (11:21 +0800)]
ENGR00155141 ipuv3 split mode: adjust split calculate function

One issue was found in split mode: For input 1024x600, output 1360x768,
after stripe calculation, input width and input column are not right.
This patch fix this issue.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00155464 mx6q: Change default DMA size to 184M
Sammy He [Mon, 29 Aug 2011 10:28:53 +0000 (18:28 +0800)]
ENGR00155464 mx6q: Change default DMA size to 184M

Change default DMA size to 184M for mx6q. Current 96M size
isn't enough for 1080P encoder + decoder, and HDMI output.

Signed-off-by: Sammy He <r62914@freescale.com>
11 years agoENGR00155400 [ath6kl]build warning
Tony Lin [Fri, 26 Aug 2011 08:22:25 +0000 (16:22 +0800)]
ENGR00155400 [ath6kl]build warning

fix following build warning:
drivers/staging/ath6kl/os/linux/ioctl.c:4673:
warning: the frame size of 1976 bytes is larger than 1024 bytes

Signed-off-by: Tony Lin <tony.lin@freescale.com>
11 years agoENGR00155401 [MX6]Fix ipu ccm_ccgr index error
Anson Huang [Fri, 26 Aug 2011 08:56:13 +0000 (16:56 +0800)]
ENGR00155401 [MX6]Fix ipu ccm_ccgr index error

ldb_di0 and ldb_di1's gating index is wrong.

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00153895 [MX6Q]SD: SD3 clock is not off, when no SD card is in use
Tony Lin [Wed, 24 Aug 2011 05:00:56 +0000 (13:00 +0800)]
ENGR00153895 [MX6Q]SD: SD3 clock is not off, when no SD card is in use

the patch brings in clock management, not only card removal will gate off
corresponding SD clock, but also a timeout after last request will gate off
the SD clock.

Signed-off-by: Tony Lin <tony.lin@freescale.com>
11 years agoENGR00155391-2 [MX6]Clean up build warning
Anson Huang [Fri, 26 Aug 2011 02:59:02 +0000 (10:59 +0800)]
ENGR00155391-2 [MX6]Clean up build warning

Fix build warning.

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00155391-1 [MX6]Clean up build warning
Anson Huang [Fri, 26 Aug 2011 02:58:30 +0000 (10:58 +0800)]
ENGR00155391-1 [MX6]Clean up build warning

Fix build warning.

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00155355 imx6: clk: add gpu axi clock to secondary of gpu core clock
Richard Zhao [Thu, 25 Aug 2011 08:48:44 +0000 (16:48 +0800)]
ENGR00155355 imx6: clk: add gpu axi clock to secondary of gpu core clock

driver should only care about core clocks and shader clock.

Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
11 years agoENGR00155288 [mx6q]sd dat1 glitch causes system panic
Tony Lin [Wed, 24 Aug 2011 09:10:31 +0000 (17:10 +0800)]
ENGR00155288 [mx6q]sd dat1 glitch causes system panic

some sd cards insertion will cause a glitch on sd dat1
which is also a card interrupt signal. Thus the wrongly
generated card interrupt will make system panic because
there's no registered sdio interrupt handler.
the patch fixes this issue.

Signed-off-by: Tony Lin <tony.lin@freescale.com>
11 years agoENGR00155219 [MX6]Add protection for dormant mode
Anson Huang [Tue, 23 Aug 2011 02:44:52 +0000 (10:44 +0800)]
ENGR00155219 [MX6]Add protection for dormant mode

1. clean up ddr io code, using macro define;
2. we should consider if the wake up irq comes
during execution of low-power(ms6q_suspend.S)
code but before ARM enter wfi, in this scenario,
system will not enter STOP mode, thus, the resume
code will cause system fail, so we need to consider
if system can not enter STOP mode, should resume
immediately after wfi.

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00139260-3 [mx6q]add wifi driver to default config
Tony Lin [Mon, 22 Aug 2011 11:52:45 +0000 (19:52 +0800)]
ENGR00139260-3 [mx6q]add wifi driver to default config

add wifi driver to default config as a module

Signed-off-by: Tony Lin <tony.lin@freescale.com>
11 years agoENGR00139260-2 [ath6k wifi]add some delay after resuming
Tony Lin [Mon, 22 Aug 2011 11:50:19 +0000 (19:50 +0800)]
ENGR00139260-2 [ath6k wifi]add some delay after resuming

add some delay after resuming.

Signed-off-by: Tony Lin <tony.lin@freescale.com>
11 years agoENGR00139260-1 [ath6k wifi]remove drivers under drivers/net/wireless
Tony Lin [Mon, 22 Aug 2011 11:48:55 +0000 (19:48 +0800)]
ENGR00139260-1 [ath6k wifi]remove drivers under drivers/net/wireless

instead we will use ath6k driver under drivers/staging

Signed-off-by: Tony Lin <tony.lin@freescale.com>
11 years agoENGR00155179-2: Change imx_viim to mxs_viim.
Terry Lv [Mon, 22 Aug 2011 10:13:00 +0000 (18:13 +0800)]
ENGR00155179-2: Change imx_viim to mxs_viim.

This is the change for driver files.

Signed-off-by: Terry Lv <r65388@freescale.com>
11 years agoENGR00155179-1: Change imx_viim to mxs_viim
Terry Lv [Mon, 22 Aug 2011 10:11:59 +0000 (18:11 +0800)]
ENGR00155179-1: Change imx_viim to mxs_viim

This is the change for platform files.

Signed-off-by: Terry Lv <r65388@freescale.com>
11 years agoENGR00154748: MX5x: Add CPUFREQ and DVFS support to 2.6.38
Ranjani Vaidyanathan [Thu, 11 Aug 2011 17:27:05 +0000 (12:27 -0500)]
ENGR00154748: MX5x: Add CPUFREQ and DVFS support to 2.6.38

Enable CPUFREQ on 2.6.38
Remove the dependency between CPUFREQ and bus_freq driver.
Allow for CPUFREQ and DVFS-CORE to co-exist.

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
11 years agoENGR00154650-2 ESAI: add mx53 playback/record support
Gary Zhang [Thu, 11 Aug 2011 04:55:59 +0000 (12:55 +0800)]
ENGR00154650-2 ESAI: add mx53 playback/record support

add driver codes for mx53 ard.
close esai clk when not used.
add delay when power on cs42888 to avoid noise

Signed-off-by: Gary Zhang <b13634@freescale.com>
11 years agoENGR00154650-1 [MX53_ARD] ESAI: add ESAI device
Gary Zhang [Thu, 11 Aug 2011 04:27:21 +0000 (12:27 +0800)]
ENGR00154650-1 [MX53_ARD] ESAI: add ESAI device

add EASI ARCH codes.

Signed-off-by: Gary Zhang <b13634@freescale.com>
11 years agoENGR00154983 [MX6]Enet clock enable wrong
Anson Huang [Thu, 18 Aug 2011 03:22:06 +0000 (11:22 +0800)]
ENGR00154983 [MX6]Enet clock enable wrong

ENET should be CCM_CCGR1, CG5.

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00154981 ipuv3: fix clock issue
Jason Chen [Thu, 18 Aug 2011 03:09:03 +0000 (11:09 +0800)]
ENGR00154981 ipuv3: fix clock issue

ipu clock should be enable before pixel clock set parent.
because the set parent function access ipu register.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00154961 [MX6]system hang in suspend with irq
Anson Huang [Wed, 17 Aug 2011 10:49:19 +0000 (18:49 +0800)]
ENGR00154961 [MX6]system hang in suspend with irq

If the wakeup source irq pending during suspend process, system will
hang, we need to abort suspend, and resume immediately to make system
running normally.

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00153887 mx53 ard: add display support
Lily Zhang [Thu, 28 Jul 2011 10:02:01 +0000 (18:02 +0800)]
ENGR00153887 mx53 ard: add display support

- Add VGA support. The command option to use VGA as primary
  display: video=mxcfb0:dev=vga,VGA-XGA,if=GBR24 ard-vga
  For VGA, Need to disable Ethernet and short PIN 1-2 of J14
  and J16.
- Add LVDS support. The default display is LVDS0. LVDS1 needs
  further modification on ldb driver

Signed-off-by: Lily Zhang <r58066@freescale.com>
11 years agoENGR00154931 [MX6]L2 cache init wrong after resume
Anson Huang [Wed, 17 Aug 2011 06:42:11 +0000 (14:42 +0800)]
ENGR00154931 [MX6]L2 cache init wrong after resume

1.Need to add condition check after resum, or if we
didn't config L2 cache, build will fail.
2.Need to call the mxc_init_l2x0 instead of l2x0_init.

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00154922 [MX6]Disable some clocks during boot
Anson Huang [Wed, 17 Aug 2011 04:34:28 +0000 (12:34 +0800)]
ENGR00154922 [MX6]Disable some clocks during boot

To save power, we should disable as much as possible
when kernel boot up, only leaving the necessary clocks
on, devices should enable their clock in init.This is
necessary for our MX6q, or the chip will be too hot,
may damage.

After doing this change, we can save more than 150mA@5V.

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00154917 [MX6]Enable MMDC low-power mode
Anson Huang [Tue, 16 Aug 2011 01:23:01 +0000 (09:23 +0800)]
ENGR00154917 [MX6]Enable MMDC low-power mode

1. Set MMDC pad ctrl to low-power mode when dormant;
2. DRAM_RESET can't be changed due to hardware design;
3. GPR_CTLDS should be changed to lower the MMDC IO
power to 0mA, but it needs hardware change, will add it
in next hardware version after we figure out how to
change the hardware.

Current MMDC data in dormant is:
IO: 28mA@1.5V;
DDR: 35mA@1.5V.

4. Change the suspend code to run in iRAM;

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00154889-2: Add virtual iim driver
Terry Lv [Tue, 16 Aug 2011 08:06:24 +0000 (16:06 +0800)]
ENGR00154889-2: Add virtual iim driver

Add virtual iim driver.
This driver will be used by MM team.

Signed-off-by: Terry Lv <r65388@freescale.com>
11 years agoENGR00154889-1: Add virtual iim driver to imx5 and imx6 platform
Terry Lv [Tue, 16 Aug 2011 08:04:44 +0000 (16:04 +0800)]
ENGR00154889-1: Add virtual iim driver to imx5 and imx6 platform

This patch adds platform changes to system files, including:
1. Add viim platform deivce.
2. Add viim menu.

Signed-off-by: Terry Lv <r65388@freescale.com>
11 years agoENGR00154890 [MX6Q]suspend/resume restore GPIO interrupt enable status
Tony Lin [Tue, 16 Aug 2011 09:00:26 +0000 (17:00 +0800)]
ENGR00154890 [MX6Q]suspend/resume restore GPIO interrupt enable status

re-init GPIO interrupt to make GPIO interrupt workable after
suspend/resume (dormant mode)

Signed-off-by: Tony Lin <tony.lin@freescale.com>
11 years agoENGR00154727 ESAI: Resolve i2c access problem when there is no audio card
Lionel Xu [Thu, 11 Aug 2011 07:48:08 +0000 (15:48 +0800)]
ENGR00154727 ESAI: Resolve i2c access problem when there is no audio card

I2c device should not probe successfully when there is no such device
on the bus. This will make i2c access failure later.

Signed-off-by: Lionel Xu <R63889@freescale.com>
11 years agoENGR00139261 [MX6Q]support 8 bit MMC and eMMC DDR mode
Tony Lin [Thu, 11 Aug 2011 09:35:20 +0000 (17:35 +0800)]
ENGR00139261 [MX6Q]support 8 bit MMC and eMMC DDR mode

enable 8 bit MMC mode according to mmc stack.
enable eMMC DDR mode according to mmc stack, but change
sdhci a little, since sdhci does not support DDR mode so
far.

Signed-off-by: Tony Lin <tony.lin@freescale.com>
11 years agoENGR00139261-1 [esdhc]add 8 bit mode support para in platform data
Tony Lin [Thu, 11 Aug 2011 09:00:44 +0000 (17:00 +0800)]
ENGR00139261-1 [esdhc]add 8 bit mode support para in platform data

set to 1 if the port on board supports 8 bit MMC card.
else set to 0

Signed-off-by: Tony Lin <tony.lin@freescale.com>
11 years agoENGR00154704 usb-gadget: wmb is needed after dtd pointer is updated for armv7
Peter Chen [Thu, 11 Aug 2011 02:51:45 +0000 (10:51 +0800)]
ENGR00154704 usb-gadget: wmb is needed after dtd pointer is updated for armv7

At armv7 SoC, the dma_alloc_coherent returns non-cachable, but
bufferable region, so the driver needs to drain write buffer by
itself, if the controller needs to visit dma buffer immediately
after cpu writes

There is a discussion for this armv7 change:
http://marc.info/?t=127918539100004&r=1&w=2

For this issue, the next dtd pointer is invalid sometimes, the reason
is the region which is used to store dtd is dma buffer, so the data may
not be written to memory when the controller visit this data.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
11 years agoENGR00154703 usb-gadget: fix spin_lock recursion problem at SMP platform
Peter Chen [Wed, 10 Aug 2011 11:37:16 +0000 (19:37 +0800)]
ENGR00154703 usb-gadget: fix spin_lock recursion problem at SMP platform

- The spin_lock is at interrupt handler, so all code routines
using at interrupt handler are forbidden to hold spin_lock again
- Move the code which needs to be protected by spin_lock to workqueue,
and it will be called when workqueue is scheduled.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
11 years agoENGR00154705 [MX6Q]suspend/resume sometimes hang
Anson Huang [Thu, 11 Aug 2011 04:39:11 +0000 (12:39 +0800)]
ENGR00154705 [MX6Q]suspend/resume sometimes hang

1. Better to write disable and reset together into
SRC_SCR register;
2. Should wait for reset done.

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00154382 usb-udc: Set fsl arc usb driver as default usb device driver
Peter Chen [Tue, 12 Jul 2011 10:19:38 +0000 (18:19 +0800)]
ENGR00154382 usb-udc: Set fsl arc usb driver as default usb device driver

Set fsl arc usb device driver as default usb device driver

Signed-off-by: Peter Chen <peter.chen@freescale.com>
11 years agoENGR00154648 [Mx6]SMP hotplug sometimes hang
Anson Huang [Wed, 10 Aug 2011 02:20:38 +0000 (10:20 +0800)]
ENGR00154648 [Mx6]SMP hotplug sometimes hang

1. boot_secondary ioremap need unmap, or the
stress test of hot-plug and suspend/resume will
cause the virtual address space leak;

2. Disable secondary CPUs need done by CPU0, move
the SRC_SCR setting to platform_cpu_kill.

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00154647 mxc: viv-gpu: squash gpu devices
Richard Zhao [Tue, 9 Aug 2011 12:00:57 +0000 (20:00 +0800)]
ENGR00154647 mxc: viv-gpu: squash gpu devices

gpu multi-core dirver 4.4.2 needs one single gpu device.

Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
11 years agoENGR00154437 mxc edid: add cea extend revision 1 and 2 support
Jason Chen [Tue, 9 Aug 2011 06:15:20 +0000 (14:15 +0800)]
ENGR00154437 mxc edid: add cea extend revision 1 and 2 support

Add cea extend revision 1 and 2 support.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00154526 MX5x, SSI: audio capture not supported
Zeng Zhaoming [Mon, 8 Aug 2011 18:35:26 +0000 (02:35 +0800)]
ENGR00154526 MX5x, SSI: audio capture not supported

Audio capture not support in 2.6.38 kernel, it is caused
by not setting ssi correctly in clock and sync method.

Signed-off-by: Zeng Zhaoming <b32542@freescale.com>
11 years agoENGR00154525 SDMA: SDMA not works when event number bigger than 32
Zeng Zhaoming [Mon, 8 Aug 2011 18:27:05 +0000 (02:27 +0800)]
ENGR00154525 SDMA: SDMA not works when event number bigger than 32

New sdma driver in 2.6.38 kernel not map event to channel correctly by
ignore events bigger than 32.

Fix it by remove this restriction

Signed-off-by: Zeng Zhaoming <b32542@freescale.com>
11 years agoENGR00139247-6 DMA : add DMA support for imx6q
Huang Shijie [Fri, 22 Jul 2011 02:30:22 +0000 (10:30 +0800)]
ENGR00139247-6 DMA : add DMA support for imx6q

add the dma support for imx6q.

Signed-off-by: Huang Shijie <b32955@freescale.com>
11 years agoENGR00139247-5 ARM: add APBH-DMA device for imx6Q
Huang Shijie [Fri, 22 Jul 2011 02:29:23 +0000 (10:29 +0800)]
ENGR00139247-5 ARM: add APBH-DMA device for imx6Q

add the dma device for imx6q.

Signed-off-by: Huang Shijie <b32955@freescale.com>
11 years agoENGR00139247-4 ARM: add APBH-DMA arch code for imx6q
Huang Shijie [Fri, 22 Jul 2011 02:28:03 +0000 (10:28 +0800)]
ENGR00139247-4 ARM: add APBH-DMA arch code for imx6q

add the arch code for APBH-DMA.

Signed-off-by: Huang Shijie <b32955@freescale.com>
11 years agoENGR00139247-3 MTD : add GPMI driver for IMX6Q
Huang Shijie [Thu, 21 Jul 2011 09:28:47 +0000 (17:28 +0800)]
ENGR00139247-3 MTD : add GPMI driver for IMX6Q

add the gpmi driver for imx6q.

Signed-off-by: Huang Shijie <b32955@freescale.com>
11 years agoENGR00139247-2 MX6Q: add GPMI device
Huang Shijie [Thu, 21 Jul 2011 09:25:45 +0000 (17:25 +0800)]
ENGR00139247-2 MX6Q: add GPMI device

add gpmi device for sabreauto platform.

Signed-off-by: Huang Shijie <b32955@freescale.com>
11 years agoENGR00139247-1 MX6Q: add arch support for GPMI
Huang Shijie [Thu, 21 Jul 2011 09:24:29 +0000 (17:24 +0800)]
ENGR00139247-1 MX6Q: add arch support for GPMI

add the arch code for GPMI.

Signed-off-by: Huang Shijie <b32955@freescale.com>
11 years agoENGR00154431 - MXCFB_SET_WAVEFORMS ioctl broken
Danny Nold [Mon, 8 Aug 2011 02:30:35 +0000 (21:30 -0500)]
ENGR00154431 - MXCFB_SET_WAVEFORMS ioctl broken

- Fixed bug in how new waveform set is copied into EPDC driver internal
copy of waveform modes.

Signed-off-by: Danny Nold <dannynold@freescale.com>
11 years agoENGR00154429 rtc-snvs: request_irq too early
Richard Zhao [Mon, 8 Aug 2011 01:16:27 +0000 (09:16 +0800)]
ENGR00154429 rtc-snvs: request_irq too early

request_irq should be after hw init. It can avoid meaningless interrupt.

Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
11 years agoENGR00154108-3 mxc ldb: make ldb support two ipu in separate mode
Jason Chen [Thu, 4 Aug 2011 07:29:57 +0000 (15:29 +0800)]
ENGR00154108-3 mxc ldb: make ldb support two ipu in separate mode

make ldb support two ipu in separate mode

cmdline option changed:

 "ldb=spl0/1"       --      split mode on DI0/1
 "ldb=dul0/1"       --      dual mode on DI0/1
 "ldb=sin0/1"       --      single mode on LVDS0/1
 "ldb=sep0/1"   --      separate mode begin from LVDS0/1

 there are two LVDS channels(LVDS0 and LVDS1) which can transfer video
 datas, there two channels can be used as split/dual/single/separate mode.

 split mode means display data from DI0 or DI1 will send to both channels
 LVDS0+LVDS1.
 dual mode means display data from DI0 or DI1 will be duplicated on LVDS0
 and LVDS1, it said, LVDS0 and LVDS1 has the same content.
 single mode means only work for DI0/DI1->LVDS0 or DI0/DI1->LVDS1.
 separate mode means you can make DI0/DI1->LVDS0 and DI0/DI1->LVDS1 work
 at the same time.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00154108-2 imx6q MSL: make ldb support two ipu in separate mode
Jason Chen [Thu, 4 Aug 2011 05:19:12 +0000 (13:19 +0800)]
ENGR00154108-2 imx6q MSL: make ldb support two ipu in separate mode

make ldb support two ipu in separate mode.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00154108-1 fsl_devices.h: make ldb support two ipu in separate mode
Jason Chen [Thu, 4 Aug 2011 05:18:46 +0000 (13:18 +0800)]
ENGR00154108-1 fsl_devices.h: make ldb support two ipu in separate mode

make ldb support two ipu in separate mode

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00154346 UART: fix uart deadlock
Zeng Zhaoming [Thu, 4 Aug 2011 01:07:32 +0000 (09:07 +0800)]
ENGR00154346 UART: fix uart deadlock

UART hold the following locks in order of:

imx_set_termios():
--> spin_lock_irqsave(&sport->port.lock, flags)
    del_timer_sync(&sport->timer);
--> spin_lock(timer->base->lock);
     --> spin_unlock(timer->base->lock);
    spin_unlock_irqrestore(&sport->port.lock);

while when imx_timeout() may invoked in following stack:
run_timer_softirq():
--> spin_lock_irqsave(timer->base->lock, flags);
    imx_timeout();
--> spin_lock_irqsave(&sport->port.lock, flags);
    ...;
--> spin_unlock_irqrestore(&sport->port.lock, flags);
    spin_unlock_irqrestore(timer->base->lock, flags);

the above two cases hold lock with revert order, may
deadlock in SMP platform.

Signed-off-by: Zeng Zhaoming <b32542@freescale.com>
11 years agoENGR00154135 sii902x hdmi: should not init twice
Jason Chen [Tue, 2 Aug 2011 07:43:18 +0000 (15:43 +0800)]
ENGR00154135 sii902x hdmi: should not init twice

sii902x hdmi can only support one display, so second time init
function should return -EBUSY.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00154209 SNVS RTC: Update comments for errata number
Anish Trivedi [Tue, 2 Aug 2011 21:23:28 +0000 (16:23 -0500)]
ENGR00154209 SNVS RTC: Update comments for errata number

Add TKT052983 errata number to comments field. This errata
requires reading the counter value twice until both
values match to ensure integrity of read value.

Signed-off-by: Anish Trivedi <anish@freescale.com>
11 years agoENGR00154217 [MX6Q/D]fix mmc suspend/resume issue.
Tony Lin [Wed, 3 Aug 2011 07:28:14 +0000 (15:28 +0800)]
ENGR00154217 [MX6Q/D]fix mmc suspend/resume issue.

following log is the scenario.

mmc0: host doesn't support card's voltages
mmc0: error -110 during resume (card was removed?)

can't clear ocr in power off, instead we need to set
it to the highest bit of ocr_avail.

Signed-off-by: Tony Lin <tony.lin@freescale.com>
11 years agoENGR00154132 ipuv3 fb: add fb unblank event after set var
Jason Chen [Tue, 2 Aug 2011 07:27:59 +0000 (15:27 +0800)]
ENGR00154132 ipuv3 fb: add fb unblank event after set var

1. some display dev need unblank event to power up.
2. add EOF to disp dev string to avoid overflow error.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00154211 [MX6]Add workaround for wdog errata
Anson Huang [Wed, 3 Aug 2011 01:47:32 +0000 (09:47 +0800)]
ENGR00154211 [MX6]Add workaround for wdog errata

Errata number:TKT039676

WDOG sw reset is generated by writing to its
control register. WDOG's reset is activated by
ipg_clk_s, and is de-activated (later) by a
synchronized CKIL (32KHz clock). On the other
hand SRC samples the WDOG reset with an
unsynchronized CKIL clock. If the write to WDOG
control register happens between the edges of
unsynchronized and synchronized CKIL clocks SRC
will miss the wdog reset pulse.

Workaround: write wdog control register twice.

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00154056-3 [MX6]Enable dormant mode
Anson Huang [Tue, 2 Aug 2011 10:07:39 +0000 (18:07 +0800)]
ENGR00154056-3 [MX6]Enable dormant mode

Better to save all the register that would be
used in suspend function.

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00154056-2 [MX6]Enable dormant mode in suspend
Anson Huang [Tue, 2 Aug 2011 09:24:15 +0000 (17:24 +0800)]
ENGR00154056-2 [MX6]Enable dormant mode in suspend

1. Enable dormant mode in suspend, which means arm
core will be powered off when enter wfi, the latest
command for stop mode and dormant mode are as below:

echo standby > /sys/power/state
-> stop mode with arm core power on
echo mem > /sys/power/state
-> stop mode with arm core power off

2. Remove all iram related code in suspend.

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00154056-1 [MX6]Enable dormant mode
Anson Huang [Tue, 2 Aug 2011 09:22:56 +0000 (17:22 +0800)]
ENGR00154056-1 [MX6]Enable dormant mode

Enable dormant mode on MX6, need to re-init gic and l2 cache,
so we must remove the gic init and l2 cache init routine's
__INIT section.

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00154051 mx6q clk: set default ipu di clock parent to pll5
Jason Chen [Tue, 2 Aug 2011 02:32:07 +0000 (10:32 +0800)]
ENGR00154051 mx6q clk: set default ipu di clock parent to pll5

set default ipu di clock parent to pll5.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00153856 [mx6q]platform data is not correctly initialized
Tony Lin [Mon, 1 Aug 2011 05:25:18 +0000 (13:25 +0800)]
ENGR00153856 [mx6q]platform data is not correctly initialized

wakeup_pdata is initialized after device register, thus the field can't be
initialized correctively. change to the correct sequence.

Signed-off-by: Tony Lin <tony.lin@freescale.com>
11 years agoENGR00153830-2 vpu: Add VPU_IOC_REQ_VSHARE_MEM ioctl for shared memory
Sammy He [Thu, 28 Jul 2011 11:50:31 +0000 (19:50 +0800)]
ENGR00153830-2 vpu: Add VPU_IOC_REQ_VSHARE_MEM ioctl for shared memory

Add vmalloced memory for multi-instances shared memory, vpu lib
will call mmap for accessing the memory.

VPU_IOC_GET_SHARE_MEM ioctl is still reserved for some time since
vpu lib still uses it for mx5x now. Will remove it after mx5x changes
to this new added memory later.

Signed-off-by: Sammy He <r62914@freescale.com>
11 years agoENGR00153830-1 vpu: Add new VPU_IOC_REQ_VSHARE_MEM ioctl in mxc_vpu.h
Sammy He [Thu, 28 Jul 2011 11:48:53 +0000 (19:48 +0800)]
ENGR00153830-1 vpu: Add new VPU_IOC_REQ_VSHARE_MEM ioctl in mxc_vpu.h

Add new VPU_IOC_REQ_VSHARE_MEM ioctl to request vmalloced share memory.

Signed-off-by: Sammy He <r62914@freescale.com>
11 years agoENGR00153913: MX6x - Fix bug in set_parent and set_rate functions in clock code
Ranjani Vaidyanathan [Thu, 28 Jul 2011 17:39:03 +0000 (12:39 -0500)]
ENGR00153913: MX6x - Fix bug in set_parent and set_rate functions in clock code

Some set_parent() functions in clock code were using incorrect mask
resulting in wrong parent being set for the clocks.
Fix by using the correct mask.
The pre and post dividers for certain clocks were set incorrectly,
fix this by using the correct number of bits for the dividers.
Fix the set_rate function for ipu1_di1_clk.

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
11 years agoENGR00153785 ipuv3: use ipu internal divider for external di clock
Jason Chen [Wed, 27 Jul 2011 08:16:46 +0000 (16:16 +0800)]
ENGR00153785 ipuv3: use ipu internal divider for external di clock

on imx6q, pll5 can only provide rate >=650M, and ipu_di_clk only has max
divider 8, so need use ipu internal clock divider for some low resolution
case. For example 640x480p60 need 25.2MHz pixel clock.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00153825 imx6: clk: fix gpu clock issues
Richard Zhao [Thu, 28 Jul 2011 01:02:12 +0000 (09:02 +0800)]
ENGR00153825 imx6: clk: fix gpu clock issues

- fix issue that set_parent wrongly clear the whole register.
- set_rate can accept none exact rates.

Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
11 years agoENGR00153793-2 ESAI: add function get_rate to clk pll3_pfd_508M
Lionel Xu [Wed, 27 Jul 2011 09:23:58 +0000 (17:23 +0800)]
ENGR00153793-2 ESAI: add function get_rate to clk pll3_pfd_508M

Add function get_rate to clk pll3_pfd_508M.

Signed-off-by: Lionel Xu <R63889@freescale.com>
11 years agoENGR00153793-1 ESAI: Resolve esai codec i2c suspend/resume problem
Lionel Xu [Wed, 27 Jul 2011 08:04:53 +0000 (16:04 +0800)]
ENGR00153793-1 ESAI: Resolve esai codec i2c suspend/resume problem

1)Resolve esai codec i2c suspend/resume problem;
2)Remove imx pcm operating function which already defined in imx-ssi.c

Signed-off-by: Lionel Xu <R63889@freescale.com>
11 years agoENGR00153740-7 imx6: add asrc in defconfig
Dong Aisheng [Wed, 27 Jul 2011 05:21:08 +0000 (13:21 +0800)]
ENGR00153740-7 imx6: add asrc in defconfig

Add asrc support in defconfig.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
11 years agoENGR00153740-6 imx-cs42888: remove asrc code
Dong Aisheng [Wed, 27 Jul 2011 03:42:29 +0000 (11:42 +0800)]
ENGR00153740-6 imx-cs42888: remove asrc code

The asrc code in imx-cs42888 driver will cause building fail.
Further more, the current asrc driver does not support p2p mode,
so remove it first.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
11 years agoENGR00153740-5 mx6: add asrc support
Dong Aisheng [Tue, 26 Jul 2011 13:54:49 +0000 (21:54 +0800)]
ENGR00153740-5 mx6: add asrc support

Add asrc support for mx6.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
11 years agoENGR00153740-4 imx-sdma: use mcu_2_shp script for ASRC
Dong Aisheng [Wed, 27 Jul 2011 02:20:49 +0000 (10:20 +0800)]
ENGR00153740-4 imx-sdma: use mcu_2_shp script for ASRC

The asrc_2_mcu script is not supported well by this driver.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
11 years agoENGR00153740-3 mxc: asrc device common code
Dong Aisheng [Wed, 27 Jul 2011 02:17:06 +0000 (10:17 +0800)]
ENGR00153740-3 mxc: asrc device common code

Used for add asrc device.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
11 years agoENGR00153740-2 mxc: add asrc plat data
Dong Aisheng [Wed, 27 Jul 2011 03:29:39 +0000 (11:29 +0800)]
ENGR00153740-2 mxc: add asrc plat data

Used for asrc driver.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
11 years agoENGR00153740-1 asrc: update to use new SDMA API
Dong Aisheng [Wed, 27 Jul 2011 03:27:55 +0000 (11:27 +0800)]
ENGR00153740-1 asrc: update to use new SDMA API

Only support one pair of buffer for rx and tx per time.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
11 years agoENGR00153762 imx6q MSL: increase DMA zone size to max 184
Jason Chen [Wed, 27 Jul 2011 06:17:40 +0000 (14:17 +0800)]
ENGR00153762 imx6q MSL: increase DMA zone size to max 184

when we need enable 1080p 32bpp display and play a 1080p h264 clip,
it may meet memory allocation fail issue. This patch fix this issue.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00153761 imx6q ipuv3: improve display quality
Jason Chen [Wed, 27 Jul 2011 06:13:58 +0000 (14:13 +0800)]
ENGR00153761 imx6q ipuv3: improve display quality

to avoid ipu starvation issue.
1. enable IPU AXI cache in uboot
2. set Qos to 7 for IPU to highest priority in uboot.
3. set AXI id to 0 for high priority IDMA channel in linux.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00153760 imx6q iomux: change display output strength to 120ohm
Jason Chen [Wed, 27 Jul 2011 06:09:26 +0000 (14:09 +0800)]
ENGR00153760 imx6q iomux: change display output strength to 120ohm

To fix DVI output signal stable issue.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00153757 mxc_hdmi: fix build error of mxc_hdmi.c
Jason Chen [Wed, 27 Jul 2011 06:06:18 +0000 (14:06 +0800)]
ENGR00153757 mxc_hdmi: fix build error of mxc_hdmi.c

Fix build error of below:
`mxc_hdmi_remove' referenced in section
`.data' of drivers/built-in.o: defined in discarded section
`.exit.text' of drivers/built-in.o`

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00153670-4 - MXC HDMI: Add support for basic HDMI operation
Danny Nold [Tue, 26 Jul 2011 03:01:15 +0000 (22:01 -0500)]
ENGR00153670-4 - MXC HDMI: Add support for basic HDMI operation

- Add MXC HDMI to kconfig and makefile
- Add initial mxc_hdmi.c file to provide basic HDMI functionality:
- Basic HDMI output functional
- Support for reading EDID via I2C and registering
video modes with IPU
- Support for output from IPU1 DI0
- These features not yet added:
- Hotplug support
- Dual display with LVDS
- Power management
- Support for FB notifications
- Changes to IPU to allow HDMI to use source clocks that it needs

Signed-off-by: Danny Nold <dannynold@freescale.com>
11 years agoENGR00153670-3 - imx6_defconfig: Add HDMI device
Danny Nold [Tue, 26 Jul 2011 02:54:16 +0000 (21:54 -0500)]
ENGR00153670-3 - imx6_defconfig: Add HDMI device

- Added HDMI device to imx6 config

Signed-off-by: Danny Nold <dannynold@freescale.com>
11 years agoENGR00153670-2 - mach-mx6: Add support for MXC HDMI
Danny Nold [Tue, 26 Jul 2011 02:39:50 +0000 (21:39 -0500)]
ENGR00153670-2 - mach-mx6: Add support for MXC HDMI

- Add MXC HDMI initialization structures and calls to SABRE board file.
- Add HDMI clock definitions and functions for PLL5 (main video clock
used by HDMI).

Signed-off-by: Danny Nold <dannynold@freescale.com>
11 years agoENGR00153670-1 - plat-mxc: Add support for MXC HDMI
Danny Nold [Tue, 26 Jul 2011 02:35:22 +0000 (21:35 -0500)]
ENGR00153670-1 - plat-mxc: Add support for MXC HDMI

- Created MXC HDMI platform initialization file - platform-mxc_hdmi.c
- Added MXC HDMI to kconfig and makefile
- Added main MXC HDMI register definition file - mxc_hdmi.h

Signed-off-by: Danny Nold <dannynold@freescale.com>
11 years agoENGR00153680 vpu: Fix the issue of not increasing open_count
Sammy He [Tue, 26 Jul 2011 09:08:12 +0000 (17:08 +0800)]
ENGR00153680 vpu: Fix the issue of not increasing open_count

Fix the issue of missing to increase open_count when vpu_open.
This is due to the patch of removing mx31 and mx37 code.

Signed-off-by: Sammy He <r62914@freescale.com>
11 years agoENGR00153651-2 ESAI: Add esai/cs42888 audio codec support on mx6q platform
Lionel Xu [Mon, 25 Jul 2011 13:58:43 +0000 (21:58 +0800)]
ENGR00153651-2 ESAI: Add esai/cs42888 audio codec support on mx6q platform

Add ESAI and related audio codec cs42888 support on mx6q platform.

Signed-off-by: Lionel Xu <R63889@freescale.com>
11 years agoENGR00153651-1 ESAI: Prepare MSL support for esai/cs42888 audio codec driver
Lionel Xu [Mon, 25 Jul 2011 13:44:45 +0000 (21:44 +0800)]
ENGR00153651-1 ESAI: Prepare MSL support for esai/cs42888 audio codec driver

1) Add machine specific code for esai/cs42888 driver support, including pad
    control, clk setting, i2c setting, etc.
2) Enable audio support in default config.

Signed-off-by: Lionel Xu <R63889@freescale.com>