]> git.karo-electronics.de Git - karo-tx-linux.git/log
karo-tx-linux.git
10 years agoENGR00277234 ARM: imx: correct RBC/WB setting flow
Anson Huang [Thu, 29 Aug 2013 14:03:30 +0000 (10:03 -0400)]
ENGR00277234 ARM: imx: correct RBC/WB setting flow

Currently RBC is enabled right before DSM in asm code
and disabled after resume, as the RBC enable didn't call
imx6_enable_rbc function, so everytime disabling RBC will
be skipped by the logic inside imx6_enable_rbc, this will
disobey the RBC rules: RBC counter should be cleared
after resume and adding at least 2 CKIL(32KHz) clocks with
all wakeup sources masked in GPC;

Move WB setting into DSM enter/exit path only.

Signed-off-by: Anson Huang <b20788@freescale.com>
10 years agoASoC: fsl_spdif: Remove unnecessary dev_set_drvdata()
Fabio Estevam [Fri, 23 Aug 2013 21:14:45 +0000 (18:14 -0300)]
ASoC: fsl_spdif: Remove unnecessary dev_set_drvdata()

Driver core clears the driver data to NULL after device_release or on probe
failure, so just remove it from here.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Reviewed-by: Nicolin Chen <b42378@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Signed-off-by: Nicolin Chen <b42378@freescale.com>
10 years agoENGR00276567-9 ARM: defconfig: Enable si476x support in imx_v7_defconfig
Nicolin Chen [Thu, 29 Aug 2013 06:59:24 +0000 (14:59 +0800)]
ENGR00276567-9 ARM: defconfig: Enable si476x support in imx_v7_defconfig

Build-in si476x support as default.

Signed-off-by: Nicolin Chen <b42378@freescale.com>
10 years agoENGR00276567-8 ARM: dtsi: Add si4763 support for imx6qdl-sabreauto
Nicolin Chen [Thu, 29 Aug 2013 06:41:51 +0000 (14:41 +0800)]
ENGR00276567-8 ARM: dtsi: Add si4763 support for imx6qdl-sabreauto

Add missing devicetree nodes and binding for the support.

Signed-off-by: Nicolin Chen <b42378@freescale.com>
10 years agoENGR00276567-7 ASoC: fsl: Add si476x machine driver
Nicolin Chen [Fri, 23 Aug 2013 11:55:00 +0000 (19:55 +0800)]
ENGR00276567-7 ASoC: fsl: Add si476x machine driver

Add si476x machine dirver for i.MX series SoC and binding doc.

Signed-off-by: Nicolin Chen <b42378@freescale.com>
10 years agoENGR00276567-6 mfd: si476x: Use default configuration when no platform data
Nicolin Chen [Thu, 29 Aug 2013 06:35:44 +0000 (14:35 +0800)]
ENGR00276567-6 mfd: si476x: Use default configuration when no platform data

This would allow the driver to work normally without specific platform data,
when using devicetree for example.

Signed-off-by: Nicolin Chen <b42378@freescale.com>
10 years agoENGR00276567-5 mfd: si476x: Add two involatile registers support
Nicolin Chen [Thu, 29 Aug 2013 06:27:32 +0000 (14:27 +0800)]
ENGR00276567-5 mfd: si476x: Add two involatile registers support

These two regsiters would be used by si476x-codec driver. Setting them as
involatile registers would allow codec driver to set the value into cache
and to sync them after power-up.

Signed-off-by: Nicolin Chen <b42378@freescale.com>
10 years agoENGR00276567-4 mfd: si476x: Fix power up failure
Nicolin Chen [Thu, 29 Aug 2013 06:25:22 +0000 (14:25 +0800)]
ENGR00276567-4 mfd: si476x: Fix power up failure

This's some logical error in power-up code, thus fix it.

Signed-off-by: Nicolin Chen <b42378@freescale.com>
10 years agoENGR00276567-3 ARM: imx6q: Set pll4 as ssi's parent
Nicolin Chen [Fri, 23 Aug 2013 11:42:56 +0000 (19:42 +0800)]
ENGR00276567-3 ARM: imx6q: Set pll4 as ssi's parent

PLL4 is a flexible pll that can be set to a value as we need,
so we set it to an value that can easily derive 44.1K and 48K
and then put ssi baud clock as its child clock.

Signed-off-by: Nicolin Chen <b42378@freescale.com>
10 years agoENGR00276567-2 ASoC: fsl: Add I2S Master support for ssi
Nicolin Chen [Fri, 23 Aug 2013 11:31:52 +0000 (19:31 +0800)]
ENGR00276567-2 ASoC: fsl: Add I2S Master support for ssi

Add I2S master/PCM(DSP_A, DSP_B)/LEFT_J formats support for ssi,
also dropped the constrain of i2s-slave in probe().

Signed-off-by: Nicolin Chen <b42378@freescale.com>
10 years agoENGR00276567-1 ASoC: fsl: Add missing baud clock for ssi
Nicolin Chen [Fri, 23 Aug 2013 11:28:57 +0000 (19:28 +0800)]
ENGR00276567-1 ASoC: fsl: Add missing baud clock for ssi

Also treat the ipg clock as ssi core clock.

Signed-off-by: Nicolin Chen <b42378@freescale.com>
10 years agoENGR00277241 imx: pcie: Re-correct the pcie dts
Richard Zhu [Thu, 29 Aug 2013 04:54:53 +0000 (12:54 +0800)]
ENGR00277241 imx: pcie: Re-correct the pcie dts

pcie dts node should be placed into imx6qdl dts file

Signed-off-by: Richard Zhu <r65037@freescale.com>
10 years agoOF: Add helper for matching against linux,stdout-path
Sascha Hauer [Mon, 5 Aug 2013 12:40:44 +0000 (14:40 +0200)]
OF: Add helper for matching against linux,stdout-path

devicetrees may have a linux,stdout-path property in the chosen
node describing the console device. This adds a helper function
to match a device against this property so a driver can call
add_preferred_console for a matching device.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Huang Shijie <b32955@freescale.com>
10 years agoserial: i.MX: evaluate linux,stdout-path property
Sascha Hauer [Mon, 5 Aug 2013 12:40:45 +0000 (14:40 +0200)]
serial: i.MX: evaluate linux,stdout-path property

