linux.git
11 years agoENGR00216078-2: switch: add L2 switch driver for Vybrid Rel3
Jason Jin [Fri, 12 Oct 2012 08:59:47 +0000 (16:59 +0800)]
ENGR00216078-2: switch: add L2 switch driver for Vybrid

Port the L2 switch driver from CF platform for Vybridi plaform.

This driver usually should work together with the RSTP demo
applications provided by fsl.

Signed-off-by: Alison Wang <b18965@freescale.com>
Signed-off-by: Jason Jin <Jason.jin@freescale.com>
11 years agoENGR00216078-1: switch: add platform support for L2 switch
Jason Jin [Fri, 12 Oct 2012 06:31:57 +0000 (14:31 +0800)]
ENGR00216078-1: switch: add platform support for L2 switch

Add platform support for Vybrid L2 switch driver.

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
11 years agoENGR00181358-3: fec: add second FEC support for Vybrid
Alison Wang [Tue, 9 Oct 2012 04:36:45 +0000 (12:36 +0800)]
ENGR00181358-3: fec: add second FEC support for Vybrid

Add second FEC support for Vybrid.

Signed-off-by: Alison Wang <b18965@freescale.com>
11 years agoENGR00212250-2: watchdog: Add watchdog driver support for Vybrid
Alison Wang [Mon, 8 Oct 2012 05:41:20 +0000 (13:41 +0800)]
ENGR00212250-2: watchdog: Add watchdog driver support for Vybrid

Add watchdog driver support for Vybrid.

Signed-off-by: Wang Xiaojun <b41435@freescale.com>
11 years agoENGR00212250-1: watchdog: Add platform support for watchdog driver
Alison Wang [Mon, 8 Oct 2012 05:45:50 +0000 (13:45 +0800)]
ENGR00212250-1: watchdog: Add platform support for watchdog driver

Add platform support for watchdog driver.

Signed-off-by: Wang Xiaojun <b41435@freescale.com>
11 years agoENGR00181395-1: Add UART MISC functions support for Faraday
Jingchang Lu [Wed, 12 Sep 2012 05:56:45 +0000 (13:56 +0800)]
ENGR00181395-1: Add UART MISC functions support for Faraday

Add hardware flow control support,
Add transmit DMA support,
Add FIFO operation support,
Add MSB/LSB on data support,
Add 9-bits MARK/SPACE support.

Signed-off-by: Jingchang Lu <b35083@freescale.com>
11 years agoENGR00181390-2: qspi: Add Quad SPI driver support for Vybrid
Alison Wang [Fri, 28 Sep 2012 05:21:42 +0000 (13:21 +0800)]
ENGR00181390-2: qspi: Add Quad SPI driver support for Vybrid

Add Quad SPI driver support for Vybrid.

Signed-off-by: Alison Wang <b18965@freescale.com>
               Xiaochun Li <b41219@freescale.com>

11 years agoENGR00181390-1: qspi: Add platform support for Quad SPI driver
Alison Wang [Fri, 28 Sep 2012 05:19:09 +0000 (13:19 +0800)]
ENGR00181390-1: qspi: Add platform support for Quad SPI driver

Add platform support for Quad SPI driver.

Signed-off-by: Alison Wang <b18965@freescale.com>
               Xiaochun Li <b41219@freescale.com>

11 years agoENGR00181407-3: Add Compaq touch screen interface for nano-x
Alison Wang [Mon, 8 Oct 2012 06:19:40 +0000 (14:19 +0800)]
ENGR00181407-3: Add Compaq touch screen interface for nano-x

Add Compaq touch screen interface for nano-x.

Nano-x work with touch screen driver via Compaq touch
screen event format, this patch could add the support
above mouse device.

Signed-off-by: Alison Wang <b18965@freescale.com>
11 years agoENGR00181407-2: ts: add touch screen driver support for Vybird
Alison Wang [Thu, 11 Oct 2012 00:29:04 +0000 (08:29 +0800)]
ENGR00181407-2: ts: add touch screen driver support for Vybird

Add touch screen driver support for Vybird.

Signed-off-by: Alison Wang <b18965@freescale.com>
11 years agoENGR00181407-1: ts: add platform support for touch screen driver
Alison Wang [Wed, 12 Sep 2012 07:17:45 +0000 (15:17 +0800)]
ENGR00181407-1: ts: add platform support for touch screen driver

Add platform support for touch screen driver.

Signed-off-by: Alison Wang <b18965@freescale.com>
11 years agoENGR00180953-2: dspi: update dspi driver support for Vybrid
Alison Wang [Wed, 12 Sep 2012 07:13:01 +0000 (15:13 +0800)]
ENGR00180953-2: dspi: update dspi driver support for Vybrid

Update dspi driver support for Vybrid after debugging on board.

Signed-off-by: Jason Jin <jason.jin@freescale.com>
               Alison Wang <b18965@freescale.com>

11 years agoENGR00180953-1: dspi: update platform support for dspi driver
Alison Wang [Wed, 12 Sep 2012 07:10:48 +0000 (15:10 +0800)]
ENGR00180953-1: dspi: update platform support for dspi driver

Update platform support for dspi driver after debugging on board.

Signed-off-by: Jason Jin <jason.jin@freescale.com>
               Alison Wang <b18965@freescale.com>

11 years agoENGR00180956-3: Add PWM LED device support on MVF600
Jingchang Lu [Wed, 12 Sep 2012 05:50:15 +0000 (13:50 +0800)]
ENGR00180956-3: Add PWM LED device support on MVF600

  Four LEDS are connected to FTM0 ch0~3 on TWR-MVF600 board,
the PWM signal can use control these LEDS on/off or demo.

