]> git.karo-electronics.de Git - karo-tx-linux.git/log
karo-tx-linux.git
11 years agoENGR00180103-1 V4L2: use copy_from/to_user() for user space pointer
Wayne Zou [Sat, 28 Apr 2012 09:13:25 +0000 (17:13 +0800)]
ENGR00180103-1 V4L2: use copy_from/to_user() for user space pointer

V4L2: use copy_from/to_user() for user space pointer

Signed-off-by: Wayne Zou <b36644@freescale.com>
11 years agoENGR00181194 IPUv3:Correct pixel clock definition and register
Liu Ying [Sat, 28 Apr 2012 05:24:45 +0000 (13:24 +0800)]
ENGR00181194 IPUv3:Correct pixel clock definition and register

MX6Q has 2 IPUs, each IPU has 2 DIs, so there are totally 4
different pixel clocks. This patch adds maximal pixel clock
number from 2 to 4. Also, the patch fixes potential build
warning caused by the overflow on ipu_lookups structure in case
MXC_IPU_MAX_NUM is 1.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
11 years agoENGR00180943-14: Update internal definition of hardware link table list
Steve Cornelius [Fri, 20 Apr 2012 00:26:40 +0000 (17:26 -0700)]
ENGR00180943-14: Update internal definition of hardware link table list

Update internal definition of hardware link table list such that it can
work properly on both big and little endian 32-bit configurations. This
required pointer resizing, reserved-field initialization, and the
combination of both buffer-pool ID and offset fields into a common
32-bit value that can burst-read correctly.

Signed-off-by: Steve Cornelius <steve.cornelius@freescale.com>
11 years agoENGR00180943-13: Extend for ARM/iMX6 compatibility
Steve Cornelius [Wed, 18 Apr 2012 22:09:09 +0000 (15:09 -0700)]
ENGR00180943-13: Extend for ARM/iMX6 compatibility

Extend for ARM/iMX6 compatibility, including:
- Cache coherence for all streaming buffer mappings
- Initialization from non-OF-dependent lower-level drivers

Signed-off-by: Steve Cornelius <steve.cornelius@freescale.com>
11 years agoENGR00180943-12: Extend to include support for ARM targets on iMX6 platforms
Steve Cornelius [Wed, 18 Apr 2012 21:38:50 +0000 (14:38 -0700)]
ENGR00180943-12: Extend to include support for ARM targets on iMX6 platforms

Extend to include support for ARM targets on iMX6 platforms, including:
- platform property detection when OF device properties unavailable
- ring entry direction clarification for DMA API access
- cache coherence for rings

Signed-off-by: Steve Cornelius <steve.cornelius@freescale.com>
11 years agoENGR00180943-11: Add non-device-tree platform property detection
Steve Cornelius [Wed, 18 Apr 2012 21:23:34 +0000 (14:23 -0700)]
ENGR00180943-11: Add non-device-tree platform property detection

Add non-device-tree platform property detection for driver startup and
initialization for iMX6 family, including clock control, job ring
detection and initialization, and interrupt mapping.

Signed-off-by: Steve Cornelius <steve.cornelius@freescale.com>
11 years agoENGR00180943-10: Add register I/O primitives for ARM compatibility
Steve Cornelius [Wed, 18 Apr 2012 20:59:05 +0000 (13:59 -0700)]
ENGR00180943-10: Add register I/O primitives for ARM compatibility

Add register I/O primitives for ARM compatibility.

Signed-off-by: Steve Cornelius <steve.cornelius@freescale.com>
11 years agoENGR00180943-9: Include referenced for clock control
Steve Cornelius [Wed, 18 Apr 2012 20:50:46 +0000 (13:50 -0700)]
ENGR00180943-9: Include referenced for clock control

Include referenced for clock control,
and define "empty" IRQ function that's not provided on ARM platforms.

Signed-off-by: Steve Cornelius <steve.cornelius@freescale.com>
11 years agoENGR00180943-8: Differentiate inclusions for OF versus non-OF platforms
Steve Cornelius [Wed, 18 Apr 2012 20:46:54 +0000 (13:46 -0700)]
ENGR00180943-8: Differentiate inclusions for OF versus non-OF platforms

Differentiate inclusions for OF versus non-OF platforms,
and include clock control subsystems for ARM targets.

Signed-off-by: Steve Cornelius <steve.cornelius@freescale.com>
11 years agoENGR00180943-7: Add CAAM device instantiation to iMX platform.
Steve Cornelius [Wed, 18 Apr 2012 20:24:24 +0000 (13:24 -0700)]
ENGR00180943-7: Add CAAM device instantiation to iMX platform.

Add CAAM device instantiation to iMX platform.

Signed-off-by: Steve Cornelius <steve.cornelius@freescale.com>
11 years agoENGR00180943-6: Place CAAM Job Ring resources in their own struct
Steve Cornelius [Wed, 18 Apr 2012 18:59:37 +0000 (11:59 -0700)]
ENGR00180943-6: Place CAAM Job Ring resources in their own struct

Place CAAM Job Ring resources in their own struct,
and treat as array to the limit of instantiable rings.

Signed-off-by: Steve Cornelius <steve.cornelius@freescale.com>
11 years agoENGR00180943-5: Add CAAM instantiation data to i.MX6 common platform device set
Steve Cornelius [Fri, 23 Mar 2012 17:00:00 +0000 (10:00 -0700)]
ENGR00180943-5: Add CAAM instantiation data to i.MX6 common platform device set

Add CAAM instantiation data to i.MX6 common platform device set.

Signed-off-by: Steve Cornelius <steve.cornelius@freescale.com>
11 years agoENGR00180943-4: Add CAAM platform configuration to platform build
Steve Cornelius [Fri, 23 Mar 2012 16:55:02 +0000 (09:55 -0700)]
ENGR00180943-4: Add CAAM platform configuration to platform build

Add CAAM platform configuration to platform build.

Signed-off-by: Steve Cornelius <steve.cornelius@freescale.com>
11 years agoENGR00180943-3: Add CAAM instantiation to i.MX6Q ARM2 board platform
Steve Cornelius [Fri, 23 Mar 2012 16:32:01 +0000 (09:32 -0700)]
ENGR00180943-3: Add CAAM instantiation to i.MX6Q ARM2 board platform

Add CAAM instantiation to i.MX6Q ARM2 board platform configuration.
No other device-on-board configurations added at this time.

Signed-off-by: Steve Cornelius <steve.cornelius@freescale.com>
11 years agoENGR00180943-2: Enable MXC devices to select CAAM driver in Kconfig
Steve Cornelius [Tue, 13 Mar 2012 21:51:17 +0000 (14:51 -0700)]
ENGR00180943-2: Enable MXC devices to select CAAM driver in Kconfig

Enable MXC devices to select CAAM driver in Kconfig.

