]> git.karo-electronics.de Git - karo-tx-linux.git/log
karo-tx-linux.git
11 years agoENGR00153825 imx6: clk: fix gpu clock issues
Richard Zhao [Thu, 28 Jul 2011 01:02:12 +0000 (09:02 +0800)]
ENGR00153825 imx6: clk: fix gpu clock issues

- fix issue that set_parent wrongly clear the whole register.
- set_rate can accept none exact rates.

Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
11 years agoENGR00153793-2 ESAI: add function get_rate to clk pll3_pfd_508M
Lionel Xu [Wed, 27 Jul 2011 09:23:58 +0000 (17:23 +0800)]
ENGR00153793-2 ESAI: add function get_rate to clk pll3_pfd_508M

Add function get_rate to clk pll3_pfd_508M.

Signed-off-by: Lionel Xu <R63889@freescale.com>
11 years agoENGR00153793-1 ESAI: Resolve esai codec i2c suspend/resume problem
Lionel Xu [Wed, 27 Jul 2011 08:04:53 +0000 (16:04 +0800)]
ENGR00153793-1 ESAI: Resolve esai codec i2c suspend/resume problem

1)Resolve esai codec i2c suspend/resume problem;
2)Remove imx pcm operating function which already defined in imx-ssi.c

Signed-off-by: Lionel Xu <R63889@freescale.com>
11 years agoENGR00153740-7 imx6: add asrc in defconfig
Dong Aisheng [Wed, 27 Jul 2011 05:21:08 +0000 (13:21 +0800)]
ENGR00153740-7 imx6: add asrc in defconfig

Add asrc support in defconfig.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
11 years agoENGR00153740-6 imx-cs42888: remove asrc code
Dong Aisheng [Wed, 27 Jul 2011 03:42:29 +0000 (11:42 +0800)]
ENGR00153740-6 imx-cs42888: remove asrc code

The asrc code in imx-cs42888 driver will cause building fail.
Further more, the current asrc driver does not support p2p mode,
so remove it first.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
11 years agoENGR00153740-5 mx6: add asrc support
Dong Aisheng [Tue, 26 Jul 2011 13:54:49 +0000 (21:54 +0800)]
ENGR00153740-5 mx6: add asrc support

Add asrc support for mx6.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
11 years agoENGR00153740-4 imx-sdma: use mcu_2_shp script for ASRC
Dong Aisheng [Wed, 27 Jul 2011 02:20:49 +0000 (10:20 +0800)]
ENGR00153740-4 imx-sdma: use mcu_2_shp script for ASRC

The asrc_2_mcu script is not supported well by this driver.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
11 years agoENGR00153740-3 mxc: asrc device common code
Dong Aisheng [Wed, 27 Jul 2011 02:17:06 +0000 (10:17 +0800)]
ENGR00153740-3 mxc: asrc device common code

Used for add asrc device.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
11 years agoENGR00153740-2 mxc: add asrc plat data
Dong Aisheng [Wed, 27 Jul 2011 03:29:39 +0000 (11:29 +0800)]
ENGR00153740-2 mxc: add asrc plat data

Used for asrc driver.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
11 years agoENGR00153740-1 asrc: update to use new SDMA API
Dong Aisheng [Wed, 27 Jul 2011 03:27:55 +0000 (11:27 +0800)]
ENGR00153740-1 asrc: update to use new SDMA API

Only support one pair of buffer for rx and tx per time.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
11 years agoENGR00153762 imx6q MSL: increase DMA zone size to max 184
Jason Chen [Wed, 27 Jul 2011 06:17:40 +0000 (14:17 +0800)]
ENGR00153762 imx6q MSL: increase DMA zone size to max 184

when we need enable 1080p 32bpp display and play a 1080p h264 clip,
it may meet memory allocation fail issue. This patch fix this issue.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00153761 imx6q ipuv3: improve display quality
Jason Chen [Wed, 27 Jul 2011 06:13:58 +0000 (14:13 +0800)]
ENGR00153761 imx6q ipuv3: improve display quality

to avoid ipu starvation issue.
1. enable IPU AXI cache in uboot
2. set Qos to 7 for IPU to highest priority in uboot.
3. set AXI id to 0 for high priority IDMA channel in linux.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00153760 imx6q iomux: change display output strength to 120ohm
Jason Chen [Wed, 27 Jul 2011 06:09:26 +0000 (14:09 +0800)]
ENGR00153760 imx6q iomux: change display output strength to 120ohm

To fix DVI output signal stable issue.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00153757 mxc_hdmi: fix build error of mxc_hdmi.c
Jason Chen [Wed, 27 Jul 2011 06:06:18 +0000 (14:06 +0800)]
ENGR00153757 mxc_hdmi: fix build error of mxc_hdmi.c

Fix build error of below:
`mxc_hdmi_remove' referenced in section
`.data' of drivers/built-in.o: defined in discarded section
`.exit.text' of drivers/built-in.o`

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00153670-4 - MXC HDMI: Add support for basic HDMI operation
Danny Nold [Tue, 26 Jul 2011 03:01:15 +0000 (22:01 -0500)]
ENGR00153670-4 - MXC HDMI: Add support for basic HDMI operation

- Add MXC HDMI to kconfig and makefile
- Add initial mxc_hdmi.c file to provide basic HDMI functionality:
- Basic HDMI output functional
- Support for reading EDID via I2C and registering
video modes with IPU
- Support for output from IPU1 DI0
- These features not yet added:
- Hotplug support
- Dual display with LVDS
- Power management
- Support for FB notifications
- Changes to IPU to allow HDMI to use source clocks that it needs