Signed-off-by: Jingchang Lu <b35083@freescale.com>
11 years agoENGR00180956-2: Add FlexTimer PWM support on Faraday
Alison Wang [Wed, 10 Oct 2012 01:31:08 +0000 (09:31 +0800)]
ENGR00180956-2: Add FlexTimer PWM support on Faraday

The FlexTimer work on PWM mode with EPWM and CPWM supported.
The API configures each FTM channels the same due to pwm subsystem
interface restriction.

Signed-off-by: Jingchang Lu <b35083@freescale.com>
11 years agoENGR00180956-1: Add FlexTimer PWM device clock for Faraday
Jingchang Lu [Wed, 12 Sep 2012 05:30:52 +0000 (13:30 +0800)]
ENGR00180956-1: Add FlexTimer PWM device clock for Faraday

Signed-off-by: Jingchang Lu <b35083@freescale.com>
11 years agoENGR00220352: Fix reboot hung after set uart baudrate
Jingchang Lu [Tue, 14 Aug 2012 08:02:02 +0000 (16:02 +0800)]
ENGR00220352: Fix reboot hung after set uart baudrate

Signed-off-by: Jingchang Lu <b35083@freescale.com>
11 years agoEnable the FEC as modules
Jason Jin [Mon, 13 Aug 2012 09:44:24 +0000 (17:44 +0800)]
Enable the FEC as modules

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
11 years agoENGR00212262-3: Faraday:Enable the ADMA2 function for SDHC
Jason Jin [Fri, 10 Aug 2012 10:23:10 +0000 (18:23 +0800)]
ENGR00212262-3: Faraday:Enable the ADMA2 function for SDHC

This patch enable the ADMA2 function for the SDHC module used
on Faraday board. Please note that the ADMA address should be 16
bytes aligned other than 4 byte in the spec.

This patch also increased the SDHC module frequency to 200MHz.

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
11 years agoENGR00219771: Fix high-speed usb hub connection detection failure for Faraday
Jingchang Lu [Wed, 8 Aug 2012 08:37:18 +0000 (16:37 +0800)]
ENGR00219771: Fix high-speed usb hub connection detection failure for Faraday

  Only disable the high-speed device disconnection detction for
level-1 device, or the connection detecting would fail.

Signed-off-by: Jingchang Lu <b35083@freescale.com>
11 years agoENGR00219354: Fix USB host driver compiled as module fail problem
Jingchang Lu [Wed, 8 Aug 2012 01:55:46 +0000 (09:55 +0800)]
ENGR00219354: Fix USB host driver compiled as module fail problem

Signed-off-by: Jingchang Lu <b35083@freescale.com>
11 years agoENGR00219461:Fix high resolution timer support Faraday
Jingchang Lu [Tue, 7 Aug 2012 07:14:15 +0000 (15:14 +0800)]
ENGR00219461:Fix high resolution timer support Faraday

Signed-off-by: Jingchang Lu <b35083@freescale.com>
11 years agoENGR00219787:Fix UART baud rate and console setting for MVF platform
Jingchang Lu [Wed, 1 Aug 2012 05:07:31 +0000 (13:07 +0800)]
ENGR00219787:Fix UART baud rate and console setting for MVF platform

Signed-off-by: Jingchang Lu <b35083@freescale.com>
11 years agoENGR219758:There is CRC error when JFFS2 used as filesystem
Jason Jin [Fri, 10 Aug 2012 03:35:10 +0000 (11:35 +0800)]
ENGR219758:There is CRC error when JFFS2 used as filesystem

Enable the softecc in the config to make the NFC use softecc.
also include the defconfig update for:
ENGR220009:The LCD panel goes blank after a long time

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
11 years agoENGR00220009: dcu: Add the option to enable or disable blanking support
Alison Wang [Fri, 10 Aug 2012 02:49:07 +0000 (10:49 +0800)]
ENGR00220009: dcu: Add the option to enable or disable blanking support

If framebuffer console support is enabled, blanking the screen will
occur after a long time. To avoid it, the option for disabling blanking
is added.

Signed-off-by: Alison Wang <b18965@freescale.com>
11 years agoENGR00219495: dcu: Fix module reinsert error for DCU driver
Alison Wang [Fri, 10 Aug 2012 01:37:21 +0000 (09:37 +0800)]
ENGR00219495: dcu: Fix module reinsert error for DCU driver

Signed-off-by: Alison Wang <b18965@freescale.com>
11 years agoENGR00219342: edma: Updated edma driver and edma test driver
Xiaochun Li [Tue, 7 Aug 2012 10:11:02 +0000 (18:11 +0800)]
ENGR00219342: edma: Updated edma driver and edma test driver

This patch is to update Edma driver after debugging on board.
mainly, fixed the bug that resulting the request source of DMA1 overflow

Signed-off-by: Xiaochun Li <b41219@freescale.com>
11 years agoENGR219460:There is call trace when the SD card removed and then pluged-into
Jason Jin [Tue, 7 Aug 2012 10:13:17 +0000 (18:13 +0800)]
ENGR219460:There is call trace when the SD card removed and then pluged-into

The call trace introduced by the card interrupt. This patch try to fix
this by disabling the card interrupt.

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
11 years agoENGR00219629 Farday:There is call trace for FEC pll clock sometimes.
Jason Jin [Tue, 7 Aug 2012 07:25:47 +0000 (15:25 +0800)]
ENGR00219629 Farday:There is call trace for FEC pll clock sometimes.

This patch increase the delay time for the pll clock to lock. otherwise
the kernel will panic for the locking failure.

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
11 years agoENGR00219616 One Micro-SD card remove will generate a lot of interrupts
Jason Jin [Tue, 7 Aug 2012 07:12:38 +0000 (15:12 +0800)]
ENGR00219616 One Micro-SD card remove will generate a lot of interrupts

