7 years agoENGR00124740-1 MX53 ALSA: Make ESAI as a platform device
William Lai [Mon, 5 Jul 2010 07:55:18 +0000 (15:55 +0800)]
ENGR00124740-1 MX53 ALSA: Make ESAI as a platform device

Make ESAI a platform device and pass the register base address
by resource and then use ioremap.

Signed-off-by: William Lai <b04597@freescale.com>
7 years agoENGR00124955 sgtl5000: fix audio power down pop
Alan Tull [Wed, 7 Jul 2010 17:49:56 +0000 (12:49 -0500)]
ENGR00124955 sgtl5000: fix audio power down pop

Some boards need a longer delay after powering off VAG.

Signed-off-by: Alan Tull <r80115@freescale.com>
7 years agoRevert "ENGR00124852 sgtl5000: support nonstandard sample rates"
Alan Tull [Wed, 7 Jul 2010 18:57:01 +0000 (13:57 -0500)]
Revert "ENGR00124852 sgtl5000: support nonstandard sample rates"

This reverts commit 33391f8b0a2ccda3a27d95dfe67846d5c60666f7.

Signed-off-by: Alan Tull <r80115@freescale.com>
7 years agoENGR00124831 USB-UDC: Delete the useless code
Peter Chen [Fri, 2 Jul 2010 07:27:29 +0000 (15:27 +0800)]
ENGR00124831 USB-UDC: Delete the useless code

The probe is called only pdev->name is the same with driver_name,
So the statement for name judgement is useless.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
7 years agoENGR00124761 V4L2 still:Support to capture QXGA still image
Liu Ying [Wed, 30 Jun 2010 05:32:01 +0000 (13:32 +0800)]
ENGR00124761 V4L2 still:Support to capture QXGA still image

1) Add OV3640 camera QXGA configuration at 7.5fps support.
2) Use double buffer to workaround tearing issue when capturing
   still image.

Signed-off-by: Liu Ying <b17645@freescale.com>
7 years agoENGR00124256 Linux platform integrated AHCI SATA driver
Richard Zhu [Tue, 6 Jul 2010 03:33:48 +0000 (11:33 +0800)]
ENGR00124256 Linux platform integrated AHCI SATA driver

Sata can work well on EVK boards, and pass the unit-tests.

Signed-off-by: Richard Zhu <r65037@freescale.com>
7 years agoENGR00124864 MX5: Fix MSL issue
Lily Zhang [Mon, 5 Jul 2010 12:42:10 +0000 (20:42 +0800)]
ENGR00124864 MX5: Fix MSL issue

1. correct mx53 sdma script variable
2. CSPI should not use cspi_main_clk
3. remove duplicated M4IF setting codes in clock.c, which
are already in cpu.c

Signed-off-by: Lily Zhang <r58066@freescale.com>
7 years agoENGR00124736 Remerge the minor modifications to mainline
Richard Zhu [Tue, 29 Jun 2010 07:07:56 +0000 (15:07 +0800)]
ENGR00124736 Remerge the minor modifications to mainline

1 correct the pata platform device resource check codes
2 Change the end statment of the sdhc1 det pin
iomux definition on mx51 board from ',' to ';'.
3 sdhc driver max blk count on MX31, sinc
customer report that the emmc would be failed when
the blk count is more than 32.

Signed-off-by: Richard Zhu <r65037@freescale.com>
7 years agoENGR00124828 v4l2 output: close overlay for ic bypass mode
Jason Chen [Mon, 5 Jul 2010 06:40:21 +0000 (14:40 +0800)]
ENGR00124828 v4l2 output: close overlay for ic bypass mode

After streamoff, ic bypass mode should close overlay like others

Signed-off-by: Jason Chen <b02280@freescale.com>
7 years agoENGR00124827 ipuv3 fb: long time jitter issue
Jason Chen [Mon, 5 Jul 2010 05:53:26 +0000 (13:53 +0800)]
ENGR00124827 ipuv3 fb: long time jitter issue

Call pan display frequently(for example display through ipu lib),
sometime it will jitter.

Signed-off-by: Jason Chen <b02280@freescale.com>
7 years agoENGR00124795 SPI NOR: uniform include header file
Lily Zhang [Thu, 1 Jul 2010 06:55:38 +0000 (14:55 +0800)]
ENGR00124795 SPI NOR: uniform include header file

The default partitions are missing in MX53 SPI NOR MTD.
It's because spi nor driver and mx53 msl include different
header files. It causes struct definitions are different.
For i.MX SPI nor driver, need to use asm/mach/flash.h by
aligning with NAND driver.