Signed-off-by: Danny Nold <dannynold@freescale.com>
11 years agoENGR00153670-3 - imx6_defconfig: Add HDMI device
Danny Nold [Tue, 26 Jul 2011 02:54:16 +0000 (21:54 -0500)]
ENGR00153670-3 - imx6_defconfig: Add HDMI device

- Added HDMI device to imx6 config

Signed-off-by: Danny Nold <dannynold@freescale.com>
11 years agoENGR00153670-2 - mach-mx6: Add support for MXC HDMI
Danny Nold [Tue, 26 Jul 2011 02:39:50 +0000 (21:39 -0500)]
ENGR00153670-2 - mach-mx6: Add support for MXC HDMI

- Add MXC HDMI initialization structures and calls to SABRE board file.
- Add HDMI clock definitions and functions for PLL5 (main video clock
used by HDMI).

Signed-off-by: Danny Nold <dannynold@freescale.com>
11 years agoENGR00153670-1 - plat-mxc: Add support for MXC HDMI
Danny Nold [Tue, 26 Jul 2011 02:35:22 +0000 (21:35 -0500)]
ENGR00153670-1 - plat-mxc: Add support for MXC HDMI

- Created MXC HDMI platform initialization file - platform-mxc_hdmi.c
- Added MXC HDMI to kconfig and makefile
- Added main MXC HDMI register definition file - mxc_hdmi.h

Signed-off-by: Danny Nold <dannynold@freescale.com>
11 years agoENGR00153680 vpu: Fix the issue of not increasing open_count
Sammy He [Tue, 26 Jul 2011 09:08:12 +0000 (17:08 +0800)]
ENGR00153680 vpu: Fix the issue of not increasing open_count

Fix the issue of missing to increase open_count when vpu_open.
This is due to the patch of removing mx31 and mx37 code.

Signed-off-by: Sammy He <r62914@freescale.com>
11 years agoENGR00153651-2 ESAI: Add esai/cs42888 audio codec support on mx6q platform
Lionel Xu [Mon, 25 Jul 2011 13:58:43 +0000 (21:58 +0800)]
ENGR00153651-2 ESAI: Add esai/cs42888 audio codec support on mx6q platform

Add ESAI and related audio codec cs42888 support on mx6q platform.

Signed-off-by: Lionel Xu <R63889@freescale.com>
11 years agoENGR00153651-1 ESAI: Prepare MSL support for esai/cs42888 audio codec driver
Lionel Xu [Mon, 25 Jul 2011 13:44:45 +0000 (21:44 +0800)]
ENGR00153651-1 ESAI: Prepare MSL support for esai/cs42888 audio codec driver

1) Add machine specific code for esai/cs42888 driver support, including pad
    control, clk setting, i2c setting, etc.
2) Enable audio support in default config.

Signed-off-by: Lionel Xu <R63889@freescale.com>
11 years agoENGR00153601 [MX6]Adjust L2 cache parameter
Anson Huang [Mon, 25 Jul 2011 08:14:24 +0000 (16:14 +0800)]
ENGR00153601 [MX6]Adjust L2 cache parameter

Adjust L2 cache parameter to improve both
performance and power consumption.

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00153598 MX6 defconfig: remove optimize for size
Frank Li [Mon, 25 Jul 2011 07:46:24 +0000 (15:46 +0800)]
ENGR00153598 MX6 defconfig: remove optimize for size

optimize for speed
add CONFIG_TOUCHSCREEN_EGALAX

Signed-off-by: Frank Li <Frank.Li@freescale.com>
11 years agoENGR00153578 tve-vga: set vga output gain to improve quality
Jason Chen [Mon, 25 Jul 2011 06:31:06 +0000 (14:31 +0800)]
ENGR00153578 tve-vga: set vga output gain to improve quality

set vga output gain to improve quality.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00153275-2 mx53 L2638 msl modifications when add ahci temp-monitor
Richard Zhu [Tue, 19 Jul 2011 05:45:36 +0000 (13:45 +0800)]
ENGR00153275-2 mx53 L2638 msl modifications when add ahci temp-monitor

based on the 2.6.38 kernel mainline, refer to linux std hwmon
architeture, add the standalone ahci temperature monitor driver
on fsl i.mx53 platforms.

Signed-off-by: Richard Zhu <r65037@freescale.com>
11 years agoENGR00153275-1 ahci L2638 add the standalone ahci temperature monitor
Richard Zhu [Tue, 19 Jul 2011 05:42:29 +0000 (13:42 +0800)]
ENGR00153275-1 ahci L2638 add the standalone ahci temperature monitor

based on the 2.6.38 kernel mainline, refer to linux lm-sensors
architeture, add the standalone ahci temperature monitor driver
on fsl i.mx53 platforms.
Less than half sencond is used in one temperature read operation.

usage:
Use the following cmd to cat the i.mx53 soc temperature after
boot up i.mx53 system in user space.
for example:
...$ cat /sys/class/hwmon/hwmon1/device/temp1_input
61000
or run the following cmd after configure the lm-sensors
...$ sensors
imx-ahci-hwmon-isa-0000
Adapter: ISA adapter
temp1:        +58.0 C

Signed-off-by: Richard Zhu <r65037@freescale.com>
11 years agoENGR00153429 [WDOG]Workaround for SMP wdog reset
Anson Huang [Wed, 20 Jul 2011 07:57:05 +0000 (15:57 +0800)]
ENGR00153429 [WDOG]Workaround for SMP wdog reset

1. Copy mx6_secondary_startup to iRAM;
2. CPU0 reset CPUx, then waiting CPUx reset OK, and
   clear CPUx's boot_entry;