The PKE and PUE should be declared for the GPIO pull up, otherwise the pin
will not be pulled up for the SDHC card detect input.

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
11 years agoENGR00180931-4 mvf: add default kernel config for Faraday
Alison Wang [Thu, 26 Jul 2012 10:03:04 +0000 (18:03 +0800)]
ENGR00180931-4 mvf: add default kernel config for Faraday

Add default kernel config for Faraday.

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
11 years agoENGR00180936-3: add the module for test eDMA driver
Xiaochun Li [Mon, 30 Jul 2012 09:58:20 +0000 (17:58 +0800)]
ENGR00180936-3: add the module for test eDMA driver

This patch is to tests eDMA driver.
a simple memory to memory transfer with a 32 bit
source and destination transfer size that generates
an interrupt when the transfer is complete.

Signed-off-by: Xiaochun Li <b41219@freescale.com>
11 years agoENGR00181396-2: high-speed USB device disconnection management
Jingchang Lu [Thu, 26 Jul 2012 08:37:38 +0000 (16:37 +0800)]
ENGR00181396-2: high-speed USB device disconnection management

Detection of high-speed USB device disconnection should be enable
on connection and disable on disconnection.

Signed-off-by: Jingchang Lu <b35083@freescale.com>
11 years agoENGR00181401,ENGR00181396-1: Add USB OTG controller support for MVF platform
Jingchang Lu [Thu, 28 Jun 2012 02:15:11 +0000 (10:15 +0800)]
ENGR00181401,ENGR00181396-1: Add USB OTG controller support for MVF platform

OTG1 acts as gadget and OTG2 acts as host on TWR-MVF600 board.

Signed-off-by: Jingchang Lu <b35083@freescale.com>
11 years agoENGR00180953-2: dspi: add dspi driver support for Faraday
Alison Wang [Fri, 27 Jul 2012 03:31:06 +0000 (11:31 +0800)]
ENGR00180953-2: dspi: add dspi driver support for Faraday

Add dspi driver support for Faraday.

Signed-off-by: Alison Wang <b18965@freescale.com>
11 years agoENGR00180953-1: dspi: add platform support for dspi driver
Alison Wang [Fri, 27 Jul 2012 03:29:40 +0000 (11:29 +0800)]
ENGR00180953-1: dspi: add platform support for dspi driver

Add platform support for dspi driver.

Signed-off-by: Alison Wang <b18965@freescale.com>
11 years agoENGR00212251-2: sai: add SAI driver support for Faraday
Alison Wang [Fri, 27 Jul 2012 03:10:54 +0000 (11:10 +0800)]
ENGR00212251-2: sai: add SAI driver support for Faraday

Add SAI driver support for Faraday.

Signed-off-by: Alison Wang <b18965@freescale.com>
Signed-off-by: Xiaochun Li <b41219@freescale.com>
11 years agoENGR00212251-1: sai: add platform support for SAI driver
Alison Wang [Fri, 27 Jul 2012 03:06:36 +0000 (11:06 +0800)]
ENGR00212251-1: sai: add platform support for SAI driver

Add platform support for SAI driver.

Signed-off-by: Alison Wang <b18965@freescale.com>
11 years agoENGR00180947-2: dcu: add dcu driver support for Faraday
Alison Wang [Fri, 27 Jul 2012 03:04:46 +0000 (11:04 +0800)]
ENGR00180947-2: dcu: add dcu driver support for Faraday

Add dcu driver support for Faraday.

The penguin logo could be shown correctly and the microwindows
application was also tested.

Signed-off-by: Alison Wang <b18965@freescale.com>
11 years agoENGR00180947-1: dcu: add platform support for dcu driver
Alison Wang [Fri, 27 Jul 2012 03:00:44 +0000 (11:00 +0800)]
ENGR00180947-1: dcu: add platform support for dcu driver

Add platform support for dcu driver.

Signed-off-by: Alison Wang <b18965@freescale.com>
11 years agoENGR00181374-2: nfc: add NFC driver support for Faraday
Alison Wang [Thu, 26 Jul 2012 08:25:33 +0000 (16:25 +0800)]
ENGR00181374-2: nfc: add NFC driver support for Faraday

Add NFC driver support for Faraday.

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
11 years agoENGR00181374-1: nfc: add platform support for NFC driver
Alison Wang [Thu, 26 Jul 2012 08:24:07 +0000 (16:24 +0800)]
ENGR00181374-1: nfc: add platform support for NFC driver

Add platform support for NFC driver.

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
11 years agoENGR00180958: rtc: add platform support for RTC driver
Alison Wang [Thu, 26 Jul 2012 08:21:47 +0000 (16:21 +0800)]
ENGR00180958: rtc: add platform support for RTC driver

Add platform support for RTC driver.

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
11 years agoENGR00181363-2: add I2C controller support for Faraday
Alison Wang [Thu, 26 Jul 2012 08:20:24 +0000 (16:20 +0800)]
ENGR00181363-2: add I2C controller support for Faraday

Add the I2C controller support for Faraday.

Enable the I2C0 for Faraday. There are some different with I.MX
for I2C controller, The i2c enable bit is invert with i.mx and the
interrupt clear is w1c on Faraday but w0c on i.mx

As there are more than one devices on the bus, the drive strength
is set to 50ohm, otherwise, some device can not be found.

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
11 years agoENGR00181363-1: add platform support for I2C controller
Alison Wang [Thu, 26 Jul 2012 08:19:16 +0000 (16:19 +0800)]
ENGR00181363-1: add platform support for I2C controller

