Commit Graph

158751 Commits

Author SHA1 Message Date
Peter Chen
ee2d41156d ENGR00124224 mx51: Update the new mfg default config according to mx5_defconfig
The old imx51_updater_defconfig is out-dated, so delete it,
and mfg firmware will use imx5_updater_defconfig in future.

Signed-off-by: Peter Chen <b29397@freescale.com>
2010-08-10 11:50:50 -05:00
Nancy Chen
92797b88b0 ENGR00120301 MX51: Fix slow TS issue
MX51: Fix slow TS issue.

Signed-off-by: Nancy Chen <Nancy.Chen@freescale.com>
2010-08-10 11:50:49 -05:00
Peter Chen
f0125b7c53 ENGR00124168 imx28: fix bug that USB gadget driver can't work
1. USB gadget driver can't work if we insmod usb host module first,
At default, we should not define CONFIG_USB_EHCI_ARC_OTG
(Taking the first usb port as host), otherwise the usb gadget driver
will can't work due to its resource have already claimed by usb0 host.
2. Fixes some warnings and error format for Kconfig
and defconfig

Signed-off-by: Peter Chen <b29397@freescale.com>
2010-08-10 11:50:49 -05:00
Jason Chen
4fd83bff23 ENGR00124023 v4l2 output:modify the operation of ic-bypass mode
/unit_test//unit_tests/mxc_v4l2_output.out -iw 1920 -ih 1080 -ow 1920
-oh 1080 -d 3 -l 600 -fr 80 /dev/shm/1920_1080_E18_c2.yuv

Error information:
It report the following error:
video4linux video16: unable to update buffer 0 address rc=-13

Fix above issue by modify the operation of ic-bypass mode.

Signed-off-by: Jason Chen <b02280@freescale.com>
2010-08-10 11:50:48 -05:00
Peter Chen
c83903e8db ENGR00124167 [mfg-tool]: Enhancement the UTP protocol
Enhancement the UTP protocol and give more comments
for source code

Signed-off-by: Peter Chen <b29397@freescale.com>
2010-08-10 11:50:47 -05:00
Xinyu Chen
c1800b852e ENGR00124103 TVE fb driver probe for mode incorrectly
When passing di1_primay to cmdline on BBG, the modes
matching in TVE probe are successful with fb0's modes.
This causes mode match, enable TVE and do set var to fb0.
Then the fbcon var is set incorrect, fb0 var works incorrect
after resume from suspend when doing fbcon switch.
Just simply add TVE's own mode list to resolve.

Signed-off-by: Xinyu Chen <xinyu.chen@freescale.com>
2010-08-10 11:50:46 -05:00
Liu Ying
135aa13e04 ENGR00124105 IPUv3 FB:Support 12-bpp pixel format correctly in sys-fs
mxcfb_check_var() function will set framebuffer's bpp value to be 16,
when the framebuffer's true bpp value is 12. This makes the bpp value in
sys-fs wrong.

Signed-off-by: Liu Ying <b17645@freescale.com>
2010-08-10 11:50:46 -05:00
Jason Chen
8a22766c4b ENGR00123731 ipuv3: change the submodules enable timming
change the ipu submodules enable timming.

Signed-off-by: Jason Chen <b02280@freescale.com>
2010-08-10 11:50:45 -05:00
Jeremy.Yao
8758315ddf ENGR00123589: Console can wakeup system while it is not wakeup source
Add debug-uart pm function

Signed-off-by: Jeremy Yao <r65161@freescale.com>
2010-08-10 11:50:45 -05:00
Shen Yong
12aab18ada ENGR00122599 MX53: DVFS-core support
add dvfs-core platform device and device data

Signed-off-by: Shen Yong <b00984@freescale.com>
2010-08-10 11:50:44 -05:00
Ranjani Vaidyanathan-RA5478
19bdd60a11 ENGR00123982: Fix GPU clocking scheme on MX51 & MX53.
Add appropriate secondary clocks to GPU2d and GPU3d clocks.
Also fix the naming scheme for the clocks needed by GPU so
that the same clocks can be used on both MX51 and MX53.
Fixed the round_rate function for many clocks so that the rate
returned is not greater than the maximum rate supported for that clock.