3. CPUx reset OK, waiting CPU0 to clear its parameter;
4. All these steps done, CPUx go on boot;

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00153507: Mx6q/d- Add the support to change the rate of Audio/Video PLLs
Ranjani Vaidyanathan [Thu, 21 Jul 2011 20:33:13 +0000 (15:33 -0500)]
ENGR00153507: Mx6q/d- Add the support to change the rate of Audio/Video PLLs

Add set_rate and get_rate functions to the Audio and Video PLLs.

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
11 years agoENGR00139238-3 MX6: add p1003 i2c touch device
Frank Li [Wed, 20 Jul 2011 10:44:20 +0000 (18:44 +0800)]
ENGR00139238-3 MX6: add p1003 i2c touch device

Add p1003 i2c touch device

Signed-off-by: Frank Li <Frank.Li@freescale.com>
11 years agoENGR00139238-2 Touch: add p1003 and egalax
Frank Li [Wed, 20 Jul 2011 10:41:50 +0000 (18:41 +0800)]
ENGR00139238-2 Touch: add p1003 and egalax

Add p1003 and egalax touch driver

Signed-off-by: Frank Li <Frank.Li@freescale.com>
11 years agoENGR00139238-1 include: add p1003_ts_platform_data to fsl_device.h
Frank Li [Wed, 20 Jul 2011 10:42:58 +0000 (18:42 +0800)]
ENGR00139238-1 include: add p1003_ts_platform_data to fsl_device.h

Add p1003_ts_platform_data to fsl_device.h

Signed-off-by: Frank Li <Frank.Li@freescale.com>
11 years agoENGR00153373-2 config add ocotp to default config
Frank Li [Wed, 20 Jul 2011 06:52:21 +0000 (14:52 +0800)]
ENGR00153373-2 config add ocotp to default config

Add ocotp to default config
Add watch dog to default config
Add debugfs and clk_debug to default config

Signed-off-by: Frank Li <Frank.Li@freescale.com>
11 years agoENGR00153373-1 OCOTP: Add missed header file
Frank Li [Wed, 20 Jul 2011 06:51:29 +0000 (14:51 +0800)]
ENGR00153373-1 OCOTP: Add missed header file

Add missed ocopt header file

Signed-off-by: Frank Li <Frank.Li@freescale.com>
11 years agoENGR00139274-4 [UART]Enable suspend/resume feature
Anson Huang [Wed, 20 Jul 2011 06:46:37 +0000 (14:46 +0800)]
ENGR00139274-4 [UART]Enable suspend/resume feature

1. Enable wake up of uart;

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00139274-3 [MX6]Enable suspend/resume feature
Anson Huang [Wed, 20 Jul 2011 06:45:21 +0000 (14:45 +0800)]
ENGR00139274-3 [MX6]Enable suspend/resume feature

1. Add irq_set_wake function to gic chip;
2. Fix uart no_console_suspend issue;

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00139274-2 [MX6]Enable suspend/resume
Anson Huang [Tue, 19 Jul 2011 05:29:54 +0000 (13:29 +0800)]
ENGR00139274-2 [MX6]Enable suspend/resume

Enable suspend/resume for MX6, using debug
UART as wake up source due to hardware design
limitation.

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00139274-1 [MX6]Enable suspend/resume feature
Anson Huang [Mon, 18 Jul 2011 04:54:13 +0000 (12:54 +0800)]
ENGR00139274-1 [MX6]Enable suspend/resume feature

Enable suspend/resume feature for MX6q

echo standby > /sys/power/state -> wait mode;
echo mem > /sys/power/state -> stop mode;

Currentlu only support debug uart as wakeup source;

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00153270 imx5_defconfig: disable mxc v4l2 capture
Jason Chen [Tue, 19 Jul 2011 04:54:57 +0000 (12:54 +0800)]
ENGR00153270 imx5_defconfig: disable mxc v4l2 capture

disable config of mxc v4l2 capture to fix build error issue.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00152287-3 SDMA: Fix sdma cache bufferable issue
Zeng Zhaoming [Mon, 18 Jul 2011 03:55:41 +0000 (11:55 +0800)]
ENGR00152287-3 SDMA: Fix sdma cache bufferable issue

MX6Q desclare dma memory bufferable, which cause sdma
load context failed in 60% possibility.

To fix it, we need to add dsb to flush write buffer before
start dma transfer.

Signed-off-by: Zeng Zhaoming <b32542@freescale.com>
11 years agoENGR00152287-2 SDMA: Add SDMA support for MX6Q
Zeng Zhaoming [Mon, 11 Jul 2011 22:01:02 +0000 (06:01 +0800)]
ENGR00152287-2 SDMA: Add SDMA support for MX6Q

Add sdma support for mx6q.
add mx6 dependency for sdma, and add sdma mx6 firmware.

Note: firmware not release by owner, this version only for test.

Signed-off-by: Zeng Zhaoming <b32542@freescale.com>
11 years agoENGR00152287-1 MX6: Add SDMA support for MX6Q
Zeng Zhaoming [Mon, 11 Jul 2011 22:00:27 +0000 (06:00 +0800)]
ENGR00152287-1 MX6: Add SDMA support for MX6Q

Add SDMA support for MX6Q.
Enable sdma in imx6 default configure.

Signed-off-by: Zeng Zhaoming <b32542@freescale.com>
11 years agoENGR00153208-2 Add SNVS RTC driver
Anish Trivedi [Fri, 15 Jul 2011 21:00:59 +0000 (16:00 -0500)]
ENGR00153208-2 Add SNVS RTC driver

This adds an RTC driver for the Low Power (LP) section of SNVS.
It hooks into the /dev/rtc interface.
It only uses the RTC hw in non-secure mode.

Signed-off-by: Anish Trivedi <anish@freescale.com>
11 years agoENGR00153208-1 Machine layer changes for SNVS RTC driver
Anish Trivedi [Fri, 15 Jul 2011 20:55:34 +0000 (15:55 -0500)]
ENGR00153208-1 Machine layer changes for SNVS RTC driver