Add platform support for I2C controller.

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
11 years agoENGR00180936-2: edma: add edma driver support for MVF
Alison Wang [Thu, 26 Jul 2012 08:04:12 +0000 (16:04 +0800)]
ENGR00180936-2: edma: add edma driver support for MVF

Add EDMA driver support for MVF.

can use the "Always enable" model and DMA request sources
from DMA1.

Signed-off-by: Jingchang Lu <b35083@freescale.com>
Signed-off-by: Xiaochun Li <b41219@freescale.com
11 years agoENGR00180936-1: edma: add platform support for edma driver
Alison Wang [Thu, 26 Jul 2012 08:02:29 +0000 (16:02 +0800)]
ENGR00180936-1: edma: add platform support for edma driver

Add platform support for edma driver.

Signed-off-by: Jingchang Lu <b35083@freescale.com>
Signed-off-by: Xiaochun Li <b41219@freescale.com>
11 years agoENGR00212262-2: esdhc: add esdhc controller support for MVF
Alison Wang [Thu, 26 Jul 2012 07:57:13 +0000 (15:57 +0800)]
ENGR00212262-2: esdhc: add esdhc controller support for MVF

Add esdhc controller support for MVF.
The wp_pin for esdhc should be disabled.

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
11 years agoENGR00212262-1: esdhc: add platform support for esdhc driver
Alison Wang [Thu, 26 Jul 2012 07:55:09 +0000 (15:55 +0800)]
ENGR00212262-1: esdhc: add platform support for esdhc driver

Add platform support for esdhc driver.

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
11 years agoENGR00181358-2: fec: add FEC driver support for MVF
Alison Wang [Thu, 26 Jul 2012 07:48:17 +0000 (15:48 +0800)]
ENGR00181358-2: fec: add FEC driver support for MVF

Add FEC driver support for MVF.
Update the phyid for micrel ksz8041 phy.

There are several version sz8041 with different phyid. Those id:
0x00221510, 0x00221512, 0x00221513 were found on different version
SER board. So change the mask to 0x00fffff0 to fit the different version.

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
11 years agoENGR00181358-1: fec: add platform support for FEC driver
Alison Wang [Thu, 26 Jul 2012 07:46:11 +0000 (15:46 +0800)]
ENGR00181358-1: fec: add platform support for FEC driver

Add platform support for FEC driver.

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
Signed-off-by: Alison Wang <b18965@freescale.com>
11 years agoENGR00181393-2: uart: add basic UART and console support for MVF
Alison Wang [Thu, 26 Jul 2012 07:51:25 +0000 (15:51 +0800)]
ENGR00181393-2: uart: add basic UART and console support for MVF

Add basic UART and console support for MVF.

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
Signed-off-by: Jingchang Lu <b35083@freescale.com>
11 years agoENGR00181393-1: uart: add platform support for UART driver
Alison Wang [Thu, 26 Jul 2012 07:50:33 +0000 (15:50 +0800)]
ENGR00181393-1: uart: add platform support for UART driver

Add platform support for UART driver.

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
Signed-off-by: Jingchang Lu <b35083@freescale.com>
11 years agoENGR00180931-3 mvf: add gpio API for MVF platform
Alison Wang [Thu, 26 Jul 2012 07:35:12 +0000 (15:35 +0800)]
ENGR00180931-3 mvf: add gpio API for MVF platform

Add gpio API for MVF platform.
The MVF GPIO framwork is different with i.mx.

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
11 years agoENGR00180931-2 mvf: add IOMUX definiation and initialization
Alison Wang [Thu, 26 Jul 2012 07:32:14 +0000 (15:32 +0800)]
ENGR00180931-2 mvf: add IOMUX definiation and initialization

Add IOMUX definiation and initialization.

Add the iomux initialization support for Faraday.
Define the io pad settings for some function modules. Those
pad ctrl settings may need to adjust during the feature tuning
process.

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
11 years agoENGR00180931-1 mvf: add MSL support for MVF platform
Alison Wang [Thu, 26 Jul 2012 07:24:38 +0000 (15:24 +0800)]
ENGR00180931-1 mvf: add MSL support for MVF platform

Add MSL support for MVF platform.

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
Signed-off-by: Alison Wang <b18965@freescale.com>
Signed-off-by: Jingchang Lu <b35083@freescale.com>
12 years agoARM: proc: add Cortex-A5 proc info
Pawel Moll [Fri, 20 May 2011 13:39:29 +0000 (14:39 +0100)]
ARM: proc: add Cortex-A5 proc info

This patch adds processor info for ARM Ltd. Cortex A5,
which has SCU initialisation procedure identical to A9.

Signed-off-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
(cherry picked from commit 15eb169bfec291faf25b158cfa9842b72f7803ad)

12 years agoARM: perf: add PMUv2 common event definitions
Will Deacon [Wed, 19 Jan 2011 14:15:34 +0000 (14:15 +0000)]
ARM: perf: add PMUv2 common event definitions

The PMUv2 specification reserves a number of event encodings
for common events.

This patch adds these events to the common event enumeration
in preparation for PMUv2 cores, such as Cortex-A15.

Acked-by: Jean Pihet <j-pihet@ti.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
(cherry picked from commit 6d4eaf991c654af54a19c0fa48e0ad62cefbc37c)

12 years agoARM: proc: convert v7 proc infos into a common macro
Pawel Moll [Fri, 20 May 2011 13:39:28 +0000 (14:39 +0100)]
ARM: proc: convert v7 proc infos into a common macro

As most of the proc info content is common across all v7
processors, this patch converts existing A9 and generic v7
descriptions into a macro (allowing extra flags in future).