Signed-off-by: Ranjani Vaidyanathan-RA5478 <Ranjani.Vaidyanathan@freescale.com>
2010-08-10 11:50:44 -05:00
Alan Tull
c65e5f8992 ENGR00123838 alsa: fall back to external ram if iram fails
If iram_alloc fails, should warn and fall back to external ram.

Signed-off-by: Alan Tull <r80115@freescale.com>
2010-08-10 11:50:43 -05:00
Liu Ying
d726cdab5d ENGR00123863 MX53 Clock:Set AXI_B_CLK to be 200MHz
Set AXI_B_CLK to be 200MHz in case it is set to other clock rate in bootloader.
This can make sure IPU has sufficient clock rate.

Signed-off-by: Liu Ying <b17645@freescale.com>
2010-08-10 11:50:42 -05:00
Patrick Turley
b422b1ca4e ENGR00123828 Improved timing for the i.MX23/i.MX28 NAND Flash driver
Added improved timing calculations to the driver, and various other
support work.

Signed-off-by: Patrick Turley <patrick.turley@freescale.com>
2010-08-10 11:50:42 -05:00
Xiexiaobo
414ff9f16f ENGR00123808 MX28: Add dual FEC 1588 timer support
The ENET 1588 driver only support one FEC port,
this patch add dual FEC 1588 functions support.

Signed-off-by: Xie Xiaobo <X.Xie@freescale.com>
2010-08-10 11:50:41 -05:00
Jason Chen
2fd7c9b4be ENGR00123841 v4l2 output: crop issue for ic bypass mode
If set crop for input image, and ic bypass mode enabled (after crop,
input and output video have the same size), video will play uncorrect if
input is non-interleaving format. Need set u/v offset for this case.

Signed-off-by: Jason Chen <b02280@freescale.com>
2010-08-10 11:50:40 -05:00
Jason Chen
d46cc8f6c6 ENGR00123807 v4l2 output: fix ic_bypass case for 720p playback
If play a video by using ic bypass mode, and the resolution is
bigger than IC limitation(1024x720), will come out DQUEUE timeout issue.

Signed-off-by: Jason Chen <b02280@freescale.com>
2010-08-10 11:50:40 -05:00
Liu Ying
1c45f63f2d ENGR00123717 V4L2 capture:Support more YUV pixel formats
1) Support YUYV for CSI->MEM capture.
2) Support YUYV and UYVY for CSI->PRP_ENC->MEM capture.
3) Support YUYV for still capture.

Signed-off-by: Liu Ying <b17645@freescale.com>
2010-08-10 11:50:39 -05:00
Alan Tull
cd0d4a23da ENGR00123770 sgtl5000: use rate_mode to support more sample rates
Use the RATE_MODE field to support more sample rates in hardware,
specifically 8000, 11025, 16000, and 22050 Hz.

Signed-off-by: Alan Tull <r80115@freescale.com>
2010-08-10 11:50:39 -05:00
Frank Li
7ac3db04d0 ENGR00123744-3 iMX23 enable unique id support
Add config file

Signed-off-by: Frank Li <Frank.Li@freescale.com>
2010-08-10 11:50:38 -05:00
Frank Li
d1fe5c910d ENGR00123744-2 iMX23 enable unique id support
Add opt uuid support

Signed-off-by: Frank Li <Frank.Li@freescale.com>
2010-08-10 11:50:37 -05:00
Frank Li
f2754b4612 ENGR00123744-1 iMX23 add unique ID support
copy file from stmp plat

Signed-off-by: Frank Li <Frank.Li@freescale.com>
2010-08-10 11:50:37 -05:00
Niu Xule
1630780652 ENGR00123741 MX28: Add IOCTL commands to L2 switch driver
L2 switch driver command line controlling support

Signed-off-by: Niu Xule <b23300@freescale.com>
2010-08-10 11:50:36 -05:00
Robby Cai
876965b8f7 ENGR00123734 fix PxP hang issue when streamon and streamoff frequently
There might be some corners case which causes PxP hang up.
This is just a workaround to fix this.

