]> git.kernelconcepts.de Git - karo-tx-linux.git/log
karo-tx-linux.git
10 years agoMerge remote-tracking branch 'remotes/kc/karo-tx6q-fsl' into work-tx-da-edt7-2014... karo-tx6q-fsl kc/karo-tx6q-fsl KARO-TX6-FSL-3.0.35-CoMTFT
Lothar Waßmann [Fri, 7 Mar 2014 09:51:57 +0000 (10:51 +0100)]
Merge remote-tracking branch 'remotes/kc/karo-tx6q-fsl' into work-tx-da-edt7-2014-03-04

10 years agokaro: tx6: disabled some debug options
Lothar Waßmann [Wed, 5 Mar 2014 10:26:20 +0000 (11:26 +0100)]
karo: tx6: disabled some debug options

10 years agoarm: mx6: mach-tx6: invert PWM polarity for ET070001DM6 (Compact-TFT)
Lothar Waßmann [Tue, 4 Mar 2014 15:12:50 +0000 (16:12 +0100)]
arm: mx6: mach-tx6: invert PWM polarity for ET070001DM6 (Compact-TFT)

10 years agoIPUv3 fb: set pixel clock polarity for ET070001DM6 (Compact-TFT)
Lothar Waßmann [Tue, 4 Mar 2014 15:09:21 +0000 (16:09 +0100)]
IPUv3 fb: set pixel clock polarity for ET070001DM6 (Compact-TFT)

10 years agodrm/vivante: Add ":00" sufix in returned bus Id
Otavio Salvador [Thu, 22 Aug 2013 19:31:29 +0000 (16:31 -0300)]
drm/vivante: Add ":00" sufix in returned bus Id

This makes the 3.0.35 compatible with a Xorg driver build for 3.5.7 or
newer kernels.

Upstream-Status: Inapropriate [embedded specific]

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
10 years agoARM: karo: update defconfigs karo-tx6-fsl-ow kc/karo-tx6-fsl-ow KARO-TX6-FSL-3.0.35_4.1
Lothar Waßmann [Thu, 7 Nov 2013 11:16:58 +0000 (12:16 +0100)]
ARM: karo: update defconfigs

10 years agoGPIOF_OUTPUT_... -> GPIOF_OUT_
Oliver Wendt [Fri, 23 Aug 2013 13:44:26 +0000 (15:44 +0200)]
GPIOF_OUTPUT_... -> GPIOF_OUT_

10 years agoARCH:ARM:MX6:KARO:TX6: Added LCD Enable & Reset GPIOS
Oliver Wendt [Fri, 23 Aug 2013 13:20:15 +0000 (15:20 +0200)]
ARCH:ARM:MX6:KARO:TX6: Added LCD Enable & Reset GPIOS

10 years agoARCH:ARM:MACH-MX6:TX6: corrected/unified notation of 'cpu_is_mx6q()'
Oliver Wendt [Fri, 23 Aug 2013 11:06:37 +0000 (13:06 +0200)]
ARCH:ARM:MACH-MX6:TX6:  corrected/unified notation of 'cpu_is_mx6q()'
corrected minor typos in if-else

10 years agoARCH:ARM: Generalization of TX6 and removal of mx6q_tx6.c it's being replaced by...
Oliver Wendt [Fri, 23 Aug 2013 07:40:18 +0000 (09:40 +0200)]
ARCH:ARM: Generalization of TX6 and removal of mx6q_tx6.c it's being replaced by mx6_tx6.c

10 years agoAdded i.MX6DL and TX6U changes by MV
Oliver Wendt [Thu, 22 Aug 2013 15:55:55 +0000 (17:55 +0200)]
Added i.MX6DL and TX6U changes by MV

10 years agokaro: rename tx6 defconfigs and adapt LOCALVERSION appropriately
Lothar Waßmann [Thu, 22 Aug 2013 13:41:36 +0000 (15:41 +0200)]
karo: rename tx6 defconfigs and adapt LOCALVERSION appropriately

10 years agoarm: mx6q: tx6q: add pad config for UART pads
Lothar Waßmann [Mon, 8 Jul 2013 09:04:37 +0000 (11:04 +0200)]
arm: mx6q: tx6q: add pad config for UART pads

10 years agoarm: mach-mx6: tx6q: remove empty fixup_mxc_board()
Lothar Waßmann [Mon, 1 Jul 2013 12:05:19 +0000 (14:05 +0200)]
arm: mach-mx6: tx6q: remove empty fixup_mxc_board()

10 years agoarm: mach-mx6: tx6q: remove useless 'enable_lcd_ldb'
Lothar Waßmann [Mon, 1 Jul 2013 12:02:00 +0000 (14:02 +0200)]
arm: mach-mx6: tx6q: remove useless 'enable_lcd_ldb'

10 years agoarm: mach-mx6: tx6q: move #include where it belongs
Lothar Waßmann [Mon, 1 Jul 2013 11:59:43 +0000 (13:59 +0200)]
arm: mach-mx6: tx6q: move #include where it belongs

10 years agoarm: mach-mx6: tx6q: remove leftover comments from sabresd
Lothar Waßmann [Mon, 1 Jul 2013 11:57:49 +0000 (13:57 +0200)]
arm: mach-mx6: tx6q: remove leftover comments from sabresd

10 years agommc: sdhci: imx: prevent error message: 'gpio_request: gpio--22 (ESDHC_WP) status...
Lothar Waßmann [Thu, 13 Jun 2013 13:45:40 +0000 (15:45 +0200)]
mmc: sdhci: imx: prevent error message: 'gpio_request: gpio--22 (ESDHC_WP) status -22'

10 years agoarm: mach-mx6: set system_rev to make Freescale's VPU library happy
Lothar Waßmann [Wed, 12 Jun 2013 13:04:45 +0000 (15:04 +0200)]
arm: mach-mx6: set system_rev to make Freescale's VPU library happy

10 years agolet JFFS2 work without OOB
Lothar Waßmann [Sat, 25 May 2013 14:38:52 +0000 (16:38 +0200)]
let JFFS2 work without OOB

10 years ago0027-karo-sound
Lothar Waßmann [Fri, 24 May 2013 12:21:59 +0000 (14:21 +0200)]
0027-karo-sound

===================================================================

10 years ago0026-karo-support
Lothar Waßmann [Fri, 24 May 2013 12:21:59 +0000 (14:21 +0200)]
0026-karo-support

===================================================================

10 years ago0025-asrc-errno
Lothar Waßmann [Fri, 24 May 2013 12:21:59 +0000 (14:21 +0200)]
0025-asrc-errno

===================================================================

10 years ago0024-asrc-prevent-ref-after-free
Lothar Waßmann [Fri, 24 May 2013 12:21:59 +0000 (14:21 +0200)]
0024-asrc-prevent-ref-after-free

===================================================================

10 years ago0023-tsc2007-double-hw-init
Lothar Waßmann [Fri, 24 May 2013 12:21:59 +0000 (14:21 +0200)]
0023-tsc2007-double-hw-init

===================================================================

