]> git.karo-electronics.de Git - karo-tx-linux.git/log
karo-tx-linux.git
11 years agoENGR00154983 [MX6]Enet clock enable wrong
Anson Huang [Thu, 18 Aug 2011 03:22:06 +0000 (11:22 +0800)]
ENGR00154983 [MX6]Enet clock enable wrong

ENET should be CCM_CCGR1, CG5.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

4. Change the suspend code to run in iRAM;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Set fsl arc usb device driver as default usb device driver

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

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

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

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

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

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

Add cea extend revision 1 and 2 support.

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

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

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

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

Fix it by remove this restriction

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

add the dma support for imx6q.

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

add the dma device for imx6q.

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

add the arch code for APBH-DMA.

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

add the gpmi driver for imx6q.

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

add gpmi device for sabreauto platform.

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

add the arch code for GPMI.

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

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

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

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

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

make ldb support two ipu in separate mode

cmdline option changed:

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

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

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

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

make ldb support two ipu in separate mode.

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

make ldb support two ipu in separate mode

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

UART hold the following locks in order of:

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

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

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

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

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

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

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

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

following log is the scenario.

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

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

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

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

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

Errata number:TKT039676

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

Workaround: write wdog control register twice.

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

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

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

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

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

2. Remove all iram related code in suspend.

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

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

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

set default ipu di clock parent to pll5.

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

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

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

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

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

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

Add new VPU_IOC_REQ_VSHARE_MEM ioctl to request vmalloced share memory.

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

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

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

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

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

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

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

Add function get_rate to clk pll3_pfd_508M.

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

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

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

Add asrc support in defconfig.

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

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

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

Add asrc support for mx6.

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

The asrc_2_mcu script is not supported well by this driver.

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

Used for add asrc device.

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

Used for asrc driver.

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

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

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

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

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

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

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

To fix DVI output signal stable issue.

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

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

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

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

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

- Added HDMI device to imx6 config

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

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

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

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

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

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

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

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

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

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

Signed-off-by: Lionel Xu <R63889@freescale.com>
11 years agoENGR00153601 [MX6]Adjust L2 cache parameter
Anson Huang [Mon, 25 Jul 2011 08:14:24 +0000 (16:14 +0800)]
ENGR00153601 [MX6]Adjust L2 cache parameter

Adjust L2 cache parameter to improve both
performance and power consumption.

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00153598 MX6 defconfig: remove optimize for size
Frank Li [Mon, 25 Jul 2011 07:46:24 +0000 (15:46 +0800)]
ENGR00153598 MX6 defconfig: remove optimize for size

optimize for speed
add CONFIG_TOUCHSCREEN_EGALAX

Signed-off-by: Frank Li <Frank.Li@freescale.com>
11 years agoENGR00153578 tve-vga: set vga output gain to improve quality
Jason Chen [Mon, 25 Jul 2011 06:31:06 +0000 (14:31 +0800)]
ENGR00153578 tve-vga: set vga output gain to improve quality

set vga output gain to improve quality.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00153275-2 mx53 L2638 msl modifications when add ahci temp-monitor
Richard Zhu [Tue, 19 Jul 2011 05:45:36 +0000 (13:45 +0800)]
ENGR00153275-2 mx53 L2638 msl modifications when add ahci temp-monitor

based on the 2.6.38 kernel mainline, refer to linux std hwmon
architeture, add the standalone ahci temperature monitor driver
on fsl i.mx53 platforms.

Signed-off-by: Richard Zhu <r65037@freescale.com>
11 years agoENGR00153275-1 ahci L2638 add the standalone ahci temperature monitor
Richard Zhu [Tue, 19 Jul 2011 05:42:29 +0000 (13:42 +0800)]
ENGR00153275-1 ahci L2638 add the standalone ahci temperature monitor

based on the 2.6.38 kernel mainline, refer to linux lm-sensors
architeture, add the standalone ahci temperature monitor driver
on fsl i.mx53 platforms.
Less than half sencond is used in one temperature read operation.

usage:
Use the following cmd to cat the i.mx53 soc temperature after
boot up i.mx53 system in user space.
for example:
...$ cat /sys/class/hwmon/hwmon1/device/temp1_input
61000
or run the following cmd after configure the lm-sensors
...$ sensors
imx-ahci-hwmon-isa-0000
Adapter: ISA adapter
temp1:        +58.0 C

Signed-off-by: Richard Zhu <r65037@freescale.com>
11 years agoENGR00153429 [WDOG]Workaround for SMP wdog reset
Anson Huang [Wed, 20 Jul 2011 07:57:05 +0000 (15:57 +0800)]
ENGR00153429 [WDOG]Workaround for SMP wdog reset

1. Copy mx6_secondary_startup to iRAM;
2. CPU0 reset CPUx, then waiting CPUx reset OK, and
   clear CPUx's boot_entry;