Add SNVS RTC as a device on MX6

Signed-off-by: Anish Trivedi <anish@freescale.com>
11 years agoENGR00153217-2 mxc_dispdrv: add sii902x hdmi driver support
Jason Chen [Mon, 18 Jul 2011 08:38:14 +0000 (16:38 +0800)]
ENGR00153217-2 mxc_dispdrv: add sii902x hdmi driver support

Add sii902x display driver to mxc_dispdrv.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00153217-1 fsl_devices.h: change fsl_mxc_lcd_platform_data
Jason Chen [Mon, 18 Jul 2011 08:37:27 +0000 (16:37 +0800)]
ENGR00153217-1 fsl_devices.h: change fsl_mxc_lcd_platform_data

change fsl_mxc_lcd_platform_data.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00153216-2 mxc_dispdrv: add dvi display driver support
Jason Chen [Mon, 18 Jul 2011 08:36:26 +0000 (16:36 +0800)]
ENGR00153216-2 mxc_dispdrv: add dvi display driver support

change dvi display driver to mxc_dispdrv.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00153216-1 MSL: add dvi display driver support
Jason Chen [Mon, 18 Jul 2011 04:30:45 +0000 (12:30 +0800)]
ENGR00153216-1 MSL: add dvi display driver support

change for mx51_bbg, mx53_evk, mx6q_sabr platform.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00153132 mx6q: enable vpu iram usage
Sammy He [Thu, 14 Jul 2011 18:36:20 +0000 (02:36 +0800)]
ENGR00153132 mx6q: enable vpu iram usage

Enable iram for vpu on mx6q.

Signed-off-by: Sammy He <r62914@freescale.com>
11 years agoENGR00153218 mxc gpio: tzic should not disable gpio interrupt line
Jason Chen [Mon, 18 Jul 2011 04:44:25 +0000 (12:44 +0800)]
ENGR00153218 mxc gpio: tzic should not disable gpio interrupt line

For SOC using TZIC, gpio_irq_handler should not call tzic chip ack
funtion, cause it will disable this interrupt line.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00153221 [MX6Q uSDHC]workaround for TC intr coming ealier than DMA intr
Tony Lin [Mon, 18 Jul 2011 05:46:23 +0000 (13:46 +0800)]
ENGR00153221 [MX6Q uSDHC]workaround for TC intr coming ealier than DMA intr

if TC interrupt bit is set but DMA interrupt bit is clear, read status register
again in case DMA interrupt will come in next time cycle

Signed-off-by: Tony Lin <tony.lin@freescale.com>
11 years agoENGR00153160 fix card interrupt issue on uSDHC and eSDHC
Tony Lin [Fri, 15 Jul 2011 02:59:38 +0000 (10:59 +0800)]
ENGR00153160 fix card interrupt issue on uSDHC and eSDHC

uSDHC: card interrupt storm if we do not clear card interrupt
status by sw.
eSDHC: card interrupt will be lost if we do not set D3CD bit.
apply the workarounds in sdhci-esdhc-imx.c to avoid adding new
QUIRKs.

Signed-off-by: Tony Lin <tony.lin@freescale.com>
11 years agoENGR00152359-3 sii902x hdmi: add AVI and AIF support for common changes
Jason Chen [Wed, 13 Jul 2011 07:24:19 +0000 (15:24 +0800)]
ENGR00152359-3 sii902x hdmi: add AVI and AIF support for common changes

1.add AVI and AIF support.
2.add edid 4-block reading support.(not test)

For RGB input fmt support, pls input cmdline like:
video=mxcdixfb:RGB24,1024x768M@60
For YUV input fmt support, pls input cmdline like:
video=mxcdixfb:VYU444,1024x768M@60

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00152359-2 ipuv3: add VYU444 fmt
Jason Chen [Fri, 1 Jul 2011 06:47:58 +0000 (14:47 +0800)]
ENGR00152359-2 ipuv3: add VYU444 fmt

1.add VYU444 fmt to support Sii902x hdmi yuv format
2.make pixel clock from internal ipu clock more accurate

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00152359-1 sii902x hdmi: add AVI and AIF support.
Jason Chen [Fri, 1 Jul 2011 03:23:43 +0000 (11:23 +0800)]
ENGR00152359-1 sii902x hdmi: add AVI and AIF support.

1.add AVI and AIF support.
2.add edid 4-block reading support.(not test)

Signed-off-by: Jason Chen <b02280@freescale.com>
(cherry picked from commit 449efb20625cc8a3dd1259796b4050578960a3d4)

11 years agoENGR00153188 [MX6]Clean some build warning
Anson Huang [Fri, 15 Jul 2011 11:28:22 +0000 (19:28 +0800)]
ENGR00153188 [MX6]Clean some build warning

1. smp build mis-match warning;
2. IO_ADDRESS pointer type;

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00139234-2 MX6: add watchdog device
Frank Li [Fri, 15 Jul 2011 06:33:10 +0000 (14:33 +0800)]
ENGR00139234-2 MX6: add watchdog device

Add watchdog device

Signed-off-by: Frank Li <Frank.Li@freescale.com>
11 years agoENGR00139234-1 watchdog: build watchdog in ARCH_MX6
Frank Li [Fri, 15 Jul 2011 06:31:08 +0000 (14:31 +0800)]
ENGR00139234-1 watchdog: build watchdog in ARCH_MX6

Add ARCH_MX6 dependency

Signed-off-by: Frank Li <Frank.Li@freescale.com>
11 years agoENGR00153167 mx6 ahci enable the 3gps sata speed
Richard Zhu [Thu, 14 Jul 2011 08:42:01 +0000 (16:42 +0800)]
ENGR00153167 mx6 ahci enable the 3gps sata speed