Signed-off-by: Steve Cornelius <steve.cornelius@freescale.com>
11 years agoENGR00180943-1: Backport in current 3.2 code tested on Power for ARM
Steve Cornelius [Tue, 13 Mar 2012 18:57:50 +0000 (11:57 -0700)]
ENGR00180943-1: Backport in current 3.2 code tested on Power for ARM

Backport in current 3.2 code tested on Power for ARM redevelopment.

Signed-off-by: Steve Cornelius <steve.cornelius@freescale.com>
Signed-off-by: Terry Lv <r65388@freescale.com>
11 years agoENGR00181191 MX6: set ipu2_clk parent from pll2_pfd_400M
Wayne Zou [Fri, 27 Apr 2012 06:31:55 +0000 (14:31 +0800)]
ENGR00181191 MX6: set ipu2_clk parent from pll2_pfd_400M

On mx6dl, set ipu2_clk's parent from pll2_pfd_400M.
On mx6q, ipu2_clk's parent from mmdc_ch0_axi_clk, and it is 264MHz by default.

Signed-off-by: Wayne Zou <b36644@freescale.com>
11 years agoENGR00181094-2: MAX8903: Add battery charger driver
Rong Dian [Fri, 27 Apr 2012 09:18:54 +0000 (17:18 +0800)]
ENGR00181094-2: MAX8903: Add battery charger driver

Add battery charger driver on SABRESD_rev.B board.

Signed-off-by: Rong Dian <b38775@freescale.com>
11 years agoENGR00181094-1: MX6 SABRESD: Add pin config for MAX8903
Rong Dian [Fri, 27 Apr 2012 07:48:59 +0000 (15:48 +0800)]
ENGR00181094-1: MX6 SABRESD: Add pin config for MAX8903

Configure PINMUX for max8903 driver on SABRESD_rev.B board.

Signed-off-by: Rong Dian <b38775@freescale.com>
11 years agoENGR00180621-2: mx6dl_sabresd: Add pinmux setting for elan driver
Robby Cai [Tue, 24 Apr 2012 03:39:29 +0000 (11:39 +0800)]
ENGR00180621-2: mx6dl_sabresd: Add pinmux setting for elan driver

Configure PINMUX for ELAN driver on MX6DL SABRESD

Signed-off-by: Robby Cai <R63905@freescale.com>
11 years agoENGR00180621-1: Add ELAN capacity touch screen driver
Robby Cai [Mon, 23 Apr 2012 08:12:20 +0000 (16:12 +0800)]
ENGR00180621-1: Add ELAN capacity touch screen driver

Add Elan ts driver.

Signed-off-by: Robby Cai <R63905@freescale.com>
Acked-by: Lily Zhang
11 years agoENGR00180076: prompt "mmc0: error -110 during resume" with atheros wifi card
justin.jiang [Fri, 27 Apr 2012 04:42:29 +0000 (12:42 +0800)]
ENGR00180076: prompt "mmc0: error -110 during resume" with atheros wifi card

* only happend on sabre-auto board,atheros sdio wifi card can't be used
  after suspend/resume

* Fix by keeping sdio power at suspend.

Signed-off-by: justin.jiang <b31011@freescale.com>
11 years agoENGR00180236-2: spdif clk usecount is 1 when not in use
Adrian Alonso [Wed, 25 Apr 2012 23:05:44 +0000 (18:05 -0500)]
ENGR00180236-2: spdif clk usecount is 1 when not in use

* Move spdif_core_clk enable from spdif_probe to spdif_startup
  function in order to avoid initializing the core clock
  when module is not in use.
* At spdif_shutdown disable spdif core_clk.

Signed-off-by: Adrian Alonso <aalonso@freescale.com>
11 years agoENGR00180236: mxc_spdif add spdif_clk error check
Adrian Alonso [Wed, 25 Apr 2012 23:03:50 +0000 (18:03 -0500)]
ENGR00180236: mxc_spdif add spdif_clk error check

* Add get_clk clock error check
  abort driver probe if wrong clock.

Signed-off-by: Adrian Alonso <aalonso@freescale.com>
11 years agoENGR00180882- MX6DL Add bus frequency scaling support.
Ranjani Vaidyanathan [Thu, 26 Apr 2012 03:31:23 +0000 (22:31 -0500)]
ENGR00180882- MX6DL Add bus frequency scaling support.

Added support for changing DDR frequency on MX6DL.
During system IDLE, DDR freq can drop down to 24MHz
if none of the devices that need high AHB frequency
are active.
Changed the DDR code to handle both MX6Q and MX6DL
DDR and IOMUX settings.
Fixed bug associated incorrect IRAM memory allocation
used to store DDR and IOMUX data.

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
11 years agoENGR00175084 IPU-FB: change dma memory alloc gfp flags to GFP_KERNEL
Wayne Zou [Thu, 26 Apr 2012 04:53:52 +0000 (12:53 +0800)]
ENGR00175084 IPU-FB: change dma memory alloc gfp flags to GFP_KERNEL

We only needs the dma buffer, don't care if it is from DMA Zone on i.mx SOC.

To fix the following bug:
mxc_ipudev_test: page allocation failure: order:13, mode:0x1
[<80042e08>] (unwind_backtrace+0x0/0xfc) from [<800b4dd8>]
(warn_alloc_failed+0x9c/0x118)
[<800b4dd8>] (warn_alloc_failed+0x9c/0x118) from [<800b5ac4>]
(__alloc_pages_nodemask+0x494/0x6ec)
[<800b5ac4>] (__alloc_pages_nodemask+0x494/0x6ec) from [<80046154>]
(__dma_alloc+0xd4/0x2fc)
[<80046154>] (__dma_alloc+0xd4/0x2fc) from [<800463a0>]
(dma_alloc_writecombine+0x24/0x2c)
[<800463a0>] (dma_alloc_writecombine+0x24/0x2c) from [<8024be34>]
(mxcfb_set_par+0x3e4/0x4c0)
[<8024be34>] (mxcfb_set_par+0x3e4/0x4c0) from [<80235f08>]
(fb_set_var+0x168/0x2a4)
[<80235f08>] (fb_set_var+0x168/0x2a4) from [<802363f8>](do_fb_ioctl+0x3b4/0x5f0)
[<802363f8>] (do_fb_ioctl+0x3b4/0x5f0) from[<800f58d0>](do_vfs_ioctl+0x80/0x5e4)
[<800f58d0>] (do_vfs_ioctl+0x80/0x5e4) from [<800f5e6c>] (sys_ioctl+0x38/0x60)
[<800f5e6c>] (sys_ioctl+0x38/0x60) from [<8003d500>] (ret_fast_syscall+0x0/0x30)
mxc_sdc_fb mxc_sdc_fb.0: Unable to allocate framebuffer memory
detected fb_set_par error, error code: -12