3. CPUx reset OK, waiting CPU0 to clear its parameter;
4. All these steps done, CPUx go on boot;

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00153507: Mx6q/d- Add the support to change the rate of Audio/Video PLLs
Ranjani Vaidyanathan [Thu, 21 Jul 2011 20:33:13 +0000 (15:33 -0500)]
ENGR00153507: Mx6q/d- Add the support to change the rate of Audio/Video PLLs

Add set_rate and get_rate functions to the Audio and Video PLLs.

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
11 years agoENGR00139238-3 MX6: add p1003 i2c touch device
Frank Li [Wed, 20 Jul 2011 10:44:20 +0000 (18:44 +0800)]
ENGR00139238-3 MX6: add p1003 i2c touch device

Add p1003 i2c touch device

Signed-off-by: Frank Li <Frank.Li@freescale.com>
11 years agoENGR00139238-2 Touch: add p1003 and egalax
Frank Li [Wed, 20 Jul 2011 10:41:50 +0000 (18:41 +0800)]
ENGR00139238-2 Touch: add p1003 and egalax

Add p1003 and egalax touch driver

Signed-off-by: Frank Li <Frank.Li@freescale.com>
11 years agoENGR00139238-1 include: add p1003_ts_platform_data to fsl_device.h
Frank Li [Wed, 20 Jul 2011 10:42:58 +0000 (18:42 +0800)]
ENGR00139238-1 include: add p1003_ts_platform_data to fsl_device.h

Add p1003_ts_platform_data to fsl_device.h

Signed-off-by: Frank Li <Frank.Li@freescale.com>
11 years agoENGR00153373-2 config add ocotp to default config
Frank Li [Wed, 20 Jul 2011 06:52:21 +0000 (14:52 +0800)]
ENGR00153373-2 config add ocotp to default config

Add ocotp to default config
Add watch dog to default config
Add debugfs and clk_debug to default config

Signed-off-by: Frank Li <Frank.Li@freescale.com>
11 years agoENGR00153373-1 OCOTP: Add missed header file
Frank Li [Wed, 20 Jul 2011 06:51:29 +0000 (14:51 +0800)]
ENGR00153373-1 OCOTP: Add missed header file

Add missed ocopt header file

Signed-off-by: Frank Li <Frank.Li@freescale.com>
11 years agoENGR00139274-4 [UART]Enable suspend/resume feature
Anson Huang [Wed, 20 Jul 2011 06:46:37 +0000 (14:46 +0800)]
ENGR00139274-4 [UART]Enable suspend/resume feature

1. Enable wake up of uart;

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00139274-3 [MX6]Enable suspend/resume feature
Anson Huang [Wed, 20 Jul 2011 06:45:21 +0000 (14:45 +0800)]
ENGR00139274-3 [MX6]Enable suspend/resume feature

1. Add irq_set_wake function to gic chip;
2. Fix uart no_console_suspend issue;

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00139274-2 [MX6]Enable suspend/resume
Anson Huang [Tue, 19 Jul 2011 05:29:54 +0000 (13:29 +0800)]
ENGR00139274-2 [MX6]Enable suspend/resume

Enable suspend/resume for MX6, using debug
UART as wake up source due to hardware design
limitation.

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00139274-1 [MX6]Enable suspend/resume feature
Anson Huang [Mon, 18 Jul 2011 04:54:13 +0000 (12:54 +0800)]
ENGR00139274-1 [MX6]Enable suspend/resume feature

Enable suspend/resume feature for MX6q

echo standby > /sys/power/state -> wait mode;
echo mem > /sys/power/state -> stop mode;

Currentlu only support debug uart as wakeup source;

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00153270 imx5_defconfig: disable mxc v4l2 capture
Jason Chen [Tue, 19 Jul 2011 04:54:57 +0000 (12:54 +0800)]
ENGR00153270 imx5_defconfig: disable mxc v4l2 capture

disable config of mxc v4l2 capture to fix build error issue.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00152287-3 SDMA: Fix sdma cache bufferable issue
Zeng Zhaoming [Mon, 18 Jul 2011 03:55:41 +0000 (11:55 +0800)]
ENGR00152287-3 SDMA: Fix sdma cache bufferable issue

MX6Q desclare dma memory bufferable, which cause sdma
load context failed in 60% possibility.

To fix it, we need to add dsb to flush write buffer before
start dma transfer.

Signed-off-by: Zeng Zhaoming <b32542@freescale.com>
11 years agoENGR00152287-2 SDMA: Add SDMA support for MX6Q
Zeng Zhaoming [Mon, 11 Jul 2011 22:01:02 +0000 (06:01 +0800)]
ENGR00152287-2 SDMA: Add SDMA support for MX6Q

Add sdma support for mx6q.
add mx6 dependency for sdma, and add sdma mx6 firmware.

Note: firmware not release by owner, this version only for test.