Set bit15 of GPR13, and enable the 3gps sata speed

Signed-off-by: Richard Zhu <r65037@freescale.com>
11 years agoENGR00153127 ENET: Enet not works in 1G mode
Zeng Zhaoming [Thu, 14 Jul 2011 02:21:08 +0000 (10:21 +0800)]
ENGR00153127 ENET: Enet not works in 1G mode

Mx6 not works when connnect to a 1G switch.
This is caused by phy_dev->supported != PHY_GBIT_FEATURES, more bits
will set to phy_dev->supported when negotiation complete.

Signed-off-by: Zeng Zhaoming <b32542@freescale.com>
11 years agoENGR00153099 mx6: clock: set gc2000 clocks
Richard Zhao [Thu, 14 Jul 2011 06:42:12 +0000 (14:42 +0800)]
ENGR00153099 mx6: clock: set gc2000 clocks

shader clock: 594M
core clock: 528M

Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
11 years agoENGR00153092 ARM: mx6q_sabreauto: restrict gpu reserved memory addr < 2G
Richard Zhao [Thu, 14 Jul 2011 02:23:05 +0000 (10:23 +0800)]
ENGR00153092 ARM: mx6q_sabreauto: restrict gpu reserved memory addr < 2G

gc2000 driver 4.3 can not support reserved memory addr > 2G

Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
11 years agoENGR00139235-3: IIM(OCOPT): Enable IIM driver for iMX6Q
Terry Lv [Tue, 21 Jun 2011 06:29:52 +0000 (14:29 +0800)]
ENGR00139235-3: IIM(OCOPT): Enable IIM driver for iMX6Q

Add a new driver for On-Chip OTP controller. The driver
will register all the register names of all the banks to /sys/.
You can use the following commands to manipulate the OTP banks:

read:
#cat HW_OCOTP_MAC0
write:
#echo 0x11223344 > HW_OCOTP_MAC0

Signed-off-by: Terry Lv <r65388@freescale.com>
11 years agoENGR00139235-2 MX61: Add IIM(OCOTP) driver
Terry Lv [Tue, 21 Jun 2011 06:29:52 +0000 (14:29 +0800)]
ENGR00139235-2 MX61: Add IIM(OCOTP) driver

Add OCOTP device

Signed-off-by: Terry Lv <r65388@freescale.com>
11 years agoENGR00139235-1 include: fsl_device add clock name in platform data
Terry Lv [Tue, 21 Jun 2011 06:29:52 +0000 (14:29 +0800)]
ENGR00139235-1 include: fsl_device add clock name in platform data

Add clock name, max_volt, min_volt field

Signed-off-by: Terry Lv <r65388@freescale.com>
11 years agoENGR00152371-3 imx6_defconfig: enable vpu config
Sammy He [Thu, 14 Jul 2011 12:07:14 +0000 (20:07 +0800)]
ENGR00152371-3 imx6_defconfig: enable vpu config

Enable CONFIG_IMX_HAVE_PLATFORM_IMX_VPU and CONFIG_MXC_VPU
for imx6q.

Signed-off-by: Sammy He <r62914@freescale.com>
11 years agoENGR00152371-2 mx6q: Add vpu support in arch/arm
Sammy He [Fri, 8 Jul 2011 16:43:22 +0000 (00:43 +0800)]
ENGR00152371-2 mx6q: Add vpu support in arch/arm

Change arch/arm files to add vpu support for mx6q.

Signed-off-by: Sammy He <r62914@freescale.com>
11 years agoENGR00152371-1 mx6q: Add vpu driver support
Sammy He [Fri, 1 Jul 2011 15:02:52 +0000 (23:02 +0800)]
ENGR00152371-1 mx6q: Add vpu driver support

Add vpu driver support for mx6q.

Signed-off-by: Sammy He <r62914@freescale.com>
11 years agoENGR00152547-04 [MX6Q]add SDHC3.0 support on uSDHC controller
Tony Lin [Tue, 12 Jul 2011 03:09:29 +0000 (11:09 +0800)]
ENGR00152547-04 [MX6Q]add SDHC3.0 support on uSDHC controller

modify host controller driver to meet SD3.0 spec.
including voltage switch, and tuning control.
add a function pointer for bus driver to do tuning preparation,
in case some host controller like uSDHC does not tune automatically.
it needs change delay line before tuning.

Signed-off-by: Tony Lin <tony.lin@freescale.com>
11 years agoENGR00152547-03 [MX6Q]add SDHC3.0 support on uSDHC controller
Tony Lin [Tue, 12 Jul 2011 03:08:57 +0000 (11:08 +0800)]
ENGR00152547-03 [MX6Q]add SDHC3.0 support on uSDHC controller

add voltage switch function due to SDHC3.0 spec requirement
add tuning function due to SDHC3.0 spec requirement
extend some functions to support SDR50 & SDR104 speed mode

Signed-off-by: Tony Lin <tony.lin@freescale.com>
11 years agoENGR00152547-02 [MX6Q]add SDHC3.0 support on uSDHC controller
Tony Lin [Tue, 12 Jul 2011 03:08:22 +0000 (11:08 +0800)]
ENGR00152547-02 [MX6Q]add SDHC3.0 support on uSDHC controller

add CMD used on SDHC3.0 card
add specific parameters for SDHC3.0 card tuning

Signed-off-by: Tony Lin <tony.lin@freescale.com>
11 years agoENGR00152547-01 [MX6Q]add SDHC3.0 support on uSDHC controller
Tony Lin [Tue, 12 Jul 2011 03:04:35 +0000 (11:04 +0800)]
ENGR00152547-01 [MX6Q]add SDHC3.0 support on uSDHC controller