Signed-off-by: Lily Zhang <r58066@freescale.com>
7 years agoENGR00124852 sgtl5000: support nonstandard sample rates
Alan Tull [Fri, 2 Jul 2010 13:29:19 +0000 (08:29 -0500)]
ENGR00124852 sgtl5000: support nonstandard sample rates

Supporting more sample rates that are not listed in pcm.h
(12KHz and 24KHz).

Signed-off-by: Alan Tull <r80115@freescale.com>
7 years agoENGR00124760 fec: set mac address correctly
Jason Chen [Wed, 30 Jun 2010 03:25:26 +0000 (11:25 +0800)]
ENGR00124760 fec: set mac address correctly

Fix dynamicly set mac address make network hang issue.

Signed-off-by: Jason Chen <b02280@freescale.com>
7 years agoENGR00124629 mx5x: Add Watchdog config for mfg defconfig
Peter Chen [Thu, 24 Jun 2010 07:47:42 +0000 (15:47 +0800)]
ENGR00124629 mx5x: Add Watchdog config for mfg defconfig

If not, the board will be reset as no one
serices the watchdog.
At USB recovery mode, the watchdog will be
enabled at rom code.

Signed-off-by: Peter Chen <b29397@freescale.com>
7 years agoENGR00124762 MX5: Fix clock div zero issue
Lily Zhang [Wed, 30 Jun 2010 05:05:08 +0000 (13:05 +0800)]
ENGR00124762 MX5: Fix clock div zero issue

Fix clock div zero issue in mx5 clock file

Signed-off-by: Lily Zhang <r58066@freescale.com>
7 years agoENGR00124683-3 Add ADV7180 TV decoder support on mx53
Sammy He [Tue, 29 Jun 2010 15:56:36 +0000 (23:56 +0800)]
ENGR00124683-3 Add ADV7180 TV decoder support on mx53

Add ADV7180 TV decoder support on mx53. OV3640 module must be
removed before ADV7180 TVIN test.

Signed-off-by: Sammy He <r62914@freescale.com>
7 years agoENGR00124683-2 Change adv7180_pwdn callback function on mx35
Sammy He [Fri, 25 Jun 2010 16:25:42 +0000 (00:25 +0800)]
ENGR00124683-2 Change adv7180_pwdn callback function on mx35

Change adv7180_pwdn callback function on mx35 due to pwdn parameter
defintion update.

Signed-off-by: Sammy He <r62914@freescale.com>
7 years agoENGR00124683-1 Add CCIR interlaced mode for TV decoder
Sammy He [Fri, 25 Jun 2010 15:59:08 +0000 (23:59 +0800)]
ENGR00124683-1 Add CCIR interlaced mode for TV decoder

Add CCIR interlaced mode for TV decoder. And add pwdn callback
function in mxc_camera_platform_data.

Signed-off-by: Sammy He <r62914@freescale.com>
7 years agoENGR00124719 ipuv3 fb: pan display for special format
Jason Chen [Tue, 29 Jun 2010 03:28:55 +0000 (11:28 +0800)]
ENGR00124719 ipuv3 fb: pan display for special format

If set fb's fmt to I420, pan display will get wrong result.

Signed-off-by: Jason Chen <b02280@freescale.com>
7 years agoENGR00124653 ipuv3 fb: pan display issue
Jason Chen [Fri, 25 Jun 2010 03:33:57 +0000 (11:33 +0800)]
ENGR00124653 ipuv3 fb: pan display issue

Call pan display frequently, after a long time, it has chance to show
below error msg:

Error updating SDC buf ....

check buffer busy before update buffer function call to avoid such

Signed-off-by: Jason Chen <b02280@freescale.com>
7 years agoENGR00124569 IPUv3:Change for support VDI in IPU lib
Liu Ying [Fri, 25 Jun 2010 17:55:49 +0000 (13:55 -0400)]
ENGR00124569 IPUv3:Change for support VDI in IPU lib

1) Support select VDI input channel buffer ioctrl.
2) Add VDI input channels' EOF interrupt.

Signed-off-by: Liu Ying <b17645@freescale.com>
7 years agoENGR00124082-2 V4L2 output:Rework VDI V4L2 output implementation
Liu Ying [Fri, 25 Jun 2010 17:17:26 +0000 (13:17 -0400)]
ENGR00124082-2 V4L2 output:Rework VDI V4L2 output implementation

