]> git.karo-electronics.de Git - karo-tx-linux.git/log
karo-tx-linux.git
11 years agoENGR00139229-1 MX6: Bring up i.MX6 sabreauto with Single core
Zeng Zhaoming [Tue, 28 Jun 2011 01:15:47 +0000 (09:15 +0800)]
ENGR00139229-1 MX6: Bring up i.MX6 sabreauto with Single core

MSL code for bring up MX6 sabreauto board with Single core.

Merged from testbuild:imx6_bringup branch.

Signed-off-by: Anson Huang <b20788@freescale.com>
Signed-off-by: Jason Liu <r64343@freescale.com>
Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
Singed-off-by: Dinh Nguyen <Dinh.Nguyen@freescale.com>
Signed-off-by: Richard Zhu <r65037@freescale.com>
Signed-off-by: Anish Trivedi <anish@freescale.com>
Signed-off-by: Dong Aisheng <b29396@freescale.com>
Signed-off-by: Jason Chen <b02280@freescale.com>
Signed-off-by: Lily Zhang <r58066@freescale.com>
Signed-off-by: Sammy He <r62914@freescale.com>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Frank Li <Frank.Li@freescale.com>
Signed-off-by: Terry Lv <r65388@freescale.com>
Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
Signed-off-by: Zeng Zhaoming <b32542@freescale.com>
Merged-by: Zeng Zhaoming <b32542@freescale.com>
Reviewed-by: Jason Liu <r64343@freescale.com>
Reviewed-by: Frank Li <Frank.Li@freescale.com>
11 years agoENGR00141259: MX53_SMD: SPI: Use community spi_imx for spi nor
Terry Lv [Thu, 16 Jun 2011 10:16:20 +0000 (18:16 +0800)]
ENGR00141259: MX53_SMD: SPI: Use community spi_imx for spi nor

Use community spi_imx for spi nor.
m25p80 is now supported with spi_imx.

Signed-off-by: Terry Lv <r65388@freescale.com>
11 years agoENGR00151896 - EPDC fb: Fix bug preventing suspend when powerdown disabled
Danny Nold [Tue, 21 Jun 2011 21:10:46 +0000 (16:10 -0500)]
ENGR00151896 - EPDC fb: Fix bug preventing suspend when powerdown disabled

- With FB_POWERDOWN_DISABLE is set as the powerdown delay (disabling the EPDC
driver from powering down), the EPDC driver was having problems going into
suspend.  Any request to blank the EPDC driver would result in a timeout
and an error status.  And subsequent attempts to send updates to the driver
would fail, as the driver's power state was incorrect.  This patch prompts
the EPDC driver to be disabled when the blanking state is changed to
FB_BLANK_POWERDOWN and FB_POWERDOWN_DISABLE is set.  Resultingly, the correct
driver power state is maintained and suspend/resume works correctly.

Signed-off-by: Danny Nold <dannynold@freescale.com>
11 years agoENGR00151822 - EPDC fb: Prevent endless collision by managing FULL mode updates
Danny Nold [Tue, 21 Jun 2011 02:51:03 +0000 (21:51 -0500)]
ENGR00151822 - EPDC fb: Prevent endless collision by managing FULL mode updates

When using SNAPSHOT update scheme, submitting FULL mode updates can easily
lead to an endlessly looping sequence of collisions if any updates are active
when the new FULL mode update is submitted.  Thus, we must first flush any
updates out before submitting a new FULL mode update.

Signed-off-by: Danny Nold <dannynold@freescale.com>
11 years agoENGR00151494-2 arch: change mxc_vpu.h to remove definition for mx32/mx37
Sammy He [Tue, 21 Jun 2011 16:18:40 +0000 (00:18 +0800)]
ENGR00151494-2 arch: change mxc_vpu.h to remove definition for mx32/mx37

The vpu code in driver for mx32/mx37 is out of date already, and
we won't support the platforms, so clean the code for removing it.

And removed ioctl definition that won't use again.

Signed-off-by: Sammy He <r62914@freescale.com>
11 years agoENGR00151494-1 vpu: remove the code for vpu of mx32/mx37 platforms
Sammy He [Tue, 21 Jun 2011 16:16:20 +0000 (00:16 +0800)]
ENGR00151494-1 vpu: remove the code for vpu of mx32/mx37 platforms

The vpu code in driver for mx32/mx37 is out of date already, and
we won't support the platforms, so clean the code for removing it.

Signed-off-by: Sammy He <r62914@freescale.com>
11 years agoENGR00151762 vpu: Fix system hang due to long time video playback on mx51
Sammy He [Tue, 21 Jun 2011 16:08:22 +0000 (00:08 +0800)]
ENGR00151762 vpu: Fix system hang due to long time video playback on mx51

Fix system hang due to long time video playback. This issue is only
on i.MX51 platfrom due to changing vpu clock parent in vpu_enable/
disable. Set vpu clock parent to axi_a forever to fix it.

Signed-off-by: Sammy He <r62914@freescale.com>
11 years agoENGR00151639 - EPDC fb: Memory for PxP workaround buffers may be reduced
Danny Nold [Wed, 15 Jun 2011 14:11:51 +0000 (09:11 -0500)]
ENGR00151639 - EPDC fb: Memory for PxP workaround buffers may be reduced

- This patch changes the way that buffers are allocated and used for the
case where PxP alignment limitations are not met (a copy from the
update source buffer into a temporary buffer before initiating the
PxP processing task is required).  Previously, a buffer was allocated
on a per-update basis, resulting in a large number of copy buffers.  Now,
we allocate just one copy buffer that can be reused any time the PxP
alignment workaround is required.  This is okay because it is assured
that only one PxP transaction can be prepared at a time.

Signed-off-by: Danny Nold <dannynold@freescale.com>
11 years agoENGR00142098 - EPDC fb: Fix slow mode transitions when powerdown delay disabled
Danny Nold [Tue, 31 May 2011 17:45:12 +0000 (12:45 -0500)]
ENGR00142098 - EPDC fb: Fix slow mode transitions when powerdown delay disabled