enable uSDHC slot 3 in board file
add parameter in platform data to indicate whether the slot
supports 1.8 voltage
add pinmux to support voltage switch between 1.8V and 3.3V

Signed-off-by: Tony Lin <tony.lin@freescale.com>
11 years agoENGR00152668 [MX6]Enable arch_reset
Anson Huang [Wed, 13 Jul 2011 05:52:41 +0000 (13:52 +0800)]
ENGR00152668 [MX6]Enable arch_reset

--OCRAM size is 256KB, confirmed by IC owner, the
  OCRAM_Aliasd 0.75MB is mapped to the same 256KB
  OCRAM.That means there is only 256KB physical
  OCRAM.

--Enable arch_reset function on MX6Q, For SMP, we
  need to clear the SRC_GPRx after the secondary
  cores brought up, or the wdog reset will fail;

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00152845-10 imx6_defconfig: enable ipuv3 related configs
Jason Chen [Wed, 13 Jul 2011 06:52:33 +0000 (14:52 +0800)]
ENGR00152845-10 imx6_defconfig: enable ipuv3 related configs

select ipuv3.
select fb.
select v4l2 output.

Signed-off-by: Jason Chen <jason.chen@freescale.com>
11 years agoENGR00152845-9 v4l2 output: changes based on ipu changes.
Jason Chen [Wed, 13 Jul 2011 04:18:56 +0000 (12:18 +0800)]
ENGR00152845-9 v4l2 output: changes based on ipu changes.

v4l2 output changes based on ipu change.

Signed-off-by: Jason Chen <jason.chen@freescale.com>
11 years agoENGR00152845-8 mxc_dispdrv: add support for mxc_dispdrv.
Jason Chen [Wed, 13 Jul 2011 04:18:38 +0000 (12:18 +0800)]
ENGR00152845-8 mxc_dispdrv: add support for mxc_dispdrv.

add dispdrv support.
add dispdrv sub-driver ldb/lcdif/tve support.
change ipuv3 fb driver for new ipu and dispdrv framework.

Signed-off-by: Jason Chen <jason.chen@freescale.com>
11 years agoENGR00152845-7 header file: support mult ipu and dispdrv.
Jason Chen [Wed, 13 Jul 2011 04:18:11 +0000 (12:18 +0800)]
ENGR00152845-7 header file: support mult ipu and dispdrv.

Head files changes for mult ipu and dispdrv.

Signed-off-by: Jason Chen <jason.chen@freescale.com>
11 years agoENGR00152845-6 fb: add PREMODE_CHANGE event support.
Jason Chen [Wed, 13 Jul 2011 04:17:37 +0000 (12:17 +0800)]
ENGR00152845-6 fb: add PREMODE_CHANGE event support.

change fbmem.c to support PREMODE_CHANGE event.

Signed-off-by: Jason Chen <jason.chen@freescale.com>
11 years agoENGR00152845-5 fb: add PREMODE_CHANGE event support.
Jason Chen [Wed, 13 Jul 2011 04:17:17 +0000 (12:17 +0800)]
ENGR00152845-5 fb: add PREMODE_CHANGE event support.

change fb.h to support PREMODE_CHANGE event.

Signed-off-by: Jason Chen <jason.chen@freescale.com>
11 years agoENGR00152845-4 ipuv3: add multiple instance support
Jason Chen [Wed, 13 Jul 2011 04:17:01 +0000 (12:17 +0800)]
ENGR00152845-4 ipuv3: add multiple instance support

add multiple instance support.

Signed-off-by: Jason Chen <jason.chen@freescale.com>
11 years agoENGR00152845-3 MSL imx6: msl files changes.
Jason Chen [Wed, 13 Jul 2011 04:16:43 +0000 (12:16 +0800)]
ENGR00152845-3 MSL imx6: msl files changes.

imx6 MSL files change, include clock change for ipu.

Signed-off-by: Jason Chen <jason.chen@freescale.com>
11 years agoENGR00152845-2 MSL imx5: msl files changes.
Jason Chen [Wed, 13 Jul 2011 04:05:41 +0000 (12:05 +0800)]
ENGR00152845-2 MSL imx5: msl files changes.

imx5 MSL files change.

Signed-off-by: Jason Chen <jason.chen@freescale.com>
11 years agoENGR00152845-1 MSL plat-mxc: ipuv3 display support in imx6q
Jason Chen [Wed, 13 Jul 2011 04:02:43 +0000 (12:02 +0800)]
ENGR00152845-1 MSL plat-mxc: ipuv3 display support in imx6q

1. work for multiple ipu instance

2. add mxc_dispdrv support
 A display device driver could call mxc_dispdrv_register(drv) in its
 dev_probe() function.
 - Move all dev_probe() things into mxc_dispdrv_driver->init(), init()
   function should init and feedback setting;
 - Move all dev_remove() things into mxc_dispdrv_driver->deinit();
 - Move all dev_suspend() things into fb_notifier for SUSPEND, if there is;
 - Move all dev_resume() things into fb_notifier for RESUME, if there is;

 ipuv3 fb driver would call mxc_dispdrv_init(drv_name, setting) before a
 fb need be added, with fbi param passing by setting, after mxc_dispdrv_init()
 return, FB driver should get the basic setting about fbi info and ipuv3-hw
 (ipu_id and disp_id).

 there are many display interfaces on imx5x or imx6x platform, all of them
 are connected with ipuv3-DI, mxc_dispdrv can register display device as:

 "lcd" -- display extend port for lcdif
 "ldb" -- lvds bridge on chip (imx5x or imx6x)
 "tve" -- tve for tveout on chip (imx5x)
 "vga" -- vga through tve on chip (imx5x)
 "hdmi" -- hdmi on platform with ddc support