devicetrees may have the linux,stdout-path property to specify the
console. This patch adds support to the i.MX serial driver for this.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Huang Shijie <b32955@freescale.com>
10 years agoserial: use dev_get_platdata()
Jingoo Han [Tue, 30 Jul 2013 08:06:57 +0000 (17:06 +0900)]
serial: use dev_get_platdata()

Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Huang Shijie <b32955@freescale.com>
10 years agoENGR00277201-2 gpu: potential memory leak when umapping vg memory
Loren HUANG [Thu, 29 Aug 2013 03:27:12 +0000 (11:27 +0800)]
ENGR00277201-2 gpu: potential memory leak when umapping vg memory

Release the allocate memory properly to avoid memory leak.

Signed-off-by: Loren HUANG <b02279@freescale.com>
Acked-by: Shawn Guo
10 years agoENGR00277201-1 3.10 kernel panic when running gpu stress test
Loren HUANG [Thu, 29 Aug 2013 03:18:18 +0000 (11:18 +0800)]
ENGR00277201-1 3.10 kernel panic when running gpu stress test

The kernel panic is caused by gcc 4.8.1 build logic.
8044b000:       e24bd010        sub     sp, fp, #16
8044b004:       e1500004        cmp     r0, r4
8044b008:       b1a00004        movlt   r0, r4
8044b00c:       a51b0018        ldrge   r0, [fp, #-24]
8044b010:       e89da810        ldm     sp, {r4, fp, sp, pc}
With this logic, r0 may return 0xffffffff randomly in Cortex A9 processor.

Current workaround is enable ARM_UNWIND to avoid such disassemble logic.

Signed-off-by: Loren HUANG <b02279@freescale.com>
10 years agoENGR00275213-4 pcie_imx: enable pcie on imx6 platforms
Richard Zhu [Fri, 16 Aug 2013 04:55:11 +0000 (12:55 +0800)]
ENGR00275213-4 pcie_imx: enable pcie on imx6 platforms

imx6q and imx6dl platforms have one x1 pcie interface,
this patch used to setup the pcie driver for this
interface.

Signed-off-by: Richard Zhu <r65037@freescale.com>
10 years agoENGR00275213-3 arm: dts: enable pcie on imx6 platforms
Richard Zhu [Wed, 14 Aug 2013 04:46:57 +0000 (12:46 +0800)]
ENGR00275213-3 arm: dts: enable pcie on imx6 platforms

Both imx6q and imx6dl platforms have the pcie interface,
enable the pcie on those platforms.

Signed-off-by: Richard Zhu <r65037@freescale.com>
10 years agoENGR00275213-2 ARM: imx6q: update the pcie bits definitions of gpr
Richard Zhu [Wed, 14 Aug 2013 04:38:54 +0000 (12:38 +0800)]
ENGR00275213-2 ARM: imx6q: update the pcie bits definitions of gpr

Add the pcie bits definitons of gpr12 and gpr8 registers.

Signed-off-by: Richard Zhu <r65037@freescale.com>
10 years agoENGR00275213-1 arm: pcie: enable pcie on imx6 platforms
Richard Zhu [Wed, 14 Aug 2013 04:15:38 +0000 (12:15 +0800)]
ENGR00275213-1 arm: pcie: enable pcie on imx6 platforms

Add PCIe related clocks definitions and select pci on imx6
platforms

toggle bit18 of grp1 fix pcie pm issue:
Set bit18 of gpr1 before enter into supend, and clean it
after resume, can fix the following errata.
Errata ERR005723_PCIe PCIe does not support L2 Power Down.

Signed-off-by: Richard Zhu <r65037@freescale.com>
10 years agoPCI: exynos: Split into Synopsys part and Exynos part
Jingoo Han [Wed, 31 Jul 2013 08:14:10 +0000 (17:14 +0900)]
PCI: exynos: Split into Synopsys part and Exynos part

Exynos PCIe IP consists of Synopsys specific part and Exynos
specific part. Only core block is a Synopsys Designware part;
other parts are Exynos specific.

Also, the Synopsys Designware part can be shared with other
platforms; thus, it can be split two parts such as Synopsys
Designware part and Exynos specific part.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Pratyush Anand <pratyush.anand@st.com>
Cc: Mohit KUMAR <Mohit.KUMAR@st.com>
10 years agoARM: dts: Add pcie controller node for exynos5440-ssdk5440
Jingoo Han [Fri, 21 Jun 2013 07:26:14 +0000 (16:26 +0900)]
ARM: dts: Add pcie controller node for exynos5440-ssdk5440

This patch adds pcie controller node for exynos5440-ssdk5440,
and also adds a phandle for pin controller node.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
10 years agoARM: dts: Add pcie controller node for Samsung EXYNOS5440 SoC
Jingoo Han [Fri, 21 Jun 2013 07:25:51 +0000 (16:25 +0900)]
ARM: dts: Add pcie controller node for Samsung EXYNOS5440 SoC

Exynos5440 has two PCIe controllers which can be used as root complex
for PCIe interface.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
10 years agopci: Add PCIe driver for Samsung Exynos
Jingoo Han [Fri, 21 Jun 2013 07:24:54 +0000 (16:24 +0900)]
pci: Add PCIe driver for Samsung Exynos

Exynos5440 has a PCIe controller which can be used as Root Complex.
This driver supports a PCIe controller as Root Complex mode.

Signed-off-by: Surendranath Gurivireddy Balla <suren.reddy@samsung.com>
Signed-off-by: Siva Reddy Kallam <siva.kallam@samsung.com>
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Kukjin Kim <kgene.kim@samsung.com>
Cc: Pratyush Anand <pratyush.anand@st.com>
Cc: Mohit KUMAR <Mohit.KUMAR@st.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
10 years agopci: mvebu: enable driver usage on Kirkwood
Thomas Petazzoni [Wed, 15 May 2013 13:36:54 +0000 (15:36 +0200)]
pci: mvebu: enable driver usage on Kirkwood

We allow the pci-mvebu driver to be compiled on the Kirkwood platform,
and add the 'marvell,kirkwood-pcie' as a compatible string supported
by the driver.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
10 years agopci: PCIe driver for Marvell Armada 370/XP systems
Thomas Petazzoni [Thu, 16 May 2013 15:55:22 +0000 (17:55 +0200)]
pci: PCIe driver for Marvell Armada 370/XP systems

This driver implements the support for the PCIe interfaces on the
Marvell Armada 370/XP ARM SoCs. In the future, it might be extended to
cover earlier families of Marvell SoCs, such as Dove, Orion and
Kirkwood.

The driver implements the hw_pci operations needed by the core ARM PCI
code to setup PCI devices and get their corresponding IRQs, and the
pci_ops operations that are used by the PCI core to read/write the
configuration space of PCI devices.

Since the PCIe interfaces of Marvell SoCs are completely separate and
not linked together in a bus, this driver sets up an emulated PCI host
bridge, with one PCI-to-PCI bridge as child for each hardware PCIe
interface.

In addition, this driver enumerates the different PCIe slots, and for
those having a device plugged in, it sets up the necessary address
decoding windows, using the mvebu-mbus driver.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
10 years agoof/pci: Provide support for parsing PCI DT ranges property
Andrew Murray [Thu, 16 May 2013 15:55:17 +0000 (17:55 +0200)]
of/pci: Provide support for parsing PCI DT ranges property

This patch factors out common implementation patterns to reduce overall kernel
code and provide a means for host bridge drivers to directly obtain struct
resources from the DT's ranges property without relying on architecture specific
DT handling. This will make it easier to write archiecture independent host bridge
drivers and mitigate against further duplication of DT parsing code.

This patch can be used in the following way:

struct of_pci_range_parser parser;
struct of_pci_range range;

if (of_pci_range_parser_init(&parser, np))
; //no ranges property

for_each_of_pci_range(&parser, &range) {

/*
directly access properties of the address range, e.g.:
range.pci_space, range.pci_addr, range.cpu_addr,
range.size, range.flags

alternatively obtain a struct resource, e.g.:
struct resource res;
of_pci_range_to_resource(&range, np, &res);
*/
}

Additionally the implementation takes care of adjacent ranges and merges them
into a single range (as was the case with powerpc and microblaze).

Signed-off-by: Andrew Murray <Andrew.Murray@arm.com>
Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Reviewed-by: Rob Herring <rob.herring@calxeda.com>
Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tested-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
10 years agoENGR00269945: ARM: imx6: remove sabresd hdcp dtb targets
Shawn Guo [Wed, 28 Aug 2013 12:33:45 +0000 (20:33 +0800)]
ENGR00269945: ARM: imx6: remove sabresd hdcp dtb targets

The commit fc52e42 (ENGR00269945: ARM: imx6: remove sabresd hdcp dts
files) removes dts but leaves dtb targets in Makefile.  This causes
build issue with 'make ARCH=arm dtbs'.  Remove the dead targets.

Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
10 years agoENGR00277003 IPUv3: Update IC RGB2YUV CSC matrix parameters
Liu Ying [Wed, 28 Aug 2013 03:07:52 +0000 (11:07 +0800)]
ENGR00277003 IPUv3: Update IC RGB2YUV CSC matrix parameters

This patch updates IPUv3 IC RGB to YUV color space conversion
matrix's parameters to align with the default VIV GPU CSC
implementation so that we may pass relevant Android CTS test
cases.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
10 years agoARM: dts: enable the gpmi-nand for imx6q{dl}-sabreauto boards
Huang Shijie [Tue, 7 May 2013 07:39:20 +0000 (15:39 +0800)]
ARM: dts: enable the gpmi-nand for imx6q{dl}-sabreauto boards

enable the gpmi-nand for imx6q-sabreauto and imx6qdl-sabreauto boards.

Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoENGR00269945: ARM: imx: add an ARMv7 only defconfig
Shawn Guo [Wed, 28 Aug 2013 08:03:53 +0000 (16:03 +0800)]
ENGR00269945: ARM: imx: add an ARMv7 only defconfig

To utilize ARMv7 optimization, let's maintain an ARMv7 only defconfig
imx_v7_defconfig.  It's generated as below.

 * make ARCH=arm imx_v6_v7_defconfig
 * make ARCH=arm menuconfig
 * System Type  ---> Multiple platform selection  ---> Deselect ARMv6
   based platforms (ARM11)
 * make ARCH=arm savedefconfig
 * cp defconfig arch/arm/configs/imx_v7_defconfig

Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
10 years agoENGR00276705 Fix build error for wayland driver in Yocto environment
ganyong [Wed, 28 Aug 2013 06:31:36 +0000 (14:31 +0800)]
ENGR00276705 Fix build error for wayland driver in Yocto environment

Update the macro gcmPROFILE_DECLARE_ONLY to fix Werror(unused-local-typedefs)
when gcdENABLE_PROFILING is not enabled.

Signed-off-by Yong Gan <B45748@freescale.com>

10 years agoENGR00276845-2 ARM: imx6sl: move the clock init code to appropriate place
Robby Cai [Tue, 27 Aug 2013 08:03:44 +0000 (16:03 +0800)]
ENGR00276845-2 ARM: imx6sl: move the clock init code to appropriate place

It's a cleanup. Move the PLL5_VIDEO clock init code to the clock init
code group to avoid the code messed up.

Signed-off-by: Robby Cai <R63905@freescale.com>
10 years agoENGR00276845-1 ARM: imx: No need to wait for PLL lock when PLL is power down
Anson Huang [Wed, 28 Aug 2013 14:53:53 +0000 (10:53 -0400)]
ENGR00276845-1 ARM: imx: No need to wait for PLL lock when PLL is power down

Add the check for PLL power status before wait for PLL to be locked.
It will not do further operation when PLL is powered down.

Signed-off-by: Anson Huang <b20788@freescale.com>
10 years agoENGR00276839 ARM: dtsi: imx6qdl-sabresd: Add power key, vol up/down key support
Anson Huang [Tue, 27 Aug 2013 19:53:37 +0000 (15:53 -0400)]
ENGR00276839 ARM: dtsi: imx6qdl-sabresd: Add power key, vol up/down key support

Add power key, vol up and vol down key for i.MX6Q/DL SabreSD board.

Power key is one of the wakeup sources.

Signed-off-by: Anson Huang <b20788@freescale.com>
10 years agoENGR00269945: ARM: imx6: sort label nodes alphabetically
Shawn Guo [Tue, 27 Aug 2013 05:25:57 +0000 (13:25 +0800)]
ENGR00269945: ARM: imx6: sort label nodes alphabetically

Sort the label nodes alphabetically in board level dts files, so that
the nodes can be located a little bit easier and new entries can find
the their places for addition.

Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
10 years agoENGR00269945: ARM: imx6: maintain pinctrl setting outside bus topology
Shawn Guo [Tue, 27 Aug 2013 03:47:29 +0000 (11:47 +0800)]
ENGR00269945: ARM: imx6: maintain pinctrl setting outside bus topology

The patch moves all pinctrl setting nodes outside bus topology using
label, so that we can reduce some indent levels for these nodes and
avoid churning main device nodes structure chunk.

While at it, the patch also sorts those pinctrl setting nodes
alphabetically.

Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
10 years agoENGR00269945: ARM: imx6: remove sabresd hdcp dts files
Shawn Guo [Tue, 27 Aug 2013 03:56:44 +0000 (11:56 +0800)]
ENGR00269945: ARM: imx6: remove sabresd hdcp dts files

Since U-Boot provide good support for modify device tree blob (DTB) at
run-time with 'fdt' command, we do not have to maintain extra DTS files
just for pin conflict case.

Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
10 years agoENGR00276865 hwmon: mma8451: Change warning to error
Luwei Zhou [Tue, 27 Aug 2013 09:17:28 +0000 (17:17 +0800)]
ENGR00276865 hwmon: mma8451: Change warning to error

Change the string tranform warning to error.

Signed-off-by: Luwei Zhou <b45643@freescale.com>
10 years agoENGR00275031-3 arm: imx_v6_v7_defconfig: enable lcdif framebuffer driver
Robby Cai [Thu, 22 Aug 2013 09:44:56 +0000 (17:44 +0800)]
ENGR00275031-3 arm: imx_v6_v7_defconfig: enable lcdif framebuffer driver

Enable lcdif framebuffer driver on mx6sl by default.

Signed-off-by: Robby Cai <R63905@freescale.com>
10 years agoENGR00275031-2 ARM: dts: add lcdif and backlight support
Robby Cai [Thu, 22 Aug 2013 06:39:42 +0000 (14:39 +0800)]
ENGR00275031-2 ARM: dts: add lcdif and backlight support

Add dts for lcdif, backlight(pwm).
- use display timing dts bindings for lcd timing setting.
- add an axi clock node for mx23/mx28 to accommadate the change in driver

Signed-off-by: Robby Cai <R63905@freescale.com>
10 years agoENGR00275031-1 mx6sl fb: support lcdif framebuffer on 3.10
Robby Cai [Thu, 22 Aug 2013 06:35:09 +0000 (14:35 +0800)]
ENGR00275031-1 mx6sl fb: support lcdif framebuffer on 3.10

re-use the upstreaming mxsfb.c code.
- add the lcdif axi clock for register and dram access
- set the lcdif pix's parent as pll5_video to get most accurate pix clock
- add binding doc for lcdif dts

Signed-off-by: Robby Cai <R63905@freescale.com>
10 years agoENGR00276255 ARM: imx: Correct PLL set rate flow
Anson Huang [Tue, 27 Aug 2013 15:12:16 +0000 (11:12 -0400)]
ENGR00276255 ARM: imx: Correct PLL set rate flow

When changing the divider of PLL, need to wait for
lock bit is set, otherwise, there will be no clock
output before PLL is locked.

Signed-off-by: Anson Huang <b20788@freescale.com>
10 years agoARM: imx: clk-pllv3: improve the timeout waiting method
Peter Chen [Tue, 16 Jul 2013 02:23:20 +0000 (10:23 +0800)]
ARM: imx: clk-pllv3: improve the timeout waiting method

There are two improvements for this commit:

- Add comparing pll lock condition after while loop. It can
fix potential fake timeout problem caused by the code is just
scheduled out before compare the timeout, and the time of
scheduling out are more than one jiffies.

- Move timeout assignment more close to compare the timeout.
It can reduce the possibility the code is scheduled out, and
the timeout can be more precise.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoENGR00276701 imx_v6_v7_defconfig: Enable mma8451,mag3110,isl29023
Luwei Zhou [Mon, 26 Aug 2013 09:13:44 +0000 (17:13 +0800)]
ENGR00276701 imx_v6_v7_defconfig: Enable mma8451,mag3110,isl29023

Add mma8451, mag3110, isl29023 support in deault config.

Signed-off-by: Luwei Zhou <b45643@freescale.com>
10 years agoENGR00276689 dts: mx6qdl: Add isl29023 dts support on i.MX6Q/DL SD/AUTO
Luwei Zhou [Mon, 26 Aug 2013 09:05:11 +0000 (17:05 +0800)]
ENGR00276689 dts: mx6qdl: Add isl29023 dts support on i.MX6Q/DL SD/AUTO

Add isl29023 dts support on i.MX6Q/DL SD/AUTO.

Signed-off-by: Luwei Zhou <b45643@freescale.com>
10 years agoENGR00276684-2 hwmon: isl29023: add isl29023 driver support
Luwei Zhou [Mon, 26 Aug 2013 08:46:48 +0000 (16:46 +0800)]
ENGR00276684-2 hwmon: isl29023: add isl29023 driver support

ISL29023 is an integrated ambient and infrared light to digital
converter with I2C (SMBus Compatible) Interface.
(Cherry-pick from freescale internal kernel 3.0.35_4.1.0 branch)

Signed-off-by: Luwei Zhou <b45643@freescale.com>
10 years agoENGR00276684-1 hwmon: isl29023 Add support for isl29023
Luwei Zhou [Mon, 26 Aug 2013 08:10:17 +0000 (16:10 +0800)]
ENGR00276684-1 hwmon: isl29023  Add support for isl29023

Cherry-pick  isl29023.h from 3.0.35.

Signed-off-by: Luwei Zhou <b45643@freescale.com>
10 years agoENGR00276798 ARM:imx_v6_v7_defconfig:Change CPUFREQ config
Ranjani Vaidyanathan [Mon, 26 Aug 2013 22:08:57 +0000 (17:08 -0500)]
ENGR00276798 ARM:imx_v6_v7_defconfig:Change CPUFREQ config

Change CONFIG_ARM_IMX6Q_CPUFREQ to CONFIG_ARM_IMX6_CPUFREQ
to support all iMX6 SOCs.

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
10 years agoENGR00276593-3 [iMX6SL] - Add CPUFREQ support.
Ranjani Vaidyanathan [Fri, 23 Aug 2013 03:11:58 +0000 (22:11 -0500)]
ENGR00276593-3 [iMX6SL] - Add CPUFREQ support.

Add CPUFREQ support for iMX6SL.

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
10 years agoENGR00276593-2 [iMX6x] - Remove references to iMX6Q
Ranjani Vaidyanathan [Fri, 23 Aug 2013 18:34:49 +0000 (13:34 -0500)]
ENGR00276593-2 [iMX6x] - Remove references to iMX6Q

Rename iMX6Q CPUFREQ references to iMX6 as the code is
common to all chips in the iMX6x family.

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
10 years agoENGR00276593-1 [iMX6x:Cpufreq]- Rename references to iMX6q
Ranjani Vaidyanathan [Fri, 23 Aug 2013 18:30:44 +0000 (13:30 -0500)]
ENGR00276593-1 [iMX6x:Cpufreq]- Rename references to iMX6q

Change references to iMX6q to iMX6 as the CPUFREQ driver is
common to all iMX6x chips.
Reanme imx6q-cpufreq.c to cpufreq-imx6.c.

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
10 years agoENGR00276666 ARM: dts: imx6qdl-sabreauto: enable the mxc vout
Liu Ying [Mon, 26 Aug 2013 06:58:20 +0000 (14:58 +0800)]
ENGR00276666 ARM: dts: imx6qdl-sabreauto: enable the mxc vout

Enable the mxc v4l2 output for imx6q{dl}-sabreauto boards.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
10 years agoENGR00276501 sensor: Add mag3110 driver support
Luwei Zhou [Mon, 26 Aug 2013 02:40:15 +0000 (10:40 +0800)]
ENGR00276501 sensor: Add mag3110 driver support

Add mag3110.c to support mag3110 sensor. Copy
the file from 3.0.35_4.1.0. Add Kconfig and
Makefile support.

Signed-off-by: Luwei Zhou <b45643@freescale.com>
10 years agoENGR00276511 dts: Add mag3110 dts support on i.MX6Q/DL SD/AUTO
Luwei Zhou [Fri, 23 Aug 2013 09:59:33 +0000 (17:59 +0800)]
ENGR00276511 dts: Add mag3110 dts support on i.MX6Q/DL SD/AUTO

Add mag3110 dts support on i.MX6Q/DL SD/AUTO

Signed-off-by: Luwei Zhou <b45643@freescale.com>
10 years agoENGR00276224-02 ARM dts: update dts for hdmi cec function
Sandor Yu [Thu, 22 Aug 2013 05:40:15 +0000 (13:40 +0800)]
ENGR00276224-02 ARM dts: update dts for hdmi cec function

- Add correct hdmi cec interrupter property.
- Add correct pinctrl for imx6 sabreauto board.

Signed-off-by: Sandor Yu <R01008@freescale.com>
10 years agoENGR00276224-01 MX6 HDMI CEC: Enable HDMI CEC function
Sandor Yu [Wed, 14 Aug 2013 08:39:57 +0000 (16:39 +0800)]
ENGR00276224-01 MX6 HDMI CEC: Enable HDMI CEC function

- Add hdmi cec source code.
- Remove dead code from hdmi driver.

Signed-off-by: Sandor Yu <R01008@freescale.com>
10 years agoASoC: fsl: Add S/PDIF CPU DAI driver
Nicolin Chen [Wed, 21 Aug 2013 03:13:16 +0000 (11:13 +0800)]
ASoC: fsl: Add S/PDIF CPU DAI driver

This patch implements a device-tree-only CPU DAI driver for Freescale
S/PDIF controller that supports stereo playback and record feature.

Signed-off-by: Nicolin Chen <b42378@freescale.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
10 years agoENGR00276321 HDMI Audio: Set HDMI event as SDMA event2
Sandor Yu [Thu, 22 Aug 2013 09:50:29 +0000 (17:50 +0800)]
ENGR00276321 HDMI Audio: Set HDMI event as SDMA event2

- Remove chip revision check code.
- Set HDMI event as SDMA event2 for HDMI audio.

Signed-off-by: Sandor Yu <R01008@freescale.com>
10 years agoENGR00276249-2 ARM: imx6q: Add pll4_audio_div to clock tree
Nicolin Chen [Thu, 22 Aug 2013 07:11:47 +0000 (15:11 +0800)]
ENGR00276249-2 ARM: imx6q: Add pll4_audio_div to clock tree

There's a pll4_audio_div clock, an extra divider for pll4, missing
in current clock tree, thus add it.

Signed-off-by: Nicolin Chen <b42378@freescale.com>
10 years agoENGR00276249-1 ARM: imx6q: Add missing baud clock for ssi
Nicolin Chen [Thu, 22 Aug 2013 10:04:12 +0000 (18:04 +0800)]
ENGR00276249-1 ARM: imx6q: Add missing baud clock for ssi

The ssi_ipg is essential when accessing ssi register, while the baud clock
allows ssi to provide output bclk and lrclk derived from it. Thus add it.

Signed-off-by: Nicolin Chen <b42378@freescale.com>
10 years agoENGR00276335 net:fec: fix build warning
Fugang Duan [Thu, 22 Aug 2013 09:37:30 +0000 (17:37 +0800)]
ENGR00276335 net:fec: fix build warning

drivers/net/ethernet/freescale/fec_main.c:864
warning: 'vlan_tag' may be used uninitialized in this function
note: 'vlan_tag' was declared here

Compiler with the warning option: -Wuninitialized, the warning
will be reported.

Signed-off-by: Fugang Duan <B38611@freescale.com>
10 years agoENGR00275974-3 [iMX6x] Add busfreq support to the drivers
Ranjani Vaidyanathan [Tue, 20 Aug 2013 19:31:40 +0000 (14:31 -0500)]
ENGR00275974-3 [iMX6x] Add busfreq support to the drivers

Add request_bus_freq() and release_bus_freq() calls to the
various drivers to ensure that the DDR and AHB are the requested
frequency before the driver starts its task.

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
10 years agoENGR00275974-2 [iMX6DQ/iMX6DL] Add busfreq support to device tree
Ranjani Vaidyanathan [Tue, 20 Aug 2013 19:30:56 +0000 (14:30 -0500)]
ENGR00275974-2 [iMX6DQ/iMX6DL] Add busfreq support to device tree

Add busfreq details to the device tree.

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
10 years agoENGR00275974-1 [iMX6DQ/iMX6DL] Add busfreq support
Ranjani Vaidyanathan [Tue, 20 Aug 2013 19:30:16 +0000 (14:30 -0500)]
ENGR00275974-1 [iMX6DQ/iMX6DL] Add busfreq support

Add support to drop DDR and AHB frequency to 24MHz in
system IDLE state.

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
10 years agoENGR00275983 sensor: Add mma8451 sensor driver
Luwei Zhou [Wed, 21 Aug 2013 08:53:32 +0000 (16:53 +0800)]
ENGR00275983 sensor: Add mma8451 sensor driver

Add mxa-mma8451.c to support mma8451 sensor. Copy
the file from 3.0.35_4.1.0. Modificaiton List:
1.Remove __devinit,__devexit out of code
2.Support device tree.
3.Replace simple_strtoul with strict_strtoul.

Signed-off-by: Luwei Zhou <b45643@freescale.com>
10 years agoENGR00276013 dts: Add mma8451 dts support on i.MX6Q/DL SD/AUTO
Luwei Zhou [Wed, 21 Aug 2013 08:46:52 +0000 (16:46 +0800)]
ENGR00276013 dts: Add mma8451 dts support on i.MX6Q/DL SD/AUTO

Add mma8451 dts support on i.MX6Q/DL SD/AUTO

Signed-off-by: Luwei Zhou <b45643@freescale.com>
10 years agoENGR00275999 Makefile:Support mma8451 sensor on i.MX6Q/DL SD/AUTO
Luwei Zhou [Wed, 21 Aug 2013 05:14:24 +0000 (13:14 +0800)]
ENGR00275999 Makefile:Support mma8451 sensor on i.MX6Q/DL SD/AUTO

Add mma8451 in Makefile.

Signed-off-by: Luwei Zhou <b45643@freescale.com>
10 years agoENGR00275992 Kconfig: Support mma8451 sensor on i.MX6Q/DL SD/AUTO
Luwei Zhou [Wed, 21 Aug 2013 05:08:50 +0000 (13:08 +0800)]
ENGR00275992 Kconfig: Support mma8451 sensor on i.MX6Q/DL SD/AUTO

Add mma8451 in Kconfig.

Signed-off-by: Luwei Zhou <b45643@freescale.com>
10 years agoENGR00274172-3 mxcfb: ldb: correct the ldb di clock trees
Liu Ying [Tue, 20 Aug 2013 07:10:34 +0000 (15:10 +0800)]
ENGR00274172-3 mxcfb: ldb: correct the ldb di clock trees

In ldb split mode, the ldb_di[0|1]_ipu_div should be configured
as clock dividers of 1/3.5, while in others ldb modes of 1/7.
This patch sets the di[0|1]_div_3_5 or di[0|1]_div_7 clocks to be
the parents of di[0|1]_div_sel clocks according to the ldb mode.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
10 years agoENGR00274172-2 ARM: dts: imx6qdl: add necessary clocks for ldb
Liu Ying [Tue, 20 Aug 2013 07:05:33 +0000 (15:05 +0800)]
ENGR00274172-2 ARM: dts: imx6qdl: add necessary clocks for ldb

This patch adds di[0|1]_div_3_5, di[0|1]_div_7 and di[0|1]_div_sel
clocks to the ldb nodes so that the ldb driver may use them to
setup the display clock tree.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
10 years agoENGR00274172-1 ARM: imx6q: refactor some ldb related clocks
Liu Ying [Tue, 20 Aug 2013 06:37:47 +0000 (14:37 +0800)]
ENGR00274172-1 ARM: imx6q: refactor some ldb related clocks

The ldb_di[0|1]_ipu_div dividers may divide their parent clock
frequencies by either 3.5 or 7. The non-integral dividers cannot
be dealt with the common clock framework, so they cannot be
registered as common clock dividers. So this patch adds a fixed
factor clock of 1/7 and introduces ldb_di[0|1]_div_sel multiplexers
so that the fixed factor clocks of 1/3.5 and 1/7 can be set to be
the parents of ldb_di[0|1]_div_sel multiplexers. The ldb_di[0|1]_podf
dividers are no longer used then.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
10 years agoENGR00275832 mxcfb: ldb: replace ioremap/iounmap with devm_ioremap
Liu Ying [Tue, 20 Aug 2013 06:19:46 +0000 (14:19 +0800)]
ENGR00275832 mxcfb: ldb: replace ioremap/iounmap with devm_ioremap

This patch replaces ioremap()/iounmap() with devm_ioremap() to
simplify the code.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
10 years agoENGR00275821-3 ARM: imx: Enable low power mode DSM for i.MX6SL
Anson Huang [Tue, 20 Aug 2013 20:16:01 +0000 (16:16 -0400)]
ENGR00275821-3 ARM: imx: Enable low power mode DSM for i.MX6SL

Support low power mode DSM for i.MX6SL:

1. No need to enable weak 2P5 for i.MX6SL;
2. Need to disconnect VDDHIGH and VDDSNVS in DSM to lower power leakage;
3. Add DDR IO float in DSM to lower DDR power.

Signed-off-by: Anson Huang <b20788@freescale.com>
10 years agoENGR00275821-2 ARM: imx: Enable suspend/resume for i.MX6SL
Anson Huang [Tue, 20 Aug 2013 18:14:41 +0000 (14:14 -0400)]
ENGR00275821-2 ARM: imx: Enable suspend/resume for i.MX6SL

Enable suspend/resume function for i.MX6SL, currently
support standby and mem mode.

Signed-off-by: Anson Huang <b20788@freescale.com>
10 years agoENGR00275821-1 ARM: imx: rename pm-imx6q.c
Anson Huang [Tue, 20 Aug 2013 15:30:19 +0000 (11:30 -0400)]
ENGR00275821-1 ARM: imx: rename pm-imx6q.c

To support all i.MX6 SOCs' suspend/resume, need to
rename pm-imx6q.c to pm-imx6.c and move common code
of ccm setting from platform specific clk file to
pm-imx6.c to avoid duplicated code.

Signed-off-by: Anson Huang <b20788@freescale.com>
10 years agoENGR00275739 Correct GPU delay implmentation in kernel code
Loren HUANG [Mon, 19 Aug 2013 14:29:36 +0000 (22:29 +0800)]
ENGR00275739 Correct GPU delay implmentation in kernel code

Original code can't handle delay larger than 1s.

Signed-by: Loren Huang <b02279@freescale.com>
Acked-by: Shawn Guo
10 years agoENGR00275737-1 dts: Enable gpu in MX6SL
Loren HUANG [Wed, 14 Aug 2013 04:57:02 +0000 (12:57 +0800)]
ENGR00275737-1 dts: Enable gpu in MX6SL

Add gpu information in mx6sl dts.

Signed-off-by: Loren HUANG <b02279@freescale.com>
10 years agoENGR00275473-2 Support PU regulator on/off in VPU driver
Hongzhang Yang [Fri, 16 Aug 2013 02:33:41 +0000 (10:33 +0800)]
ENGR00275473-2 Support PU regulator on/off in VPU driver

Add functions to hide different implemention for different
kernel
- vpu_power_get: get/put power/regulator
- vpu_power_up: enable/disable power/regulator
- vpu_reset

Implement regulator operations for Linux 3.10
- find regulator from VPU device node property
  pu-supply

Replace printk/pr_xxx with dev_xxx

Signed-off-by: Hongzhang Yang <Hongzhang.Yang@freescale.com>
10 years agoENGR00275473-1 Support PU regulator on/off in VPU driver
Hongzhang Yang [Mon, 19 Aug 2013 10:12:48 +0000 (18:12 +0800)]
ENGR00275473-1 Support PU regulator on/off in VPU driver

- add pu-supply property to VPU device node

Signed-off-by: Hongzhang Yang <Hongzhang.Yang@freescale.com>
10 years agoENGR00275542-4 ARM: imx: Enable thermal driver for i.MX6SL
Anson Huang [Mon, 19 Aug 2013 20:19:34 +0000 (16:19 -0400)]
ENGR00275542-4 ARM: imx: Enable thermal driver for i.MX6SL

Add thermal dts to enable thermal driver for i.MX6SL.

Signed-off-by: Anson Huang <b20788@freescale.com>
10 years agoENGR00275542-3 ARM: imx: Add thermal sensor's clk in dts for i.MX6QDL
Anson Huang [Mon, 19 Aug 2013 20:50:10 +0000 (16:50 -0400)]
ENGR00275542-3 ARM: imx: Add thermal sensor's clk in dts for i.MX6QDL

Thermal sensor's clock is from pll3_usb_otg 480MHz,
we need to control it before/after thermal sensor's work,
so add it in dts.

Signed-off-by: Anson Huang <b20788@freescale.com>
10 years agoENGR00275542-2 thermal: imx: Add necessary clk operation
Anson Huang [Mon, 19 Aug 2013 20:49:17 +0000 (16:49 -0400)]
ENGR00275542-2 thermal: imx: Add necessary clk operation

Thermal sensor's clock is from pll3_usb_otg 480MHz,
we need to enable it before getting thermal sensor
to work and disable it after thermal sensor stop
working.

Signed-off-by: Anson Huang <b20788@freescale.com>
10 years agoENGR00275542-1 ARM: imx: Enable PU power management for i.MX6SL
Anson Huang [Mon, 19 Aug 2013 19:14:43 +0000 (15:14 -0400)]
ENGR00275542-1 ARM: imx: Enable PU power management for i.MX6SL

Enable dynamical PU power management for i.MX6SL.

Signed-off-by: Anson Huang <b20788@freescale.com>
10 years agoENGR00275483-5 ARM: imx6qdl-sabresd: enable mipi dsi and display
Liu Ying [Fri, 16 Aug 2013 05:42:58 +0000 (13:42 +0800)]
ENGR00275483-5 ARM: imx6qdl-sabresd: enable mipi dsi and display

This patch enables the mipi dsi driver and TRULY-WVGA mipi lcd panel
driver on the imx6qdl-sabresd platforms. To control the panel's reset
and power enable functions, this patch adds two pins in the hoggrp node
as the gpio control pins and adds the mipi_dsi_pwr_on/mipi-dsi-reset
nodes for related drivers to use.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
10 years agoENGR00275483-4 ARM: dts: imx6qdl: add mipi dsi support
Liu Ying [Fri, 16 Aug 2013 05:37:51 +0000 (13:37 +0800)]
ENGR00275483-4 ARM: dts: imx6qdl: add mipi dsi support

Since we count on the 'compatible' entry to determine
the mipi dsi muxing check method, this patch splits the
new mipi dsi device tree node into two device tree source
files, i.e., imx6q.dtsi and imx6dl.dtsi.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
10 years agoENGR00275483-3 ARM: imx_v6_v7_defconfig: build in mipi dsi drivers
Liu Ying [Fri, 16 Aug 2013 05:25:27 +0000 (13:25 +0800)]
ENGR00275483-3 ARM: imx_v6_v7_defconfig: build in mipi dsi drivers

This patch builds in mipi dsi driver and TRULY-WVGA lcd panel driver.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
10 years agoENGR00275483-2 mxc fb: port mipi dsi drivers from 3.0.35 to 3.10
Liu Ying [Fri, 16 Aug 2013 05:22:56 +0000 (13:22 +0800)]
ENGR00275483-2 mxc fb: port mipi dsi drivers from 3.0.35 to 3.10

This patch is a fastforward porting for mipi dsi driver and
TRULY-WVGA mipi panel driver.
* Add devicetree support for the mipi dsi driver.
* Get mipi config clock source in the mipi dsi driver.
* Change clk_enable()/clk_disable() to clk_prepare_enable()/
  clk_disable_unprepare().
* Move mipi dsi driver initialization stuff to mipi_dsi_probe()
  from mipi_dsi_disp_init().
* Move mach/mipi_dsi.h to linux/mipi_dsi.h.
* Remove __devexit_p and __devexit since 3.10 kernel doesn't
  support them.
* Remove struct mipi_dsi_platform_data from mach/mipi_dsi.h.
* Remove mach/hardware.h, mach/clock.h, linux/fsl_device.h
  and linux/regulator/consumer.h in the drivers.
* Remove special pixel clock setting for imx6sdl since no
  issue is found without it.
* Remove unused reset, lcd_power and backlight_power interfaces
  in struct mipi_dsi_info.
* Remove unused regulator related entries in struct mipi_dsi_info.
* Remove the IOMUX_GPR3_OFFSET macro from mipi dsi driver since
  the muxing is done with common regmap APIs.
* Rename ipu_id to dev_id since i.MX6DL RM tells that lcdif can
  connect with mipi dsi.
* Add mipi dsi related information in the devicetree binding
  documentation.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
10 years agoENGR00275483-1 ARM: imx6q: clk: add video 27m clock
Liu Ying [Fri, 16 Aug 2013 05:44:42 +0000 (13:44 +0800)]
ENGR00275483-1 ARM: imx6q: clk: add video 27m clock

This patch adds the fixed factor video 27m clock in
the imx6q clock driver. This clock's parent clock
is the pll3_pfd1_540m clock.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
10 years agoENGR00258733 WEIM-NOR: mtd: cfi_cmdset_0002: Do not release the mutex lock
Huang Shijie [Fri, 12 Apr 2013 07:33:11 +0000 (15:33 +0800)]
ENGR00258733 WEIM-NOR: mtd: cfi_cmdset_0002: Do not release the mutex lock

The NOR(M29W256GL7AN6E) may suffers a write-buffer timeout during
the bonnie++/ubifs stress test. Micron has confirmed that it is
a silicon bug in the Nor.

This patch is just a workaround to fix this issue for this NOR.

With this patch, the read/write/erase will do in the synchronous way.

Signed-off-by: Huang Shijie <b32955@freescale.com>
10 years agoENGR00257947 mtd: use memcpy to replace the memcpy_fromio
Huang Shijie [Mon, 8 Apr 2013 08:56:46 +0000 (16:56 +0800)]
ENGR00257947 mtd: use memcpy to replace the memcpy_fromio

During the read of NOR, the kernel actually calls the inline_map_copy_from()
to read the data out. And inline_map_copy_from() will use the memcpy_fromio()
to do the real job.

The memcpy_fromio macro maps _memcpy_fromio() in the current code.
But the _memcpy_fromio() will use readb() to do the copy work one byte
by one byte. This makes the read performance of NOR very slow(about 2~3MB/s).

A similiar discussion could be found in:
http://lists.infradead.org/pipermail/linux-arm-kernel/2009-November/003860.html

This patch replace the memcpy_fromio with memcpy which is optimized by the
kernel.

The following is the result from mtd_speedtest with M29W256GL7AN6E:
=================================================
mtd_speedtest: MTD device: 2
mtd_speedtest: not NAND flash, assume page size is 512 bytes.
mtd_speedtest: MTD device size 4194304, eraseblock size 131072, page size 512,
count of eraseblocks 32, pages per eraseblock 256, OOB size 0
mtd_speedtest: testing eraseblock write speed
mtd_speedtest: eraseblock write speed is 845 KiB/s
mtd_speedtest: testing eraseblock read speed
mtd_speedtest: eraseblock read speed is 19504 KiB/s
mtd_speedtest: testing page write speed
mtd_speedtest: page write speed is 845 KiB/s
mtd_speedtest: testing page read speed
mtd_speedtest: page read speed is 19140 KiB/s
mtd_speedtest: testing 2 page write speed
mtd_speedtest: 2 page write speed is 846 KiB/s
mtd_speedtest: testing 2 page read speed
mtd_speedtest: 2 page read speed is 19320 KiB/s
mtd_speedtest: Testing erase speed
mtd_speedtest: erase speed is 233 KiB/s
mtd_speedtest: Testing 2x multi-block erase speed
mtd_speedtest: 2x multi-block erase speed is 225 KiB/s
mtd_speedtest: Testing 4x multi-block erase speed
mtd_speedtest: 4x multi-block erase speed is 224 KiB/s
mtd_speedtest: Testing 8x multi-block erase speed
mtd_speedtest: 8x multi-block erase speed is 225 KiB/s
mtd_speedtest: Testing 16x multi-block erase speed
mtd_speedtest: 16x multi-block erase speed is 225 KiB/s
mtd_speedtest: Testing 32x multi-block erase speed
mtd_speedtest: 32x multi-block erase speed is 225 KiB/s
mtd_speedtest: Testing 64x multi-block erase speed
mtd_speedtest: 64x multi-block erase speed is 224 KiB/s
mtd_speedtest: finished
=================================================

Signed-off-by: Huang Shijie <b32955@freescale.com>
10 years agoENGR00275634: ARM: imx_v6_v7_defconfig: Add some USB configurations
Peter Chen [Mon, 19 Aug 2013 04:42:00 +0000 (12:42 +0800)]
ENGR00275634: ARM: imx_v6_v7_defconfig: Add some USB configurations

- Enable USB gadget function
- Enable USB Audio and Camera functions
- Disable CONFIG_USB_EHCI_MXC to avoid confusion due to we
only use chipidea driver as USB driver for this BSP

Signed-off-by: Peter Chen <peter.chen@freescale.com>
10 years agoENGR00275643 dts: Add mma8450 support on i.MX6SL EVK
Luwei Zhou [Mon, 19 Aug 2013 07:04:22 +0000 (15:04 +0800)]
ENGR00275643 dts: Add mma8450 support on i.MX6SL EVK

Add mma8450 support on i.MX6SL EVK.

Signed-off-by: Luwei Zhou <b45643@freescale.com>
10 years agoENGR00275640 dts: Add i2c dts support on i.MX6SL EVK
Luwei Zhou [Mon, 19 Aug 2013 06:48:42 +0000 (14:48 +0800)]
ENGR00275640 dts: Add i2c dts support on i.MX6SL EVK

Add i2c dts support on i.MX6SL EVK.

Signed-off-by: Luwei Zhou <b45643@freescale.com>
10 years agoENGR00275419-3 mxc fb: ldb: defer some init operations
Liu Ying [Thu, 15 Aug 2013 10:18:33 +0000 (18:18 +0800)]
ENGR00275419-3 mxc fb: ldb: defer some init operations

This patch defers some ldb initialization operations
in the post init interface so that the drive won't
overwrite or damage a registered display device's setup
with the same dev_id and disp_id. The deferred operations
are the parent setting for ipu_dix_clk and the fb notifier
client register.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
10 years agoENGR00275419-2 mxc ipuv3 fb: call necessary post init interface
Liu Ying [Thu, 15 Aug 2013 10:14:16 +0000 (18:14 +0800)]
ENGR00275419-2 mxc ipuv3 fb: call necessary post init interface

This patch adds the post init mxc display driver function call
in the .probe() function to give a chance to display encoders
to defer necessary opertions after their dev_ids and disp_ids
pass usage check.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
10 years agoENGR00275419-1 mxc dispdrv: introduce post init interface
Liu Ying [Thu, 15 Aug 2013 10:01:40 +0000 (18:01 +0800)]
ENGR00275419-1 mxc dispdrv: introduce post init interface

This patch adds a new post init interface in the mxc display
driver. It may do necessary deferred operations after a
display device's dev_id and disp_id pass usage check. This
is a feasible way to avoid any setup being overwitten or
damaged by a late coming display device which uses the same
dev_id and disp_id with a display already registered.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
10 years agoARM: imx: Move anatop related from board file to anatop driver
Peter Chen [Wed, 14 Aug 2013 03:40:56 +0000 (11:40 +0800)]
ARM: imx: Move anatop related from board file to anatop driver

Move anatop related (For USB) from board file to anatop driver

Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
10 years agoARM: dtsi: imx6qdl-sabresd: Add USB OTG vbus pin to pinctrl_hog
Peter Chen [Mon, 12 Aug 2013 08:51:39 +0000 (16:51 +0800)]
ARM: dtsi: imx6qdl-sabresd: Add USB OTG vbus pin to pinctrl_hog

USB OTG vbus pin needs to be configured as gpio function at
sabresd board.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>