1)Medium motion and low motion:
  Frame(n)'s even field is used for Previous channel,
  Frame(n+1)'s odd field is used for Current channel and
  Frame(n+1)'s even field is used for Next channel to generate
  de-interlaced Frame(n+1).
2)High motion:
  Frame(n)'s odd field is used for Current channel to generate
  de-interlaced Frame(n).

Signed-off-by: Liu Ying <b17645@freescale.com>
7 years agoENGR00124082-1 IPUv3:Fix some bugs related with VDI
Liu Ying [Fri, 25 Jun 2010 17:16:27 +0000 (13:16 -0400)]
ENGR00124082-1 IPUv3:Fix some bugs related with VDI

1) Read buffer 1 ready register before setting buffer 1 ready.
2) Enable ISP in IPU_CONF when using VDI.
3) Fix link issue between MEM_VDI_PRP_VF_MEM and MEM_ROT_VF_MEM.
4) Correct g_channel_init_mask value.
5) Use fixed top field for VDI.

Signed-off-by: Liu Ying <b17645@freescale.com>
7 years agoENGR00124252 MX28: Support Switch port0 as ethernet port
Niu Xule [Wed, 9 Jun 2010 06:40:23 +0000 (14:40 +0800)]
ENGR00124252 MX28: Support Switch port0 as ethernet port

The L2 Switch have 4 ports,
and the port0 can be used as ethernet port
when Switch is configured to operate
as a 3-Port Switch (Switch Mode).

Signed-off-by: Niu Xule <b23300@freescale.com>
7 years agoENGR00124085 MX23 ALSA: To reduce the start/stop/pause pop noise when playback
Lionel Xu [Wed, 2 Jun 2010 05:19:20 +0000 (13:19 +0800)]
ENGR00124085 MX23 ALSA: To reduce the start/stop/pause pop noise when playback

1)There is still pop noise sometimes when start/stop/pausing a playback,
   this patch is used to further reduce the pop noise.
2)Enter low power mode(power down DAC) when there is no playback for 5 seconds.
3)Modify amixer controls "Speaker Playback Switch" and "Headhpone Playback

Signed-off-by: Lionel Xu <r63889@freescale.com>
7 years agoENGR00122302 MX23 ALSA: Resolve the failure when pausing and resuming playback
Lionel Xu [Tue, 18 May 2010 07:31:20 +0000 (15:31 +0800)]
ENGR00122302 MX23 ALSA: Resolve the failure when pausing and resuming playback

To reslove the problem when resuming a playback from pausing

Signed-off-by: Lionel Xu <r63889@freescale.com>
7 years agoENGR00124360 v4l2 output: rework v4l2 output
Jason Chen [Thu, 24 Jun 2010 01:39:40 +0000 (09:39 +0800)]
ENGR00124360 v4l2 output: rework v4l2 output

1. remove ADC support.
2. remove work queue for not ic bypass mode which improve the

Signed-off-by: Jason Chen <b02280@freescale.com>
7 years agoENGR00123738 MX53: Fix MLB issue caused by emi_int2 clock
Lily Zhang [Mon, 21 Jun 2010 03:21:23 +0000 (11:21 +0800)]
ENGR00123738 MX53: Fix MLB issue caused by emi_int2 clock

1. MLB can only work with "jtag=on" option enable or after system
resume now. It's cuased by emi_int2 clock gate bit setting.
MX53 enables the internal memory power saving mode which requires
emi_intr CCGR bits must be set as 0x11 if using IRAM. To fix current
issue, add additional mlb clock which is associated with emi_int2.
2. Update MLB PIN setting.

Signed-off-by: Lily Zhang <r58066@freescale.com>
7 years agoENGR00124562 MX28 add persistent bit support
Frank Li [Tue, 22 Jun 2010 01:55:47 +0000 (09:55 +0800)]
ENGR00124562 MX28 add persistent bit support

Add persistent bit for MX28

Signed-off-by: Frank Li <Frank.Li@freescale.com>
7 years agoENGR00124477 MXC-Nand: Add disable BI swap entry at sys filesystem
Peter Chen [Thu, 17 Jun 2010 08:57:58 +0000 (16:57 +0800)]
ENGR00124477 MXC-Nand: Add disable BI swap entry at sys filesystem

In that case, the user can choose not to swap BI
if necessary, such as programming the bootloader.