Signed-off-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
(cherry picked from commit dc939cd835d0e2d3ff4197d6e2c017d269616d20)

12 years agoARM: perf: add support for the Cortex-A5 PMU
Will Deacon [Fri, 3 Jun 2011 16:40:15 +0000 (17:40 +0100)]
ARM: perf: add support for the Cortex-A5 PMU

This patch adds support for the Cortex-A5 PMU to the ARMv7 perf-event
backend.

Signed-off-by: Will Deacon <will.deacon@arm.com>
(cherry picked from commit 0c205cbe20654616e2f8389c0c1ff707d9dccb63)

12 years agoENGR00175090 Update the fsl copyright of gpu kernel driver to 2012
Huang Loren [Wed, 22 Feb 2012 06:41:00 +0000 (14:41 +0800)]
ENGR00175090 Update the fsl copyright of gpu kernel driver to 2012

Update the fsl copyright of gpu kernel driver to 2012

Signed-off-by: Huang Loren <b02279@freescale.com>
12 years agoENGR00174654-2 Update gpu kernel driver to vivante 4.6.5 release
Loren Huang [Sun, 4 Mar 2012 04:02:32 +0000 (12:02 +0800)]
ENGR00174654-2 Update gpu kernel driver to vivante 4.6.5 release
Merge 4.6.5 p1 kernel part code.

Signed-off-by: Loren Huang <b02279@freescale.com>
Acked-by: Lily Zhang
12 years agoENGR00176160 [MX6]Correct PLL1 freq change flow
Anson Huang [Tue, 6 Mar 2012 04:00:16 +0000 (12:00 +0800)]
ENGR00176160 [MX6]Correct PLL1 freq change flow

Previous PLL1 freq change is done by switching CPU clock
to 400M pfd or 24M OSC, then modifying
PLL1 div directly, and switch back CPU clock immediately,
it will result in CPU clock stop during PLL1 hardware lock
period, thus, DRAM FIFO may blocked by the data CPU
requested before PLL1 clock changed, and it will block other devices
accessing DRAM, such as IPU, VPU etc. It will cause
underrun or hang issue. We should wait PLL1 lock, then switch
back.

Signed-off-by: Anson Huang <b20788@freescale.com>
12 years agoENGR00176147-3: usb: change data types for wakeup_event
Peter Chen [Tue, 6 Mar 2012 02:16:46 +0000 (10:16 +0800)]
ENGR00176147-3: usb: change data types for wakeup_event

In order to know which wakeup event occurs for usb wakeup

Signed-off-by: Peter Chen <peter.chen@freescale.com>
12 years agoENGR00176147-2: usb: pass the wakeup event to pdata
Peter Chen [Tue, 6 Mar 2012 02:10:22 +0000 (10:10 +0800)]
ENGR00176147-2: usb: pass the wakeup event to pdata

The host driver needs to differentiate wakeup event.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
12 years agoENGR00176147-1: usb: fix some wakeup problems
Peter Chen [Wed, 22 Feb 2012 03:14:01 +0000 (11:14 +0800)]
ENGR00176147-1: usb: fix some wakeup problems

- Do not call hcd core adjust wakeup flag code. It may change
wakeup flag, and cause port change detect(PCD) enable setting change.
- For ID wakeup, it should not call host's fsl_usb_recover_hcd at ID interrupt.
The coming ID switch event will resume host.
- Do not need enable wakeup interrupt for host at platform driver resume
routine, it may introduce unnessary wakeup interrupt during bus resume.
The wakeup will be enabled again when usb host goes to controller again
due to autosuspend.
- When there is no gadget enabled, the otg port is still at host mode with
interrupt enabled, so when male Micro-B to female A-type cable with
usb device plugs in, there will be PCD interrupt before hcd core leaves
suspend mode.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
12 years agoENGR00176061-2 usb: otg: add discharge vbus flag
Peter Chen [Tue, 6 Mar 2012 03:11:45 +0000 (11:11 +0800)]
ENGR00176061-2 usb: otg: add discharge vbus flag

Add discharge vbus flag

Signed-off-by: Peter Chen <peter.chen@freescale.com>
12 years agoENGR00176061-1 usb: otg: delete discharge vbus operation at otg driver
Peter Chen [Wed, 22 Feb 2012 05:46:14 +0000 (13:46 +0800)]
ENGR00176061-1 usb: otg: delete discharge vbus operation at otg driver

It may be useless at most of platforms, the user can enable discharge
vbus if he/she wants speed up vbus lower speed during OTG switch.

Besides, disable vbus interrupt during vbus change due
to device <--> host mode switch.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
12 years agoENGR00175864 [MMC]pipeline mmc requests
Tony Lin [Mon, 27 Feb 2012 07:53:02 +0000 (15:53 +0800)]
ENGR00175864 [MMC]pipeline mmc requests

the patch is based on a series of patches by Per Forlin
the patch is sdhci host side implementation.

using a toshiba SDHC3.0 card, the performance increases
from 48.5MB/s to 52.4MB/s.

cmd: dd if=/dev/mmcblk0 of=/dev/null bs=1M count=500

the performance results running@1GHz, 200MHz CPU freq are:
52.4MB/s -> 20.7MB/s

Signed-off-by: Tony Lin <tony.lin@freescale.com>
12 years agoENGR00176068-3 defconfig: enable localtimer in defconfig
Xinyu Chen [Wed, 7 Mar 2012 04:03:33 +0000 (12:03 +0800)]
ENGR00176068-3 defconfig: enable localtimer in defconfig

Enable local timer by default. If wait mode is on,
local timer will be shutdown automatically on boot.