Signed-off-by: Robby Cai <R63905@freescale.com>
2010-08-10 11:50:36 -05:00
Dinh Nguyen
5bd2745c67 ENGR00123686 mx5: Fix GPU_2D clock select bitmask
Because of a documentation error, the bitmask for gpu_2d clock select
is defined incorrectly.

Signed-off-by: Dinh Nguyen <Dinh.Nguyen@freescale.com>
2010-08-10 11:50:35 -05:00
Lionel Xu
dba7810ea8 ENGR00122307 MX23 ALSA: Speaker is muted after playback
Speak should not be muted after playback

Signed-off-by: Lionel Xu <r63889@freescale.com>
2010-08-10 11:50:34 -05:00
Frank Li
f508044cbb ENGR00123436 Clear GPMI LOCK_CS to lower suspend current.
GPMI LOCK_CS set to low can lower suspend current about 5mA.

Signed-off-by: Frank Li <Frank.Li@freescale.com>
Signed-off-by: Turley Patrick <b18601@freescale.com>
2010-08-10 11:50:34 -05:00
Nancy Chen
81c4648f9a ENGR00123514 MX28: System hangs when set different cpu freq continuously
MX28: System hangs when set different cpu freq continuously.

Signed-off-by: Nancy Chen <Nancy.Chen@freescale.com>
2010-08-10 11:50:33 -05:00
Jeremy.Yao
069b3dee5e ENGR00123438: iMX23 Mount as usb device then go to standby, system halt
Fix system timer suspend/resume operation in mx23 pm module

Signed-off-by: Jeremy Yao <r65161@freescale.com>
2010-08-10 11:50:33 -05:00
Robby Cai
ad18981d79 ENGR00123454 [MX23] FIX LCD no display issue after switch back from TVout
Due to the LCDIF clock caculation problem.

Signed-off-by: Robby Cai <R63905@freescale.com>
2010-08-10 11:50:32 -05:00
Peter Chen
be85b240ba ENGR00123554 mx233/mx28: Enlarge the ramdisk size
The WindowsXP can only recognize the ramdisk size above 8MiB.

Signed-off-by: Peter Chen <b29397@freescale.com>
2010-08-10 11:50:32 -05:00
Jun Li
c247ad9cc0 ENGR00123491 i.mx53 arc usb host increase tx fifo threshold.
There are bad turnaround erros when copying data from SD to Udisk
via Host port in i.mx53. Tunning TX fifo fill threshold from 2 to 8.

FIFO Burst Threshold:(Read/Write) [Default = 2] This register controls
the number of data bursts that are posted to the TX latency FIFO in host
mode before the packet begins on to the bus. The minimum value is 2 and
this value should be a low as possible to maximize USB performance. A
higher value can be used in systems with unpredictable latency and/or
insufficient bandwidth where the FIFO may underrun because the data
transferred from the latency FIFO to USB occurs before it can be
replenished from system memory. This value is ignored if the Stream
Disable bit in USBMODE register is set.

Signed-off-by: Li Jun <r65092@freescale.com>
2010-08-10 11:50:31 -05:00
Zhou Jingyu
d8dce6343b ENGR00123441 imx23, fix ethernet can not suspend
fix ethernet can not enter suspend state

Signed-off-by: Zhou Jingyu <Jingyu.Zhou@freescale.com>
2010-08-10 11:50:30 -05:00
Jeremy.Yao
23de3fba37 ENGR00123412: iMX23 Copy data from SD to NAND Kernel Warning
Remove unnecessary spin lock.

Signed-off-by: Jeremy Yao <r65161@freescale.com>
2010-08-10 11:50:30 -05:00
Jason Liu
f4760024a9 ENGR00123446 Can not get ip address after ifconfig eth0 down
-Fix the fec_enet_mdio_write function with correct FEC_MMFR_OP_WRITE
-Correct comments "start a read op" inside the fec_enet_mdio_write function
-Need do fec_restart in fec open since we do fec_stop in fec close
-Need do phy_stop in fec close to set the correct phy state machine

Signed-off-by:Jason Liu <r64343@freescale.com>
2010-08-10 11:50:29 -05:00
Jeremy.Yao
667e9114b3 ENGR00123389: iMX23 system fail to detect sd remove
Fix the problem the card is still connected while status shows it's removed

