Commit Graph

69192 Commits

Author SHA1 Message Date
Gene Chouiniere
da25d30bfa ENGR00125010-1 gpu: add gpu driver support
Migrate from RC14 with freescale changes.

Signed-off-by: Gene Chouiniere <Gene.Chouiniere@amd.com>
Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
Acked-by: Rob Herring <r.herring@freescale.com>
2010-08-10 11:51:46 -05:00
Jason Chen
5587d66a12 ENGR00125173 ipuv3: remove stat check wait in _ipu_dp_dc_disable()
The stat check wait will add ipu operation time which degrade the ipu
performance.

Signed-off-by: Jason Chen <b02280@freescale.com>
2010-08-10 11:51:44 -05:00
Jason Chen
76a5dbd276 ENGR00125172 ipuv3 fb: add sync for DP swap
During DP swap, other fb operation should not happen.

Signed-off-by: Jason Chen <b02280@freescale.com>
2010-08-10 11:51:44 -05:00
Jason Chen
743a8eed30 ENGR00125171 ipu dev: add sync method
The memory mmap by ipu device is write-back, so user space need sync
method.

Signed-off-by: Jason Chen <b02280@freescale.com>
2010-08-10 11:51:43 -05:00
Danny Nold
1d580cb07e ENGR00125120 - EPDC fb: Hangs when display pmic regulators not found
EPDC driver updated to fail gracefully when the display pmic cannot
be acquired.  No longer hanging.

Signed-off-by: Danny Nold <dannynold@freescale.com>
2010-08-10 11:51:40 -05:00
Danny Nold
f549421d20 ENGR00125119 - Maxim 17135 display pmic: VCOM configured incorrectly
The initial VCOM voltage should be configured once.  Previously it was
left unconfigured.  Now, the VCOM value is checked the first time
through, and if it is not set correctly, it will be fixed.

Signed-off-by: Danny Nold <dannynold@freescale.com>
2010-08-10 11:51:40 -05:00
Danny Nold
7a8faaa8a5 ENGR00125118 - Maxim 17135 display pmic: increase PWR_GOOD wait timeout
A number of Maxim 17135 parts were found to require longer than the
computed max wait time to assert the PWR_GOOD signal, indicating that
display power is up and valid.  This fix increases the timeout,
preventing regulator_enable calls from prematurely bailing out
and reporting errors.

Signed-off-by: Danny Nold <dannynold@freescale.com>
2010-08-10 11:51:39 -05:00
Zhou Jingyu
fa9167503b ENGR00125077: pmic battery: disable battery for MX50 Arm2 board
pmic battery: disable battery for MX50 Arm2 board

Signed-off-by: Zhou Jingyu <Jingyu.Zhou@freescale.com>
2010-08-10 11:51:38 -05:00
Danny Nold
ff97ec543b ENGR00124814-1 fb: Add i.MX EPDC fb driver
Added basic EPDC driver, including support for PXP conversions (rotation,
auto-waveform selection, CSC).  Self-clock gating also supported.

Signed-off-by: Danny Nold <dannynold@freescale.com>
2010-08-10 11:51:36 -05:00
Robby Cai
9c91622d90 ENGR00125034 [MX50] Add PxP DMA-Engine and PxP client driver
Use Common DMA-Engine framework to implement ePXP driver
Use a dma client driver to access ePxP staff.

Signed-off-by: Danny Nold <dannynold@freescale.com>
Signed-off-by: Robby Cai <R63905@freescale.com>
2010-08-10 11:51:35 -05:00
Danny Nold
2ac9e0c059 ENGR00124812-1: Support Maxim E-Ink PMIC
Added new regulator driver to control voltage supplies for
E-Ink panel.

Signed-off-by: Danny Nold <dannynold@freescale.com>
2010-08-10 11:51:34 -05:00
mark gutman
0fbba7a43f ENGR00124942 MX51: YUV422 output for 720P data
Ignore UGDE using for non YUYV output formats

Signed-off-by: Mark Gutman <r58412@freescale.com>
2010-08-10 11:51:33 -05:00
Hu hui
8917d92d1a ENGR00124963 USB: add vbus enable/disable
support imx53 evk board OTG and Host1 vbus active
and inactive to low the power consume, fix fsl_otg.c
build failt, add vbus power control function pointer
in struct fsl_usb2_platform_data.

Signed-off-by: Hu hui <b29976@freescale.com>
2010-08-10 11:51:32 -05:00
Zhou Jingyu
fd0b8982f3 ENGR00125012: fix cspi mater driver clock polarity for cpsi v7
fix cspi mater driver clock polarity for cpsi v7

Signed-off-by: Zhou Jingyu <Jingyu.Zhou@freescale.com>
2010-08-10 11:51:31 -05:00
Anish Trivedi
5b89964ad4 ENGR00124905 rtc: remove MX51 1.0 work-around
Since some chips don't have IIM, remove work-around

Signed-off-by: Anish Trivedi <anish@freescale.com>
2010-08-10 11:51:30 -05:00
Peter Chen
260daf5aa4 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>
2010-08-10 11:51:23 -05:00
Liu Ying
a1815ec2e8 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>
2010-08-10 11:51:23 -05:00
Richard Zhu
1dc8f0e201 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>
2010-08-10 11:51:21 -05:00
Jason Chen
359587f268 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>
2010-08-10 11:51:20 -05:00
Jason Chen
757114831f 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>
2010-08-10 11:51:20 -05:00
Lily Zhang
3a8994f9c7 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>
2010-08-10 11:51:19 -05:00
Jason Chen
e33df3d953 ENGR00124760 fec: set mac address correctly
Fix dynamicly set mac address make network hang issue.

Signed-off-by: Jason Chen <b02280@freescale.com>
2010-08-10 11:51:18 -05:00
Sammy He
9fe0e34c9f 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>
2010-08-10 11:51:15 -05:00
Jason Chen
39eb2537a2 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>
2010-08-10 11:51:14 -05:00
Jason Chen
35ba93ff11 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
issue.

Signed-off-by: Jason Chen <b02280@freescale.com>
2010-08-10 11:51:13 -05:00
Liu Ying
ab9b6e2c7a 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>
2010-08-10 11:51:13 -05:00
Liu Ying
9fd34ae2e0 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>
2010-08-10 11:51:12 -05:00
Liu Ying
cb4c5628ce 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>
2010-08-10 11:51:12 -05:00
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
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
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
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
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