10 years ago0022-macro-semicolon
Lothar Waßmann [Fri, 24 May 2013 12:21:58 +0000 (14:21 +0200)]
0022-macro-semicolon

===================================================================

10 years ago0021-usb-wakeup-lockdep
Lothar Waßmann [Fri, 24 May 2013 12:21:58 +0000 (14:21 +0200)]
0021-usb-wakeup-lockdep

===================================================================

10 years ago0020-prevent-fsl-otg-unload-inuse
Lothar Waßmann [Fri, 24 May 2013 12:21:58 +0000 (14:21 +0200)]
0020-prevent-fsl-otg-unload-inuse

===================================================================

10 years ago0019-usb-clk-disable-mismatch
Lothar Waßmann [Fri, 24 May 2013 12:21:58 +0000 (14:21 +0200)]
0019-usb-clk-disable-mismatch

===================================================================

10 years ago0018-snd-soc-sgtl5000
Lothar Waßmann [Fri, 24 May 2013 12:21:58 +0000 (14:21 +0200)]
0018-snd-soc-sgtl5000

===================================================================

10 years ago0017-edt-mutex-unlock-bugfix
Lothar Waßmann [Fri, 24 May 2013 12:21:58 +0000 (14:21 +0200)]
0017-edt-mutex-unlock-bugfix

===================================================================

10 years ago0016-thermal-notifier-bugfix
Lothar Waßmann [Fri, 24 May 2013 12:21:58 +0000 (14:21 +0200)]
0016-thermal-notifier-bugfix

===================================================================

10 years ago0015-prevent-vpu-mod-build
Lothar Waßmann [Fri, 24 May 2013 12:21:58 +0000 (14:21 +0200)]
0015-prevent-vpu-mod-build

===================================================================

10 years ago0014-fsl-otg-pm-bugfix
Lothar Waßmann [Fri, 24 May 2013 12:21:58 +0000 (14:21 +0200)]
0014-fsl-otg-pm-bugfix

===================================================================

10 years ago0013-snd-soc-imx-modules
Lothar Waßmann [Fri, 24 May 2013 12:21:57 +0000 (14:21 +0200)]
0013-snd-soc-imx-modules

===================================================================

10 years ago0012-sound-soc-imx-bugfix
Lothar Waßmann [Fri, 24 May 2013 12:21:57 +0000 (14:21 +0200)]
0012-sound-soc-imx-bugfix

===================================================================

10 years ago0010-ehci-arc-remove-bugfix
Lothar Waßmann [Fri, 24 May 2013 12:21:57 +0000 (14:21 +0200)]
0010-ehci-arc-remove-bugfix

===================================================================

10 years ago0009-ehci-arc-pm-bugfix
Lothar Waßmann [Fri, 24 May 2013 12:21:57 +0000 (14:21 +0200)]
0009-ehci-arc-pm-bugfix

===================================================================

10 years ago0008-clk-debug-bugfix
Lothar Waßmann [Fri, 24 May 2013 12:21:57 +0000 (14:21 +0200)]
0008-clk-debug-bugfix

===================================================================

10 years ago0007-gpmi-no-bi-swap
Lothar Waßmann [Fri, 24 May 2013 12:21:56 +0000 (14:21 +0200)]
0007-gpmi-no-bi-swap

===================================================================

10 years ago0006-edt-ft5x06
Lothar Waßmann [Fri, 24 May 2013 12:21:56 +0000 (14:21 +0200)]
0006-edt-ft5x06

===================================================================

10 years ago0005-sdhc-pad-speed
Lothar Waßmann [Fri, 24 May 2013 12:21:56 +0000 (14:21 +0200)]
0005-sdhc-pad-speed

===================================================================

10 years ago0004-usb-xcvr-select
Lothar Waßmann [Fri, 24 May 2013 12:21:56 +0000 (14:21 +0200)]
0004-usb-xcvr-select

===================================================================

10 years ago0003-usbotg_uninit
Lothar Waßmann [Fri, 24 May 2013 12:21:56 +0000 (14:21 +0200)]
0003-usbotg_uninit

===================================================================

10 years ago0002-usb-modconfig
Lothar Waßmann [Fri, 24 May 2013 12:21:56 +0000 (14:21 +0200)]
0002-usb-modconfig

===================================================================

10 years ago0001-usb-dr
Lothar Waßmann [Fri, 24 May 2013 12:21:53 +0000 (14:21 +0200)]
0001-usb-dr

===================================================================

10 years agoENGR00275459 mx6sl: csi/v4l: fix kernel dump when do repeated streamon/streamoff v3.0.35-fsl_4.1.0
Robby Cai [Thu, 15 Aug 2013 12:18:15 +0000 (20:18 +0800)]
ENGR00275459 mx6sl: csi/v4l: fix kernel dump when do repeated streamon/streamoff

When do stream on/off in pair repeatedly without close the v4l device,
the kernel dump happens:

Unable to handle kernel paging request at virtual address 00200200
pgd = c0004000
[00200200] *pgd=00000000
Internal error: Oops: 805 [#1] PREEMPT
Modules linked in:
CPU: 0    Not tainted  (3.0.35-06027-gbbea887-dirty #21)
PC is at camera_callback+0x15c/0x1c8
LR is at 0x200200
pc : [<c03747d0>]    lr : [<00200200>]    psr: 20000193
sp : c0b0fed0  ip : 00200200  fp : daf1102c
r10: daf11034  r9 : 00100100  r8 : daf11098
r7 : daf11100  r6 : daf11034  r5 : daf11000  r4 : c0b0e000
r3 : 00000000  r2 : 00000001  r1 : 00000001  r0 : daf114b8
Flags: nzCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
Control: 10c53c7d  Table: 8cc8c059  DAC: 00000015

...

Process swapper (pid: 0, stack limit = 0xc0b0e2e8)
Stack: (0xc0b0fed0 to 0xc0b10000)
fec0:                                     c0374674 822a4000 daf11000 c0b87eb4
fee0: 00000000 00000027 c0b73904 c0b305e0 00000001 c0374090 da2bbbe0 c0b0e000
ff00: 00000000 c00acc58 00000000 c0098058 00989680 c0b305e0 c0b0e000 00000000
ff20: 00000002 00000001 c0b0e000 00000000 00000000 c00acdf8 00000000 c0b0e000
ff40: 9e4e7881 c0b305e0 c0b0e000 c00aee44 c00aed9c c0b43c6c 00000027 c00ac634
ff60: 00000270 c004257c ffffffff f2a00100 00000027 c00417cc 20000000 00000006
ff80: f40c4000 00000000 c0b0e000 c0b6a924 c0b1876c c0b18764 80004059 412fc09a
ffa0: 00000000 00000000 c0063a40 c0b0ffc0 c004f758 c0042690 80000013 ffffffff
ffc0: c004266c c004294c c0b1013c 00000000 c10960c0 c00088ec c0008334 00000000
ffe0: 00000000 c00337d4 10c53c7d c0b10060 c00337d0 80008040 00000000 00000000
[<c03747d0>] (camera_callback+0x15c/0x1c8) from [<c0374090>] (csi_irq_handler+
0x7c/0x160)
[<c0374090>] (csi_irq_handler+0x7c/0x160) from [<c00acc58>] (
handle_irq_event_percpu+0x50/0x19c)
[<c00acc58>] (handle_irq_event_percpu+0x50/0x19c) from [<c00acdf8>] (
handle_irq_event+0x54/0x84)
[<c00acdf8>] (handle_irq_event+0x54/0x84) from [<c00aee44>] (handle_fasteoi_irq
+0xa8/0x160)
[<c00aee44>] (handle_fasteoi_irq+0xa8/0x160) from [<c00ac634>] (
generic_handle_irq+0x2c/0x40)
[<c00ac634>] (generic_handle_irq+0x2c/0x40) from [<c004257c>] (handle_IRQ
+0x30/0x84)
[<c004257c>] (handle_IRQ+0x30/0x84) from [<c00417cc>] (__irq_svc+0x4c/0xa8)
[<c00417cc>] (__irq_svc+0x4c/0xa8) from [<c0042690>] (default_idle+0x24/0x28)
[<c0042690>] (default_idle+0x24/0x28) from [<c004294c>] (cpu_idle+0x8c/0xc0)
[<c004294c>] (cpu_idle+0x8c/0xc0) from [<c00088ec>] (start_kernel+0x294/0x2e4)
[<c00088ec>] (start_kernel+0x294/0x2e4) from [<80008040>] (0x80008040)
Code: e88c4200 e595c030 e5858030 e8881800 (e58c8000)
---[ end trace 224150c26d2bd5f7 ]---

The root cause is cam->enc_counter is not re-initialized to 0 when calls
STREAMOFF ioctl, and then in DQBUF ioctl wait_event_interruptible_timeout()
sees the condition is true and access cam->done_q queue which has no strict
check and could be empty.

This patch adds the re-initialization and the sanity check.
Also, add the pointer check for memcpy because the destination may be
NULL on UERSPTR mode.

Signed-off-by: Robby Cai <R63905@freescale.com>
10 years agoENGR00275391 i.mx6d/q: disable the double linefill feature of PL310
Jason Liu [Tue, 13 Aug 2013 01:55:42 +0000 (09:55 +0800)]
ENGR00275391 i.mx6d/q: disable the double linefill feature of PL310

The L2 cache controller(PL310) version on the i.MX6D/Q is r3p1-50rel0
The L2 cache controller(PL310) version on the i.MX6DL/SOLO/SL is r3p2
But according to ARM PL310 errata: 752271
ID: 752271: Double linefill feature can cause data corruption
Fault Status: Present in: r3p0, r3p1, r3p1-50rel0. Fixed in r3p2
Workaround: The only workaround to this erratum is to disable the
double linefill feature. This is the default behavior.

[in the commit:c483abdca0011c1342bad42f16925dd5a2c7c091]
ENGR00271977-1 imx6_defconfig: enable PL310_ERRATA_769419

There is one error in the commit log, the correct PL310 version in
i.MX6DL/SOLO should be r3p2, not r3p1-50rel0.

so, PL310_ERRATA_769419, will not apply to i.MX6DL/SOLO. But since we build
one image to support both i.MX6Q and i.MX6DL/SOLO, the ideal solution is to
manage this errata in dynamic way. Someone did post the patches here:
http://lists.infradead.org/pipermail/linux-arm-kernel/2013-January/145593.html

As the discussion on the above link, Russell King, the ARM arch maintainer said:

"As I already said, there is _no_ point making the barrier conditional;
it's probably more expensive to make it conditional than just to execute
it every time.  But we still might as well optimize it away if we are
running _only_ on platforms which _do_ _not_ have that errata."

So, we will turn on the PL310_ERRATA_769419 on both i.MX6D/Q and i.MX6DL/SOLO.

Signed-off-by: Jason Liu <r64343@freescale.com>
10 years agoENGR00274493 mx6sl: csi/v4l: Fix capture incorrect data with format UYVY
Robby Cai [Thu, 8 Aug 2013 09:45:17 +0000 (17:45 +0800)]
ENGR00274493 mx6sl: csi/v4l: Fix capture incorrect data with format UYVY

There's an interim buffer which should only be used when PxP CSC is used.
Otherwise the video buffer gets incorrect data by copying the content of
interim buffer. The patch fixes this by moving the memcpy to the right place.

Signed-off-by: Robby Cai <R63905@freescale.com>
(cherry picked from commit 8e0b8ff485dd7cdeabc653f1e27c271ac923710e)

10 years agoENGR00273432 DMA: imx-sdma: Allocate 4KB iram page size for bd
Nicolin Chen [Tue, 30 Jul 2013 06:49:29 +0000 (14:49 +0800)]
ENGR00273432 DMA: imx-sdma: Allocate 4KB iram page size for bd

One bd actually needs 4KB page size. So changed the iram_alloc()
size parameter to allocate a precise iram memory for bd.

This patch also removed the extra iram pool for SDMA due to its
insufficient total size: SDMA allows around 48 channels to work
simultaneously, so it's better to allocate memory from iram pool
directly.

[There will be 3KB size waste in sdma->channel_control, which is
640B but actually using 4KB due to 4KB alignment for iram pool.]

Acked-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Nicolin Chen <b42378@freescale.com>
10 years agoENGR00273973-2 Revert "ENGR00270573-1 [MX6SL]Add support for dynamic Power Gati
Robby Cai [Thu, 8 Aug 2013 03:34:19 +0000 (11:34 +0800)]
ENGR00273973-2 Revert "ENGR00270573-1 [MX6SL]Add support for dynamic Power Gati

This reverts commit 7b60e285b7b019185389326c2d989f5e42d9736e.

With the commit 881e21c1 and 7b60e285, the system will hang when do suspend
and resume stress test continuouly while run edpc test in the background.
Revert it now and revisit it later.

Signed-off-by: Robby Cai <R63905@freescale.com>
10 years agoENGR00273973-1 Revert "ENGR00270573-2 [MX6SL]Add support for dynamic Power Gati
Robby Cai [Thu, 8 Aug 2013 03:34:02 +0000 (11:34 +0800)]
ENGR00273973-1 Revert "ENGR00270573-2 [MX6SL]Add support for dynamic Power Gati

This reverts commit 881e21c1275dcc40ccd63fb4fa46b990eeb4fb00.

With the commit 881e21c1 and 7b60e285, the system will hang when do suspend
and resume stress test continuouly while run edpc test in the background.
Revert it now and revisit it later.

Signed-off-by: Robby Cai <R63905@freescale.com>
10 years agoENGR00274382 imx6q: fix can transceiver unwork on AI RevE baseboard
Dong Aisheng [Wed, 7 Aug 2013 12:20:27 +0000 (20:20 +0800)]
ENGR00274382 imx6q: fix can transceiver unwork on AI RevE baseboard

The transceiver TJA1041A on sabreauto RevE baseboard will
fail to transit to Normal state if EN/STBY is high by default
after board power up. So we set the EN/STBY initial state to low
first then to high to guarantee the state transition successfully.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
Acked-by: Jason Liu <r64343@freescale.com>
10 years agoENGR00273044 imx6_defconfig: enable CONFIG_USB_EHCI_TT_NEWSCHED
Peter Chen [Wed, 31 Jul 2013 03:44:35 +0000 (11:44 +0800)]
ENGR00273044 imx6_defconfig: enable CONFIG_USB_EHCI_TT_NEWSCHED

CONFIG_USB_EHCI_TT_NEWSCHED introduces a new schedule method
for periodic transfer, it can cover more peridic transfers which
introduced recently years.

Meanwhile, both PC and our 3.5.7 (and coming 3.10) enable it,
and have not found any issues, this commit also fixes a bug
this CR reported.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
10 years agoENGR00272597 mx6-msl: usb: fix building warning when only build host driver
Peter Chen [Thu, 25 Jul 2013 06:28:04 +0000 (14:28 +0800)]
ENGR00272597 mx6-msl: usb: fix building warning when only build host driver

CC      arch/arm/mach-mx6/usb_h1.o
/home/b29397/work/projects/linux-2.6-imx/arch/arm/mach-mx6/usb_dr.c:
In function '_host_wakeup_enable':
/home/b29397/work/projects/linux-2.6-imx/arch/arm/mach-mx6/usb_dr.c:
522: warning: unused variable 'phy_reg'

Signed-off-by: Peter Chen <peter.chen@freescale.com>
10 years agoFix for tcrypt test_ahash_speed function.
Winston Hudson [Sun, 21 Jul 2013 22:18:38 +0000 (15:18 -0700)]
Fix for tcrypt test_ahash_speed function.

This patch adds a null pointer check and explicitly frees memory in the
tcrypt.c function test_ahash_speed.

Signed-off-by: Winston Hudson <b45308@stc-mongo.am.freescale.net>
10 years agoENGR00272135 msl-mx6: usb-h1: Fix the bug that using the wrong register
Peter Chen [Tue, 23 Jul 2013 00:22:01 +0000 (08:22 +0800)]
ENGR00272135 msl-mx6: usb-h1: Fix the bug that using the wrong register

At host 1 code, we should use UH1_XXXX. The wrong register
access causing a bug that the u-disk disconnion at host 1
can't be recognized after system resume.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
10 years agoENGR00272022 msl-mx6: usb: wait PHY clock stable explicitly
Peter Chen [Mon, 22 Jul 2013 04:05:24 +0000 (12:05 +0800)]
ENGR00272022 msl-mx6: usb: wait PHY clock stable explicitly

At mx6, if usb wakeup is not enabled, the PHY's power
will be off during the system suspend, so the dp/dm
will be unknown after the system resumes, it may wake up
controller at some boards since dp/dm's status satisfies
wake up condition. If the controller is waken up, the
PHCD will be cleared automatically.

According to IC requirement, after PHCD is cleared, we
need to wait 1ms before clear PHY's clock gate to wait
PHY's clock stable. At above condition, the PHCD is cleared
automatically, it may less than 1ms before we clear
PHY's clock gate, then, software operation to clear PHY's
clock gate will be useless. At this case, the PHY will works
abnormal, and cause the controller hang when we write some registers
(eg, portsc).

Signed-off-by: Peter Chen <peter.chen@freescale.com>
10 years agoENGR00271977-2 imx6{s}_defconfig: enable ARM_ERRATA_775420
Jason Liu [Sat, 20 Jul 2013 03:23:29 +0000 (11:23 +0800)]
ENGR00271977-2 imx6{s}_defconfig: enable ARM_ERRATA_775420

the ARM core version we are using on the i.MX6 is
r2p10, thus, we need apply this ARM errata

Signed-off-by: Jason Liu <r64343@freescale.com>
10 years agoENGR00271977-1 imx6_defconfig: enable PL310_ERRATA_769419
Jason Liu [Sat, 20 Jul 2013 03:20:58 +0000 (11:20 +0800)]
ENGR00271977-1 imx6_defconfig: enable PL310_ERRATA_769419

The PL310 version we are using on the i.MX6Q/DL is r3p1-50rel0,
thus, we need enable this errata for i.MX6DQ/DL/SOLO.

i.MX6SL has the PL310 version: r3p2, no need enable this errata.

Signed-off-by: Jason Liu <r64343@freescale.com>
10 years agoARM: 7541/1: Add ARM ERRATA 775420 workaround
Simon Horman [Fri, 28 Sep 2012 01:12:45 +0000 (02:12 +0100)]
ARM: 7541/1: Add ARM ERRATA 775420 workaround

arm: Add ARM ERRATA 775420 workaround

Workaround for the 775420 Cortex-A9 (r2p2, r2p6,r2p8,r2p10,r3p0) erratum.
In case a date cache maintenance operation aborts with MMU exception, it
might cause the processor to deadlock. This workaround puts DSB before
executing ISB if an abort may occur on cache maintenance.

Based on work by Kouei Abe and feedback from Catalin Marinas.

Signed-off-by: Kouei Abe <kouei.abe.cp@rms.renesas.com>
[ horms@verge.net.au: Changed to implementation
  suggested by catalin.marinas@arm.com ]
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
10 years agoENGR00270573-2 [MX6SL]Add support for dynamic Power Gating of the display MIX
Ranjani Vaidyanathan [Fri, 12 Jul 2013 22:24:40 +0000 (17:24 -0500)]
ENGR00270573-2 [MX6SL]Add support for dynamic Power Gating of the display MIX

The display MIX can be power gated when EPDC, PXP and LCDIF are all inactive.
This will save around 1.5mW-1.8mW of power in system IDLE mode.
Need to re-initialize the EPDC and PXP whenever the display MIX is
powered up as all the register state is lost when the display MIX is
power gated.

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
10 years agoENGR00270573-1 [MX6SL]Add support for dynamic Power Gating of the display MIX
Ranjani Vaidyanathan [Fri, 12 Jul 2013 22:24:11 +0000 (17:24 -0500)]
ENGR00270573-1 [MX6SL]Add support for dynamic Power Gating of the display MIX

The display MIX can be power gated when EPDC, PXP and LCDIF are all inactive.
This will save around 1.5mW-1.8mW of power in system IDLE mode.

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
10 years agoENGR00255073 crypto: kernel dump when do crypto module speed test in single mode
Jason Liu [Fri, 19 Jul 2013 04:43:18 +0000 (12:43 +0800)]
ENGR00255073 crypto: kernel dump when do crypto module speed test in single mode

when do the crypto module speed test in single mode, meet the following dump:

Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = 8c804000
[00000000] *pgd=1c84b831, *pte=00000000, *ppte=00000000
Internal error: Oops: 817 [#1] PREEMPT SMP
Modules linked in: tcrypt(+)
CPU: 0    Tainted: G        W    (3.0.35-02642-g3a18d11-dirty #92)
PC is at __bug+0x1c/0x28
LR is at __bug+0x18/0x28
pc : [<80045390>]    lr : [<8004538c>]    psr: 60000013
sp : 8c925dd8  ip : a09b2000  fp : 881f8018
r10: 00000000  r9 : 881f8000  r8 : 8e5a0c08
r7 : 8c866840  r6 : 00000002  r5 : 00000010  r4 : 7f08bbe0
r3 : 00000000  r2 : 80ac9190  r1 : 80000093  r0 : 00000065
Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
Control: 10c53c7d  Table: 1c80404a  DAC: 00000015
Process insmod (pid: 3994, stack limit = 0x8c9242f0)
Stack: (0x8c925dd8 to 0x8c926000)
5dc0:                                                       00000000 8004b548
5de0: 7f08bbe0 0f08bbe0 8db9a000 8c866840 8e5a0c08 803cd650 00000001 181f8038
5e00: 00000001 8db9a000 00000000 181f8038 881f8038 8b800000 00000010 1c866a70
5e20: 8db9a000 8db9a000 00000000 803cd26c 004eea5b 00000000 00000000 8db9a000
5e40: 8db9a000 80208db8 00000010 00000001 7f08b7b4 7f088b40 00000001 80aff320
5e60: 8e5330c0 80affe00 00000003 0000012c 8c866800 8c866840 00000000 00000000
5e80: 00000000 8c925e84 8c925e84 00000041 87654321 8b9c4be0 00000000 00001000
5ea0: 1c938000 87654321 8b9c4a0c 00000000 00001000 00000000 87654321 8b9bfd44
5ec0: 00000000 00001000 00000000 87654321 8b9c497e 00000000 00001000 00000000
5ee0: 7f08ba9c 7f08bbd0 7f08bbd0 000a7008 0000833c 80042284 7f08e000 8c924000
5f00: 00000000 7f08a3e0 7f08bbd0 000a7008 0000833c 00000010 7f08bbd0 000a7008
5f20: 0000833c 80042284 8c924000 7f08e06c 7f08ba90 00000000 000a7008 8003c588
5f40: 00000000 00000000 0000001f 00000020 00000017 00000014 00000012 00000000
5f60: 8c925f74 7f08ba90 00000000 000a7008 0000833c 80042284 8c924000 00000000
5f80: 00000000 800aae9c 8e4a6c80 800f307c 00000000 0000833c 7ee9adb4 7ee9aebf
5fa0: 00000080 80042100 0000833c 7ee9adb4 000a7020 0000833c 000a7008 7ee9aebf
5fc0: 0000833c 7ee9adb4 7ee9aebf 00000080 000001de 00000000 2ab5e000 00000000
5fe0: 7ee9abf0 7ee9abe0 0001a32c 2ac3e490 60000010 000a7020 aaaaaaaa aaaaaaaa
[<80045390>] (__bug+0x1c/0x28) from [<8004b548>]
 (___dma_single_cpu_to_dev+0xd4/0x108)
[<8004b548>] (___dma_single_cpu_to_dev+0xd4/0x108) from
[<803cd650>] (ahash_digest+0x3e4/0x61c)
[<803cd650>] (ahash_digest+0x3e4/0x61c) from
[<80208db8>] (crypto_ahash_op+0x40/0xf0)
[<80208db8>] (crypto_ahash_op+0x40/0xf0) from
[<7f088b40>] (test_ahash_speed.constprop.8+0x540/0x690 [tcrypt])
[<7f088b40>] (test_ahash_speed.constprop.8+0x540/0x690 [tcrypt]) from
[<7f08a3e0>] (do_test+0x1270/0x1dd0 [tcrypt])
[<7f08a3e0>] (do_test+0x1270/0x1dd0 [tcrypt]) from
[<7f08e06c>] (tcrypt_mod_init+0x6c/0xc8 [tcrypt])
[<7f08e06c>] (tcrypt_mod_init+0x6c/0xc8 [tcrypt]) from
[<8003c588>] (do_one_initcall+0x10c/0x170)
[<8003c588>] (do_one_initcall+0x10c/0x170) from
[<800aae9c>] (sys_init_module+0x74/0x19c)
[<800aae9c>] (sys_init_module+0x74/0x19c) from
[<80042100>] (ret_fast_syscall+0x0/0x30)
Code: e59f0010 e1a01003 eb131d31 e3a03000 (e5833000)

Signed-off-by: Hudson Winston <B45308@freescale.com>
Signed-off-by: Steve Cornelius <steve.cornelius@freescale.com>
Signed-off-by: Jason Liu <r64343@freescale.com>
Signed-off-by: Terry Lv <r65388@freescale.com>
10 years agoENGR00271566 usb: otg: comment otg_statemachine which we do not need
Peter Chen [Wed, 17 Jul 2013 08:05:17 +0000 (16:05 +0800)]
ENGR00271566 usb: otg: comment otg_statemachine which we do not need

We have not implemented fully OTG support, so we can't call
otg_statemachine since the state machine may incorrect at current
dual-role switch design.
At existed code, it will call otg_statemachine, in fact, it doesn't
need. Besides, it causes one kernel dump at Sabreauto board due
to it calls gpio API at spin lock, but at Sabreauto board the
USB power GPIO is expanded by MAX7310 which calls i2c read/write
and will schedule itself.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
10 years agoENGR00271718 ASoC: Fix check for symmetric rate enforcement
Nicolin Chen [Thu, 18 Jul 2013 12:05:07 +0000 (20:05 +0800)]
ENGR00271718 ASoC: Fix check for symmetric rate enforcement

This patch is copied from commit 25b7679136fd85b1e5197e36a0ca126163e89590
Just unable to cherry-pick due to different file names.

The ASoC core tries to not enforce symmetric rates when
two streams open simultaneously. It does so by checking
rtd->rate being zero. This works exactly once after booting
because it is not set to zero again when the streams close.
Fix this by setting rtd->rate when no active stream is left.

[This leads to lots of warnings about not enforcing the symmetry in some
situations as there's a race in the userspace API where we know we've
got two applications but don't know what rates they want to set.
-- broonie ]

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Nicolin Chen <b42378@freescale.com>
10 years agoENGR00268119 ASoC: WM8962: Fix tilted left-right volume setting for ADC
Nicolin Chen [Fri, 21 Jun 2013 04:09:46 +0000 (12:09 +0800)]
ENGR00268119 ASoC: WM8962: Fix tilted left-right volume setting for ADC

In probe(), we set LEFT_ADC_VOLUME but failed to set RIGHT_ADC_VOLUME due to
typo during coding, thus fix it.

Acked-by: Wang Shengjiu <b02247@freescale.com>
Signed-off-by: Nicolin Chen <b42378@freescale.com>
(cherry picked from commit ae3eb591ed9f61579a4217c6ddfd19d32e8f3cc5)

10 years agoENGR00271053-3 mx6sl: csi/v4l2: remove PAGE_ALIGN for image size calculation
Robby Cai [Mon, 15 Jul 2013 10:54:49 +0000 (18:54 +0800)]
ENGR00271053-3 mx6sl: csi/v4l2: remove PAGE_ALIGN for image size calculation

The driver should inform the upper-lever application the exact size of
the image. PAGE_ALIGN macro should be removed.

Signed-off-by: Robby Cai <R63905@freescale.com>
10 years agoENGR00271053-2 mx6sl: csi/v4l2: add strict check for crop setting
Robby Cai [Mon, 15 Jul 2013 10:50:09 +0000 (18:50 +0800)]
ENGR00271053-2 mx6sl: csi/v4l2: add strict check for crop setting

add the strict check for crop setting in S_CROP ioctl

Signed-off-by: Robby Cai <R63905@freescale.com>
10 years agoENGR00271053-1 mx6sl: csi/v4l2: add cropcap ioctl support
Robby Cai [Mon, 15 Jul 2013 10:46:28 +0000 (18:46 +0800)]
ENGR00271053-1 mx6sl: csi/v4l2: add cropcap ioctl support

- add the CROPCAP ioctrl support

Signed-off-by: Robby Cai <R63905@freescale.com>
10 years agoENGR00271609 mmc: correct the wrong calculation of the boot size
Richard Zhu [Thu, 18 Jul 2013 04:39:11 +0000 (12:39 +0800)]
ENGR00271609 mmc: correct the wrong calculation of the boot size

The original calculation of the boot size is wrong.
Fix it by the right calculation.

Signed-off-by: Richard Zhu <r65037@freescale.com>
10 years agoENGR00271577 sdma: fix the compiling warning
Huang Shijie [Thu, 18 Jul 2013 02:48:47 +0000 (10:48 +0800)]
ENGR00271577 sdma: fix the compiling warning

In the imx6sl, we meet the compiling warning shows below:
--------------------------------------------------------------------
drivers/dma/imx-sdma.c: In function Pleasesdma_iram_free:
drivers/dma/imx-sdma.c:366: warning: passing argument 2 of
Pleasegen_pool_free makes integer from pointer without a cast
include/linux/genalloc.h:58: note: expected Pleaselong unsigned integer
but argument is of type Pleaselong unsigned int *Please
drivers/dma/imx-sdma.c: In function Pleasesdma_load_script:
drivers/dma/imx-sdma.c:452: warning: passing argument 2 of
Pleasesdma_iram_malloc makes pointer from integer without a cast
drivers/dma/imx-sdma.c:352: note: expected Pleaselong unsigned
int *Please but argument is of type Pleaselong unsigned integer
drivers/dma/imx-sdma.c:475: warning: passing argument 1 of
Pleasesdma_iram_free makes pointer from integer without a cast
drivers/dma/imx-sdma.c:361: note: expected Pleaselong unsigned
int *Please but argument is of type Pleasedma_addr_t
drivers/dma/imx-sdma.c: In function Pleasesdma_request_channel:
drivers/dma/imx-sdma.c:942: warning: passing argument 2 of
Pleasesdma_iram_malloc makes pointer from integer without a cast
drivers/dma/imx-sdma.c:352: note: expected Pleaselong unsigned int
*Please but argument is of type Pleaselong unsigned integer
drivers/dma/imx-sdma.c: In function Pleasesdma_free_chan_resources:
drivers/dma/imx-sdma.c:1109: warning: passing argument 1 of
Pleasesdma_iram_free makes pointer from integer without a cast
drivers/dma/imx-sdma.c:361: note: expected Pleaselong unsigned int
*Please but argument is of type Pleasedma_addr_t
drivers/dma/imx-sdma.c: In function Pleasesdma_init:
drivers/dma/imx-sdma.c:1505: warning: passing argument 2 of
Pleasesdma_iram_malloc from incompatible pointer type
drivers/dma/imx-sdma.c:352: note: expected Pleaselong unsigned int
*Please but argument is of type Pleasedma_addr_t *Please
--------------------------------------------------------------------

this patch fixes it.

Signed-off-by: Huang Shijie <b32955@freescale.com>
10 years agoENGR00271344L Fix for ENGR00267024 introduced compilation warning
Jay Monkman [Tue, 16 Jul 2013 23:46:17 +0000 (18:46 -0500)]
ENGR00271344L Fix for ENGR00267024 introduced compilation warning

Fixed code so condition causing the warning never occurs.

Signed-off-by: Jay Monkman <jay.monkman@freescale.com>
10 years agoENGR00261419 MX6Q HDMI CEC: Unit test failed put TV to powerdown.
Sandor Yu [Wed, 10 Jul 2013 07:45:50 +0000 (15:45 +0800)]
ENGR00261419 MX6Q HDMI CEC: Unit test failed put TV to powerdown.

TV will been setting powerdown state when first run HDMI CEC unit
test on MX6Q, but failed in the secondly run and loop in print
message:
sleep for ready!
sleep for ready!
sleep for ready!
...

It is cause by cec interrupter been enabled before interrupter
polarity setting, controler will received fake interrupter,
and cec unit test will get wrong device state.

Fix the issue with move interrupter polarity setting code before
interrupter enabled.

Signed-off-by: Sandor Yu <R01008@freescale.com>
10 years agoENGR00269623 mlb150: fix compile warning
Dong Aisheng [Tue, 16 Jul 2013 08:19:54 +0000 (16:19 +0800)]
ENGR00269623 mlb150: fix compile warning

  CC [M]  drivers/gpu/drm/drm_global.o
drivers/mxc/mlb/mxc_mlb150.c: In function 'mxc_mlb150_open':
drivers/mxc/mlb/mxc_mlb150.c:1910: warning: format '%x'
expects type 'unsigned int', but argument 2 has type 'void *'
....

Signed-off-by: Dong Aisheng <b29396@freescale.com>
10 years agoENGR00270802 usb: otg: delete redundant vbus off operation
Peter Chen [Fri, 12 Jul 2013 05:45:49 +0000 (13:45 +0800)]
ENGR00270802 usb: otg: delete redundant vbus off operation

The problem locates at:

fsl_otg_start_host(fsm, 0);
if (pdata->wake_up_enable)
pdata->wake_up_enable(pdata, false);
otg_drv_vbus(fsm, 0);

fsl_otg_start_host(fsm, 0) internally calls fsl_otg_drv_vbus(), which does
the same thing as otg_drv_vbus(fsm, 0). More critically, we need disable
VBUS wakeup before close VBUS operation, otherwise unexpected VBUS
wakeup will occur. The solution is to remove the call of fsl_otg_drv_vbus()
in fsl_otg_start_host().

Signed-off-by: Peter Chen <peter.chen@freescale.com>
10 years agoENGR00269468 IPUv3 dev:Silence an annoying warning message
Liu Ying [Fri, 12 Jul 2013 07:44:18 +0000 (15:44 +0800)]
ENGR00269468 IPUv3 dev:Silence an annoying warning message

We call the function ipu_calc_stripes_sizes() to calculate
stripe settings for vdi split mode. Chances are that the
parameters output_frame_width and maximal_stripe_width for the
function satisfy the relationship 'output_frame_width <=
maximal_stripe_width' and make the function return non-zero
value. This causes the IPU device driver generates an annoying
warning message, though the default stripe settings still can
work. This patch simply silences the warning message by reducing
the print log level from error to debug.

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

10 years agoENGR00270996 net:fec: fix fec probe fail due to gpio_irq check error
Fugang Duan [Mon, 15 Jul 2013 05:41:03 +0000 (13:41 +0800)]
ENGR00270996 net:fec: fix fec probe fail due to gpio_irq check error

Board files correctly define fec gpio irq to wake up wait mode since FEC
interrupt cannot connect to GPC, otherwise board files define fec gpio irq
to -1. So, fec probe function check the gpio irq to decide whether fec use
gpio irq or fec irq.

Current irq checking logic is incorrect. Correct the gpio irq checking.

Signed-off-by: Fugang Duan <B38611@freescale.com>
10 years agoENGR00270697-2 net:fec: correct fec MDC clock source
Fugang Duan [Thu, 11 Jul 2013 11:07:50 +0000 (19:07 +0800)]
ENGR00270697-2 net:fec: correct fec MDC clock source

For imx6 serial silicon, fec MDC clock parent is ipg 66MHz.
The current clock file define the clock source is enet_pll8 50Mhz.
So, the MDC clock is more than 2.5Mhz after divider.

The phy Ar8031 work fine in current MDC clock, which shows the phy
have exceeding flexibility. Correct the parent clock source to make
MDC clock little than 2.5Mhz.

Signed-off-by: Fugang Duan <B38611@freescale.com>
10 years agoENGR00270697-1 MX6: correct fec MDC clock source
Fugang Duan [Thu, 11 Jul 2013 10:59:20 +0000 (18:59 +0800)]
ENGR00270697-1 MX6: correct fec MDC clock source

For imx6 serial silicon, fec MDC clock parent is ipg 66MHz.
The current clock file define the clock source is enet_pll8 50Mhz.
So, the MDC clock is more than 2.5Mhz after divider.

The phy Ar8031 work fine in current MDC clock, which shows the phy
have exceeding flexibility. Correct the parent clock source to make
MDC clock little than 2.5Mhz.

Signed-off-by: Fugang Duan <B38611@freescale.com>
10 years agoENGR00262502-2 [MX6Q/MX6DLS]Add commandline option to route enet irq to gpio
Ranjani Vaidyanathan [Tue, 9 Jul 2013 21:13:48 +0000 (16:13 -0500)]
ENGR00262502-2 [MX6Q/MX6DLS]Add commandline option to route enet irq to gpio

Add a command line option to route the ENET interrupts to the GPIO_1_6.
To route the ENET interrupts to GPIO_6 add "enet_gpio_6" to the
kernel command line.

Also remove the CONFIG option (MX6_ENET_IRQ_TO_GPIO).

This commit should be applied on top of following commits:
72c86f0b9a953e91bb1ed31021b71f337050bc28
808863866d2c17aeb3e70a7fcd094bd96db4b601
bae4d40849f3acdd9663f5a0857c9415ed7e6d5d

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
10 years agoENGR00262502-1 [MX6Q/MX6DLS]Add commandline option to route enet irq to gpio
Ranjani Vaidyanathan [Tue, 9 Jul 2013 21:11:31 +0000 (16:11 -0500)]
ENGR00262502-1 [MX6Q/MX6DLS]Add commandline option to route enet irq to gpio

Add a command line option to route the ENET interrupts to the GPIO_1_6.
To route the ENET interrupts to GPIO_6 add "enet_gpio_6" to the
kernel command line.

Also remove the CONFIG option (MX6_ENET_IRQ_TO_GPIO).

This commit should be applied on top of following commits:
72c86f0b9a953e91bb1ed31021b71f337050bc28
808863866d2c17aeb3e70a7fcd094bd96db4b601
bae4d40849f3acdd9663f5a0857c9415ed7e6d5d

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
10 years agoENGR00269619 mxc vout:improve vb handling for 3 field deinterlacing
Liu Ying [Thu, 11 Jul 2013 08:21:48 +0000 (16:21 +0800)]
ENGR00269619 mxc vout:improve vb handling for 3 field deinterlacing

We need 2 video buffers to get a deinterlaced frame in VDI low motion
mode or medium motion mode. When there is no enough video buffer in
the active list, no one triggers the video buffer timer, then users
may be blocked at dqueue buffer ioctrl if they are in blocking mode.
In order to fix this issue, we may peek the first available video
buffer in the queue list so that the buffer may be taken as a reference
video buffer to do deinterlacing. If there is no video buffer in the
queue list, we should make users be able to trigger the timer again
when they queue buffers to the driver.

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

10 years agoENGR00270401 ASoC: imx-wm8962: Add parameters checking for hw_params
Nicolin Chen [Wed, 10 Jul 2013 06:36:00 +0000 (14:36 +0800)]
ENGR00270401 ASoC: imx-wm8962: Add parameters checking for hw_params

WM8962 doesn't support asymmetric parameters for playback and capture,
so add hw_params check in machine driver to obviate some potential risks.

Acked-by: Wang Shengjiu <b02247@freescale.com>
Signed-off-by: Nicolin Chen <b42378@freescale.com>
(cherry picked from commit 85059ec43e34662feca2c58b3a31cf93d79d00bc)

10 years agoENGR00263553 fb: Change type uint to unsigned int in struct mxcfb_update_data
Robby Cai [Wed, 10 Jul 2013 12:46:47 +0000 (20:46 +0800)]
ENGR00263553 fb: Change type uint to unsigned int in struct mxcfb_update_data

This file could be included in user-space application while uint is not quite
standard type. This patch changed to unsigned int to avoid to include specific
header file. This is requested from mm team.

Signed-off-by: Robby Cai <R63905@freescale.com>
(cherry picked from commit 318a325b8c19d1ba7c1451797da5a161e787c64d)

10 years agoENGR00255733 MX6SL: Enable DISPLAY power gating only on TO1.2
Robby Cai [Mon, 25 Mar 2013 08:04:40 +0000 (16:04 +0800)]
ENGR00255733 MX6SL: Enable DISPLAY power gating only on TO1.2

Add chip revision checking and only enable DISPLAY power gating on TO1.2

Signed-off-by: Robby Cai <R63905@freescale.com>
10 years agoENGR00269827 mx6sl: lcdif: fix lcd timing setting
Robby Cai [Fri, 5 Jul 2013 07:38:08 +0000 (15:38 +0800)]
ENGR00269827 mx6sl: lcdif: fix lcd timing setting

The commit 0c0334779a08cca6c5a509570c944fe229837a21
corrected the v_period/v_wait_cnt, h_period/h_wait_cnt caculation in elcdif
framebuffer driver but in WVGA panel timing setting the left_margin and
upper_margin includes the length of hsyn_len and vsyn_len.
Thus the timing setting for lcd panel is not correct.
This patch fixes it.

Signed-off-by: Robby Cai <R63905@freescale.com>
(cherry picked from commit 9c04adb3c7b95459153873556ff0566d837ee325)

10 years agoENGR00261293-2 mx6sl: csi/v4l2: add hflip/vflip/rotation support
Robby Cai [Thu, 4 Jul 2013 09:31:24 +0000 (17:31 +0800)]
ENGR00261293-2 mx6sl: csi/v4l2: add hflip/vflip/rotation support

Use ePxP to do the horizontal/vertical flip and rotation support

Signed-off-by: Robby Cai <R63905@freescale.com>
(cherry picked from commit d0b9c741601b766213af1332329963f4267cd0c6)

10 years agoENGR00261293-1 mx6sl: csi/v4l2: resize function not work for v4l2 capture
Robby Cai [Mon, 1 Jul 2013 06:28:22 +0000 (14:28 +0800)]
ENGR00261293-1 mx6sl: csi/v4l2: resize function not work for v4l2 capture

- the root cause is pxp input/output buffer for csi post-processing is
  same one, some part of content is overridded.
- use S_CROP ioctl to control crop, S_FMT to control output size.

Signed-off-by: Robby Cai <R63905@freescale.com>
(cherry picked from commit 9f3685ea1cd4e56b5d89bfbaf48920ba862edb49)

10 years agoENGR00265414-8 mxc: asrc: Improve channel setting interface
Nicolin Chen [Tue, 9 Jul 2013 08:09:58 +0000 (16:09 +0800)]
ENGR00265414-8 mxc: asrc: Improve channel setting interface

ASRC driver allows users to set channel number via PROC interface,
but only passes the total number equal 10.
This's not reasonable because ASRC can use total number lower than 10
if user assure each of them is an even number.

Acked-by: Wang Shengjiu <b02247@freescale.com>
Signed-off-by: Nicolin Chen <b42378@freescale.com>
(cherry picked from commit d76d08c93550cf2de9b1eff569ad6c0928ba122c)

10 years agoENGR00265414-7 mxc: asrc: Set ASRC processing clock to recommended value
Nicolin Chen [Mon, 1 Jul 2013 08:53:37 +0000 (16:53 +0800)]
ENGR00265414-7 mxc: asrc: Set ASRC processing clock to recommended value

Set ASRC processing clock 56k/76k with the recommended value from spec.

Acked-by: Wang Shengjiu <b02247@freescale.com>
Signed-off-by: Nicolin Chen <b42378@freescale.com>
(cherry picked from commit 0519d385f5ed78f3526b72a211ccf22ac77c102e)

10 years agoENGR00265414-6 mxc: asrc: Use same part of code for 3 pair configuration
Nicolin Chen [Mon, 1 Jul 2013 07:18:38 +0000 (15:18 +0800)]
ENGR00265414-6 mxc: asrc: Use same part of code for 3 pair configuration

The pair config code was prolix. Actually the three pair could use the same
part of code with different configurations. So remove the prolix code.

Acked-by: Wang Shengjiu <b02247@freescale.com>
Signed-off-by: Nicolin Chen <b42378@freescale.com>
(cherry picked from commit feb58d669633b94f97f111d79f81cb4abf1bf2c1)

10 years agoENGR00265414-5 mxc: asrc: Remove duplicated code
Nicolin Chen [Tue, 4 Jun 2013 06:09:50 +0000 (14:09 +0800)]
ENGR00265414-5 mxc: asrc: Remove duplicated code

There's already a same section of code above the removed one.

Acked-by: Wang Shengjiu <b02247@freescale.com>
Signed-off-by: Nicolin Chen <b42378@freescale.com>
(cherry picked from commit b69af65683f17bfa701fdbb2dd3a93f53dc3503b)

10 years agoENGR00265414-4 mxc: asrc: Reconstruct req_pair()
Nicolin Chen [Mon, 13 May 2013 09:39:28 +0000 (17:39 +0800)]
ENGR00265414-4 mxc: asrc: Reconstruct req_pair()

The old req_pair() constrained that only Pair B could afford 6 channels,
while actually not. So rewrite it to be more flexible.

Acked-by: Wang Shengjiu <b02247@freescale.com>
Signed-off-by: Nicolin Chen <b42378@freescale.com>
(cherry picked from commit adbc9dbba6ee46c05c0878a8e3bab118981d62c7)

10 years agoENGR00265414-3 mxc: asrc: Add missing input clock and output clock
Nicolin Chen [Mon, 13 May 2013 09:22:07 +0000 (17:22 +0800)]
ENGR00265414-3 mxc: asrc: Add missing input clock and output clock

Added missing clock and revised the clock map for v2

Acked-by: Wang Shengjiu <b02247@freescale.com>
Signed-off-by: Nicolin Chen <b42378@freescale.com>
(cherry picked from commit c7e1b9af10cb579efaf7c4644170f6f8bee401e2)

10 years agoENGR00265414-2 mxc: asrc: Fix wrong comments for the I/O P/D offset
Nicolin Chen [Fri, 10 May 2013 03:34:37 +0000 (11:34 +0800)]
ENGR00265414-2 mxc: asrc: Fix wrong comments for the I/O P/D offset

The comments for the input/output prescaler and divider were swapped,
so reverse them.

Acked-by: Wang Shengjiu <b02247@freescale.com>
Signed-off-by: Nicolin Chen <b42378@freescale.com>
(cherry picked from commit bb6347bc5acb1d59e001063968c18d1056807cf9)

10 years agoENGR00265414-1 mxc: asrc: Fix incorrect offset for output clock P/D of Pair C
Nicolin Chen [Fri, 10 May 2013 03:29:53 +0000 (11:29 +0800)]
ENGR00265414-1 mxc: asrc: Fix incorrect offset for output clock P/D of Pair C

The offset of output clock prescaler and divider were swapped, so reverse them.

Acked-by: Wang Shengjiu <b02247@freescale.com>
Signed-off-by: Nicolin Chen <b42378@freescale.com>
(cherry picked from commit 4cda1ac12a8fdef84082212fb8fc5590c6c22fe7)

10 years agoENGR00270192 imx: pcie: toggle bit18 of grp1 fix pcie pm issue.
Richard Zhu [Tue, 9 Jul 2013 05:40:07 +0000 (13:40 +0800)]
ENGR00270192 imx: pcie: toggle bit18 of grp1 fix pcie pm issue.

Set bit18 of gpr1 before enter into supend, and clean it
after resume, can fix the following errata.
Errata ERR005723_PCIe PCIe does not support L2 Power Down.

Signed-off-by: Richard Zhu <r65037@freescale.com>
10 years agoENGR00255920-2 mxc vout:wait for 2 vsyncs when streamoff
Liu Ying [Wed, 10 Jul 2013 03:27:28 +0000 (11:27 +0800)]
ENGR00255920-2 mxc vout:wait for 2 vsyncs when streamoff

Some expiring video buffers may have been rendered to
display triple buffers for display. The relevant triple
buffers are set to be ready and depend on the display
hardware engine to switch them to be active on screen in
turn automatically. So, we need to wait for at least 2
vsyncs to make sure all of the expiring video buffers be
shown on display already.

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

10 years agoENGR00255920-1 mxc vout:Remove cancel_work_sync() when streamoff
Liu Ying [Wed, 10 Jul 2013 02:56:45 +0000 (10:56 +0800)]
ENGR00255920-1 mxc vout:Remove cancel_work_sync() when streamoff

We hope the queued works can be done before streamoff, since the
works will render expiring video buffers to display. But, the
function cancel_work_sync() cannot guarantee this. Instead, it
may cancel some queued works before they starts to work. This
patch removes the function call cancel_work_sync() when streamoff.
We rely on the function flush_workqueue() right after it to make
sure queued works be done before streamoff.

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