Signed-off-by: Peter Chen <b29397@freescale.com>
7 years agoENGR00124390 MX35:Update new mfg defconfig for supporting both sd and nand
Peter Chen [Thu, 17 Jun 2010 03:03:02 +0000 (11:03 +0800)]
ENGR00124390 MX35:Update new mfg defconfig for supporting both sd and nand

The old one can't work and no ubi support

Signed-off-by: Peter Chen <b29397@freescale.com>
7 years agoENGR00119736 MX51: YUV422 output for 720P data
mark gutman [Tue, 8 Jun 2010 12:38:58 +0000 (15:38 +0300)]
ENGR00119736 MX51: YUV422 output for 720P data

The support for YUV422 different combinations are added
The YUV422 is supported for DI1 interface for 720P frames with 16bits bus  only:
di1_primary video=mxcdi1fb:YUYV16,720P60
To define required YUV422 format use one of:

Signed-off-by: Mark Gutman <r58412@freescale.com>
7 years agoENGR00124287 MX5x, MX37: Fix DVFS memory resource issue
Nancy Chen [Wed, 9 Jun 2010 18:49:47 +0000 (13:49 -0500)]
ENGR00124287 MX5x, MX37: Fix DVFS memory resource issue

MX5x, MX37: Fix DVFS memory resource issue.

Signed-off-by: Nancy Chen <Nancy.Chen@freescale.com>
7 years agoENGR00124326 MX53: Add SPDIF Tx support
Lily Zhang [Fri, 11 Jun 2010 01:47:28 +0000 (09:47 +0800)]
ENGR00124326 MX53: Add SPDIF Tx support

Add SPDIF Tx support for MX53 EVK board.
1. Support 44.1KHZ sample rate.
2. 48K and 32K sample rates require 24.576MHZ OSC connected to
CKIH2. But it's "DNP" in EVK.

Test conditions:
1. Connect MX51 Accessory Card with J94 port in EVK.
2. SPDIF_OUT pin conflicts with 12V pin used by CAN feature.
Add "spdif" command option in the command line to enable SPDIF

Signed-off-by: Lily Zhang <r58066@freescale.com>
7 years agoahci: Add platform driver
Anton Vorontsov [Thu, 4 Mar 2010 17:06:06 +0000 (20:06 +0300)]
ahci: Add platform driver

This can be used for AHCI-compatible interfaces implemented inside
System-On-Chip solutions, or AHCI devices connected via localbus.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
7 years agoahci: Move generic code into libahci
Anton Vorontsov [Sun, 28 Mar 2010 04:22:14 +0000 (00:22 -0400)]
ahci: Move generic code into libahci

This patch should contain no functional changes, just moves code

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
7 years agoahci: Introduce ahci_set_em_messages()
Anton Vorontsov [Wed, 3 Mar 2010 17:17:45 +0000 (20:17 +0300)]
ahci: Introduce ahci_set_em_messages()

Factor out some ahci_em_messages handling code from ahci_init_one().
We would like to reuse it for non-PCI devices.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
7 years agoahci: Factor out PCI specifics from ahci_print_info()
Anton Vorontsov [Wed, 3 Mar 2010 17:17:43 +0000 (20:17 +0300)]
ahci: Factor out PCI specifics from ahci_print_info()

Introduce ahci_pci_print_info() that now handles PCI stuff.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
7 years agoahci: Factor out PCI specifics from ahci_init_controller()
Anton Vorontsov [Wed, 3 Mar 2010 17:17:42 +0000 (20:17 +0300)]
ahci: Factor out PCI specifics from ahci_init_controller()

Move PCI stuff into ahci_pci_init_controller().

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
7 years agoahci: Get rid of pci_dev argument in ahci_port_init()
Anton Vorontsov [Wed, 3 Mar 2010 17:17:40 +0000 (20:17 +0300)]
ahci: Get rid of pci_dev argument in ahci_port_init()

To make the function bus-independand we have to get rid of
"struct pci_dev *", so let's pass just "struct devce *".

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
7 years agoahci: Factor out PCI specifics from ahci_reset_controller()
Anton Vorontsov [Wed, 3 Mar 2010 17:17:39 +0000 (20:17 +0300)]
ahci: Factor out PCI specifics from ahci_reset_controller()

Move PCI stuff into ahci_pci_reset_controller().

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
7 years agoahci: Get rid of pci_dev argument in ahci_save_initial_config()
Anton Vorontsov [Wed, 3 Mar 2010 17:17:37 +0000 (20:17 +0300)]
ahci: Get rid of pci_dev argument in ahci_save_initial_config()