Signed-off-by: Wayne Zou <b36644@freescale.com>
11 years agoENGR00178223-3 gpio-led: Add LED-GPIO control and trigger for sabresd
Lin Fuzhen [Thu, 26 Apr 2012 06:54:44 +0000 (14:54 +0800)]
ENGR00178223-3 gpio-led: Add LED-GPIO control and trigger for sabresd

Add led-gpio control and trigger for sabresd

Signed-off-by: Lin Fuzhen <fuzhen.lin@freescale.com>
11 years agoENGR00178223-2 gpio-led: Add LED-GPIO control and trigger for sabresd
Lin Fuzhen [Wed, 25 Apr 2012 05:30:50 +0000 (13:30 +0800)]
ENGR00178223-2 gpio-led: Add LED-GPIO control and trigger for sabresd

Add led-gpio control and trigger for sabresd

Signed-off-by: Lin Fuzhen <fuzhen.lin@freescale.com>
11 years agoENGR00178223-1 gpio-led: Add LED-GPIO control and trigger for sabresd
Lin Fuzhen [Wed, 25 Apr 2012 05:26:18 +0000 (13:26 +0800)]
ENGR00178223-1 gpio-led: Add LED-GPIO control and trigger for sabresd

Add led-gpio control and trigger for sabresd

Signed-off-by: Lin Fuzhen <fuzhen.lin@freescale.com>
11 years agoENGR00180647-2: MAX11801: Add adc sample function in DCM mode.
Rong Dian [Thu, 26 Apr 2012 07:04:55 +0000 (15:04 +0800)]
ENGR00180647-2: MAX11801: Add adc sample function in DCM mode.

add aux adc sample function in dcm mode
for max11801 driver on SABRESD_rev.B board.

Signed-off-by: Rong Dian <b38775@freescale.com>
11 years agoENGR00180647-1: MX6 SABRESD: Add pin config for max11801
Rong Dian [Thu, 26 Apr 2012 07:00:18 +0000 (15:00 +0800)]
ENGR00180647-1: MX6 SABRESD: Add pin config for max11801

Configure PINMUX for max11801 driver on SABRESD_rev.B board.

Signed-off-by: Rong Dian <b38775@freescale.com>
11 years agoENGR00180185: MX6-Add support for low power audio playback
Ranjani Vaidyanathan [Wed, 18 Apr 2012 04:05:43 +0000 (23:05 -0500)]
ENGR00180185: MX6-Add support for low power audio playback

The DDR frequency needs to be at 50MHz for low power audio
playback. So added a new low power mode for audio.
Set the AHB to 25MHz, AXI to 50MHz and DDR to 50MHz in this
mode.

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
11 years agoENGR00175575 IPU-FB: ldb and hdmi clock is not turnoff when not in use.
Wayne Zou [Wed, 25 Apr 2012 07:22:06 +0000 (15:22 +0800)]
ENGR00175575 IPU-FB: ldb and hdmi clock is not turnoff when not in use.

ldb clock is not turnoff,
ldb_di0_clk's enable_count is not zero when not in use.

Signed-off-by: Wayne Zou <b36644@freescale.com>
11 years agoENGR00180775 IPUv3:Change pixel clock disabling sequence
Liu Ying [Wed, 25 Apr 2012 06:34:31 +0000 (14:34 +0800)]
ENGR00180775 IPUv3:Change pixel clock disabling sequence

This patch postpones pixel clock and its parent clock(if
the parent clock usecount is 1) disabling time point
until DC/DP/DI enable bits are cleared in IPU_CONF
register to prevent LVDS display channel starvation for
some special LVDS display video mode.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
11 years agoENGR00180099 IPU-[MX6DL]: ipu performance test cause kernel dump
Wayne Zou [Wed, 25 Apr 2012 01:03:52 +0000 (09:03 +0800)]
ENGR00180099 IPU-[MX6DL]: ipu performance test cause kernel dump

1. under vte test environment, boot up and run  ipu_test.sh 7.
kernel dump occur