(sii902x on imx53 - not enable yet)
hdmi on chip with ddc support
(imx6x - not enable yet)
 "dvi" -- dvi port with ddc support (not enable yet)

 take tvout as example, a dispdrv structure and register flow could like below:

 static struct mxc_dispdrv_driver tve_drv = {
       .name   = "tve",
       .init   = tvout_init,
       .deinit = tvout_deinit,
 };

  mxc_dispdrv_register(&tve_drv);

 in ipuv3 fb driver could init tve driver like below:

 setting.if_fmt = interface_pix_fmt;
 setting.dft_mode_str = mode_str;
 setting.default_bpp = default_bpp;
 setting.fbi = fbi;
 mxc_dispdrv_init("tve", &setting);

 based on mxc_dispdrv framework, display cmdline option will become
 as below (take mx53 loco board as example -- fb0 for wvga lcd, fb1 for
 XGA vga):

  video=mxcfb0:dev=lcd,800x480M@55,if=RGB565
video=mxcfb1:dev=vga,VGA-XGA,if=GBR24

 "mxcfb0" means setting for fb0 device, ipuv3 fb driver will request setting
 from registered dispdrv, these setting include what's the ipu and what's the
 DI number this dev used. Normally, if one IPU is first used, ipuv3 fb driver
 will create one overlay fb right after current fb driver create.
 Take above cmdline as an example,
 /dev/fb0 will be first fb device on 800x480 lcd.
 /dev/fb1 will be overlay fb device on 800x480 lcd.
 /dev/fb2 will be second fb device on VGA-XGA vga.

 "dev=" means which display device(lcd,ldb,vga etc) you want choose for this fb.
 "800x480M@55 or VGA-XGA" means the mode_str of video mode you want.
 "if=" means the display device hw interface format.

 such setting could be passed by platform data as a default value, cmdline
 option will replace these values if there are.

3. modify ldb/tve driver and add mxc_lcdif driver.
 For ldb driver, there are below modes could be set by cmdline options:

 "ldb=spl0/1" -- split mode on DI0/1
 "ldb=dul0/1" -- dual mode on DI0/1
 "ldb=sin0/1" -- single mode on DI0/1
 "ldb=sep" -- separate mode

 there are two LVDS channels(LVDS0 and LVDS1) which can transfer video datas,
 there two channels can be used as split/dual/single/separate mode.

 split mode means display data from DI0 or DI1 will send to both channels
 LVDS0+LVDS1.
 dual mode means display data from DI0 or DI1 will be duplicated on LVDS0 and
 LVDS1, it said, LVDS0 and LVDS1 has the same content.
 single mode means only work for DI0->LVDS0 or DI1->LVDS1.
 separate mode means you can make DI0->LVDS0 and DI1->LVDS1 work at the same
 time.

Signed-off-by: Jason Chen <jason.chen@freescale.com>
11 years agoENGR00152915-2 mx6q-usb: Add lock for low power mode operation
Peter Chen [Mon, 11 Jul 2011 10:40:25 +0000 (18:40 +0800)]
ENGR00152915-2 mx6q-usb: Add lock for low power mode operation

To avoid interrupting when usb enters/leaves low power mode

Signed-off-by: Peter Chen <peter.chen@freescale.com>
11 years agoENGR00152915-1 mx6q-usb: refine usb phy usage
Peter Chen [Mon, 11 Jul 2011 10:24:50 +0000 (18:24 +0800)]
ENGR00152915-1 mx6q-usb: refine usb phy usage

(Fixed the bug that PLL7 lock failed after usb enters low power mode)
After confirming with IC guys, the phy clock should be used
like below:
- OTG phy clock
EN_USB_CLKS: should be also enabled
PLL3 power: Enable/Disable on the fly
- Host1 phy clock
EN_USB_CLKS and PLL7 power should be also enabled at the initialization
PLL7 power will be totally controller by IC

Signed-off-by: Peter Chen <peter.chen@freescale.com>
11 years agoENGR00152842 mx5x-usb: fix build error
Peter Chen [Fri, 8 Jul 2011 00:49:53 +0000 (08:49 +0800)]
ENGR00152842 mx5x-usb: fix build error

As well as some warnings for compiling

Fix the build error reported by Alan Tull, the error message is:
arch/arm/mach-mx5/usb_dr.c: In function 'mx5_usb_dr_init':
arch/arm/mach-mx5/usb_dr.c:309: error: implicit
declaration of function 'machine_is_mx53_loco'

The below warning message output when compiling mx5x kenrel:
arch/arm/plat-mxc/include/mach/arc_otg.h:36:7:
warning: "CONFIG_ARCH_MX6" is not defined

Signed-off-by: Peter Chen <peter.chen@freescale.com>
11 years agoENGR00152681 - EPDC fb: Updates may be shifted right by 1 column
Danny Nold [Tue, 5 Jul 2011 19:26:49 +0000 (14:26 -0500)]
ENGR00152681 - EPDC fb: Updates may be shifted right by 1 column

- Fixed PxP input left coordinate value.  Was previously being incorrectly
computed such that the value would be incorrect when using 16bpp RGB and an
X coordinate that is offset from 4-pixel alignment by 1 (e.g. x=1, x=5).
The resulting effect was that updates meeting this criteria would be
drawn to the EPD panel shifted to the right by 1 pixel.

Signed-off-by: Danny Nold <dannynold@freescale.com>
11 years agoENGR00152811 mx6q_sabreauto: add gc320/gc355 devices
Richard Zhao [Thu, 7 Jul 2011 11:30:07 +0000 (19:30 +0800)]
ENGR00152811 mx6q_sabreauto: add gc320/gc355 devices