- When the powerdown delay is set to FB_POWERDOWN_DISABLE, the
mxc_epdc_fb_flush_updates() function does not execute correctly, always
resulting in a time out while waiting to receive a completion that signals
that all updates have completed.  This causes long delays when changing the FB
mode, since a mode change will always result in a call to
mxc_epdc_fb_flush_updates().

Fixed this bug by creating a new mxc_epdc_fb_data variable to track whether
all active updates have completed.  mxc_epdc_fb_flush_updates() now
keys off of this variable to determine whether to wait for all
active updates to complete.

Signed-off-by: Danny Nold <dannynold@freescale.com>
11 years agoENGR00139461-2 mxc alsa soc spdif driver
Alan Tull [Tue, 7 Jun 2011 17:59:03 +0000 (12:59 -0500)]
ENGR00139461-2 mxc alsa soc spdif driver

S/PDIF tx and rx using ASoC layer.

Signed-off-by: Alan Tull <alan.tull@freescale.com>
11 years agoENGR00139461-1 mxc alsa soc spdif driver
Alan Tull [Wed, 18 May 2011 21:32:35 +0000 (16:32 -0500)]
ENGR00139461-1 mxc alsa soc spdif driver

S/PDIF tx and rx using ASoC layer.

Signed-off-by: Alan Tull <alan.tull@freescale.com>
11 years agoENGR00144358 - EPDC fb: Fix race condition in how EPDC status is captured in IST
Danny Nold [Tue, 31 May 2011 21:23:48 +0000 (16:23 -0500)]
ENGR00144358 - EPDC fb: Fix race condition in how EPDC status is captured in IST

- Capture EPDC status registers up front in IST, rather than when-needed
during IST, to prevent potential race conditions where the status changes
mid-IST.

Signed-off-by: Danny Nold <dannynold@freescale.com>
11 years agoENGR00144136 - EPDC fb: Add TCE underrun workaround timeout
Danny Nold [Tue, 31 May 2011 19:14:57 +0000 (14:14 -0500)]
ENGR00144136 - EPDC fb: Add TCE underrun workaround timeout

- When synching update submission to EPDC end of frame (when tce_prevent is
defined), we should wait using wait_for_completion_timeout to prevent
hang/deadlock in case we don't receive completion.
- Added call in IST to disable end of frame interrupt upon receiving the
interrupt.

Signed-off-by: Danny Nold <dannynold@freescale.com>
11 years agoENGR00144306-2 vpu: Add iram info to vpu platform data for each platform
Sammy He [Tue, 31 May 2011 09:49:24 +0000 (17:49 +0800)]
ENGR00144306-2 vpu: Add iram info to vpu platform data for each platform

Add iram info to vpu platform data for each platform in linux/arch folder.
Disable iram on MX51 and enable iram on MX53 platform.
And remove VPU_IRAM_SIZE usage.

Signed-off-by: Sammy He <r62914@freescale.com>
11 years agoENGR00144306-1 VPU: remove VPU IRAM config and add iram info to plat data.
Sammy He [Tue, 31 May 2011 09:48:12 +0000 (17:48 +0800)]
ENGR00144306-1 VPU: remove VPU IRAM config and add iram info to plat data.

One kernel image is requested, however, we need to enable iram
for performance improvement on mx53, and disable it on mx51 due
to known issue. So use platform data to pass vpu iram disable/enable
flag. And considering requested iram size also can be different per
requirement, iram size is also set in platform data.

Signed-off-by: Sammy He <r62914@freescale.com>
11 years agoENGR00144053: MX53: Fix iomux definition for PATA_D6
Dinh Nguyen [Wed, 25 May 2011 15:46:52 +0000 (10:46 -0500)]
ENGR00144053: MX53: Fix iomux definition for PATA_D6

The iomux definition for MX53 PATA_D6 has the wrong modes for
the various mux modes of the pin. This patch adds the correct
modes for the pin.

Signed-off-by: Dinh Nguyen <Dinh.Nguyen@freescale.com>
11 years agoENGR00142551-3 MXC V4L2:Change IPU interface for triple buffer
Liu Ying [Tue, 24 May 2011 02:06:03 +0000 (10:06 +0800)]
ENGR00142551-3 MXC V4L2:Change IPU interface for triple buffer

This patch changes IPU interface for MXC V4L2 to align with
IPUv3 triple buffer support.
When V4L2 is used, we'll change to use double buffer for
display channel via internal framebuffer interface.

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

11 years agoENGR00142551-2 IPUv3 FB:Support HW triple buffer
Liu Ying [Tue, 24 May 2011 02:04:02 +0000 (10:04 +0800)]
ENGR00142551-2 IPUv3 FB:Support HW triple buffer

This patch supports HW triple buffer for IPUv3
framebuffer.
1) Remove buf ready check in EOF irq handler, as we
   think the swap logic will not fail for HW triple
   buffer case.
2) When V4L2 output/overlay are used, switch to double
   buffer mode.
3) Changes IPU interface for IPUv1 framebuffer to pass
   building.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
Signed-off-by: Jason Chen <b02280@freescale.com>
(cherry picked from commit 4ada3031e13207902f8c90b33c082759889cb22a)

11 years agoENGR00142551-1 IPUv3:Support triple buffer
Liu Ying [Tue, 24 May 2011 01:58:49 +0000 (09:58 +0800)]
ENGR00142551-1 IPUv3:Support triple buffer

This patch supports IPUv3 triple buffer.
Only channel 23, 27 and 28 are tested.
Test was done on MX51 BBG and MX53 SMD.
IPUv1 interface is changed accordingly
to pass building.

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