To make the function generic we have to get rid of "struct pci_dev *",
so let's pass just a "struct devce *".

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
7 years agoahci: Factor out PCI specifics from ahci_save_initial_config()
Anton Vorontsov [Wed, 3 Mar 2010 17:17:36 +0000 (20:17 +0300)]
ahci: Factor out PCI specifics from ahci_save_initial_config()

Make ahci_save_initial_config() a bit more generic by introducing
force_port_map and mask_port_map arguments.

Move PCI stuff into ahci_pci_save_initial_config().

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
7 years agoahci: Get rid of host->iomap usage
Anton Vorontsov [Wed, 3 Mar 2010 17:17:34 +0000 (20:17 +0300)]
ahci: Get rid of host->iomap usage

Currently the driver uses host->iomap to store all the iomapped BARs
of a PCI device (while AHCI devices actually use just a single memory

We're going to teach AHCI to work with non-PCI buses, so there are two
options to make this work:

1. "fake" host->iomap array for non-PCI devices, and place the needed
   address at iomap[AHCI_PCI_BAR];
2. Get rid of host->iomap usage, instead introduce a private mmio

This patch implements the second option.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
7 years agoahci: pp->active_link is not reliable when FBS is enabled
Shane Huang [Tue, 16 Mar 2010 10:08:55 +0000 (18:08 +0800)]
ahci: pp->active_link is not reliable when FBS is enabled

pp->active_link is not reliable when FBS is enabled.
Both PORT_SCR_ACT and PORT_CMD_ISSUE should be checked
because mixed NCQ and non-NCQ commands may be in flight.

Signed-off-by: Shane Huang <shane.huang@amd.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
7 years agolibata: make functions/variables static
Robert Hancock [Wed, 20 Jan 2010 05:03:39 +0000 (23:03 -0600)]
libata: make functions/variables static

Make some variables in ahci and a function in pata_pcmcia static, as found
using sparse.

Signed-off-by: Robert Hancock <hancockrwd@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
7 years agoahci: Implement SATA AHCI FIS-based switching support
Shane Huang [Wed, 9 Dec 2009 09:23:04 +0000 (17:23 +0800)]
ahci: Implement SATA AHCI FIS-based switching support

Tested on AMD internal reference board.

Signed-off-by: Shane Huang <shane.huang@amd.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
7 years agoahci: disable SNotification capability for ich8
Shaohua Li [Mon, 16 Nov 2009 01:56:05 +0000 (09:56 +0800)]
ahci: disable SNotification capability for ich8

I obseved there is a sata_async_notification() for every ahci
interrupt. But the async notification does nothing (this is hard
disk drive and no pmp). This cause cpu wastes some time on sntf
register access.

It appears ICH AHCI doesn't support SNotification register, but the
controller reports it does. After quirking it, the async notification

PS. it appears all ICH don't support SNotification register from ICH
manual, don't know if we need quirk all ICH. I don't have machines
with all kinds of ICH.

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
7 years agoahci: Add ifdef wrapper to ahci_gtf_filter_workaround
Markus Trippelsdorf [Fri, 9 Oct 2009 03:41:47 +0000 (05:41 +0200)]
ahci: Add ifdef wrapper to ahci_gtf_filter_workaround

Commit f80ae7e45a0e03da188494c6e947a5c8b0cdfb4a
ahci: filter FPDMA non-zero offset enable for Aspire 3810T
breaks the current git build for configurations that don't define
This adds an ifdef wrapper to ahci_gtf_filter_workaround.

Signed-off-by: Markus Trippelsdorf <markus@trippelsdorf.de>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
7 years agoahci: filter FPDMA non-zero offset enable for Aspire 3810T
Tejun Heo [Tue, 15 Sep 2009 19:18:03 +0000 (04:18 +0900)]
ahci: filter FPDMA non-zero offset enable for Aspire 3810T

Curiously, Aspire 3810T issues many SATA feature enable commands via
_GTF, of which one is invalid and another is not supported by the
drive.  In the process, it also enables FPDMA non-zero offset.
However, the feature also needs to be supported and enabled from the
controller and it's wrong to enable it from _GTF unless the controller
can do it by default.

Currently, this ends up enabling FPDMA non-zero offset only on the
drive side leading to NCQ command failures and eventual disabling of
NCQ.  This patch makes libata filter out FPDMA non-zero offset enable
for the machine.

This was reported by Marcus Meissner in bnc#522790.


Reported-by: Marcus Meissner <meissner@novell.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
7 years agoahci: display all AHCI 1.3 HBA capability flags (v2)
Robert Hancock [Sun, 20 Sep 2009 23:02:31 +0000 (17:02 -0600)]
ahci: display all AHCI 1.3 HBA capability flags (v2)

Update the AHCI driver to display all of the HBA capabilities defined in the
AHCI 1.3 specification. Some of these are in a new CAP2 (HBA Capabilities
Extended) register which is only defined on AHCI 1.2 or later. The spec says
that undefined registers should always return 0 on read, but to be safe we
assume a value of 0 unless the controller reports AHCI version 1.2 or later.
The value can also be retrieved through sysfs as with the existing capability

For example, on an Intel Ibex Peak (PCH) controller:

ahci 0000:00:1f.2: flags: 64bit ncq sntf stag pm led clo pmp pio slum part ems
sxs apst

We don't do anything special with the new flags yet.

Also, change the code that displays the flags to use the same bit enumerations
that are used to control actual operation.

Signed-off-by: Robert Hancock <hancockrwd@gmail.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
7 years agoahci: kill @force_restart and refine CLO for ahci_kick_engine()
Shane Huang [Fri, 7 Aug 2009 07:05:52 +0000 (15:05 +0800)]
ahci: kill @force_restart and refine CLO for ahci_kick_engine()

This patch refines ahci_kick_engine() after discussion with Tejun about
FBS(FIS-based switching) support preparation:
a. Kill @force_restart and always kick the engine. The only case where
   @force_restart is zero is when it's called from ahci_p5wdh_hardreset()
   Actually at that point, BSY is pretty much guaranteed to be set.
b. If PMP is attached, ignore busy and always do CLO. (AHCI-1.3 9.2)

Signed-off-by: Shane Huang <shane.huang@amd.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
7 years agolibata: Export AHCI capabilities
Matthew Garrett [Fri, 17 Jul 2009 18:13:47 +0000 (19:13 +0100)]
libata: Export AHCI capabilities

AHCI exports various capability bits that may be of interest to userspace
such as whether the BIOS claims a port is hotpluggable or eSATA. Providing
these via sysfs along with the version of the AHCI spec implemented by
the host allows userspace to make policy decisions for things like ALPM.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
7 years ago[libata] add DMA setup FIS auto-activate feature
Shaohua Li [Mon, 27 Jul 2009 01:24:35 +0000 (09:24 +0800)]
[libata] add DMA setup FIS auto-activate feature

Hopefully results in fewer on-the-wire FIS's and no breakage.  We'll see!

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
7 years agoENGR00124224 mx51: Update the new mfg default config according to mx5_defconfig
Peter Chen [Tue, 8 Jun 2010 12:07:01 +0000 (20:07 +0800)]
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>
7 years agoENGR00120301 MX51: Fix slow TS issue
Nancy Chen [Mon, 7 Jun 2010 15:45:08 +0000 (10:45 -0500)]
ENGR00120301 MX51: Fix slow TS issue

MX51: Fix slow TS issue.

Signed-off-by: Nancy Chen <Nancy.Chen@freescale.com>
7 years agoENGR00124168 imx28: fix bug that USB gadget driver can't work
Peter Chen [Tue, 8 Jun 2010 03:28:56 +0000 (11:28 +0800)]
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>
7 years agoENGR00124023 v4l2 output:modify the operation of ic-bypass mode
Jason Chen [Fri, 4 Jun 2010 03:24:42 +0000 (11:24 +0800)]
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>
7 years agoENGR00124167 [mfg-tool]: Enhancement the UTP protocol
Peter Chen [Fri, 4 Jun 2010 13:18:38 +0000 (21:18 +0800)]
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>
7 years agoENGR00124103 TVE fb driver probe for mode incorrectly
Xinyu Chen [Mon, 7 Jun 2010 02:21:38 +0000 (10:21 +0800)]
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>
7 years agoENGR00124105 IPUv3 FB:Support 12-bpp pixel format correctly in sys-fs
Liu Ying [Fri, 4 Jun 2010 17:21:41 +0000 (13:21 -0400)]
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>
7 years agoENGR00123731 ipuv3: change the submodules enable timming
Jason Chen [Wed, 2 Jun 2010 08:01:13 +0000 (16:01 +0800)]
ENGR00123731 ipuv3: change the submodules enable timming

change the ipu submodules enable timming.

Signed-off-by: Jason Chen <b02280@freescale.com>
7 years agoENGR00123589: Console can wakeup system while it is not wakeup source
Jeremy.Yao [Tue, 1 Jun 2010 08:44:21 +0000 (16:44 +0800)]
ENGR00123589: Console can wakeup system while it is not wakeup source

Add debug-uart pm function

Signed-off-by: Jeremy Yao <r65161@freescale.com>
7 years agoENGR00122599 MX53: DVFS-core support
Shen Yong [Fri, 16 Apr 2010 03:46:20 +0000 (11:46 +0800)]
ENGR00122599 MX53: DVFS-core support

add dvfs-core platform device and device data

Signed-off-by: Shen Yong <b00984@freescale.com>
7 years agoENGR00123982: Fix GPU clocking scheme on MX51 & MX53.
Ranjani Vaidyanathan-RA5478 [Fri, 28 May 2010 17:57:26 +0000 (12:57 -0500)]
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>
7 years agoENGR00123838 alsa: fall back to external ram if iram fails
Alan Tull [Tue, 25 May 2010 21:44:26 +0000 (16:44 -0500)]
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>
7 years agoENGR00123863 MX53 Clock:Set AXI_B_CLK to be 200MHz
Liu Ying [Wed, 26 May 2010 22:00:45 +0000 (18:00 -0400)]
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>
7 years agoENGR00123828 Improved timing for the i.MX23/i.MX28 NAND Flash driver
Patrick Turley [Fri, 7 May 2010 22:50:18 +0000 (17:50 -0500)]
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>
7 years agoENGR00123808 MX28: Add dual FEC 1588 timer support
Xiexiaobo [Wed, 26 May 2010 11:13:29 +0000 (19:13 +0800)]
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>
7 years agoENGR00123841 v4l2 output: crop issue for ic bypass mode
Jason Chen [Wed, 26 May 2010 04:40:01 +0000 (12:40 +0800)]
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>
7 years agoENGR00123807 v4l2 output: fix ic_bypass case for 720p playback
Jason Chen [Tue, 25 May 2010 11:00:48 +0000 (19:00 +0800)]
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>
7 years agoENGR00123717 V4L2 capture:Support more YUV pixel formats
Liu Ying [Mon, 24 May 2010 18:56:27 +0000 (14:56 -0400)]
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>
7 years agoENGR00123770 sgtl5000: use rate_mode to support more sample rates
Alan Tull [Mon, 17 May 2010 21:10:39 +0000 (16:10 -0500)]
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>
7 years agoENGR00123744-3 iMX23 enable unique id support
Frank Li [Mon, 24 May 2010 09:27:34 +0000 (17:27 +0800)]
ENGR00123744-3 iMX23 enable unique id support

Add config file

Signed-off-by: Frank Li <Frank.Li@freescale.com>
7 years agoENGR00123744-2 iMX23 enable unique id support
Frank Li [Mon, 24 May 2010 09:27:34 +0000 (17:27 +0800)]
ENGR00123744-2 iMX23 enable unique id support

Add opt uuid support

Signed-off-by: Frank Li <Frank.Li@freescale.com>
7 years agoENGR00123744-1 iMX23 add unique ID support
Frank Li [Mon, 24 May 2010 08:54:32 +0000 (16:54 +0800)]
ENGR00123744-1 iMX23 add unique ID support

copy file from stmp plat

Signed-off-by: Frank Li <Frank.Li@freescale.com>
7 years agoENGR00123741 MX28: Add IOCTL commands to L2 switch driver
Niu Xule [Mon, 24 May 2010 07:49:58 +0000 (15:49 +0800)]
ENGR00123741 MX28: Add IOCTL commands to L2 switch driver

L2 switch driver command line controlling support

Signed-off-by: Niu Xule <b23300@freescale.com>
7 years agoENGR00123734 fix PxP hang issue when streamon and streamoff frequently
Robby Cai [Mon, 24 May 2010 02:40:01 +0000 (10:40 +0800)]
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>
7 years agoENGR00123686 mx5: Fix GPU_2D clock select bitmask
Dinh Nguyen [Thu, 20 May 2010 16:27:28 +0000 (11:27 -0500)]
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>
7 years agoENGR00122307 MX23 ALSA: Speaker is muted after playback
Lionel Xu [Thu, 20 May 2010 08:04:00 +0000 (16:04 +0800)]
ENGR00122307 MX23 ALSA: Speaker is muted after playback

Speak should not be muted after playback

Signed-off-by: Lionel Xu <r63889@freescale.com>
7 years agoENGR00123436 Clear GPMI LOCK_CS to lower suspend current.
Frank Li [Tue, 18 May 2010 12:00:30 +0000 (20:00 +0800)]
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>
7 years agoENGR00123514 MX28: System hangs when set different cpu freq continuously
Nancy Chen [Wed, 19 May 2010 20:04:59 +0000 (15:04 -0500)]
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>
7 years agoENGR00123438: iMX23 Mount as usb device then go to standby, system halt
Jeremy.Yao [Thu, 20 May 2010 05:08:44 +0000 (13:08 +0800)]
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>
7 years agoENGR00123454 [MX23] FIX LCD no display issue after switch back from TVout
Robby Cai [Wed, 19 May 2010 14:12:05 +0000 (22:12 +0800)]
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>
7 years agoENGR00123554 mx233/mx28: Enlarge the ramdisk size
Peter Chen [Wed, 19 May 2010 07:33:58 +0000 (15:33 +0800)]
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>
7 years agoENGR00123491 i.mx53 arc usb host increase tx fifo threshold.
Jun Li [Wed, 19 May 2010 05:20:59 +0000 (13:20 +0800)]
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>
7 years agoENGR00123441 imx23, fix ethernet can not suspend
Zhou Jingyu [Wed, 19 May 2010 02:58:13 +0000 (10:58 +0800)]
ENGR00123441 imx23, fix ethernet can not suspend

fix ethernet can not enter suspend state

Signed-off-by: Zhou Jingyu <Jingyu.Zhou@freescale.com>
7 years agoENGR00123412: iMX23 Copy data from SD to NAND Kernel Warning
Jeremy.Yao [Wed, 19 May 2010 02:42:26 +0000 (10:42 +0800)]
ENGR00123412: iMX23 Copy data from SD to NAND Kernel Warning

Remove unnecessary spin lock.

Signed-off-by: Jeremy Yao <r65161@freescale.com>
7 years agoENGR00123446 Can not get ip address after ifconfig eth0 down
Jason Liu [Tue, 18 May 2010 05:05:44 +0000 (13:05 +0800)]
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>

7 years agoENGR00123389: iMX23 system fail to detect sd remove
Jeremy.Yao [Tue, 18 May 2010 07:46:29 +0000 (15:46 +0800)]
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>
7 years agoENGR00123559 Android lowmemorykiller judges the number of free pages incorrect.
Xinyu Chen [Tue, 18 May 2010 06:51:18 +0000 (14:51 +0800)]
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>
7 years agoENGR00123558 v4l2 output: add own workqueue for v4l output
Jason Chen [Tue, 18 May 2010 06:58:01 +0000 (14:58 +0800)]
ENGR00123558 v4l2 output: add own workqueue for v4l output

During v4l2 output playback, there is performance issue after below

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>
7 years agonetdev/fec: fix ifconfig eth0 down hang issue
Bryan Wu [Tue, 18 May 2010 04:56:55 +0000 (12:56 +0800)]
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>
7 years agoENGR00123527 fix iMX23 udhcpc fail to get ip address
Frank Li [Mon, 17 May 2010 10:43:18 +0000 (18:43 +0800)]
ENGR00123527 fix iMX23 udhcpc fail to get ip address

Miss CONFIG_PACKET at default config

Signed-off-by: Frank Li <Frank.Li@freescale.com>
7 years agoENGR00122965 Improve USB100 feature due to bootloader change.
Frank Li [Thu, 13 May 2010 04:17:36 +0000 (12:17 +0800)]
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>
7 years agoENGR00123512 ipu: fix ipu lib compile error
Jason Chen [Mon, 17 May 2010 07:02:06 +0000 (15:02 +0800)]
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>
7 years agoENGR00123507 IPUv3:Set suitable IDMAC burst size for UYVY and ABGR32
Liu Ying [Mon, 17 May 2010 14:45:45 +0000 (10:45 -0400)]
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>
7 years agoENGR00123294 MX53: 4 stripes algorithm for support resizing for big screen
mark gutman [Wed, 5 May 2010 18:16:44 +0000 (21:16 +0300)]
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>
7 years agoENGR00123439 DMFC size: IPU DMFC DP high resulution fail to display small frame
Ran Ferderber [Thu, 13 May 2010 07:24:40 +0000 (10:24 +0300)]
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>
7 years agophylib: Move workqueue initialization to a proper place
Anton Vorontsov [Mon, 18 Jan 2010 05:37:16 +0000 (05:37 +0000)]
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
 [<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

This patch fixes the issue by moving workqueue initialization to

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>