Signed-off-by: Jeremy Yao <r65161@freescale.com>
2010-08-10 11:50:29 -05:00
Xinyu Chen
f48a3b233d ENGR00123559 Android lowmemorykiller judges the number of free pages incorrect.
low memory killer has problem to judge the current free pages in system.
It gets total reclaimable anon cache and free pages as it's judging data.
But on our platforms, we have DMA zone there, and normal process can not
allocate memory from DMA. So here, just remove the DMA's
free/anon pages from this data. Let low memory killer works well.

Signed-off-by: Xinyu Chen <xinyu.chen@freescale.com>
2010-08-10 11:50:28 -05:00
Jason Chen
a7d43cd67d ENGR00123558 v4l2 output: add own workqueue for v4l output
During v4l2 output playback, there is performance issue after below
commit:

UBUNTU: SAUCE: (upstream) netdev/fec: fix performance impact from
mdio poll operation

Use common workqueue cause this issue, so create an own workqueue for
v4l2 output.

Signed-off-by: Jason Chen <b02280@freescale.com>
2010-08-10 11:50:27 -05:00
Bryan Wu
4c0e351a62 netdev/fec: fix ifconfig eth0 down hang issue
BugLink: http://bugs.launchpad.net/bugs/559065

In fec open/close function, we need to use phy_connect and phy_disconnect
operation before we start/stop phy. Otherwise it will cause system hang.

Only call fec_enet_mii_probe() in open function, because the first open
action will cause NULL pointer error.

Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Acked-by: Colin King <colin.king@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
2010-08-10 11:50:27 -05:00
Frank Li
fdaea2afe3 ENGR00123527 fix iMX23 udhcpc fail to get ip address
Miss CONFIG_PACKET at default config

Signed-off-by: Frank Li <Frank.Li@freescale.com>
2010-08-10 11:50:26 -05:00
Frank Li
6f7ca2ca84 ENGR00122965 Improve USB100 feature due to bootloader change.
Smalle change due to the bootloader change and fix Mx23 fail
caused by clock module change.

Signed-off-by: Frank Li <Frank.Li@freescale.com>
2010-08-10 11:50:25 -05:00
Jason Chen
07d5c4bc52 ENGR00123512 ipu: fix ipu lib compile error
Fix ipu lib compile error after 4-stripes resize patch pushed.

Signed-off-by: Jason Chen <b02280@freescale.com>
2010-08-10 11:50:25 -05:00
Liu Ying
3d5466a5b7 ENGR00123507 IPUv3:Set suitable IDMAC burst size for UYVY and ABGR32
1)Set the IDMAC channel's burst size to be 32 pixels if the channel is
in UYVY pixel format.
2)Set the IDMAC channel's burst size to be 16 pixels if the channel is
in ABGR32 pixel format.

Signed-off-by: Liu Ying <b17645@freescale.com>
2010-08-10 11:50:24 -05:00
mark gutman
b70ba43911 ENGR00123294 MX53: 4 stripes algorithm for support resizing for big screen
The updated algorithm allows output frame size up to 2048x2048

Signed-off-by: Mark Gutman <Mark.Gutman@freescale.com>
2010-08-10 11:50:24 -05:00
Ran Ferderber
71d0502031 ENGR00123439 DMFC size: IPU DMFC DP high resulution fail to display small frame
update the DMFC size to avoid usage of WAIT4EOT when possible