11 years agoENGR00143575 IPUv3:Align IDMAC BS with DMFC FIFO BS
Liu Ying [Tue, 24 May 2011 01:57:46 +0000 (09:57 +0800)]
ENGR00143575 IPUv3:Align IDMAC BS with DMFC FIFO BS

This patch aligns IDMAC burst size and DMFC FIFO burst
size to get better performance and workarounds black
flash issue when playing video on DP-FG with full
screen mode at 1024x768M@60.

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

11 years agoENGR00143799 Add SCC RAM clock to dependency list for SAHARA clock tree
Anish Trivedi [Fri, 20 May 2011 16:51:01 +0000 (11:51 -0500)]
ENGR00143799 Add SCC RAM clock to dependency list for SAHARA clock tree

When ARM is in WAIT mode, the SCC RAM clock is disabled since
1 is written to the CCGR register by default. At that point, if SAHARA
tries to access a key or some other piece of data stored in the SCC RAM,
then it might hang.

To prevent this scenario, SCC RAM is added to dependency list
for SCC clock, and SCC clock is added to dependency list for SAHARA.

Signed-off-by: Anish Trivedi <anish@freescale.com>
11 years agoENGR00143550 camera: change camera platform data name and remove unused function
Yuxi Sun [Wed, 18 May 2011 06:02:45 +0000 (14:02 +0800)]
ENGR00143550 camera: change camera platform data name and remove unused function

Change camera platform data name from mxc_camera_platform_data to
fsl_mxc_camera_platform_data in accordence with include/linux/fsl_devices.h
and remove unused function gpio_sensor_active(),gpio_sensor_inactive().

Signed-off-by: Yuxi Sun <b36102@freescale.com>
11 years agoENGR00143511 config: add ipu and camera module in kernel build config
Yuxi Sun [Tue, 17 May 2011 05:22:15 +0000 (13:22 +0800)]
ENGR00143511 config: add ipu and camera module in kernel build config

add ipu and camera modules in kernel build configure

Signed-off-by: Yuxi Sun <b36102@freescale.com>
11 years agoENGR00142865 ipuv3: add pixel clk to clk dev
Jason Chen [Tue, 17 May 2011 05:05:32 +0000 (13:05 +0800)]
ENGR00142865 ipuv3: add pixel clk to clk dev

add pixel clk to clk dev

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00142859 ipuv3: add removed g_di_clk set
Jason Chen [Tue, 17 May 2011 05:04:59 +0000 (13:04 +0800)]
ENGR00142859 ipuv3: add removed g_di_clk set

add removed g_di_clk set.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00143486 - MSL: MAX17135 init_data incorrectly declared __initdata
Danny Nold [Mon, 16 May 2011 22:02:00 +0000 (17:02 -0500)]
ENGR00143486 - MSL: MAX17135 init_data incorrectly declared __initdata

- Removed __initdata from regulator_init_data structure declaration.  This
protects the MAX17135 regulator from having its structure overwritten, which
was causing a bug when writing large chunks of memory.

Signed-off-by: Danny Nold <dannynold@freescale.com>
11 years agoENGR00143309 IPUv3fb:Set default yres_virtual to be 3*yres
Liu Ying [Thu, 12 May 2011 12:18:25 +0000 (20:18 +0800)]
ENGR00143309 IPUv3fb:Set default yres_virtual to be 3*yres

This patch sets framebuffer yres_virtual to be 3*yres defaultly.
Before this patch is applied, the yres_virtual will be changed
to yres when hdmi cable is hot plugged out and in, which
reduces yres_virtual to yres and pan display mechanism cannot
work well.

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

11 years agoENGR00143294-3: MX50-Port DVFS-CORE and bus_freq driver to 2.6.38
Ranjani Vaidyanathan [Thu, 12 May 2011 00:18:40 +0000 (19:18 -0500)]
ENGR00143294-3: MX50-Port DVFS-CORE and bus_freq driver to 2.6.38

Port low power mode drivers to 2.6.38

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
11 years agoENGR00143294-2: MX5x-Port DVFS-CORE and bus_freq driver to 2.6.38
Ranjani Vaidyanathan [Thu, 12 May 2011 00:17:17 +0000 (19:17 -0500)]
ENGR00143294-2: MX5x-Port DVFS-CORE and bus_freq driver to 2.6.38

Port low power mode drivers to 2.6.38

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
11 years agoENGR00143294-1: Fix bug in MC13892 driver
Ranjani Vaidyanathan [Thu, 12 May 2011 00:13:43 +0000 (19:13 -0500)]
ENGR00143294-1: Fix bug in MC13892 driver

In set_voltage function, all voltages are not in microvolts.
Hence set_voltage function was failing. Change all voltages in
the function to be in microvolts.

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
11 years agoENGR00142683 IPUv3:Increase IDMAC BS for RGBP and DMFC BS
Liu Ying [Thu, 12 May 2011 09:59:34 +0000 (17:59 +0800)]
ENGR00142683 IPUv3:Increase IDMAC BS for RGBP and DMFC BS

This patch increases IDMAC burst size from 16 pixels to
32 pixels for RGBP pixel format and increases DMFC burst
size to 128 pixels to workaround 1080P60 display video
black flash issue.

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

11 years agoENGR00142954 - MSL clocks: correct APLL settings to prevent random PxP lockups
Danny Nold [Mon, 2 May 2011 17:35:05 +0000 (12:35 -0500)]
ENGR00142954 - MSL clocks: correct APLL settings to prevent random PxP lockups

- Add appropriate bit settings to ANADIG_MISC to improve APLL signal integrity
and prevent intermittent PxP lockups

Signed-off-by: Danny Nold <dannynold@freescale.com>
11 years agoENGR00142950-7 - EPDC firmware: Port to 2.6.38
Danny Nold [Thu, 5 May 2011 15:26:31 +0000 (10:26 -0500)]
ENGR00142950-7 - EPDC firmware: Port to 2.6.38