Signed-off-by: Xinyu Chen <xinyu.chen@freescale.com>
12 years agoENGR00176068-2 smp_twd: reconfigure clockevents after cpufreq change
Xinyu Chen [Mon, 5 Mar 2012 08:17:52 +0000 (16:17 +0800)]
ENGR00176068-2 smp_twd: reconfigure clockevents after cpufreq change

After a cpufreq transition, update the clockevent's frequency
by fetching the new clock rate from the clock framework and
reprogram the next clock event.

Signed-off-by: Xinyu Chen <xinyu.chen@freescale.com>
Signed-off-by: Colin Cross <ccross@android.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Rob Herring <rob.herring@calxeda.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
12 years agoENGR00176068-1 mx6q: add smp_twd clock for localtimer
Xinyu Chen [Mon, 5 Mar 2012 08:15:20 +0000 (16:15 +0800)]
ENGR00176068-1 mx6q: add smp_twd clock for localtimer

Add a smp_twd system clock which is simple clock
from parent of cpu_clk, and it's rate is half
of the cpu_clk.
This is used for reprograming the twd clock event
after cpu freq is changed.
Also disable local timer setup when wait mode enabled.

Signed-off-by: Xinyu Chen <xinyu.chen@freescale.com>
12 years agoENGR00176279 [MX6DL] MMC: improve SD3.0 SDR104 mode compatability.
Ryan QIAN [Wed, 7 Mar 2012 02:56:13 +0000 (10:56 +0800)]
ENGR00176279 [MX6DL] MMC: improve SD3.0 SDR104 mode compatability.

remove SION bit for SD3_CMD pad control, it will enlarge clock tuning
window on MX6DL.

Signed-off-by: Ryan QIAN <b32804@freescale.com>
12 years agoENGR00175446 ldb: avoid NULL pointer when ldb driver is probed but not inited.
Wayne Zou [Mon, 27 Feb 2012 01:31:18 +0000 (09:31 +0800)]
ENGR00175446 ldb: avoid NULL pointer when ldb driver is probed but not inited.

ldb: avoid NULL pointer when ldb driver is probed but not inited.
It can lead to kernel crash when framebuffer on LVDS panel is not inited.

Signed-off-by: Wayne Zou <b36644@freescale.com>
12 years agoENGR00174062 CCM: change clock enable_count to usecount
Lin Fuzhen [Fri, 10 Feb 2012 05:26:21 +0000 (13:26 +0800)]
ENGR00174062 CCM: change clock enable_count to usecount

change clock debugfs sys attr 'enable_count' to 'usecount'
to align with some power debug tool used

Signed-off-by: Lin Fuzhen <fuzhen.lin@freescale.com>
12 years agoENGR00176136- MX6: Added support for 1.2GHz ARM Frequency
Ranjani Vaidyanathan [Mon, 5 Mar 2012 20:26:45 +0000 (14:26 -0600)]
ENGR00176136- MX6: Added support for 1.2GHz ARM Frequency

Added the new 1.2GHz working point.
Currently 'arm_freq=1200" should be added to commandline
for the core to run at 1.2GHz. Also ensure that the appropriate
HW board mods have been done to set VDDARM_IN at 1.425V.

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
12 years agoENGR00176175 MX6Q: fix typo in cpu op voltage setting.
Zhang Jiejing [Tue, 6 Mar 2012 08:09:47 +0000 (16:09 +0800)]
ENGR00176175 MX6Q: fix typo in cpu op voltage setting.

Fix a typo when adding 600M WP, the voltage value is wrong,
it will lead a warnning when change to this WP:

COULD NOT SET GP VOLTAGE!!!!

Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
12 years agoENGR00176159 video: ipuv3-fb: change to timeout semaphore to wait on irq.
Zhang Jiejing [Tue, 6 Mar 2012 06:47:57 +0000 (14:47 +0800)]
ENGR00176159 video: ipuv3-fb: change to timeout semaphore to wait on irq.

change to timeout semaphore to wait on irq.

use no timeout semaphore have below issues:
1. since fbmem.c will hold the console_lock() before call PAN_DISPLAY ioictl,
 if have wrong happens on IPU, IRQ not come, any log printk will not ouput,
 it will become like a system hang, and developer don't know what's wrong.

2. semaphore don't have timeout, here we can't know irq not come,
  so hang it infintly.
3. semaphore lock and unlock in different context is a dangous operation.

To fix these issue, use timedout version to wait on irq.
But for better coding stly to align Kernel Coding Style Doc,
better use complete to wait on irq, use semaphre little ugly.

Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
12 years agoENGR00170526-4 ESAI: To resolve the playback no sound issue occasionally happen
Lionel Xu [Fri, 2 Mar 2012 05:18:17 +0000 (13:18 +0800)]
ENGR00170526-4 ESAI: To resolve the playback no sound issue occasionally happen

There is no sound output any longer sometimes after several times of playback,
this platch is trying to resolve this issue by:

1)move the global power control bit setting from function hw_params/shutdown to
DAPM, thererfor the PWN bit will not be set/unset each time playback;
2)
Signed-off-by: Lionel Xu <Lionel.Xu@freescale.com>
12 years agoENGR00170526-3 ESAI: Remove the workaround to reset codec before playbacking
Lionel Xu [Fri, 2 Mar 2012 05:12:26 +0000 (13:12 +0800)]
ENGR00170526-3 ESAI: Remove the workaround to reset codec before playbacking

Previously in order to avoid audio playback no sound issue, a hardware reset
was made to the codec chip each time when doing playback. now remove this
workaround.

Signed-off-by: Lionel Xu <Lionel.Xu@freescale.com>
12 years agoENGR00170526-2 AUDIO: Remove struct field rst_gpio to audio platform data
Lionel Xu [Fri, 2 Mar 2012 05:07:57 +0000 (13:07 +0800)]
ENGR00170526-2 AUDIO: Remove struct field rst_gpio to audio platform data