Signed-off-by: Ran Ferderber <r53561@freescale.com>
2010-08-10 11:50:23 -05:00
Anton Vorontsov
8e982ef543 phylib: Move workqueue initialization to a proper place
commit 541cd3ee00a4fe975b22fac6a3bc846bacef37f7 ("phylib: Fix deadlock
on resume") caused TI DaVinci EMAC ethernet driver to oops upon resume:

 PM: resume of devices complete after 237.098 msecs
 Restarting tasks ... done.
 kernel BUG at kernel/workqueue.c:354!
 Unable to handle kernel NULL pointer dereference at virtual address 00000000
 [...]
 Backtrace:
 [<c002c598>] (__bug+0x0/0x2c) from [<c0052a54>] (queue_delayed_work_on+0x74/0xf8)
 [<c00529e0>] (queue_delayed_work_on+0x0/0xf8) from [<c0052b30>] (queue_delayed_work+0x2c/0x30)

The oops pops up because TI DaVinci EMAC driver detaches PHY on
suspend and attaches it back on resume. Attaching makes phylib call
phy_start_machine() that initializes a workqueue. On the other hand,
PHY's resume routine will call phy_start_machine() again, and that
will cause the oops since we just destroyed the already scheduled
workqueue.

This patch fixes the issue by moving workqueue initialization to
phy_device_create().

p.s. We don't see this oops with ucc_geth and gianfar drivers because
they perform a fine-grained suspend, i.e. they just stop the PHYs
without detaching.

Reported-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Tested-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-08-10 11:50:22 -05:00
Anton Vorontsov
d78f3d35b3 phylib: Properly reinitialize PHYs after hibernation
Since hibernation assumes power loss, we should fully reinitialize
PHYs (including platform fixups), as if PHYs were just attached.

This patch factors phy_init_hw() out of phy_attach_direct(), then
converts mdio_bus to dev_pm_ops and adds an appropriate restore()
callback.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-08-10 11:50:21 -05:00
Anton Vorontsov
347b7f1281 phylib: Fix deadlock on resume
Sometimes kernel hangs on resume with the following trace:

 ucc_geth e0102000.ucc: resume
 INFO: task bash:1764 blocked for more than 120 seconds.
 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
 bash          D 0fecf43c     0  1764   1763 0x00000000
 Call Trace:
 [cf9a7c10] [c0012868] ret_from_except+0x0/0x14 (unreliable)
 --- Exception: cf9a7ce0 at __switch_to+0x4c/0x6c
     LR = 0xcf9a7cc0
 [cf9a7cd0] [c0008c14] __switch_to+0x4c/0x6c (unreliable)
 [cf9a7ce0] [c028bcfc] schedule+0x158/0x260
 [cf9a7d10] [c028c720] __mutex_lock_slowpath+0x80/0xd8
 [cf9a7d40] [c01cf388] phy_stop+0x20/0x70
 [cf9a7d50] [c01d514c] ugeth_resume+0x6c/0x13c
 [...]

Here is why.

On suspend:

- PM core starts suspending devices, ucc_geth_suspend gets called;

- ucc_geth calls phy_stop() on suspend. Note that phy_stop() is
  mostly asynchronous so it doesn't block ucc_geth's suspend routine,
  it just sets PHY_HALTED state and disables PHY's interrupts;

- Suddenly the state machine gets scheduled, it grabs the phydev->lock
  mutex and tries to process the PHY_HALTED state, so it calls
  phydev->adjust_link(phydev->attached_dev). In ucc_geth case
  adjust_link() calls msleep(), which reschedules the code flow back to
  PM core, which now finishes suspend and so we end up sleeping with
  phydev->lock mutex held.

On resume:

- PM core starts resuming devices (notice that nobody rescheduled
  the state machine yet, so the mutex is still held), the core calls
  ucc_geth's resume routine;

- ucc_geth_resume restarts the PHY with phy_stop()/phy_start()
  sequence, and the phy_*() calls are trying to grab the phydev->lock
  mutex. Here comes the deadlock.

This patch fixes the issue by stopping the state machine on suspend
and starting it again on resume.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-08-10 11:50:21 -05:00
Sammy He
5fb06cff8a ENGR00123489 Support vpu suspend/resume on mx53
Support vpu suspend/resume on mx53. Don't do power gating and
firmware re-install on mx53.

Signed-off-by: Sammy He <r62914@freescale.com>
2010-08-10 11:50:20 -05:00
Peter Chen
227f81faa9 ENGR00123437 iMX28: Add nand support for updater defconfig
1. Add nand support for iMX28 updater defconfig, and
fix bug for compiling error for not adding cpu freq config
2. Build-in ext3 and JBD function for support sd ext3 rootfs

Signed-off-by: Peter Chen <b29397@freescale.com>
2010-08-10 11:50:20 -05:00