Signed-off-by: Zeng Zhaoming <b32542@freescale.com>
11 years agoENGR00152287-1 MX6: Add SDMA support for MX6Q
Zeng Zhaoming [Mon, 11 Jul 2011 22:00:27 +0000 (06:00 +0800)]
ENGR00152287-1 MX6: Add SDMA support for MX6Q

Add SDMA support for MX6Q.
Enable sdma in imx6 default configure.

Signed-off-by: Zeng Zhaoming <b32542@freescale.com>
11 years agoENGR00153208-2 Add SNVS RTC driver
Anish Trivedi [Fri, 15 Jul 2011 21:00:59 +0000 (16:00 -0500)]
ENGR00153208-2 Add SNVS RTC driver

This adds an RTC driver for the Low Power (LP) section of SNVS.
It hooks into the /dev/rtc interface.
It only uses the RTC hw in non-secure mode.

Signed-off-by: Anish Trivedi <anish@freescale.com>
11 years agoENGR00153208-1 Machine layer changes for SNVS RTC driver
Anish Trivedi [Fri, 15 Jul 2011 20:55:34 +0000 (15:55 -0500)]
ENGR00153208-1 Machine layer changes for SNVS RTC driver

Add SNVS RTC as a device on MX6

Signed-off-by: Anish Trivedi <anish@freescale.com>
11 years agoENGR00153217-2 mxc_dispdrv: add sii902x hdmi driver support
Jason Chen [Mon, 18 Jul 2011 08:38:14 +0000 (16:38 +0800)]
ENGR00153217-2 mxc_dispdrv: add sii902x hdmi driver support

Add sii902x display driver to mxc_dispdrv.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00153217-1 fsl_devices.h: change fsl_mxc_lcd_platform_data
Jason Chen [Mon, 18 Jul 2011 08:37:27 +0000 (16:37 +0800)]
ENGR00153217-1 fsl_devices.h: change fsl_mxc_lcd_platform_data

change fsl_mxc_lcd_platform_data.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00153216-2 mxc_dispdrv: add dvi display driver support
Jason Chen [Mon, 18 Jul 2011 08:36:26 +0000 (16:36 +0800)]
ENGR00153216-2 mxc_dispdrv: add dvi display driver support

change dvi display driver to mxc_dispdrv.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00153216-1 MSL: add dvi display driver support
Jason Chen [Mon, 18 Jul 2011 04:30:45 +0000 (12:30 +0800)]
ENGR00153216-1 MSL: add dvi display driver support

change for mx51_bbg, mx53_evk, mx6q_sabr platform.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00153132 mx6q: enable vpu iram usage
Sammy He [Thu, 14 Jul 2011 18:36:20 +0000 (02:36 +0800)]
ENGR00153132 mx6q: enable vpu iram usage

Enable iram for vpu on mx6q.

Signed-off-by: Sammy He <r62914@freescale.com>
11 years agoENGR00153218 mxc gpio: tzic should not disable gpio interrupt line
Jason Chen [Mon, 18 Jul 2011 04:44:25 +0000 (12:44 +0800)]
ENGR00153218 mxc gpio: tzic should not disable gpio interrupt line

For SOC using TZIC, gpio_irq_handler should not call tzic chip ack
funtion, cause it will disable this interrupt line.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00153221 [MX6Q uSDHC]workaround for TC intr coming ealier than DMA intr
Tony Lin [Mon, 18 Jul 2011 05:46:23 +0000 (13:46 +0800)]
ENGR00153221 [MX6Q uSDHC]workaround for TC intr coming ealier than DMA intr

if TC interrupt bit is set but DMA interrupt bit is clear, read status register
again in case DMA interrupt will come in next time cycle

Signed-off-by: Tony Lin <tony.lin@freescale.com>
11 years agoENGR00153160 fix card interrupt issue on uSDHC and eSDHC
Tony Lin [Fri, 15 Jul 2011 02:59:38 +0000 (10:59 +0800)]
ENGR00153160 fix card interrupt issue on uSDHC and eSDHC

uSDHC: card interrupt storm if we do not clear card interrupt
status by sw.
eSDHC: card interrupt will be lost if we do not set D3CD bit.
apply the workarounds in sdhci-esdhc-imx.c to avoid adding new
QUIRKs.

Signed-off-by: Tony Lin <tony.lin@freescale.com>
11 years agoENGR00152359-3 sii902x hdmi: add AVI and AIF support for common changes
Jason Chen [Wed, 13 Jul 2011 07:24:19 +0000 (15:24 +0800)]
ENGR00152359-3 sii902x hdmi: add AVI and AIF support for common changes

1.add AVI and AIF support.
2.add edid 4-block reading support.(not test)

For RGB input fmt support, pls input cmdline like:
video=mxcdixfb:RGB24,1024x768M@60
For YUV input fmt support, pls input cmdline like:
video=mxcdixfb:VYU444,1024x768M@60

Signed-off-by: Jason Chen <b02280@freescale.com>