add gc320/gc355 devices

Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
11 years agoENGR00139241-3 mx6 sata: mx5x ahci related modificatoins
Richard Zhu [Tue, 5 Jul 2011 06:46:05 +0000 (14:46 +0800)]
ENGR00139241-3 mx6 sata: mx5x ahci related modificatoins

mx5x ahci related modificatoins when enable ahci on mx6q

Signed-off-by: Richard Zhu <r65037@freescale.com>
11 years agoENGR00139241-2 mx6 sata: enable ahci sata module on mx6q
Richard Zhu [Tue, 5 Jul 2011 07:03:16 +0000 (15:03 +0800)]
ENGR00139241-2 mx6 sata: enable ahci sata module on mx6q

Eanble ahci sata on mx6q

Signed-off-by: Richard Zhu <r65037@freescale.com>
11 years agoENGR00139241-1 mx6 sata: refine the imx ahci sata driver
Richard Zhu [Tue, 5 Jul 2011 08:29:47 +0000 (16:29 +0800)]
ENGR00139241-1 mx6 sata: refine the imx ahci sata driver

refine the imx ahci sata driver, when enable mx6q sata

Signed-off-by: Richard Zhu <r65037@freescale.com>
11 years agoENGR00152773 imx6: clk: *_axi_clk get_rate should be NULL
Richard Zhao [Thu, 7 Jul 2011 07:42:40 +0000 (15:42 +0800)]
ENGR00152773 imx6: clk: *_axi_clk get_rate should be NULL

Clocks that can not change rate should set get_rate to NULL.

Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
11 years agoENGR00152512 mx5x: Update some newest usb changes from 2.6.35 to 2.6.38
Peter Chen [Mon, 4 Jul 2011 08:03:24 +0000 (16:03 +0800)]
ENGR00152512 mx5x: Update some newest usb changes from 2.6.35 to 2.6.38

Besides, it enables mx50 usb functions at rdp board
And add mxc (except for mx6q) phy specific register file

Signed-off-by: Peter Chen <peter.chen@freescale.com>
11 years agoENGR00152493-2 mx6q: add usb function
Peter Chen [Mon, 4 Jul 2011 08:00:54 +0000 (16:00 +0800)]
ENGR00152493-2 mx6q: add usb function

The changes for driver part

- Merging some newest changes at 2.6.38
- Add high speed disconnect check at usb core

Signed-off-by: Peter Chen <peter.chen@freescale.com>
11 years agoENGR00152493-1 mx6q: add usb function
Peter Chen [Mon, 4 Jul 2011 07:58:39 +0000 (15:58 +0800)]
ENGR00152493-1 mx6q: add usb function

Changes at MSL

- Add usb code for mx6q
- Usb host functions (keyboard and u-disk) are verified
- USB host low power mode and wakeup are supported
- defconfig for otg port is for host port
- Using upstream platform device register method
- Delete some useless code, and fix the warning during building

Signed-off-by: Peter Chen <peter.chen@freescale.com>
11 years agoENGR00152547 [MX6Q]enable SD3 CD/WP function
Tony Lin [Wed, 6 Jul 2011 05:34:35 +0000 (13:34 +0800)]
ENGR00152547 [MX6Q]enable SD3 CD/WP function

change SD3 CD/WP pad setting to correctively judge card insertion
and write protection

Signed-off-by: Tony Lin <tony.lin@freescale.com>
11 years agoENGR00152561 [MX6Q]Add U48 MAX7310
Anson Huang [Wed, 6 Jul 2011 07:01:15 +0000 (15:01 +0800)]
ENGR00152561 [MX6Q]Add U48 MAX7310

MX6Q sebreauto has two max7310, U19 and U48,
this commit add U48.

signed-off-by: Zeng Zhaoming <b32542@freescale.com>
Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00152528-2 ENET: add enet support for mx6q.
Zeng Zhaoming [Tue, 5 Jul 2011 01:19:52 +0000 (09:19 +0800)]
ENGR00152528-2 ENET: add enet support for mx6q.

Enabled all speed mode, 10M/100M/1G.

add "fec_mac" kernel parameter to set mac address.

Since clock and board rework issue, some hard code
stays to make it work.

Signed-off-by: Zeng Zhaoming <b32542@freescale.com>
11 years agoENGR00152528-1 MX6Q, ENET: add enet support for mx6q
Zeng Zhaoming [Tue, 5 Jul 2011 01:19:45 +0000 (09:19 +0800)]
ENGR00152528-1 MX6Q, ENET: add enet support for mx6q

Add enet driver support for mx6q sabreauto board.

Since ENET reset lost it mac address, we have to generate
mac address in random.
The prefer way to set mac address is pass from kernel command line
by "fec_mac=${ethaddr}" for sabreauto.

Signed-off-by: Zeng Zhaoming <b32542@freescale.com>
11 years agoENGR00152479 Early uart: Correct Copyright declaration
Zeng Zhaoming [Sun, 3 Jul 2011 17:56:48 +0000 (01:56 +0800)]
ENGR00152479 Early uart: Correct Copyright declaration

Early uart has more than one contributors.
Remove "all right reserve" declare in source code.

Signed-off-by: Zeng Zhaoming <b32542@freescale.com>
11 years agoENGR00152364 MX6,GPIO: GPIO virtual irq tiggered with wrong irq number
Zeng Zhaoming [Thu, 30 Jun 2011 09:50:59 +0000 (17:50 +0800)]
ENGR00152364 MX6,GPIO: GPIO virtual irq tiggered with wrong irq number

GPIO virtual irq triggered with wrong irq number.

It is caused by we enable TZIC and set GPIO virtual irq start at 128.

Signed-off-by: Zeng Zhaoming <b32542@freescale.com>