- Added firmware/imx/epdc directory
- Added EPDC waveform firmware files

Signed-off-by: Danny Nold <dannynold@freescale.com>
11 years agoENGR00142950-6 - PxP DMA: Port PxP driver to 2.6.38 kernel
Danny Nold [Tue, 3 May 2011 21:41:33 +0000 (16:41 -0500)]
ENGR00142950-6 - PxP DMA: Port PxP driver to 2.6.38 kernel

- Add drivers/dma/pxp and all PxP driver files within

Signed-off-by: Danny Nold <dannynold@freescale.com>
11 years agoENGR00142950-5 - iMX5 defconfig: Port EPDC/PxP/MAX17135 to 2.6.38
Danny Nold [Tue, 3 May 2011 18:12:40 +0000 (13:12 -0500)]
ENGR00142950-5 - iMX5 defconfig: Port EPDC/PxP/MAX17135 to 2.6.38

- Added support for EPDC driver
- Added support for PxP driver
- Added support for MAX17135 EPD PMIC driver

Signed-off-by: Danny Nold <dannynold@freescale.com>
11 years agoENGR00142950-4 - Plat-MXC: Port EPDC support to 2.6.38 kernel
Danny Nold [Tue, 3 May 2011 18:10:46 +0000 (13:10 -0500)]
ENGR00142950-4 - Plat-MXC: Port EPDC support to 2.6.38 kernel

- Port EPDC platform code to 2.6.38
- Port PxP platform code to 2.6.38

Signed-off-by: Danny Nold <dannynold@freescale.com>
11 years agoENGR00142950-3 - MSL: Port EPDC/PxP driver support to 2.6.38
Danny Nold [Tue, 3 May 2011 18:00:55 +0000 (13:00 -0500)]
ENGR00142950-3 - MSL: Port EPDC/PxP driver support to 2.6.38

- Ported EPDC driver MSL layer code to 2.6.38
- Ported PxP driver MSL layer code to 2.6.38
- Ported Maxim 17135 EPD PMIC driver MSL layer code to 2.6.38

Signed-off-by: Danny Nold <dannynold@freescale.com>
11 years agoENGR00142950-2 - MAX17135 EPD PMIC: Ported to 2.6.38 kernel
Danny Nold [Tue, 3 May 2011 17:58:07 +0000 (12:58 -0500)]
ENGR00142950-2 - MAX17135 EPD PMIC: Ported to 2.6.38 kernel

- Ported MAX17135 MFD core driver to 2.6.38
- Ported MAX17135 HWMON temperature sensor driver to 2.6.38
- Ported MAX17135 regulator driver to 2.6.38

Signed-off-by: Danny Nold <dannynold@freescale.com>
11 years agoENGR00142950-1 - EPDC fb: Add support for 2.6.38
Danny Nold [Tue, 3 May 2011 16:12:19 +0000 (11:12 -0500)]
ENGR00142950-1 - EPDC fb: Add support for 2.6.38

- Bring EPDC driver up-to-date
- Add mxcfb_epdc_kernel.h
- Change structure definitions from mxc_ to imx_ where needed to
match platform structure names

Signed-off-by: Danny Nold <dannynold@freescale.com>
11 years agoENGR00143186 GPMI : add the kernel command parameter to disable/enable gpmi
Huang Shijie [Tue, 10 May 2011 08:04:43 +0000 (16:04 +0800)]
ENGR00143186 GPMI : add the kernel command parameter to disable/enable gpmi

add the kernel command parameter to control whether we should enable
the GPMI NAND driver.

Signed-off-by: Huang Shijie <b32955@freescale.com>
11 years agoENGR00143126-3 ARM: add DMA driver for mx50
Huang Shijie [Thu, 28 Apr 2011 06:39:44 +0000 (14:39 +0800)]
ENGR00143126-3 ARM: add DMA driver for mx50

add the DMA driver for mx50.

Signed-off-by: Huang Shijie <b32955@freescale.com>
11 years agoENGR00143126-2 ARM: add DMA device for mx50
Huang Shijie [Wed, 27 Apr 2011 02:29:31 +0000 (10:29 +0800)]
ENGR00143126-2 ARM: add DMA device for mx50

add dma device for mx50.

Signed-off-by: Huang Shijie <b32955@freescale.com>
11 years agoENGR00143126-1 ARM: add DMA support for mx50
Huang Shijie [Wed, 27 Apr 2011 02:19:45 +0000 (10:19 +0800)]
ENGR00143126-1 ARM: add DMA support for mx50

add the DMA support for platform mx50.

Signed-off-by: Huang Shijie <b32955@freescale.com>
11 years agoENGR00141558-9 MTD : add gpmi support for MX50
Huang Shijie [Tue, 26 Apr 2011 09:10:59 +0000 (17:10 +0800)]
ENGR00141558-9 MTD : add gpmi support for MX50

add the gpmi support for mx50.

Signed-off-by: Huang Shijie <b32955@freescale.com>
11 years agoENGR00141558-8 ARM: add gpmi device for mx508
Huang Shijie [Tue, 26 Apr 2011 08:27:29 +0000 (16:27 +0800)]
ENGR00141558-8 ARM: add gpmi device for mx508

add the gpmi device for mx508.

Signed-off-by: Huang Shijie <b32955@freescale.com>
11 years agoENGR00141558-7 ARM: add gpmi support for MX508
Huang Shijie [Tue, 26 Apr 2011 08:26:19 +0000 (16:26 +0800)]
ENGR00141558-7 ARM: add gpmi support for MX508

add gpmi support for mx508.

Signed-off-by: Huang Shijie <b32955@freescale.com>
11 years agoENGR00141558-6 MTD : add GPMI driver in the config and Makefile
Huang Shijie [Tue, 15 Mar 2011 07:14:28 +0000 (15:14 +0800)]
ENGR00141558-6 MTD : add GPMI driver in the config and Makefile