Remove rst_gpio field to mxc_audio_platform_data.

Signed-off-by: Lionel Xu <Lionel.Xu@freescale.com>
12 years agoENGR00170526-1 MX6Q_Sabreauto: remove audio platform data rst_gpio.
Lionel Xu [Fri, 2 Mar 2012 04:57:51 +0000 (12:57 +0800)]
ENGR00170526-1 MX6Q_Sabreauto: remove audio platform data rst_gpio.

Remove audio platform data rst_gpio which is not longer required now.

Signed-off-by: Lionel Xu <Lionel.Xu@freescale.com>
12 years agoENGR00175551:Update sabreauto board file for handling spi and paralle nor
Francisco Munoz [Thu, 1 Mar 2012 23:50:28 +0000 (17:50 -0600)]
ENGR00175551:Update sabreauto board file for handling spi and paralle nor

*Files affected: board-mx6q_sabreauto.c
*Added IOMUX settings for parallel nor
*Utilized physmap driver in order to probe the chip
*Implemented conditional compilation enabling either spi or parallel
nor.

Signed-off-by: Francisco Munoz <b37752@freescale.com>
12 years agoENGR00175947 camera: sensor mclk change name to clko_clk
Yuxi Sun [Fri, 2 Mar 2012 07:15:49 +0000 (15:15 +0800)]
ENGR00175947 camera: sensor mclk change name to clko_clk

Change mclk sensor name to clko_clk

Signed-off-by: Yuxi Sun <b36102@freescale.com>
12 years agoENGR00175219-8 wm8958: add clock management
Gary Zhang [Thu, 1 Mar 2012 08:23:43 +0000 (16:23 +0800)]
ENGR00175219-8 wm8958: add clock management

1. add clko_clk clock management
2. use 'Headphone Jack' name

Signed-off-by: Gary Zhang <b13634@freescale.com>
12 years agoENGR00175219-7 camera: use clko_clk source
Gary Zhang [Thu, 1 Mar 2012 08:21:56 +0000 (16:21 +0800)]
ENGR00175219-7 camera: use clko_clk source

change clock source to clko_clk from cko1_clk

Signed-off-by: Gary Zhang <b13634@freescale.com>
12 years agoENGR00175219-6 MX6Q_SABRESD: add clko_clk support
Gary Zhang [Thu, 1 Mar 2012 08:18:15 +0000 (16:18 +0800)]
ENGR00175219-6 MX6Q_SABRESD: add clko_clk support

audio codec wm8958 and camera use the same clock
clko_clk with around 22MHz.

Signed-off-by: Gary Zhang <b13634@freescale.com>
12 years agoENGR00175219-5 MX6: remove cko1_clk in clock.c
Gary Zhang [Thu, 1 Mar 2012 08:09:18 +0000 (16:09 +0800)]
ENGR00175219-5 MX6: remove cko1_clk in clock.c

there are clko_clk and cko1_clk in clock.c which operate
the same CKO1 clock source.
remove cko1_clk codes to avoid operation confusion.

Signed-off-by: Gary Zhang <b13634@freescale.com>
12 years agoENGR00172084 MX6Q: Add 4 capture modes for ov5642
Daiane Angolini [Thu, 1 Mar 2012 16:37:52 +0000 (13:37 -0300)]
ENGR00172084 MX6Q: Add 4 capture modes for ov5642

capture modes included:
 VGA(640x480)@15fps
 QVGA(320x240)@15fps
 NTSC(720x480)@15fps
 PAL(720x576)@15fps

in order to test it:
mxc_v4l2_capture.out -iw 640 -ih 480 -ow 640 -oh 480 -r 0 -fr 15 -m 0 test.yuv
mxc_v4l2_capture.out -iw 320 -ih 240 -ow 320 -oh 240 -r 0 -fr 15 -m 1 test.yuv
mxc_v4l2_capture.out -iw 720 -ih 480 -ow 720 -oh 480 -r 0 -fr 15 -m 2 test.yuv
mxc_v4l2_capture.out -iw 720 -ih 480 -ow 720 -oh 576 -r 0 -fr 15 -m 3 test.yuv

Signed-off-by: Daiane Angolini <daiane.angolini@freescale.com>
12 years agoENGR00175261 - EPDC fb: Remove warning messages from EPDC init
Danny Nold [Wed, 29 Feb 2012 20:31:04 +0000 (14:31 -0600)]
ENGR00175261 - EPDC fb: Remove warning messages from EPDC init

- Remove screen update from probe function.  This update is redundant.
The update in mxc_epdc_fb_fw_handler() will update and show the tux
logo if FB console is added, so this achieves the same effect as the
update invocation that was removed.
- Remove dmaengine_get(), because SDMA driver returns a failure when
cycling through DMA channels.  Since it is not essential to register
with this call, it has been removed.  dmaengine_put() also removed.
- Added hw_inialization variable to track whether HW is in process
of being initialized.  In which case, we do not print an error
message when an update is received.

Signed-off-by: Danny Nold <dannynold@freescale.com>
12 years agommc: block: add handling for two parallel block requests in issue_rw_rq
Per Forlin [Fri, 1 Jul 2011 16:55:33 +0000 (18:55 +0200)]
mmc: block: add handling for two parallel block requests in issue_rw_rq

Change mmc_blk_issue_rw_rq() to become asynchronous.
The execution flow looks like this:

* The mmc-queue calls issue_rw_rq(), which sends the request
  to the host and returns back to the mmc-queue.
* The mmc-queue calls issue_rw_rq() again with a new request.
* This new request is prepared in issue_rw_rq(), then it waits for
  the active request to complete before pushing it to the host.
