Commit Graph

158782 Commits

Author SHA1 Message Date
Niu Xule
f38b509a2c 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>
2010-08-10 11:51:11 -05:00
Lionel Xu
392a524b3f 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
   Switch"

Signed-off-by: Lionel Xu <r63889@freescale.com>
2010-08-10 11:51:10 -05:00
Lionel Xu
2df29e84b6 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>
2010-08-10 11:51:10 -05:00
Jason Chen
6a487d0bde ENGR00124360 v4l2 output: rework v4l2 output
1. remove ADC support.
2. remove work queue for not ic bypass mode which improve the
performance.

Signed-off-by: Jason Chen <b02280@freescale.com>
2010-08-10 11:51:09 -05:00
Lily Zhang
b0c5c97d03 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>
2010-08-10 11:51:09 -05:00
Frank Li
2ccf7d1582 ENGR00124562 MX28 add persistent bit support
Add persistent bit for MX28

Signed-off-by: Frank Li <Frank.Li@freescale.com>
2010-08-10 11:51:08 -05:00
Peter Chen
b2e4d44bb5 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>
2010-08-10 11:51:07 -05:00
Peter Chen
d4946d871c 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>
2010-08-10 11:51:07 -05:00
mark gutman
e65a92ffe5 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:
	YUYV16
	YVYU16
	UYVY16
	VYUY16

	Signed-off-by: Mark Gutman <r58412@freescale.com>
2010-08-10 11:51:06 -05:00
Nancy Chen
27595891b9 ENGR00124287 MX5x, MX37: Fix DVFS memory resource issue
MX5x, MX37: Fix DVFS memory resource issue.

Signed-off-by: Nancy Chen <Nancy.Chen@freescale.com>
2010-08-10 11:51:06 -05:00
Lily Zhang
48ff3cbb9e 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>
2010-08-10 11:51:05 -05:00
Anton Vorontsov
c1771bf6cb 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>
2010-08-10 11:51:04 -05:00
Anton Vorontsov
62f5bfd4d9 ahci: Move generic code into libahci
This patch should contain no functional changes, just moves code
around.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2010-08-10 11:51:04 -05:00
Anton Vorontsov
8d9201a6c5 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>
2010-08-10 11:51:03 -05:00
Anton Vorontsov
8c6badf3f6 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>
2010-08-10 11:51:02 -05:00
Anton Vorontsov
79cedf1eff 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>
2010-08-10 11:51:02 -05:00
Anton Vorontsov
b97f2e097e 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>
2010-08-10 11:51:01 -05:00
Anton Vorontsov
16c81d90c7 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>
2010-08-10 11:51:01 -05:00
Anton Vorontsov
3c5034b864 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>
2010-08-10 11:51:00 -05:00
Anton Vorontsov
15c3b124a4 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>
2010-08-10 11:50:59 -05:00
Anton Vorontsov
52106790d6 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
window).

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
   field.

This patch implements the second option.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2010-08-10 11:50:59 -05:00
Shane Huang
f2f74359d4 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>
2010-08-10 11:50:56 -05:00
Robert Hancock
f708c2d6fe 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>
2010-08-10 11:50:55 -05:00
Shane Huang
750b64d64a 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>
2010-08-10 11:50:55 -05:00
Shaohua Li
f32cbc21e0 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
disappears.

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>
2010-08-10 11:50:54 -05:00
Markus Trippelsdorf
e5cb3c602d 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
CONFIG_ATA_ACPI.
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>
2010-08-10 11:50:53 -05:00
Tejun Heo
b8482932d9 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.

  https://bugzilla.novell.com/show_bug.cgi?id=522790

Reported-by: Marcus Meissner <meissner@novell.com>

Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2010-08-10 11:50:53 -05:00
Robert Hancock
2ebbd82567 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
field.

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>
2010-08-10 11:50:52 -05:00
Shane Huang
645eec03f4 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>
2010-08-10 11:50:52 -05:00
Matthew Garrett
ba80c5ba52 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>
2010-08-10 11:50:51 -05:00
Shaohua Li
1a42e346d6 [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>
2010-08-10 11:50:50 -05:00
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