add the GPMI driver in the relevant Kconfig and Makefile in the MTD.

Signed-off-by: Huang Shijie <b32955@freescale.com>
11 years agoENGR00141558-5 MTD : add support for imx23 and imx28
Huang Shijie [Wed, 30 Mar 2011 08:09:54 +0000 (16:09 +0800)]
ENGR00141558-5 MTD : add support for imx23 and imx28

Add the implementation code for imx23 and imx28.
The imx23 and imx28 share most of the same code.

Signed-off-by: Huang Shijie <b32955@freescale.com>
11 years agoENGR00141558-4 MTD : add the common code for GPMI controller driver
Huang Shijie [Wed, 30 Mar 2011 08:01:28 +0000 (16:01 +0800)]
ENGR00141558-4 MTD : add the common code for GPMI controller driver

These files contain the common code for the GPMI driver.

Signed-off-by: Huang Shijie <b32955@freescale.com>
11 years agoENGR00141558-3 ARM: mxs: add GPMI device for imx28
Huang Shijie [Fri, 15 Apr 2011 09:20:56 +0000 (17:20 +0800)]
ENGR00141558-3 ARM: mxs: add GPMI device for imx28

add gpmi device for imx28.

Signed-off-by: Huang Shijie <b32955@freescale.com>
11 years agoENGR00141558-2 ARM: mxs: add GPMI device for imx23
Huang Shijie [Fri, 15 Apr 2011 09:19:26 +0000 (17:19 +0800)]
ENGR00141558-2 ARM: mxs: add GPMI device for imx23

add the gpmi device for imx23.

Signed-off-by: Huang Shijie <b32955@freescale.com>
11 years agoENGR00141558-1 ARM: mxs: add GPMI support for imx23/imx28
Huang Shijie [Fri, 15 Apr 2011 07:49:45 +0000 (15:49 +0800)]
ENGR00141558-1 ARM: mxs: add GPMI support for imx23/imx28

add gpmi support for imx23 and imx28.

Signed-off-by: Huang Shijie <b32955@freescale.com>
11 years agoENGR00143074 Firmware: Fix firmware build failed in 2.6.38 kernel
Zeng Zhaoming [Thu, 5 May 2011 15:32:17 +0000 (23:32 +0800)]
ENGR00143074 Firmware: Fix firmware build failed in 2.6.38 kernel

Firmware build failed when add ihex format firmware.

This regression introduced by d21b2d2fb3a689193cae637d7195512ba8451a63,
which wrongly add 'bin-format' firmware.

Fix it by revert the wrong commit and convert sdma firmware to ihex.

Signed-off-by: Zeng Zhaoming <b32542@freescale.com>
Acked-by: Lily Zhang <r58066@freescale.com>
11 years agoENGR00142679 SCC2 and SAHARA: changes to support loadable modules
Anish Trivedi [Fri, 29 Apr 2011 18:49:39 +0000 (13:49 -0500)]
ENGR00142679 SCC2 and SAHARA: changes to support loadable modules

To allow SCC2 and SAHARA drivers to work as loadable modules, needed
to add GPL license to SAHARA driver, export a couple of functions
from SCC2 driver, and the following data buffer mapping change in
SAHARA driver:

When compiled as a loadable module, a data buffer to be DMA'ed in the
SAHARA driver may not be in the kernel direct-mapped region but in
the "Kernel module space" between TASK_SIZE and high_memory-1
(see http://www.arm.linux.org.uk/developer/memory.txt). In this
scenario, the driver canno simply use the __pa macro to obtain
the physical address. It must walk the page tables to find the
page and use the page_to_phys function to find the physical
address that corresponds to the data buffer.

Signed-off-by: Anish Trivedi <anish@freescale.com>
11 years agoENGR00142734 SDMA: Fix sdma incorrect lock usage.
Zeng Zhaoming [Thu, 28 Apr 2011 18:34:05 +0000 (02:34 +0800)]
ENGR00142734 SDMA: Fix sdma incorrect lock usage.

In very seldom, play audio will caused system hangs in 2.6.38 kernel.

This is caused by new sdma driver wrongly enable irq after enable channel.

Signed-off-by: Zeng Zhaoming <b32542@freescale.com>
11 years agoENGR00142733 MX51: Add sgtl5000 support for babbage
Zeng Zhaoming [Thu, 28 Apr 2011 02:32:09 +0000 (10:32 +0800)]
ENGR00142733 MX51: Add sgtl5000 support for babbage

Add sgtl5000 support for imx51 babbage in 2.6.38 kernel

Signed-off-by: Zeng Zhaoming <b32542@freescale.com>
11 years agoENGR00141552 ipuv3: fix display pin's power leak
Jason Chen [Thu, 28 Apr 2011 03:23:36 +0000 (11:23 +0800)]
ENGR00141552 ipuv3: fix display pin's power leak

If you disable display, the display port's pin may keep high voltage which
may cause power leakage. Fix this issue by make all pin go into low level
after display disable.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00142517-2 camera clk initialization
Yuxi Sun [Tue, 26 Apr 2011 05:44:40 +0000 (13:44 +0800)]
ENGR00142517-2 camera clk initialization

Modified camera clk initialization and camera platform data
name to coincide with history.

Signed-off-by: Sun Yuxi <b36102@freescale.com>
11 years agoENGR00142517-1 ARM: mx53 smd:camera pin config
Yuxi Sun [Tue, 26 Apr 2011 05:41:39 +0000 (13:41 +0800)]
ENGR00142517-1 ARM: mx53 smd:camera pin config

Add camera pin and clk configuration

Signed-off-by: Sun Yuxi <b36102@freescale.com>
11 years agoENGR00142591 GPU: add some print message to help debug
Richard Zhao [Tue, 26 Apr 2011 09:37:50 +0000 (17:37 +0800)]
ENGR00142591 GPU: add some print message to help debug

Add print message when ioremap or shared memory alloc fail.

Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
11 years agoENGR00142471 imx5_defconfig: update config according to .35 kernel
Richard Zhao [Fri, 22 Apr 2011 04:35:10 +0000 (12:35 +0800)]
ENGR00142471 imx5_defconfig: update config according to .35 kernel

- 2G/2G memory split
- low latency preempt
...

Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
11 years agoENGR00142436-2 SGTL5000: Audio not work in 2.6.38 kernel
Zeng Zhaoming [Thu, 21 Apr 2011 00:06:29 +0000 (08:06 +0800)]
ENGR00142436-2 SGTL5000: Audio not work in 2.6.38 kernel

If platform not provide headphone status detect gpio, should not failed
the audio subsystem.

Fix it by complains with a warning.

Signed-off-by: Zeng Zhaoming <b32542@freescale.com>
11 years agoENGR00142436-1 MX53 LOCO: Audio not work in 2.6.38 kernel
Zeng Zhaoming [Thu, 21 Apr 2011 00:01:53 +0000 (08:01 +0800)]
ENGR00142436-1 MX53 LOCO: Audio not work in 2.6.38 kernel

Audio init failed with:
failed to call snd_soc_jack_add_gpios
soc-audio soc-audio: asoc: failed to init HiFi: -16
asoc: failed to instantiate card sgtl5000-audio: -16

This is caused by hp_status() callback gpio setting introduced by:
9dbaab8db17c3ce6bbe368a2b708c41ea1db33f8

Fix it by provide gpio setting in platform data.

Signed-off-by: Zeng Zhaoming <b32542@freescale.com>
11 years agoENGR00142413: MX51: Fix mx51 I2c board info multiple defined in 2.6.38
Zeng Zhaoming [Wed, 20 Apr 2011 19:34:56 +0000 (03:34 +0800)]
ENGR00142413: MX51: Fix mx51 I2c board info multiple defined in 2.6.38

Multiple defined i2c board info in 2.6.38 kernel for mx51 bbg.
This cause a build error.

Signed-off-by: Zeng Zhaoming <b32542@freescale.com>
11 years agoENGR00142304: IMX51: Add pmic support for IMX51 babbage in 2.6.38
Zeng Zhaoming [Wed, 20 Apr 2011 19:18:48 +0000 (03:18 +0800)]
ENGR00142304: IMX51: Add pmic support for IMX51 babbage in 2.6.38

Add pmic support for imx51 babbage in upgrading to 2.6.38
Signed-off-by: Zeng Zhaoming <b32542@freescale.com>
11 years agoENGR00142303: IMX51: add sgtl5000 support for MX51 babbage
Zeng Zhaoming [Mon, 18 Apr 2011 19:11:01 +0000 (03:11 +0800)]
ENGR00142303: IMX51: add sgtl5000 support for MX51 babbage

Add sgtl5000 audio support for imx51 babbage in upgrading to 2.6.38.

Signed-off-by: Zeng Zhaoming <b32542@freescale.com>
11 years agoENGR00142351 mxc_gpu: autogating: add pending flag
Richard Zhao [Wed, 20 Apr 2011 05:18:15 +0000 (13:18 +0800)]
ENGR00142351 mxc_gpu: autogating: add pending flag

pending indicate the timer has been fired but clock not yet disabled.

This patch fixs the bug that sometimes in irq handle it tries to enable
clock and cause BUG.

Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
11 years agoENGR00141152-3 make default display option for drivers
Jason Chen [Tue, 19 Apr 2011 08:35:36 +0000 (16:35 +0800)]
ENGR00141152-3 make default display option for drivers

make default display option for tve/vga/hdmi/ddc

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00141152-2 imx5X MSL: make default display option
Jason Chen [Tue, 19 Apr 2011 08:34:02 +0000 (16:34 +0800)]
ENGR00141152-2 imx5X MSL: make default display option

Change MSL files.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00141152-1 header file: make default display option
Jason Chen [Tue, 19 Apr 2011 08:33:28 +0000 (16:33 +0800)]
ENGR00141152-1 header file: make default display option

After this patch, default display for below platforms:

mx51 bbg: DVI-XGA on DI0
mx53 ard:  LVDS-XGA on DI0
mx53 evk: CLAA-WVGA on DI0
mx53 loco: VGA-XGA on DI1
mx53 smd: LVDS-XGA on DI1

The default options will work if you do not enter other video cmdline options.
For platform need enable other drivers, it will enable it automatically.
For example, under default option, mx53 loco will enable tve-vga driver
automatically; before this patch, it need add 'vga' to cmdline to enable it.
And 'di1_primary' option also will be enabled automatically if need.

If you want to overwrite the default option, please refer to below:

enable vga: 'vga'
disable vga: 'vga=off'
enable tve: 'tve'
disable tve:  'tve=off'
enable ddc: 'ddc'
disable ddc: 'ddc=off'
enable hdmi: 'hdmi'
disable hdmi: 'hdmi=off'
choose di0 as primary: 'di0_primary'
choose di1 as primary: 'di1_primary'

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00141400 GPU: Improve GPU clock gating
Zhou, Jie [Thu, 31 Mar 2011 17:01:27 +0000 (01:01 +0800)]
ENGR00141400 GPU: Improve GPU clock gating

seperate interrupt handling and clk_enable for Z160 and Z430

Signed-off-by: Zhou, Jie <b30303@freescale.com>
Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
11 years agoENGR00140700 GPU: fix tiger run the second time causing system hang
Richard Zhao [Wed, 16 Mar 2011 02:37:52 +0000 (10:37 +0800)]
ENGR00140700 GPU: fix tiger run the second time causing system hang

The root cause is endless GSL_INTR_BLOCK_YDX_CP interrupt.
Apply interrupt status read work around only when yamato started.

Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
11 years agoENGR00140050 GPU: workaround hang with heavy bus loading
Zhou, Jie [Wed, 2 Mar 2011 17:02:40 +0000 (01:02 +0800)]
ENGR00140050 GPU: workaround hang with heavy bus loading

The GPU hang when run two cubes together with one video playback.
According to the suggestion from AMD, we'd better not read register
when GPU active, especially for CP block.

Signed-off-by: Zhou, Jie <b30303@freescale.com>
11 years agoENGR00142296-2 SRTC: Upgrade driver to kernel version 2.6.38
Anish Trivedi [Mon, 18 Apr 2011 19:38:48 +0000 (14:38 -0500)]
ENGR00142296-2 SRTC: Upgrade driver to kernel version 2.6.38

RTC-DEV ioctl interface changed, which required a definition
 of new callback mxc_rtc_alarm_irq_enable in SRTC driver.

Also, added a sync call to mxc_rtc_interrupt after a write to
LP domain register to make sure we wait 3 clock cycles in order
for the write to complete, as required by the hardware.

Signed-off-by: Anish Trivedi <anish@freescale.com>
11 years agoENGR00142296-1 ARM: MX5: Add SRTC device support
Anish Trivedi [Mon, 18 Apr 2011 18:59:27 +0000 (13:59 -0500)]
ENGR00142296-1 ARM: MX5: Add SRTC device support

Machine layer changes to add SRTC device for MX5x platforms.

Signed-off-by: Anish Trivedi <anish@freescale.com>
11 years agoENGR00142268 ARM i.MX51 bbg: add display support.
Jason Chen [Mon, 18 Apr 2011 09:14:02 +0000 (17:14 +0800)]
ENGR00142268 ARM i.MX51 bbg: add display support.

Add display device support for mx51 bbg.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00142266-7 eSDHC:Add the GPIO CD/WP on MX53 EVK boards
Richard Zhu [Mon, 18 Apr 2011 10:25:48 +0000 (18:25 +0800)]
ENGR00142266-7 eSDHC:Add the GPIO CD/WP on MX53 EVK boards

arm: enable the eSDHC CD/WP on MX53 EVK board

Signed-off-by: Richard Zhu <r65037@freescale.com>
11 years agoENGR00142266-6 eSDHC:Add the GPIO CD/WP on MX53 ARD boards
Richard Zhu [Mon, 18 Apr 2011 08:18:35 +0000 (16:18 +0800)]
ENGR00142266-6 eSDHC:Add the GPIO CD/WP on MX53 ARD boards

arm: enable the eSDHC CD/WP on MX53 ARD board

Signed-off-by: Richard Zhu <r65037@freescale.com>
11 years agoENGR00142266-5 eSDHC:Add the GPIO CD/WP on MX53 SMD boards
Richard Zhu [Mon, 18 Apr 2011 07:18:06 +0000 (15:18 +0800)]
ENGR00142266-5 eSDHC:Add the GPIO CD/WP on MX53 SMD boards

arm: enable the eSDHC CD/WP on MX53 SMD board

Signed-off-by: Richard Zhu <r65037@freescale.com>
11 years agoENGR00142266-4 eSDHC:Add the GPIO CD/WP on MX53 LOCO boards
Richard Zhu [Mon, 18 Apr 2011 06:53:16 +0000 (14:53 +0800)]
ENGR00142266-4 eSDHC:Add the GPIO CD/WP on MX53 LOCO boards

arm: enable the eSDHC CD/WP on MX53 LOCO board

Signed-off-by: Richard Zhu <r65037@freescale.com>
11 years agoENGR00142266-3 eSDHC:Add the GPIO CD/WP on MX51 BBG boards
Richard Zhu [Mon, 18 Apr 2011 06:53:56 +0000 (14:53 +0800)]
ENGR00142266-3 eSDHC:Add the GPIO CD/WP on MX51 BBG boards

arm: enable the eSDHC CD/WP on MX51 BBG board

Signed-off-by: Richard Zhu <r65037@freescale.com>
11 years agoENGR00142266-2 eSDHC:Add the GPIO CD/WP on MX5x boards
Richard Zhu [Mon, 18 Apr 2011 06:52:50 +0000 (14:52 +0800)]
ENGR00142266-2 eSDHC:Add the GPIO CD/WP on MX5x boards

sdhc: add the CD/WP on the MX5x boards

Signed-off-by: Richard Zhu <r65037@freescale.com>
11 years agoENGR00142266-1 eSDHC:Add the GPIO CD/WP on MX5x boards
Richard Zhu [Mon, 18 Apr 2011 07:39:19 +0000 (15:39 +0800)]
ENGR00142266-1 eSDHC:Add the GPIO CD/WP on MX5x boards

sdhc: add always present member into esdhc platform data struct

Signed-off-by: Richard Zhu <r65037@freescale.com>
11 years agoENGR00142132 SPI: Fix the wrong SPI clocks definitions in 2.6.38
Richard Zhu [Thu, 14 Apr 2011 10:03:36 +0000 (18:03 +0800)]
ENGR00142132 SPI: Fix the wrong SPI clocks definitions in 2.6.38

Fix the wrong SPI clocks definitions after upgrade from 2.6.35
to 2.6.38

Signed-off-by: Richard Zhu <r65037@freescale.com>
11 years agoENGR00137340-2 MX53_SMD: add headphone detection support.
Zhang Jiejing [Fri, 15 Apr 2011 02:02:33 +0000 (10:02 +0800)]
ENGR00137340-2 MX53_SMD: add headphone detection support.

add headphone gpio in imx sound card platform data.
delete old method of headphone detection codec.

Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
11 years agoENGR00137340-1 ASOC: add headphone detection support for imx-sgtl5000.c
Zhang Jiejing [Fri, 15 Apr 2011 01:59:03 +0000 (09:59 +0800)]
ENGR00137340-1 ASOC: add headphone detection support for imx-sgtl5000.c

add a asoc headphone detection, it's a generic way using by asoc area.

Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
11 years agoENGR00142089-3 MX51/MX53: Upgrade SCC2 and SAHARA drivers to 2.6.38
Anish Trivedi [Wed, 13 Apr 2011 19:21:30 +0000 (14:21 -0500)]
ENGR00142089-3 MX51/MX53: Upgrade SCC2 and SAHARA drivers to 2.6.38

Starting with 2.6.36, ioctl file operation is removed; therefore,
changed ioctl function to unlocked_ioctl function, which has a
different function prototype and requires local locking mechanism
to prevent more than 1 user from accessing ioctls at the same time.

Modified SCC2 driver to obtain IRQs from resource array.

Modified SAHARA driver to use either MX53 or MX51 base address and
irq definitions since the generic versions are no longer defined
in the machine layer header files.

Signed-off-by: Anish Trivedi <anish@freescale.com>
11 years agoENGR00142089-2 MX51/MX53 Upgrade SCC2 and SAHARA drivers to 2.6.38
Anish Trivedi [Wed, 13 Apr 2011 19:18:45 +0000 (14:18 -0500)]
ENGR00142089-2 MX51/MX53 Upgrade SCC2 and SAHARA drivers to 2.6.38

Removed SCC2 IRQ definitions from header file since
IRQs will be obtained from resource array during probe
function.

Signed-off-by: Anish Trivedi <anish@freescale.com>
11 years agoENGR00142089-1 MX51/MX53: Upgrade SCC2 and SAHARA drivers to 2.6.38
Anish Trivedi [Wed, 13 Apr 2011 19:16:04 +0000 (14:16 -0500)]
ENGR00142089-1 MX51/MX53: Upgrade SCC2 and SAHARA drivers to 2.6.38

Machine layer changes to add SCC2 device.

Signed-off-by: Anish Trivedi <anish@freescale.com>
11 years agoENGR00141554 tve: fix atomic schedule issue in uevent
Jason Chen [Fri, 15 Apr 2011 08:35:21 +0000 (16:35 +0800)]
ENGR00141554 tve: fix atomic schedule issue in uevent

uevent should not be sent during lock hold.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00141363 ARM imx53 clock: change di0 clock default parent to pll3
Jason Chen [Fri, 15 Apr 2011 08:25:57 +0000 (16:25 +0800)]
ENGR00141363 ARM imx53 clock: change di0 clock default parent to pll3

If enable both LVDS and one display device use external di clock, there will
be conflict between their clock parent -- both use pll4 on mx53. So it need
change di0 clock parent to pll3, and then uart parent need change to pll2 to
avoid console mess.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00141312 tve: add uevent for tve cable detection
Jason Chen [Fri, 15 Apr 2011 08:23:13 +0000 (16:23 +0800)]
ENGR00141312 tve: add uevent for tve cable detection

When cable mode changed, below uevent will be sent out:
EVENT=NONE
EVENT=CVBS0
EVENT=YPBPR
EVENT=SVIDEO
under /sys/devices/platform/tve.0

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00141161 ipuv3: add bgr24 fmt support for di
Jason Chen [Fri, 15 Apr 2011 07:07:18 +0000 (15:07 +0800)]
ENGR00141161 ipuv3: add bgr24 fmt support for di

add bgr24 fmt support for di

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00141155-2 sii902x: add related regulator
Jason Chen [Fri, 15 Apr 2011 07:05:38 +0000 (15:05 +0800)]
ENGR00141155-2 sii902x: add related regulator

Add related regulator.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00141155-1 ARM mx53_smd: add related regulator for hdmi
Jason Chen [Fri, 15 Apr 2011 07:04:23 +0000 (15:04 +0800)]
ENGR00141155-1 ARM mx53_smd: add related regulator for hdmi

add related regulator for hdmi.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00139755 mxc edid: work around no support interlaced mode
Jason Chen [Fri, 25 Feb 2011 08:00:17 +0000 (16:00 +0800)]
ENGR00139755 mxc edid: work around no support interlaced mode

Remove interlaced mode from fb modelist before it can be supported.
Should revert this patch after interlaced mode support on normal display port.

Signed-off-by: Jason Chen <b02280@freescale.com>
(cherry picked from commit 079a6024a7369117b8f2ca8f3a905702a0175394)

11 years agoENGR00139635 mxc edid: add edid name sysnode
Jason Chen [Wed, 23 Feb 2011 10:18:50 +0000 (18:18 +0800)]
ENGR00139635 mxc edid: add edid name sysnode

Add name sysnode to mxc_ddc and sii902x, which can be check under:
/sys/devices/platform/mxc_ddc.0/fb_name
or
/sys/devices/platform/sii902x.0/fb_name
It's the name of fb fix id which it associated.

Signed-off-by: Jason Chen <b02280@freescale.com>
(cherry picked from commit 5dbcc3e22a82d849ee69576857bb54060e432fc8)

11 years agoENGR00139643 mxc edid: can not read edid at probe for first power on
Jason Chen [Fri, 15 Apr 2011 08:09:59 +0000 (16:09 +0800)]
ENGR00139643 mxc edid: can not read edid at probe for first power on

Need enable analog regulator.

Signed-off-by: Jason Chen <b02280@freescale.com>
(cherry picked from commit ff2c76f8204555ae789dfc12e8e06f6ba188e7fe)

11 years agoENGR00142020-3: MX50: Add SPI and MC13892 support
Ranjani Vaidyanathan [Wed, 13 Apr 2011 16:49:10 +0000 (11:49 -0500)]
ENGR00142020-3: MX50: Add SPI and MC13892 support

Add SPI and PMIC support for MX50

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
11 years agoENGR00142020-2: MX50: Add SPI and MC13892 support
Ranjani Vaidyanathan [Wed, 13 Apr 2011 16:48:00 +0000 (11:48 -0500)]
ENGR00142020-2: MX50: Add SPI and MC13892 support

Add PMIC and SPI support for MX50

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>