* When the mmc-queue is empty it will call issue_rw_rq() with a NULL
  req to finish off the active request without starting a new request.

Signed-off-by: Per Forlin <per.forlin@linaro.org>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Venkatraman S <svenkatr@ti.com>
Tested-by: Sourav Poddar <sourav.poddar@ti.com>
Tested-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
12 years agommc: queue: add a second mmc queue request member
Per Forlin [Fri, 1 Jul 2011 16:55:31 +0000 (18:55 +0200)]
mmc: queue: add a second mmc queue request member

Add an additional mmc queue request instance to make way for two active
block requests. One request may be active while the other request is
being prepared.

Signed-off-by: Per Forlin <per.forlin@linaro.org>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Venkatraman S <svenkatr@ti.com>
Tested-by: Sourav Poddar <sourav.poddar@ti.com>
Tested-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
12 years agommc: block: move error path in issue_rw_rq to a separate function.
Per Forlin [Fri, 1 Jul 2011 16:55:30 +0000 (18:55 +0200)]
mmc: block: move error path in issue_rw_rq to a separate function.

Break out code without functional changes. This simplifies the code and
makes way for handling two parallel requests.

Signed-off-by: Per Forlin <per.forlin@linaro.org>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Venkatraman S <svenkatr@ti.com>
Tested-by: Sourav Poddar<sourav.poddar@ti.com>
Tested-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
12 years agommc: block: add a block request prepare function
Per Forlin [Fri, 1 Jul 2011 16:55:29 +0000 (18:55 +0200)]
mmc: block: add a block request prepare function

Break out code from mmc_blk_issue_rw_rq to create a block request prepare
function. This doesn't change any functionallity. This helps when handling
more than one active block request.

Signed-off-by: Per Forlin <per.forlin@linaro.org>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Venkatraman S <svenkatr@ti.com>
Tested-by: Sourav Poddar <sourav.poddar@ti.com>
Tested-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
12 years agommc: block: add member in mmc queue struct to hold request data
Per Forlin [Sat, 9 Jul 2011 21:12:36 +0000 (17:12 -0400)]
mmc: block: add member in mmc queue struct to hold request data

The way the request data is organized in the mmc queue struct, it only
allows processing of one request at a time.  This patch adds a new struct
to hold mmc queue request data such as sg list, request, blk request and
bounce buffers, and updates any functions depending on the mmc queue
struct. This prepares for using multiple active requests in one mmc queue.

Signed-off-by: Per Forlin <per.forlin@linaro.org>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Venkatraman S <svenkatr@ti.com>
Tested-by: Sourav Poddar <sourav.poddar@ti.com>
Tested-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
12 years agommc: queue: let host controllers specify maximum discard timeout
Adrian Hunter [Tue, 28 Jun 2011 14:16:02 +0000 (17:16 +0300)]
mmc: queue: let host controllers specify maximum discard timeout

Some host controllers will not operate without a hardware
timeout that is limited in value.  However large discards
require large timeouts, so there needs to be a way to
specify the maximum discard size.

A host controller driver may now specify the maximum discard
timeout possible so that max_discard_sectors can be calculated.

However, for eMMC when the High Capacity Erase Group Size
is not in use, the timeout calculation depends on clock
rate which may change.  For that case Preferred Erase Size
is used instead.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
12 years agommc: block: add checking of r/w command response
Russell King - ARM Linux [Mon, 20 Jun 2011 19:10:49 +0000 (20:10 +0100)]
mmc: block: add checking of r/w command response

Check the status bits in the r/w command response for any errors.
If error bits are set, then we won't have seen any data transferred,
so it's pointless doing any further checking.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
12 years agommc: block: improve error recovery from command channel errors
Russell King - ARM Linux [Mon, 20 Jun 2011 19:10:28 +0000 (20:10 +0100)]
mmc: block: improve error recovery from command channel errors

Command channel errors fall into four classes:

1. The command was issued with the card in the wrong state
2. The command failed to be received by the card correctly
3. The cards response failed to be received by the host (CRC error)
4. The card failed to respond to the card

For (1), in theory we should know that the card is in the correct state.
However, a failed stop command (or other failure) may result in the card
remaining in a data transfer state from the previous command.  If we
detect this condition, we try to recover by sending a stop command.

For the initial commands (set block count and the read/write command)
no data will have been transferred.  All that we need deal with is
retrying at this point.  A failed stop command can be remedied as
above.

If we are unable to recover the card (eg, the card ignores our requests
for status, or we don't recognise the error code) then we immediately
fail the request.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
12 years agommc: block: allow get_card_status() to return error status
Russell King - ARM Linux [Mon, 20 Jun 2011 19:10:08 +0000 (20:10 +0100)]
mmc: block: allow get_card_status() to return error status

If the MMC_SEND_STATUS command is not successful, we should not return
a zero status word, but instead allow the caller to know positively
that an error occurred.

Convert the open-coded get_card_status() to use the helper function,
and provide definitions for the card state field.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
12 years agommc: mmc_test: test to measure how sg_len affect performance
Per Forlin [Fri, 1 Jul 2011 16:55:27 +0000 (18:55 +0200)]
mmc: mmc_test: test to measure how sg_len affect performance

Add a test that measures how the mmc bandwidth depends on the numbers of
sg elements in the sg list. The transfer size if fixed and sg length goes
from a few up to 512. The purpose is to measure overhead caused by
multiple sg elements.

Signed-off-by: Per Forlin <per.forlin@linaro.org>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Venkatraman S <svenkatr@ti.com>
Tested-by: Sourav Poddar <sourav.poddar@ti.com>
Tested-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>