kernel BUG at drivers/mxc/ipu3/ipu_device.c:1153!

Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = 80004000
[00000000] *pgd=00000000
Internal error: Oops: 817 [#1] PREEMPT SMP
Modules linked in: ov3640_camera adv7180_tvin ov5640_camera_mipi
camera_sensor_clock
CPU: 0    Not tainted  (3.0.15-daily-01339-gddc0ae9 #1)
PC is at __bug+0x1c/0x28
LR is at __bug+0x18/0x28
pc : [<80042210>]    lr : [<8004220c>]    psr: 60000013
sp : b41bfc80  ip : c0924000  fp : 00000000
r10: 00000000  r9 : 00000000  r8 : 00000000
r7 : 80a9e0f0  r6 : 80a9e10a  r5 : 00000001  r4 : b46f0800
r3 : 00000000  r2 : 80a4e57c  r1 : 60000093  r0 : 00000038
Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
Control: 10c53c7d  Table: 4481404a  DAC: 00000015
Process ipu0_task (pid: 400, stack limit = 0xb41be2f0)
Stack: (0xb41bfc80 to 0xb41c0000)
fc80: 80a9a180 8036fe24 b46f0800 00000000 60000013 b41be000 b46f0800 80373750
fca0: b41bfcd4 80065104 b418aadc 80096598 b418a8ac 60000013 00000000 b418a7e0
fcc0: b41bfcdc b418a7e8 80a4e598 8006a814 b418a7e0 80065268 00000000 00000094
fce0: 00000000 60000013 b41be000 b46f0800 00000000 00000000 00000000 803742e8
fd00: 00000000 b41bfd04 b41bfd04 00000000 00000000 00000000 00000000 00000000
fd20: 00000000 b41be000 00000001 00000000 00000000 b41bfd34 b41bfd34 00000000
fd40: 00000000 00000000 00000001 00000000 00000000 b41bfd54 b41bfd54 00000000
fd60: b41bfd60 b41bfd60 00000000 b4198474 00000000 800f9a34 00000000 800f8f4c
fd80: 00000000 b2000170 b41bfe18 b2001088 80a3bcfc b2000194 b2010bfc b2010bb0
fda0: b41bfeb8 800f86d0 00000000 b41bfe24 b41bfe34 b41bfeb8 00000000 b2000194
fdc0: b2010bb0 00000000 b2001088 800f6e00 b400f0a0 b41bfe18 b2010bb0 b2001088
fde0: b41bfe36 b41bff17 ffffffff b41bff24 b41bfe36 b41bff17 ffffffff b41bff24
fe00: 0000002f b41bff24 00000002 00000003 0000000a ffffffff 00000000 00000000
fe20: 00000000 00000000 b2010bb0 b4114700 b400faa0 39316240 ffffff33 b41be000
fe40: b41be000 b41bff80 00000000 800e69fc 80a3bcc0 8005dc90 80a7b8ec ffffffff
fe60: b4050000 00000002 00000000 80087e2c 00003e80 00000000 b4189998 8c008f90
fe80: 28345a72 b41bfeac 00003e80 00000000 b4189960 8c008f90 b4189960 8c008f90
fea0: 80a7b8ec ffffffff b4126000 00000002 00000000 80087e2c 80a3bcc0 8005dc90
fec0: 0000091d 00000000 b418a818 8c008f90 299c8c15 b41bfefc b418a818 8c008f90
fee0: b418a820 8005c700 00000000 8c008f90 b418a818 b418a818 b41bff14 8005e1d8
ff00: 00000002 8c008f40 b418a7e0 b41be000 b41bffc4 804ba600 8c008f40 b4040000
ff20: b41bff44 8005f920 b4040000 8c008f40 80037f40 80037f40 800371b4 80037f40
ff40: 80037f40 80037f40 800371b4 80037f40 b4189960 b403fe38 80064f14 00000001
ff60: b403fe44 00000000 00000000 00000003 b41bffa4 8005bec0 ffffffff 00000000
ff80: b4040000 00000000 b418a7e0 80082ebc b41bff90 b41bff90 00000031 803741e5
ffa0: 00000013 b403fe28 80a9e138 803741e4 00000013 00000000 00000000 00000000
ffc0: 00000000 80082898 8003fa08 00000000 80a9e138 00000000 00000000 00000000
ffe0: b41bffe0 b41bffe0 b403fe28 80082818 8003fa08 8003fa08 00000000 00000000
[<80042210>] (__bug+0x1c/0x28) from [<8036fe24>] (_get_vdoa_ipu_res+0x23c/0x25c)
[<8036fe24>] (_get_vdoa_ipu_res+0x23c/0x25c) from [<80373750>]
(get_res_do_task+0x10/0x458)
[<80373750>] (get_res_do_task+0x10/0x458) from [<803742e8>]
(ipu_task_thread+0x104/0xa60)
[<803742e8>] (ipu_task_thread+0x104/0xa60) from [<80082898>] (kthread+0x80/0x88)
[<80082898>] (kthread+0x80/0x88) from [<8003fa08>] (kernel_thread_exit+0x0/0x8)
Code: e59f0010 e1a01003 eb11d231 e3a03000 (e5833000)

---[ end trace db719a475f81b6f8 ]---

Signed-off-by: Wayne Zou <b36644@freescale.com>
11 years agoENGR00180628 [MX6]L2 cache clean is not necessary in suspend
Anson Huang [Tue, 24 Apr 2012 04:19:29 +0000 (12:19 +0800)]
ENGR00180628 [MX6]L2 cache clean is not necessary in suspend

L2 cache clean is not necessary any more, already tested it on
Arik ARM2, Arik Sabre-SD and Rigel Sabre-SD board.

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00180350-2 HDMI set infoframe information
Alan Tull [Wed, 18 Apr 2012 16:40:08 +0000 (11:40 -0500)]
ENGR00180350-2 HDMI set infoframe information

Get speaker allocation data block information from the EDID.

Translate the EDID speaker allocation to audio infoframe
speaker allocation (different bit mapping) given the number
of channels of audio being played.

Set channel count information in HDMI_FC_AUDICONF0.
Set speaker allocation information in HDMI_FC_AUDICONF2.

From CEA-861-D spec:
NOTE—HDMI requires the CT, SS and SF fields to be set to 0 (Refer
to Stream Header) as these items are carried in the audio stream.

Signed-off-by: Alan Tull <r80115@freescale.com>
11 years agoENGR00180350-1 HDMI set infoframe information
Alan Tull [Wed, 18 Apr 2012 16:40:08 +0000 (11:40 -0500)]
ENGR00180350-1 HDMI set infoframe information

Get speaker allocation data block information from the EDID.

Translate the EDID speaker allocation to audio infoframe
speaker allocation (different bit mapping) given the number
of channels of audio being played.

Set channel count information in HDMI_FC_AUDICONF0.
Set speaker allocation information in HDMI_FC_AUDICONF2.

From CEA-861-D spec:
NOTE—HDMI requires the CT, SS and SF fields to be set to 0 (Refer
to Stream Header) as these items are carried in the audio stream.

Signed-off-by: Alan Tull <r80115@freescale.com>
11 years agoENGR00180636: tty/imx: lock check while handle sysrq message
Jason Liu [Wed, 11 Apr 2012 05:21:15 +0000 (13:21 +0800)]
ENGR00180636: tty/imx: lock check while handle sysrq message

Since the port->lock has already been hold when enter rx_interrupt,
and thus hold it on during handle_sysrq. We need check whether the
current console_write is for the sysrq message output or not and use
the correct lock mechanism.

Signed-off-by: Jason Liu <r64343@freescale.com>
11 years agoENGR00180624 Merge vivante 4.6.7p1 kernel part code
Loren Huang [Tue, 24 Apr 2012 04:21:24 +0000 (12:21 +0800)]
ENGR00180624 Merge vivante 4.6.7p1 kernel part code

Merge vivante 4.6.7p1 kernel part code

Signed-off-by: Loren Huang <b02279@freescale.com>
Acked-by: Lily Zhang
11 years agoENGR00180640 camera: enable dual camera configuration in menuconfig
Yuxi Sun [Tue, 24 Apr 2012 06:56:21 +0000 (14:56 +0800)]
ENGR00180640 camera: enable dual camera configuration in menuconfig

enable dual camera configuration in menuconfig, and set ov5642 as
the first registered camera

Signed-off-by: Yuxi Sun <b36102@freescale.com>
11 years agoENGR00180618 VDOA: Add vdoa_iram cmdline options and reduce used IRAM size
Wayne Zou [Tue, 24 Apr 2012 00:28:05 +0000 (08:28 +0800)]
ENGR00180618 VDOA: Add vdoa_iram cmdline options and reduce used IRAM size

Add vdoa_iram command line options and reduce used IRAM size
by default to 72KBytes. So by default it only support
partially interleaved 4:2:0 output format.

Signed-off-by: Wayne Zou <b36644@freescale.com>
11 years agoENGR00179636-03 - i.MX6 : Enable ethernet NAPI method in default.
Fugang Duan [Fri, 20 Apr 2012 10:27:50 +0000 (18:27 +0800)]
ENGR00179636-03 - i.MX6 : Enable ethernet NAPI method in default.

- Enable ethernet NAPI method in default, which can reduce cpu
  loading and RX FIFO overruns in busy system.

Signed-off-by: Fugang Duan <B38611@freescale.com>
11 years agoENGR00179636-02 - FEC : Enet RX FIFO overruns issue.
Fugang Duan [Fri, 20 Apr 2012 10:16:24 +0000 (18:16 +0800)]
ENGR00179636-02 - FEC : Enet RX FIFO overruns issue.

- Increase RX BD size to 384 entrys from 16 entrys, which
  can reduce the overruns number in busy system.

Signed-off-by: Fugang Duan <B38611@freescale.com>
11 years agoENGR00179636-01 - FEC : Enet RX FIFO overruns issue.
Fugang Duan [Fri, 13 Apr 2012 08:57:10 +0000 (16:57 +0800)]
ENGR00179636-01 - FEC : Enet RX FIFO overruns issue.

- Add NAPI methods.
  NAPI can improve the performance of high-speed networking,
  which can reduce the cpu loading of interrupt generate and
  drop packets.
- Enet RX FIFO overruns number has been reduced by NAPI method.

Signed-off-by: Fugang Duan <B38611@freescale.com>
11 years agoENGR00180537 [MX6]Fix standby unstable issue
Anson Huang [Mon, 23 Apr 2012 08:50:54 +0000 (16:50 +0800)]
ENGR00180537 [MX6]Fix standby unstable issue

For the standby mode, we force SOC enter STOP mode
and drop the VDDARM_IN and VDDSOC_IN to 0.9V, we need
to disable L1 and L2 cache and invalidate L1 cache when
system resume, as the L1 cache memory's power is dropped
during standby, need to do the invalidation before re-enable
it.

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00180297 WM8962: stereo record on AMIC
Gary Zhang [Mon, 23 Apr 2012 06:53:38 +0000 (14:53 +0800)]
ENGR00180297 WM8962: stereo record on AMIC

Implement stereo recording feature on analog mic

Signed-off-by: Gary Zhang <b13634@freescale.com>
11 years agoENGR00179722: MLB: set correct mlb sys clock in mx6dl
Terry Lv [Mon, 16 Apr 2012 09:44:12 +0000 (17:44 +0800)]
ENGR00179722: MLB: set correct mlb sys clock in mx6dl

In Rigel validatioin, the MLB sys_clock isn't using the right frequency
after boot.
In arik, the register CBCMR controls gpu2d clock, not mlb clock, mlb is
sourced from axi_clock.
But In rigel, the axi clock is lower than in mx6q, so mlb need to find a
new clock root. The gpu2d clock is then root of mlb clock in rigel.
Thus we need to add setting to support this change.

Signed-off-by: Terry Lv <r65388@freescale.com>
11 years agoENGR00171077 ESAI: Ends of record should not impact playback
Lionel Xu [Fri, 20 Apr 2012 11:33:33 +0000 (19:33 +0800)]
ENGR00171077 ESAI: Ends of record should not impact playback

The mute process in shutdown function should only be limited to playback, or
it will influence each other when they running together.

Signed-off-by: Lionel Xu <Lionel.Xu@freescale.com>
11 years agoENGR00180412 MX6 SATA: Enable PHY in the SATA initilization
Richard Zhu [Fri, 20 Apr 2012 06:37:56 +0000 (14:37 +0800)]
ENGR00180412 MX6 SATA: Enable PHY in the SATA initilization

iENGR00179574: MX6- Add bus frequency scaling support disable
SATA PHY defaultly
Enable PHY in the SATA initilization, make sure the SATA work well.

Signed-off-by: Richard Zhu <r65037@freescale.com>
11 years agoENGR00180229-2 VDOA: disable vdoa clock when no used
Wayne Zou [Wed, 18 Apr 2012 08:45:48 +0000 (16:45 +0800)]
ENGR00180229-2 VDOA: disable vdoa clock when no used

Disable vdoa clock when no used

Signed-off-by: Wayne Zou <b36644@freescale.com>
11 years agoENGR00180229-1 V4L2: Fix a bug when doing tiled format deinterlaced
Wayne Zou [Wed, 18 Apr 2012 08:30:28 +0000 (16:30 +0800)]
ENGR00180229-1 V4L2: Fix a bug when doing tiled format deinterlaced

Initialize paddr_n when doing vdoa+vdi deinterlaced,
when doing tiled format deinterlaced.

Signed-off-by: Wayne Zou <b36644@freescale.com>
11 years agoENGR00180231 mx6q arm2 ONFI NAND clock change
Allen Xu [Thu, 19 Apr 2012 06:26:16 +0000 (14:26 +0800)]
ENGR00180231 mx6q arm2 ONFI NAND clock change

change clock source to enfc clock on mx6q arm2 lpddr board for ONFI nand
when enable ddr mode

Signed-off-by: Allen Xu <allen.xu@freescale.com>
11 years agoENGR00172292 usb otg: enable dtds postpone free on mx6
Xinyu Chen [Thu, 19 Apr 2012 09:04:57 +0000 (17:04 +0800)]
ENGR00172292 usb otg: enable dtds postpone free on mx6

We found this bug occurs again on mx6 when running
CTS with ADB over USB. The system will hang without
any log, and screen a little mess.
It's proved to be a known USB IP issue: USB controller
may access a wrong address for the dTD and then hang.
Re enable this workaround to avoid any system unstability.

Signed-off-by: Xinyu Chen <xinyu.chen@freescale.com>
11 years agoENGR00180055 Steer configuration to enable AUD5_RXD signal
Alejandro Sierra [Tue, 17 Apr 2012 19:40:48 +0000 (14:40 -0500)]
ENGR00180055 Steer configuration to enable AUD5_RXD signal

Steer configuration to enable AUD5_RXD signal

Signed-off-by: Alejandro Sierra <b18039@freescale.com>
11 years agoENGR00180230 MX6 PCIE: enlarge the eye diagram and force to GEN1
Richard Zhu [Tue, 17 Apr 2012 02:24:50 +0000 (10:24 +0800)]
ENGR00180230 MX6 PCIE: enlarge the eye diagram and force to GEN1

* Adjust the parameters, enlarge the eye diagram.
* Force to the PCIE GEN1 speed.

Signed-off-by: Richard Zhu <r65037@freescale.com>
11 years agoENGR00180096 change NAND clock source to pll2_pfd_400M
Allen Xu [Wed, 18 Apr 2012 02:15:27 +0000 (10:15 +0800)]
ENGR00180096 change NAND clock source to pll2_pfd_400M

change clock source explicitly by calling set_parent() function

Signed-off-by: Allen Xu <allen.xu@freescale.com>
11 years agoENGR00180075 MX6: change CLKO source to pll4_audio_main_clk
Gary Zhang [Wed, 18 Apr 2012 04:38:37 +0000 (12:38 +0800)]
ENGR00180075 MX6: change CLKO source to pll4_audio_main_clk

change CLKO source to pll4_audio_main_clk for low power
mode consideration

Signed-off-by: Gary Zhang <b13634@freescale.com>
11 years agoENGR00179851: i.mx6dl: map the MEM mode to STANDBY mode
Jason Liu [Tue, 17 Apr 2012 11:08:00 +0000 (19:08 +0800)]
ENGR00179851: i.mx6dl: map the MEM mode to STANDBY mode

Due to i.mx6dl TO1.0(TKT094231), Suspend/resume cannot work
stable under deep sleep mode(Dormant, MEM MODE) thus we need
map the MEM mode to STANBY mode(ARM will not power off), this
issue will be fixed on TO1.1

Signed-off-by: Jason Liu <r64343@freescale.com>
11 years agoENGR00179782: i.mx6: consolidate mx6q/dl_revision() support
Jason Liu [Tue, 17 Apr 2012 10:53:53 +0000 (18:53 +0800)]
ENGR00179782: i.mx6: consolidate mx6q/dl_revision() support

The idea is to get the soc silicon revision from DIGPROG register Of
ANATOP(USB_ANALOG_DIGPROG), which will make kernel code independent
with bootloader which need pass the system_rev by ATAG.

This patch also will print the chip name and revision when kernel boot
up since this information is important for customer to know.

on i.mx6q TO1.1, it will print as the following:

CPU identified as i.MX6Q, silicon rev 1.1

Signed-off-by: Jason Liu <r64343@freescale.com>
11 years agoENGR00179127 Audio integration for AMFM module to ARD platform
Alejandro Sierra [Tue, 17 Apr 2012 18:52:34 +0000 (13:52 -0500)]
ENGR00179127 Audio integration for AMFM module to ARD platform

Audio integration of AMFM module to ARD platform IMX6Q and IMX6DL
rev A and rev B boards. Supported on ALSA for kernel 3.0.15.

Signed-off-by: Alejandro Sierra <b18039@freescale.com>
11 years agoENGR00179800 V4L2: Add VDOA tiled format post-processing support
Wayne Zou [Mon, 16 Apr 2012 09:48:31 +0000 (17:48 +0800)]
ENGR00179800 V4L2: Add VDOA tiled format post-processing support

Add VDOA tiled format post-processing support

Signed-off-by: Wayne Zou <b36644@freescale.com>
11 years agoENGR00179725 WM8962: remove 64KHz sample rate support
Gary Zhang [Tue, 17 Apr 2012 03:17:18 +0000 (11:17 +0800)]
ENGR00179725 WM8962: remove 64KHz sample rate support

because wm8962 codec does not support 64KHz sample
rate, no longer declare to support 64KHz:

Signed-off-by: Gary Zhang <b13634@freescale.com>
11 years agoENGR00179804 change NAND clock source from pll2_pfd_352M to pll2_pfd_400M
Allen Xu [Tue, 17 Apr 2012 06:53:22 +0000 (14:53 +0800)]
ENGR00179804 change NAND clock source from pll2_pfd_352M to pll2_pfd_400M

Due to pll2_pfd_352M would be used for LVDS, change NAND clock source to
pll2_pfd_400M.

Signed-off-by: Allen Xu <allen.xu@freescale.com>
11 years agoENGR00179685 MX6 clock:Cleanup LDB DI parent clock
Liu Ying [Mon, 16 Apr 2012 04:40:37 +0000 (12:40 +0800)]
ENGR00179685 MX6 clock:Cleanup LDB DI parent clock

According to ticket TKT071080, 0b011 for ldb_dix_clk_sel
field in CCM_CS2CDR is changed from pll3_pfd_540M to
mmdc_ch1 when we change from MX6Q TO1.0 to MX6Q TO1.1.
However, MX6DL uses mmdc_ch1 as LDB DI parent clock.
This patch corrects the LDB DI parent clock setting.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
11 years agoENGR00179747: MX6DL-Fix boot failure
Ranjani Vaidyanathan [Mon, 16 Apr 2012 18:30:36 +0000 (13:30 -0500)]
ENGR00179747: MX6DL-Fix boot failure

Fix the boot failure caused by:
8f0c21e06d4f7d0c7c078d6261ccd75f2a45c3ab
MX6- Add bus frequency scaling support

There is no SATA on MX6DL. Accessing SATA PHYs early in the boot
process causes the system to crash.

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
11 years agoENGR00179696 MX6Q/UART : fix the wrong DMA tranfer direction.
Huang Shijie [Mon, 16 Apr 2012 02:54:12 +0000 (10:54 +0800)]
ENGR00179696 MX6Q/UART : fix the wrong DMA tranfer direction.

The current SDMA use the new DMA tranfer direction. But the UART still
uses the old. This cause the RX failed.
So use the new DMA transfer direction for UART.

Signed-off-by: Huang Shijie <b32955@freescale.com>
11 years agoENGR00179679 Fix usb gadget suspend issue connected to usb charger
Tony LIU [Mon, 16 Apr 2012 07:47:23 +0000 (15:47 +0800)]
ENGR00179679 Fix usb gadget suspend issue connected to usb charger

- the root cause of this issue is during resume process, USB clock
 is not turned on for this USB charger case so that the second
 suspend is processed without USB clock, it cause system hang
- in udc resume process, at this situation, we should exit low
 power mode to enable the b session valid intrrupt to close the
 usb clock when detach from usb charger

Signed-off-by: Tony LIU <junjie.liu@freescale.com>
11 years agoIMX/DMA : set the DMA direction in the sdma_control()
Huang Shijie [Fri, 18 Nov 2011 08:38:02 +0000 (16:38 +0800)]
IMX/DMA : set the DMA direction in the sdma_control()

Set the right DMA direction in the sdma_control(), else
we will get the wrong log when enable the DYNAMIC_DEBUG.

Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
11 years agoENGR00179647 MX6 clock:Correct LDB DI pclk for MX6Q TO1.1
Liu Ying [Fri, 13 Apr 2012 10:10:14 +0000 (18:10 +0800)]
ENGR00179647 MX6 clock:Correct LDB DI pclk for MX6Q TO1.1

This patch corrects LDB DI clock's parent clock to
be pll2_pfd_352M for both MX6Q TO1.1 and MX6Q TO1.0
according to ticket TKT071080(0b011 for ldb_dix_clk_sel
field in CCM_CS2CDR is changed from pll3_pfd_540M to
mmdc_ch1 when we change from MX6Q TO1.0 to MX6Q TO1.1).

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
11 years agoENGR00179575 only set color depth if TV supports deep color
Alan Tull [Mon, 9 Apr 2012 19:36:07 +0000 (14:36 -0500)]
ENGR00179575 only set color depth if TV supports deep color

If TV's EDID indicates that deep color is not supported, then
write color depth field of HDMI_VP_PR_CD register to zero.

Signed-off-by: Alan Tull <r80115@freescale.com>
11 years agoENGR00179601 Synopsys approved hdmi fifo workaround - rev 3
Alan Tull [Thu, 5 Apr 2012 18:27:49 +0000 (13:27 -0500)]
ENGR00179601 Synopsys approved hdmi fifo workaround - rev 3

This patch includes some of the clk enable/disable changes from rev2

Check the version of the HDMI IP to determine whether the fifo
threshold needs to be high.  The i.Mx6dl version of the HDMI doesn't
need the workaround.  All other parts of the workaround are used
for both parts for code simplicity.

----------------------------------------------------------
For i.Mxq, set the Threshold of audio fifo as: FIFO depth - 2 (fixed
and independent of the number of channels actually used).

Use unspecified length ahb bursts (using fixed INCRx will make the
audio dma fail).

Additionally and in order to get it working on all conditions it will
be necessary to run the following sw steps at startup of video and audio
(or when video changes or audio changes):

1-Configure AUD_N1 and AUD_CTS1 registers with final value and let the
  AUD_N2, AUD_N3, AUD_CTS2 and AUD_CTS3 to 0s.
2-Configure start and end addresses of audio DMA registers.
3-Start DMA operation
4-Configure the AUD_CTS2 and AUD_CTS3 with the final value.
5-Configure the AUD_N2 and AUD_N3 with final value.

Signed-off-by: Alan Tull <r80115@freescale.com>
11 years agoENGR00179574: MX6- Add bus frequency scaling support
Ranjani Vaidyanathan [Tue, 7 Feb 2012 20:34:13 +0000 (14:34 -0600)]
ENGR00179574: MX6- Add bus frequency scaling support

Add support for scaling the bus frequency (both DDR
and ahb_clk).
The DDR and AHB_CLK are dropped to 24MHz when all devices
that need high AHB frequency are disabled and the CORE
frequency is at the lowest setpoint.
The DDR is dropped to 400MHz for the video playback usecase.
In this mode the GPU, FEC, SATA etc are disabled.

To scale the bus frequency, its necessary that all cores
except the core that is executing the DDR frequency change
are in WFE. This is achieved by generating interrupts on
un-used interrupts (Int no 139, 144, 145 and 146).

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
11 years agoENGR00179582 MX6: Bypass PLL1 during WAIT
Ranjani Vaidyanathan [Thu, 23 Feb 2012 18:19:23 +0000 (12:19 -0600)]
ENGR00179582 MX6: Bypass PLL1 during WAIT

    When system is going to enter WAIT mode, set PLL1 to 24MHz
    so that ARM is running at 24MHz. This is a SW workaround for
    the WAIT mode issue.

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
11 years agoENGR00179513-3 V4L2: Add VDOA tiled format support
Wayne Zou [Fri, 13 Apr 2012 00:28:06 +0000 (08:28 +0800)]
ENGR00179513-3 V4L2: Add VDOA tiled format support

Support for VDOA tiled format IPU_PIX_FMT_TILED_NV12 up to 1080p progressive
streams, and IPU_PIX_FMT_TILED_NV12F tiled format up to xga interlaced streams
currently.

Signed-off-by: Wayne Zou <b36644@freescale.com>
11 years agoENGR00179513-2 IPU: Add TILED_NV12_FRAME_SIZE macro for consistency
Wayne Zou [Fri, 13 Apr 2012 00:19:46 +0000 (08:19 +0800)]
ENGR00179513-2 IPU: Add TILED_NV12_FRAME_SIZE macro for consistency

VPU needs 4K align buffer address for tiled format data output.
Use this macro for IPU/V4L2/Apps to calculate the frame/field size.

Signed-off-by: Wayne Zou <b36644@freescale.com>
11 years agoENGR00179513-1 VDOA: update software state before start vdoa
Wayne Zou [Fri, 13 Apr 2012 00:16:05 +0000 (08:16 +0800)]
ENGR00179513-1 VDOA: update software state before start vdoa

Fix a bug when vdoa interrupt happens
before software state updated.

Signed-off-by: Wayne Zou <b36644@freescale.com>
11 years agoENGR00170747 gpu driver : add AXI BUS ERROR message
b07117 [Wed, 21 Dec 2011 13:32:02 +0000 (21:32 +0800)]
ENGR00170747 gpu driver : add AXI BUS ERROR message

AXI BUS ERROR may occur in very low possibility,
this debug message exist before 4.4.2, but removed in 4.6.x,
need add it back to trace critical gpu issue

Signed-off-by: Li Xianzhong <b07117@freescale.com>
Signed-off-by: Loren Huang <b02279@freescale.com>
Acked-by: Lily Zhang
11 years agoENGR00179631 MX6 SabreSD: Add MIPI DSI Display support
Wayne Zou [Fri, 13 Apr 2012 06:16:21 +0000 (14:16 +0800)]
ENGR00179631 MX6 SabreSD: Add MIPI DSI Display support

Add MIPI DSI Display support on mx6 SabreSD board.
MIPI DSI needs pll3_pfd_540M clock source for 540MHz.
if using ldb, the pll3_pfd_540M clock will be changed to 454Mhz.
So add command line option disable_ldb when using MIPI DSI display.

Signed-off-by: Wayne Zou <b36644@freescale.com>
11 years agoENGR00179642 Remove a workaround for suspend/resume
Loren Huang [Fri, 13 Apr 2012 10:14:02 +0000 (18:14 +0800)]
ENGR00179642 Remove a workaround for suspend/resume

Remove a workaround for suspend/resume:
The workaround is turn on clock before gpu entering suspend.
After clock code bug is fixed, this workaround becomes no necessary.

Signed-off-by: Loren Huang <b02279@freescale.com>
Acked-by: Lily Zhang
11 years agoENGR00179628-2 MX6: add ssi info in sdma
Gary Zhang [Fri, 13 Apr 2012 08:32:07 +0000 (16:32 +0800)]
ENGR00179628-2 MX6: add ssi info in sdma

add ssi dual-fifo info in sdma structure

Signed-off-by: Gary Zhang <b13634@freescale.com>
11 years agoENGR00179628-1 SSI: enable dual-fifo feature as default
Gary Zhang [Fri, 13 Apr 2012 08:30:54 +0000 (16:30 +0800)]
ENGR00179628-1 SSI: enable dual-fifo feature as default

enable SSI dual-fifo feature as default setting

Signed-off-by: Gary Zhang <b13634@freescale.com>
11 years agoENGR00179621 MX6 PCIE: bring up PCIE on i.MX6 SD board
Richard Zhu [Thu, 12 Apr 2012 01:54:30 +0000 (09:54 +0800)]
ENGR00179621 MX6 PCIE: bring up PCIE on i.MX6 SD board

* Bring up the PCIE on i.MX6 SD board
* Add the PCIE PHY access routines
* Wrapper the board related codes by register one
  platform driver and data

Signed-off-by: Richard Zhu <r65037@freescale.com>
11 years agoENGR00179498-2 SDMA: fix p2p sdma script error
Chen Liangjun [Thu, 12 Apr 2012 06:55:55 +0000 (14:55 +0800)]
ENGR00179498-2 SDMA: fix p2p sdma script error

Update p2p script firmware address in plat-imx-dma.c for MX6Q.

Signed-off-by: Chen Liangjun <b36089@freescale.com>
11 years agoENGR00179498-1 SDMA: fix p2p sdma script error
Chen Liangjun [Thu, 12 Apr 2012 06:47:19 +0000 (14:47 +0800)]
ENGR00179498-1 SDMA: fix p2p sdma script error

The p2p script in SDMA binary file is invalid. The ESAI call ASRC
can't work properly with this firmware.

Update the firmware and script address.

Signed-off-by: Chen Liangjun <b36089@freescale.com>
11 years agoENGR00179485 fix CTS hang up issue
Richard Liu [Fri, 13 Apr 2012 01:03:37 +0000 (09:03 +0800)]
ENGR00179485 fix CTS hang up issue

fix random hang up issue especially run CTS provided by Viv

Signed-off-by: Richard Liu <r66033@freescale.com>
Acked-by: Lily Zhang
11 years agoENGR00179510 ipu capture: fix system hang when running capture
Yuxi Sun [Thu, 12 Apr 2012 07:23:08 +0000 (15:23 +0800)]
ENGR00179510 ipu capture: fix system hang when running capture

Add _ipu_get() and _ipu_put() when calling ipu_csi_get_sensor_protocol
function.

Signed-off-by: Yuxi Sun <b36102@freescale.com>
11 years agoENGR00179284-4 support ONFI NAND device on mx6q_arm2_pop board
Allen Xu [Tue, 10 Apr 2012 09:02:36 +0000 (17:02 +0800)]
ENGR00179284-4 support ONFI NAND device on mx6q_arm2_pop board

if the NAND chip supports ONFI feature and the board supports ONFI
DDR transfer mode, users could enable ONFI DDR transfer by add command
line parameter "onfi_support"

Signed-off-by: Allen Xu <allen.xu@freescale.com>
11 years agoENGR00179284-3 support ONFI NAND device on mx6q_arm2_pop board
Allen Xu [Tue, 10 Apr 2012 09:01:07 +0000 (17:01 +0800)]
ENGR00179284-3 support ONFI NAND device on mx6q_arm2_pop board

Add bch and gpmi register define for ONFI ddr feature

Signed-off-by: Allen Xu <allen.xu@freescale.com>
11 years agoENGR00179284-2 support ONFI NAND device on mx6q_arm2_pop board
Allen Xu [Tue, 10 Apr 2012 08:56:38 +0000 (16:56 +0800)]
ENGR00179284-2 support ONFI NAND device on mx6q_arm2_pop board

enable ONFI NAND feature by command line parameter "onfi_support"

Signed-off-by: Allen Xu <allen.xu@freescale.com>
11 years agoENGR00179284-1 support ONFI NAND device on mx6q_arm2_pop board
Allen Xu [Tue, 10 Apr 2012 08:53:01 +0000 (16:53 +0800)]
ENGR00179284-1 support ONFI NAND device on mx6q_arm2_pop board

Add a platform data to indicate whether the board support ONFI nand

Signed-off-by: Allen Xu <allen.xu@freescale.com>
11 years agoENGR00179497-2 MX6Q SabreSD: fix SPI nor flash pin config
Robin Gong [Thu, 12 Apr 2012 06:44:40 +0000 (14:44 +0800)]
ENGR00179497-2 MX6Q SabreSD: fix SPI nor flash pin config

Default SPI nor flash pin config is wrong, correct it for SabreSD RevB
Signed-off-by: Robin Gong <B38343@freescale.com>
11 years agoENGR00179497-1 ECSPI: disable ecspi clock after probe and spi transfer
Robin Gong [Thu, 12 Apr 2012 06:40:42 +0000 (14:40 +0800)]
ENGR00179497-1 ECSPI: disable ecspi clock after probe and spi transfer

before, it enable spi clock after probe, never been disable unless driver
removed. To reduce power, disable clock after probe, and enable it before
every spi transfer and disable it after spi transfer
Signed-off-by: Robin Gong <B38343@freescale.com>
11 years agoENGR00179408 MX6DL:Increasing CPU voltage for 800MHz/400MHz/200MHz work points
Lin Fuzhen [Thu, 12 Apr 2012 01:45:10 +0000 (09:45 +0800)]
ENGR00179408 MX6DL:Increasing CPU voltage for 800MHz/400MHz/200MHz work points

It need add 25mV to 800MHz/400MHz/200MHz work points for MX6DL,
otherwise system will crash when cpu freq switch to these work points

Signed-off-by: Lin Fuzhen <fuzhen.lin@freescale.com>
11 years agoENGR00179367: cs42888 record fix damp routing settings
Adrian Alonso [Tue, 10 Apr 2012 16:04:10 +0000 (11:04 -0500)]
ENGR00179367: cs42888 record fix damp routing settings

* Fix cs42888 record DAMP routing settings for ADCx

Signed-off-by: Adrian Alonso <aalonso@freescale.com>
11 years agoENGR00179226: imx-esai remove tx personal reset during record
Adrian Alonso [Mon, 9 Apr 2012 17:16:53 +0000 (12:16 -0500)]
ENGR00179226: imx-esai remove tx personal reset during record

* Remove transmitter personal reset during stream record
  this could potencially block concurrent play/record support.
* Remove receiver personal reset calls, rx is always
  operational.

Signed-off-by: Adrian Alonso <aalonso@freescale.com>
11 years agoENGR00179426-2: i.mx6q: iomux: code clean up
Jason Liu [Wed, 11 Apr 2012 09:21:46 +0000 (17:21 +0800)]
ENGR00179426-2: i.mx6q: iomux: code clean up

Remove the dead definiton which never used by iomux-v3 framework

Signed-off-by: Jason Liu <r64343@freescale.com>
11 years agoENGR00179426-1 i.mx6: iomux: NO_PAD_I/NO_PAD_MUX not defined
Jason Liu [Wed, 11 Apr 2012 09:16:36 +0000 (17:16 +0800)]
ENGR00179426-1 i.mx6: iomux: NO_PAD_I/NO_PAD_MUX not defined

NO_PAD_I/NO_PAD_MUX not defined, which will cause build error
According to iomux-v3.h, the NO_PAD_I/NO_PAD_MUX should be 0
for the pins which does not have PAD/MUX config.

Signed-off-by: Jason Liu <r64343@freescale.com>
11 years agoENGR00178597 [MX6DL/S] Multi-instance test in GC880 cause system hang
Larry Li [Tue, 10 Apr 2012 09:12:51 +0000 (17:12 +0800)]
ENGR00178597 [MX6DL/S] Multi-instance test in GC880 cause system hang

In our code 3d sharder clock uses 3d core clock CCGR field as its
enable bit. That works for MX6Q. But MX6DL uses 3d sharder clock
as 2d core clock, while disable 2d core clock, it will disable 3d
core by mistake.
To fix it, remove the enable bit setting of 3d shader clock in
clock.c file.

Signed-off-by: Larry Li <b20787@freescale.com>
11 years agoENGR00177241-4 mx6 close APBH DMA clock when no I/O operation
Allen Xu [Tue, 10 Apr 2012 03:39:11 +0000 (11:39 +0800)]
ENGR00177241-4 mx6 close APBH DMA clock when no I/O operation

Select APBH DMA automatically when enable GPMI NAND module.

Signed-off-by: Allen Xu <allen.xu@freescale.com>