]> git.karo-electronics.de Git - karo-tx-linux.git/log
karo-tx-linux.git
11 years agoENGR00162583-2 usb driver: avoid class driver access register after usb is off
Peter Chen [Fri, 18 Nov 2011 06:01:06 +0000 (14:01 +0800)]
ENGR00162583-2 usb driver: avoid class driver access register after usb is off

- An well-behavior class driver should disable their endpoints
after being notified disconnect with host, we use all endpoints
are stopped (ep->stopped)  to indicates the class
driver will not visit device driver any more.
the ep-stopped will be initialized as 1 for non-control endpoint
it will be 0 after fsl_ep_enable, and be 1 after fsl_ep_disable.
Where is a non-sleep wait routine at disconnect event for waiting all
endpoints are stopped
- Some controller's (like i.mx6q) DP will change from J
to SE0 slowly after the cable disconnects with host, in that case there
will be a wakeup interrupt after driver enables the wakeup interrupt.
For i.mx6q, there is a discharge routine for DP after the disconnection.
- Should not wait vbus to low during first otg switch, as the wait will
be timeout when the usb cable is connecting to host.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
11 years agoENGR00162583-1 usb msl: avoid class driver access register after usb is off
Peter Chen [Fri, 18 Nov 2011 05:57:47 +0000 (13:57 +0800)]
ENGR00162583-1 usb msl: avoid class driver access register after usb is off

- An well-behavior class driver should disable their endpoints
after being notified disconnect with host, we use all endpoints
are stopped (ep->stopped)  to indicates the class
driver will not visit device driver any more.
the ep-stopped will be initialized as 1 for non-control endpoint
it will be 0 after fsl_ep_enable, and be 1 after fsl_ep_disable.
Where is a non-sleep wait routine at disconnect event for waiting all
endpoints are stopped
- Some controller's (like i.mx6q) DP will change from J
to SE0 slowly after the cable disconnects with host, in that case there
will be a wakeup interrupt after driver enables the wakeup interrupt.
For i.mx6q, there is a discharge routine for DP after the disconnection.
- Should not wait vbus to low during first otg switch, as the wait will
be timeout when the usb cable is connecting to host.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
11 years agoENGR00162319: MX6 - Add support for updated VDDARM voltages
Ranjani Vaidyanathan [Wed, 16 Nov 2011 00:28:30 +0000 (18:28 -0600)]
ENGR00162319: MX6 - Add support for updated VDDARM voltages

Set the ARM LDO voltage to 1.225V to run the part at 1GHz.
Also updated the rest of the voltages based on the latest
available working points.
The boards will need to be modified for this change to work
correctly. Please ensure that the VDDARM_IN is set to 1.38V
(using the potentiometer on the ARM2 board or choosing the correct
resistors on the sabrelite boards).
Also added command line option (arm_freq=800) to set the max ARM freq.
Add:
arm_freq=1000 -> to set the max ARM freq to 1GHz
arm_freq=800 -> to set the max ARM freq to 800MHz.

Default max ARM freq is 1GHz. No other values are currently
supported. If your board is not modified, please add the command
line "arm_freq=800' to avoid failures.

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
11 years agoENGR00162475 ipuv3 fb: fix camera preview failure
Yuxi Sun [Thu, 17 Nov 2011 09:39:14 +0000 (17:39 +0800)]
ENGR00162475 ipuv3 fb: fix camera preview failure

fix camera preview failure when using double buffer mode for frame
buffer

Signed-off-by: Yuxi Sun <b36102@freescale.com>
11 years agoENGR00162506 mx6q: set a correct clock for asrc
Dong Aisheng [Thu, 17 Nov 2011 11:24:54 +0000 (19:24 +0800)]
ENGR00162506 mx6q: set a correct clock for asrc

The ASRC mem to mem mode does not work without this patch.
Bacause 1.5Mhz clock rate is not available which will cause
clock setting fail, change to 7.5Mhz (the mininum one) to make
ASRC work properly.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
11 years agoENGR00162013 - FEC : Fix loss interrupt when add "rootwait"
Fugang Duan [Fri, 11 Nov 2011 06:25:11 +0000 (14:25 +0800)]
ENGR00162013 - FEC : Fix loss interrupt when add "rootwait"

- MII timeout when config ipg 40MHz mode and add "rootwait"
  para in uboot. Kernel will delay before peripheral equipment
  are ready, which lead to CPU loss interrupt.
- So, prolong the timeout time, and increase the MII clock.

Signed-off-by: Fugang Duan <B38611@freescale.com>
11 years agoENGR00162198 [MX6q_ARM2]filesystem: Kernel dump if unplug SD card during bonnie
Tony Lin [Thu, 17 Nov 2011 09:49:15 +0000 (17:49 +0800)]
ENGR00162198 [MX6q_ARM2]filesystem: Kernel dump if unplug SD card during bonnie

add pointer check before accesssing to fix following problem

staErXtT 3'-efms. .(.mmcblk1p2): error: remounting filesystem read-only
Unable to handle kernel NULL pointer dereference at virtual address 00000010
pgd = df334000
[00000010] *pgd=71e85831, *pte=00000000, *ppte=00000000
Internal error: Oops: 17 [#1] PREEMPT SMP
last sysfs file: /sys/devices/platform/sdhci-esdhc-imx.2/mmc_host/mmc1/
mmc1:b368/serial
Modules linked in: ahci_platform ov3640_camera libahci libata
CPU: 1 Not tainted (2.6.38-daily-00808-g43b3e87 #1)
PC is at __mark_inode_dirty+0xc8/0x1b4
LR is at __mark_inode_dirty+0xb8/0x1b4
pc : [<800f7418>] lr : [<800f7408>] psr: 20000013
sp : df14dde0 ip : 00000062 fp : 00000000
r10: 003d2000 r9 : df14df38 r8 : 00000000
r7 : 4ec22acb r6 : 00000003 r5 : 00000000 r4 : e028c720
r3 : 00000001 r2 : 00000065 r1 : 804fe50c r0 : 00000001

Signed-off-by Tony Lin <tony.lin@freescale.com>

11 years agoENGR00162335-2 [mx6q_arm2]SD card 3.0 can't be recognized
Tony Lin [Thu, 17 Nov 2011 04:51:27 +0000 (12:51 +0800)]
ENGR00162335-2 [mx6q_arm2]SD card 3.0 can't be recognized

change mmc rescan delay to 500ms from 200ms.
this will make insert and removal reflection more stable.

Signed-off-by: Tony Lin <tony.lin@freescale.com>
11 years agoENGR00162335-1 [mx6q_arm2]SD card 3.0 can't be recognized
Tony Lin [Thu, 17 Nov 2011 04:51:27 +0000 (12:51 +0800)]
ENGR00162335-1 [mx6q_arm2]SD card 3.0 can't be recognized

fix pin conflict between sd vselect and canbus enable pin.
add 'canbus' to the cmdline will enable canbus driver.
if canbus driver is enabled, sd 3.0 card will not work

Signed-off-by: Tony Lin <tony.lin@freescale.com>
11 years agoENGR00162460:MX6-Revert "MX6-Disable PLL1 when CPU clk is below 400MHz."
Ranjani Vaidyanathan [Thu, 17 Nov 2011 05:16:28 +0000 (23:16 -0600)]
ENGR00162460:MX6-Revert "MX6-Disable PLL1 when CPU clk is below 400MHz."

This reverts commit 564e25cb10cd827ea3fa5cda2487fd978f08bbd7.
Sourcing ARM_CLK from PLL2_PFD_400M is causing issues when setting
the ARM_PODF. So for now source arm_clk from PLL1_SYS_MAIN only.

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
11 years agoENGR00139276-2 MX6 BT: Enable basic bluetooth support to mx6q platform
Lionel Xu [Wed, 16 Nov 2011 09:03:36 +0000 (17:03 +0800)]
ENGR00139276-2 MX6 BT: Enable basic bluetooth support to mx6q platform

Modify uart driver to support DCE/DTE mode

Signed-off-by: Lionel Xu <Lionel.Xu@freescale.com>
11 years agoENGR00139276-1 MX6 BT: Add basic bluetooth support to mx6 platform
Lionel Xu [Wed, 16 Nov 2011 08:57:27 +0000 (16:57 +0800)]
ENGR00139276-1 MX6 BT: Add basic bluetooth support to mx6 platform

Add basic bluetooth support to mx6q platform:
1) Enable bluetooth driver by default
2) Configure uart2 which is used by bluetooth

Signed-off-by: Lionel Xu <Lionel.Xu@freescale.com>
11 years agoENGR00162364 flexcan: fix endless errors causing system hang
Dong Aisheng [Wed, 16 Nov 2011 09:46:59 +0000 (17:46 +0800)]
ENGR00162364 flexcan: fix endless errors causing system hang

Clear state error to avoid ednless state error if error happens
which will call napi_schedule() each time, seems a little high load,
to cause system hang.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
11 years agoENGR00162360 mxc_vout: fix STREAMOFF and G_CROP issues
Jason Chen [Wed, 16 Nov 2011 09:33:15 +0000 (17:33 +0800)]
ENGR00162360 mxc_vout: fix STREAMOFF and G_CROP issues

1. move videobuf_mmap_free to mxc_vout_release.
2. call videobuf_queue_cancel in mxc_vout_release if no streamon called.
3. correct return value of G_CROP for support_window case.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00162358 ipuv3 fb: only check pos when fb is unblank
Jason Chen [Wed, 16 Nov 2011 09:29:19 +0000 (17:29 +0800)]
ENGR00162358 ipuv3 fb: only check pos when fb is unblank

only check pos when fb is unblank

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00162354 ipuv3 device: correct kthread operation for split task
Jason Chen [Wed, 16 Nov 2011 09:23:07 +0000 (17:23 +0800)]
ENGR00162354 ipuv3 device: correct kthread operation for split task

make could_finish to volatile.
do_exit in split_task_thread instead of kthread_stop.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00162334 Revert "ENGR00161764 mx6q: disable gc355 temporally"
wu guoxing [Tue, 15 Nov 2011 05:38:15 +0000 (13:38 +0800)]
ENGR00162334 Revert "ENGR00161764 mx6q: disable gc355 temporally"

This reverts commit 307e94178adc55b6f6230c83ad0dd4d25b18003e.

Signed-off-by: Wu Guoxing <b39297@freescale.com>
11 years agoENGR00162326 GPU: name AMD and Viv GPU correctly
wu guoxing [Wed, 16 Nov 2011 04:16:56 +0000 (12:16 +0800)]
ENGR00162326 GPU: name AMD and Viv GPU correctly

name AMD and Viv GPU correctly in Kconfig

Signed-off-by: Wu Guoxing <b39297@freescale.com>
11 years agoENGR00162325 mx6:Make GPU as kernel module defaultly
wu guoxing [Wed, 16 Nov 2011 03:56:45 +0000 (11:56 +0800)]
ENGR00162325 mx6:Make GPU as kernel module defaultly

GC355 needs to map all reserved memory and consume too much vmalloc space.
So it needs a special kernel command line vmalloc=xxxM.
otherwise, kernel can not boot

Signed-off-by: Wu Guoxing <b39297@freescale.com>
11 years agoENGR00162330 [mx6]Only mask irq#86 and #125 for wait mode
Anson Huang [Wed, 16 Nov 2011 06:04:41 +0000 (14:04 +0800)]
ENGR00162330 [mx6]Only mask irq#86 and #125 for wait mode

These two irqs can't be masked together, otherwise, system
will crash when only booting up one core, and NFS can only
work with 4 cores running. Need hardware team to help find
the root cause, this is only a temp work around.

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00162318: MX6: Donot power down PLL when PLL is disabled
Ranjani Vaidyanathan [Tue, 15 Nov 2011 22:59:38 +0000 (16:59 -0600)]
ENGR00162318: MX6: Donot power down PLL when PLL is disabled

Relocking of PLL sometimes takes longer than 1msec when PLL is
enabled after a power down. The kernel panics if the PLL is not locked
in 1ms. Max time expected by HW is only 500us.
Workaround is to disable the output of the PLL and set it in bypass
mode when its output is not being used.

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
11 years agoENGR00162231 [Thermal]Remove unnecessary message
Anson Huang [Tue, 15 Nov 2011 10:18:48 +0000 (18:18 +0800)]
ENGR00162231 [Thermal]Remove unnecessary message

Remove unnecessary message.

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00162218 mxc_vout: put set position function before set var
Jason Chen [Tue, 15 Nov 2011 09:57:46 +0000 (17:57 +0800)]
ENGR00162218 mxc_vout: put set position function before set var

fb set var will check the window position with window size, so the
correct way is setting position before fb_set_var.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00162208 ipuv3 device: fix jitter issue of split mode
Jason Chen [Tue, 15 Nov 2011 09:33:15 +0000 (17:33 +0800)]
ENGR00162208 ipuv3 device: fix jitter issue of split mode

if play video with split mode, there is chance to see jitter of split stripe.
fix it by correct sync method of split mode kthreads.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00162206 mxc_vout: resize output crop on-the-fly
Jason Chen [Tue, 15 Nov 2011 09:23:06 +0000 (17:23 +0800)]
ENGR00162206 mxc_vout: resize output crop on-the-fly

adding support of set crop during streamon.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00162064 mxc v4l2 output: check ipu task in S_CROP ioctl
Jason Chen [Tue, 15 Nov 2011 04:54:26 +0000 (12:54 +0800)]
ENGR00162064 mxc v4l2 output: check ipu task in S_CROP ioctl

In mxc_vout, ioctl S_CROP should call before S_FMT, for fist time S_CROP,
will not check ipu task, it actually will check in S_FMT, after S_FMT,
S_CROP should check ipu task too.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00162114 mx6: OpenVG can not work with latest kernel
wu guoxing [Mon, 14 Nov 2011 11:44:33 +0000 (19:44 +0800)]
ENGR00162114 mx6: OpenVG can not work with latest kernel

OpenVG can not work with latest kernel
this is caused by some gpu2d clock changes.

Signed-off-by: Wu Guoxing <b39297@freescale.com>
11 years agoENGR00162115 [WDOG]Should suspend timer in LPM
Anson Huang [Mon, 14 Nov 2011 12:31:30 +0000 (20:31 +0800)]
ENGR00162115 [WDOG]Should suspend timer in LPM

We should set the WDOG timer to suspend in low
power mode, or when system suspend, wdog will continue
to run, and reset the system. This WCR_WDZST is a write
once-only register.

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00162093 mx6q: use gpio_set_value_cansleep for sleepable gpios
Dong Aisheng [Mon, 14 Nov 2011 09:31:42 +0000 (17:31 +0800)]
ENGR00162093 mx6q: use gpio_set_value_cansleep for sleepable gpios

This can fix the following issue:
root@freescale ~$ ./ip link set can1 up type can bitrate 125000
flexcan imx6q-flexcan.1: writing ctrl=0x0e312005
------------[ cut here ]------------
WARNING: at drivers/gpio/gpiolib.c:1593 __gpio_set_value+0x64/0x74()
Modules linked in:
[<8005499c>] (unwind_backtrace+0x0/0x108) from [<804db0e8>] (dump_stack+0x20/0x24)
[<804db0e8>] (dump_stack+0x20/0x24) from [<80079ac0>] (warn_slowpath_common+0x5c/0x74)
[<80079ac0>] (warn_slowpath_common+0x5c/0x74) from [<80079b04>] (warn_slowpath_null+0x2c/0x34)
[<80079b04>] (warn_slowpath_null+0x2c/0x34) from [<80297d50>] (__gpio_set_value+0x64/0x74)
[<80297d50>] (__gpio_set_value+0x64/0x74) from [<80064630>] (mx6q_flexcan1_switch+0x50/0x54)
[<80064630>] (mx6q_flexcan1_switch+0x50/0x54) from [<80324bf0>] (flexcan_chip_start+0x2dc/0x378)
[<80324bf0>] (flexcan_chip_start+0x2dc/0x378) from [<80324d0c>] (flexcan_open+0x80/0xe8)
[<80324d0c>] (flexcan_open+0x80/0xe8) from [<8041b7a8>] (__dev_open+0xac/0xf8)
[<8041b7a8>] (__dev_open+0xac/0xf8) from [<80418848>] (__dev_change_flags+0x90/0x148)
[<80418848>] (__dev_change_flags+0x90/0x148) from [<8041b6c4>] (dev_change_flags+0x20/0x58)
[<8041b6c4>] (dev_change_flags+0x20/0x58) from [<804292d8>] (do_setlink+0x1a0/0x7b4)
[<804292d8>] (do_setlink+0x1a0/0x7b4) from [<8042a734>] (rtnl_newlink+0x438/0x488)
[<8042a734>] (rtnl_newlink+0x438/0x488) from [<8042a2d4>] (rtnetlink_rcv_msg+0x200/0x228)
[<8042a2d4>] (rtnetlink_rcv_msg+0x200/0x228) from [<80434e88>] (netlink_rcv_skb+0xcc/0xe8)
[<80434e88>] (netlink_rcv_skb+0xcc/0xe8) from [<8042a0cc>] (rtnetlink_rcv+0x2c/0x34)
[<8042a0cc>] (rtnetlink_rcv+0x2c/0x34) from [<80434aac>] (netlink_unicast+0x2c0/0x328)
[<80434aac>] (netlink_unicast+0x2c0/0x328) from [<804354a0>] (netlink_sendmsg+0x22c/0x350)
[<804354a0>] (netlink_sendmsg+0x22c/0x350) from [<80406e24>] (sock_sendmsg+0xa4/0xc4)
[<80406e24>] (sock_sendmsg+0xa4/0xc4) from [<804073a4>] (sys_sendmsg+0x140/0x270)
[<804073a4>] (sys_sendmsg+0x140/0x270) from [<8004dc40>] (ret_fast_syscall+0x0/0x30)
---[ end trace 4612d184c78ddab8 ]---

Signed-off-by: Dong Aisheng <b29396@freescale.com>
Acked-by: Lily Zhang
11 years agoENGR00162010-2 [Thermal]Add calibration to thermal
Anson Huang [Fri, 11 Nov 2011 10:45:15 +0000 (18:45 +0800)]
ENGR00162010-2 [Thermal]Add calibration to thermal

1.  Read calibration from fuse to adjust formula
for thermal driver;
2.  For the parts that didn't contain valid
calibration data, cooling device will be disabled;

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00162010-1 [MX6]Build in thermal driver
Anson Huang [Fri, 11 Nov 2011 10:43:30 +0000 (18:43 +0800)]
ENGR00162010-1 [MX6]Build in thermal driver

Build in thermal driver by default.

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoARM: 6674/1: LPAE: use long long format when printing physical addresses and ptes
Will Deacon [Tue, 15 Feb 2011 13:31:37 +0000 (14:31 +0100)]
ARM: 6674/1: LPAE: use long long format when printing physical addresses and ptes

[Frank Li]Fix mx6 boot failure issue during cherry-pick

For the Kernel to support 2 level and 3 level page tables, physical
addresses (and also page table entries) need to be 32 or 64-bits depending
upon the configuration.

This patch uses the %08llx conversion specifier for physical addresses
and page table entries, ensuring that they are cast to (long long) so
that common code can be used regardless of the datatype widths.

Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
11 years agoENGR00161948 mxc v4l2 output: fix case of input crop with xoffset
Jason Chen [Mon, 14 Nov 2011 02:34:49 +0000 (10:34 +0800)]
ENGR00161948 mxc v4l2 output: fix case of input crop with xoffset

run test like:
/unit_tests//mxc_v4l2_output.out -iw 1280 -ih 720 -cr 1024 700 40 0 -ow 1024
-oh 700 /unit_tests/720p.yuv
Under IPU IC bypass mode, the output color is not correct.
And sometimes come out tearing issue.

Fix them by modify fb driver adding xpanstep support and set vb->state to DONE
after it finish show.

When previous videobuf finish show and next videobuf ready to show, set
VIDEOBUF_DONE state to avoid tearing issue, which make sure showing buffer will
not be dequeue to write new data. It also bring side-effect that the last buffer
can not be dequeue correctly, app need take care about it.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00143921-3 - PLAT-MXC - Update IOMUX settings for EPDC
Danny Nold [Wed, 9 Nov 2011 22:20:32 +0000 (16:20 -0600)]
ENGR00143921-3 - PLAT-MXC - Update IOMUX settings for EPDC

- Modified IOMUX keeper settings for EPDC pads

Signed-off-by: Danny Nold <dannynold@freescale.com>
11 years agoENGR00143921-2 - MACH-MX5 - Add EPDC/MAX17135 V3P3 regulator
Danny Nold [Wed, 9 Nov 2011 21:58:22 +0000 (15:58 -0600)]
ENGR00143921-2 - MACH-MX5 - Add EPDC/MAX17135 V3P3 regulator

- Added V3P3 regulator definitions to board file
- Added V3P3 GPIO defines and setup in board files
- Changed V220 panel timings to match settings used for certification

Signed-off-by: Danny Nold <dannynold@freescale.com>
11 years agoENGR00143921-1 - EPDC/MAX17135: Add controls for V3P3 regulator
Danny Nold [Thu, 3 Nov 2011 18:05:36 +0000 (13:05 -0500)]
ENGR00143921-1 - EPDC/MAX17135: Add controls for V3P3 regulator

- Added V3P3 regulator to max17135
- Added calls to enable/disable V3P3 regulator from EPDC driver
- Improved Kconfig detail for max17135 MFD and HWMON entries

Signed-off-by: Danny Nold <dannynold@freescale.com>
11 years agoENGR00162048 Align the MX6 Sabrelite set_cpu_voltage() with ARM2
Mahesh Mahadevan [Fri, 11 Nov 2011 14:39:16 +0000 (08:39 -0600)]
ENGR00162048 Align the MX6 Sabrelite set_cpu_voltage() with ARM2

Align the implementation, eventually this should go to a common place
across MX6 platforms

Signed-off-by: Mahesh Mahadevan <r9aadq@freescale.com>
11 years agoENGR00162035 Fix usage of snd_soc_update_bits() func in SGTL5000 driver
Mahesh Mahadevan [Thu, 10 Nov 2011 23:20:31 +0000 (17:20 -0600)]
ENGR00162035 Fix usage of snd_soc_update_bits() func in SGTL5000 driver

Some calls to the snd_soc_update_bits() uses an incorrect value for the
mask field

Signed-off-by: Mahesh Mahadevan <r9aadq@freescale.com>
11 years agoENGR00160525 MX6: fix mmu.c and cryptodev warning
Frank Li [Fri, 11 Nov 2011 02:29:48 +0000 (10:29 +0800)]
ENGR00160525 MX6: fix mmu.c and cryptodev warning

skip build cryptodev because no one use it now.

Signed-off-by: Frank Li <Frank.Li@freescale.com>
11 years agoENGR00161608 SSI: support 24bit samplerate
Gary Zhang [Fri, 11 Nov 2011 05:19:13 +0000 (13:19 +0800)]
ENGR00161608 SSI: support 24bit samplerate

Add 24bit sample rate playback support for SSI and sgtl5000
codec driver.

Signed-off-by: Gary Zhang <b13634@freescale.com>
11 years agoENGR00161617-1 [MX6] : Fix the build warning.
Fugang Duan [Fri, 11 Nov 2011 03:36:21 +0000 (11:36 +0800)]
ENGR00161617-1 [MX6] : Fix the build warning.

- Fix the building warning:
  common.h:75: warning: 'struct fec_platform_data' declared
  inside parameter list

Signed-off-by: Fugang Duan <B38611@freescale.com>
11 years agoENGR00159982-1 [MX6] : Fix FEC get clock rate function.
Fugang Duan [Thu, 10 Nov 2011 07:58:13 +0000 (15:58 +0800)]
ENGR00159982-1 [MX6] : Fix FEC get clock rate function.

- The clock formula has error, fix the get clock rate
  for FEC module.

Signed-off-by: Fugang Duan <B38611@freescale.com>
11 years agoENGR00161926 Change the PAD settings on SD3 Write Protect
Mahesh Mahadevan [Thu, 10 Nov 2011 11:54:37 +0000 (05:54 -0600)]
ENGR00161926 Change the PAD settings on SD3 Write Protect

Update the PAD settings to lower pull-up resistor as this was
causing WP to not be detected.

Signed-off-by: Mahesh Mahadevan <r9aadq@freescale.com>
11 years agoENGR00161848 mx5x: usb: fix build error
Peter Chen [Thu, 10 Nov 2011 02:45:23 +0000 (10:45 +0800)]
ENGR00161848 mx5x: usb: fix build error

Fix the build error for mx5x

arch/arm/plat-mxc/usb_common.c: In function 'fsl_usb_host_init':
arch/arm/plat-mxc/usb_common.c:526:
error: 'UCTRL_OVER_CUR_POL' undeclared (first use in this function)
arch/arm/plat-mxc/usb_common.c:526: error:
(Each undeclared identifier is reported only once
arch/arm/plat-mxc/usb_common.c:526:
error: for each function it appears in.)
arch/arm/plat-mxc/usb_common.c:529:
error: 'UCTRL_OVER_CUR_DIS' undeclared (first use in this function)
arch/arm/plat-mxc/usb_common.c: In function 'usbotg_init':
arch/arm/plat-mxc/usb_common.c:840:
error: 'UCTRL_OVER_CUR_POL' undeclared (first use in this function)
arch/arm/plat-mxc/usb_common.c:843:
error: 'UCTRL_OVER_CUR_DIS' undeclared (first use in this function)
make[1]: *** [arch/arm/plat-mxc/usb_common.o] Error 1
make: *** [arch/arm/plat-mxc] Error 2

Signed-off-by: Peter Chen <peter.chen@freescale.com>
11 years agoENGR00161845 mxc v4l2 output: add check of S_CROP width and height
Jason Chen [Thu, 10 Nov 2011 01:42:12 +0000 (09:42 +0800)]
ENGR00161845 mxc v4l2 output: add check of S_CROP width and height

To avoid CROP width=0 or height=0 case.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00161757 imx: add i2c depends of some drivers
Jason Chen [Wed, 9 Nov 2011 07:12:31 +0000 (15:12 +0800)]
ENGR00161757 imx: add i2c depends of some drivers

add i2c depends for mxc edid/dvi/hdmi driver.
add i2c depends for codec soc sgtl5000 and cs42888.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00161518 [MX6] USB: Add USB OC(Over Current) code
make shi [Wed, 9 Nov 2011 10:59:00 +0000 (18:59 +0800)]
ENGR00161518 [MX6] USB: Add USB OC(Over Current) code

Add config USB OC setting code for mx6q, and make the OC default off.
After adding it, fixing the loop less code during kernel boot in mx6qLite.

Signed-off-by: make shi <b15407@freescale.com>
11 years agoENGR00161617 - [MX6] : FEC get MAC address from OCOTP.
Fugang Duan [Tue, 8 Nov 2011 07:54:47 +0000 (15:54 +0800)]
ENGR00161617 - [MX6] : FEC get MAC address from OCOTP.

- FEC get the default MAC address from OCOTP.
- If the MAC address is all zero, get the random address.
- But, if add para "fec_mac=xx:xx:xx:xx:xx:xx" in uboot,
  FEC will get the last MAC address from uboot para.

Signed-off-by: Fugang Duan <B38611@freescale.com>
11 years agoENGR00161766 [MX6] change ov5640_mipi to a module
Even Xu [Wed, 9 Nov 2011 08:06:28 +0000 (16:06 +0800)]
ENGR00161766 [MX6] change ov5640_mipi to a module

1. Config MIPI CSI2 driver as a default build in driver
2. Change ov5640 mipi sensor as a module

Signed-off-by: Even Xu <b21019@freescale.com>
11 years agoENGR00161761 - [MX6] : workaround for IEEE 1588.
Fugang Duan [Wed, 9 Nov 2011 06:39:14 +0000 (14:39 +0800)]
ENGR00161761 - [MX6] : workaround for IEEE 1588.

- IEEE 1588 use 40MHz divided from pll3 480MHz. And use 480M ddr
  init script. So, cannot disable pll3 in clock.c file.

Signed-off-by: Fugang Duan <B38611@freescale.com>
11 years agoENGR00161764 mx6q: disable gc355 temporally
Richard Zhao [Wed, 9 Nov 2011 07:01:45 +0000 (15:01 +0800)]
ENGR00161764 mx6q: disable gc355 temporally

Reasons:
 - gc355 suspend failed. which cause the whole system suspend failed.
 - gc355 cause reserved memory must be ioremap, consume too much vmalloc space.
 - gc355 can not work in 4.6.2 gpu driver.

Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
11 years agoENGR00161755 MX6Q/MFGTOOL : disable GPU for MFGTOOL
Huang Shijie [Wed, 9 Nov 2011 05:36:17 +0000 (13:36 +0800)]
ENGR00161755 MX6Q/MFGTOOL : disable GPU for MFGTOOL

The GPU module will eat up lots of memory.
So disable GPU to save same memory.

Signed-off-by: Huang Shijie <b32955@freescale.com>
11 years agoENGR00161524 mx6q: fix pin conflicts between spdif and flexcan
Dong Aisheng [Mon, 7 Nov 2011 08:41:54 +0000 (16:41 +0800)]
ENGR00161524 mx6q: fix pin conflicts between spdif and flexcan

Dynamically checking whether enable spdif or flexcan via a boot
param 'spdif'.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
11 years agoENGR00161643-3 UTP : bugfix
Huang Shijie [Tue, 8 Nov 2011 09:39:35 +0000 (17:39 +0800)]
ENGR00161643-3 UTP : bugfix

The origin code lossed one line.
fix it.

Signed-off-by: Huang Shijie <b32955@freescale.com>
11 years agoENGR00161643-2 MX6Q-lite : enlarge the mtd partition of NOR
Huang Shijie [Tue, 8 Nov 2011 09:39:06 +0000 (17:39 +0800)]
ENGR00161643-2 MX6Q-lite : enlarge the mtd partition of NOR

64k is too small for uboot.
So enlarge the partition to 256K.

Signed-off-by: Huang Shijie <b32955@freescale.com>
11 years agoENGR00161643-1 MX6Q-lite : add SPI-NOR support to MFGTOOL
Huang Shijie [Tue, 8 Nov 2011 09:38:32 +0000 (17:38 +0800)]
ENGR00161643-1 MX6Q-lite : add SPI-NOR support to MFGTOOL

add spi-nor support to the defconfig.

Signed-off-by: Huang Shijie <b32955@freescale.com>
11 years agoENGR00161315 IPUv3 fix VDIC split line between up/down stripe
Sandor Yu [Fri, 4 Nov 2011 06:34:13 +0000 (14:34 +0800)]
ENGR00161315 IPUv3 fix VDIC split line between up/down stripe

In IPU split mode, if deinterlace is enable, there are obvious line
between up and down stripe, it is cause by VDIC module. Fix it.

Signed-off-by: Sandor YU <r01008@freescale.com>
11 years agoENGR00161631 [ASRC]fix build error
Tony Lin [Tue, 8 Nov 2011 08:46:14 +0000 (16:46 +0800)]
ENGR00161631 [ASRC]fix build error

if kernel hacking -> Big Kernel Lock is deselected, ASRC will build fail as:

drivers/mxc/asrc/mxc_asrc.c: In function 'asrc_input_dma_callback':
drivers/mxc/asrc/mxc_asrc.c:873: error: 'TASK_INTERRUPTIBLE'
undeclared (first use in this function)
drivers/mxc/asrc/mxc_asrc.c:873: error: (Each undeclared identifier
is reported only once
drivers/mxc/asrc/mxc_asrc.c:873: error: for each function it appears in.)
drivers/mxc/asrc/mxc_asrc.c: In function 'asrc_output_dma_callback':
drivers/mxc/asrc/mxc_asrc.c:915: error: 'TASK_INTERRUPTIBLE' undeclared
(first use in this function)
drivers/mxc/asrc/mxc_asrc.c: In function 'asrc_ioctl':
drivers/mxc/asrc/mxc_asrc.c:1259: error: 'TASK_INTERRUPTIBLE' undeclared
(first use in this function)
drivers/mxc/asrc/mxc_asrc.c:1259: error: implicit declaration of function
'signal_pending'
drivers/mxc/asrc/mxc_asrc.c:1259: error: implicit declaration of function
'schedule_timeout'
CC      fs/ext4/symlink.o
drivers/mxc/asrc/mxc_asrc.c: In function 'mxc_asrc_close':
drivers/mxc/asrc/mxc_asrc.c:1554: error: 'TASK_INTERRUPTIBLE' undeclared
(first use in this function)
make[3]: *** [drivers/mxc/asrc/mxc_asrc.o] Error 1

Signed-off-by: Tony Lin <tony.lin@freescale.com>
11 years agoENGR00161598 [MX6] OTG Driver:fix OTG function issue
make shi [Tue, 8 Nov 2011 06:57:05 +0000 (14:57 +0800)]
ENGR00161598 [MX6] OTG Driver:fix OTG function issue

- Add Wait for Vbus change stable function for remove Vbus interrupt.
- fix insert a HOST cable ,device modprobe issue.

Signed-off-by: make shi <b15407@freescale.com>
11 years agoENGR00161598 [MX6]OTG driver: load fail issue
make shi [Tue, 8 Nov 2011 06:54:28 +0000 (14:54 +0800)]
ENGR00161598 [MX6]OTG driver: load fail issue

[MX6] OTG load fail when remove all usb module

Signed-off-by: make shi <b15407@freescale.com>
11 years agoENGR00161607 mxc v4l2 output: return real phys offset after mmap
Jason Chen [Tue, 8 Nov 2011 06:07:14 +0000 (14:07 +0800)]
ENGR00161607 mxc v4l2 output: return real phys offset after mmap

vpu unit test failed because it need phys offset of each buffer allocated by
v4l2 output driver.
videobuf dma contig method only allocate real dma buffer when user call mmap.
Fix this issue by adding code to querybuf ioctl, return real phys after
buffer mmaped.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00161526 mxc v4l2 output: 720p ic bypass output may failed in block
Jason Chen [Mon, 7 Nov 2011 08:46:36 +0000 (16:46 +0800)]
ENGR00161526 mxc v4l2 output: 720p ic bypass output may failed in block

Repeat play with below cmdline:
/unit_tests/mxc_v4l2_output.out -iw 1280 -ih 720 -ow 1280 -oh
720 -fr 10 -l 1 /unit_tests/720p.yuv

Found the ipu update offset function cause this issue, it can be
work-around by setting it only when value changed.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00161510 [MX6]Fix build warning
Anson Huang [Mon, 7 Nov 2011 03:26:19 +0000 (11:26 +0800)]
ENGR00161510 [MX6]Fix build warning

arch/arm/mach-mx6/cpu.c:39: warning:
'arm_base' defined but not used.

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00161483 Add SPI-NOR support on MX6 Sabre-lite
Mahesh Mahadevan [Fri, 4 Nov 2011 14:45:37 +0000 (09:45 -0500)]
ENGR00161483 Add SPI-NOR support on MX6 Sabre-lite

Add support to access SST SPI-NOR on MX6 Sabre-lite

Signed-off-by: Mahesh Mahadevan <r9aadq@freescale.com>
11 years agoENGR00161487: Fix SD/USB/FEC performance issue.
Ranjani Vaidyanathan [Fri, 4 Nov 2011 21:19:19 +0000 (16:19 -0500)]
ENGR00161487: Fix SD/USB/FEC performance issue.

When WAIT mode is not enabled, execute cpu_do_idle() code.
Currently WAIT mode requires the code to be run from IRAM with caches disabled.
No L2 cache access should be done for a specified period after the system exits
WAIT mode. This delay and running code from IRAM adversely affects the
SDHC performance.
Hardware team is looking into the extended delay that is required.
Till its root caused, default should be to execute cpu_do_idle() and
disable entry into WAIT mode.

Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
11 years agoENGR00161484 Add HDMI audio support on MX6 Sabre-lite
Mahesh Mahadevan [Fri, 4 Nov 2011 15:31:46 +0000 (10:31 -0500)]
ENGR00161484 Add HDMI audio support on MX6 Sabre-lite

Add support for HDMI audio on MX6 Sabre-lite

Signed-off-by: Mahesh Mahadevan <r9aadq@freescale.com>
11 years agoENGR00161474 [mx6q] Fix build break in imx6_updater_defconfig
Nancy Chen [Fri, 4 Nov 2011 16:05:34 +0000 (11:05 -0500)]
ENGR00161474 [mx6q] Fix build break in imx6_updater_defconfig

Turn on Anatop regulator.

Signed-off-by: Nancy Chen <Nancy.Chen@freescale.com>
11 years agoENGR00161447-2 ARM2: fix section missmach warning
Frank Li [Fri, 4 Nov 2011 10:43:14 +0000 (18:43 +0800)]
ENGR00161447-2 ARM2: fix section missmach warning

fix section mismatch warning

Signed-off-by: Frank Li <Frank.Li@freescale.com>
11 years agoENGR00161447-1 v4l2: fix section missmach warning
Frank Li [Fri, 4 Nov 2011 10:43:14 +0000 (18:43 +0800)]
ENGR00161447-1 v4l2: fix section missmach warning

fix section mismatch warning

Signed-off-by: Frank Li <Frank.Li@freescale.com>
11 years agoENGR00161444 V4L2: Fix v4l2 capture build error
Frank Li [Fri, 4 Nov 2011 10:19:45 +0000 (18:19 +0800)]
ENGR00161444 V4L2: Fix v4l2 capture build error

Fix v4l2 build error.
revert mxc_v4l2.h to 01c98ebc63d

Signed-off-by: Frank Li <Frank.Li@freescale.com>
11 years agoENGR00159982 - [MX6Q]: Add FEC phy save power function.
Fugang Duan [Fri, 4 Nov 2011 08:21:31 +0000 (16:21 +0800)]
ENGR00159982 - [MX6Q]: Add FEC phy save power function.

- Set Phy AR8031 to saving power mode while no cable connect.

Signed-off-by: Fugang Duan <B38611@freescale.com>
11 years agoENGR00159982 - FEC: low power mode when FEC is no use.
Fugang Duan [Fri, 4 Nov 2011 08:13:43 +0000 (16:13 +0800)]
ENGR00159982 - FEC: low power mode when FEC is no use.

- Set phy AR8031 to save power mode when no cable connect.
- Close enet clock gate when FEC is no use.

Signed-off-by: Fugang Duan <B38611@freescale.com>
11 years agoENGR00161256 mx6q: remove CAN_DEBUG by default in defconfig
Dong Aisheng [Fri, 4 Nov 2011 08:17:16 +0000 (16:17 +0800)]
ENGR00161256 mx6q: remove CAN_DEBUG by default in defconfig

Do not show debug messages by default.

11 years agoENGR00161382-4 MX6Q MIPI CSI2: enable MIPI CSI2
Even Xu [Fri, 4 Nov 2011 05:56:11 +0000 (13:56 +0800)]
ENGR00161382-4 MX6Q MIPI CSI2: enable MIPI CSI2

1. enable MIPI CSI2 driver
2. change v4l2 cowork with mipi csi2
3. enable ov5640 mipi mode

Signed-off-by: Even Xu <b21019@freescale.com>
11 years agoENGR00161382-3 MX6Q MIPI CSI2: Add MIPI CSI2 driver
Even Xu [Fri, 4 Nov 2011 05:54:22 +0000 (13:54 +0800)]
ENGR00161382-3 MX6Q MIPI CSI2: Add MIPI CSI2 driver

Add MIPI CSI2 driver

Signed-off-by: Even Xu <b21019@freescale.com>
11 years agoENGR00161382-2 MX6Q MIPI CSI2: initialize platform data
Even Xu [Fri, 4 Nov 2011 05:51:08 +0000 (13:51 +0800)]
ENGR00161382-2 MX6Q MIPI CSI2: initialize platform data

Initialize MIPI CSI2 platform data

Signed-off-by: Even Xu <b21019@freescale.com>
11 years agoENGR00161382-1 MX6Q MIPI CSI2: Add platform data
Even Xu [Fri, 4 Nov 2011 05:46:01 +0000 (13:46 +0800)]
ENGR00161382-1 MX6Q MIPI CSI2: Add platform data

Add MIPI csi2 platform data

Signed-off-by: Even Xu <b21019@freescale.com>
11 years agoENGR00161383 [MX6Q] USB OTG: enable OTG driver
make shi [Fri, 4 Nov 2011 09:24:05 +0000 (17:24 +0800)]
ENGR00161383 [MX6Q] USB OTG: enable OTG driver

Enable OTG driver on mx6q board

Signed-off-by: make shi <b15407@freescale.com>
11 years agoENGR00161383 [MX6Q] USB OTG: enable OTG driver
make shi [Fri, 4 Nov 2011 09:18:07 +0000 (17:18 +0800)]
ENGR00161383 [MX6Q] USB OTG: enable OTG driver

Enable OTG driver on mx6q board

Signed-off-by: make shi <b15407@freescale.com>
11 years agoENGR00158360 imx MSL: fix __arch_adjust_zones function
Jason Chen [Fri, 4 Nov 2011 08:27:04 +0000 (16:27 +0800)]
ENGR00158360 imx MSL: fix __arch_adjust_zones function

fix __arch_adjust_zones if MXC_DMA_ZONE_SIZE if bigger than system memory

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00160878-2 mxc v4l2 output: new mxc v4l2 output driver based on videobuf
Jason Chen [Fri, 4 Nov 2011 08:42:40 +0000 (16:42 +0800)]
ENGR00160878-2 mxc v4l2 output: new mxc v4l2 output driver based on videobuf

This new v4l2 output driver is based on videobuf, using dma contig alloc method.
It creates video dev node for each display framebuffer begin from /dev/video16
by default.
If need post-processing, this driver will do it by ipu pp driver which support:
 - resizing
 - CSC
 - rotate
 - deinterlacing
If no need post-processing, the IPU IC will be bypassed as old driver, the
buf will be set to fb buffer directly by crack fb smem_start.
The user should do setting before streamon like below:
1. set output crop
2. set ctrl like rotate/vflip/hflip/deinterlacing motion
3. set fmt
4. reqbuf

The new features compare to old driver:
 - support multi-instance
 - support user point buffer
 - runtime suspend/resume
For suspend/resume, still has chance to meet issue on mx6q, will fix later.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00160878-1 mxc v4l2 output: new mxc v4l2 output driver based on videobuf
Jason Chen [Thu, 27 Oct 2011 02:31:51 +0000 (10:31 +0800)]
ENGR00160878-1 mxc v4l2 output: new mxc v4l2 output driver based on videobuf

This new v4l2 output driver is based on videobuf, using dma contig alloc method.
It creates video dev node for each display framebuffer begin from /dev/video16
by default.
If need post-processing, this driver will do it by ipu pp driver which support:
 - resizing
 - CSC
 - rotate
 - deinterlacing
If no need post-processing, the IPU IC will be bypassed as old driver, the
buf will be set to fb buffer directly by crack fb smem_start.
The user should do setting before streamon like below:
1. set output crop
2. set ctrl like rotate/vflip/hflip/deinterlacing motion
3. set fmt
4. reqbuf

The new features compare to old driver:
 - support multi-instance
 - support user point buffer
 - runtime suspend/resume
For suspend/resume, still has chance to meet issue on mx6q, will fix later.

This patch for head file.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00160877 ipuv3: pm method change
Jason Chen [Thu, 27 Oct 2011 02:25:33 +0000 (10:25 +0800)]
ENGR00160877 ipuv3: pm method change

1. use late suspend early resume
2. disable/enable clk when suspend/resume with clk on.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00160876 videobuf: add timestamp for user point buffer
Jason Chen [Thu, 27 Oct 2011 02:21:29 +0000 (10:21 +0800)]
ENGR00160876 videobuf: add timestamp for user point buffer

1. add timestamp for userpoint buffer
2. use pgprot_writecombine for mmap

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00160875-3 ipuv3 dev: low performance if enable rotation
Jason Chen [Fri, 4 Nov 2011 08:00:09 +0000 (16:00 +0800)]
ENGR00160875-3 ipuv3 dev: low performance if enable rotation

1. no dma alloc for rot buf every time which will cost time.
2. fix split mode condition.
3. export some functions.

This patch for driver file.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00160875-2 ipuv3 dev: low performance if enable rotation
Jason Chen [Thu, 27 Oct 2011 01:33:29 +0000 (09:33 +0800)]
ENGR00160875-2 ipuv3 dev: low performance if enable rotation

1. no dma alloc for rot buf every time which will cost time.
2. fix split mode condition.
3. export some functions.

This patch for MSL file.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00160875-1 ipuv3 dev: low performance if enable rotation
Jason Chen [Thu, 27 Oct 2011 01:32:41 +0000 (09:32 +0800)]
ENGR00160875-1 ipuv3 dev: low performance if enable rotation

1. no dma alloc for rot buf every time which will cost time.
2. fix split mode condition.
3. export some functions.

This patch for common head file.

Signed-off-by: Jason Chen <b02280@freescale.com>
11 years agoENGR00161314-3 mx6q usb-host: add hsic support
Peter Chen [Thu, 3 Nov 2011 06:14:09 +0000 (14:14 +0800)]
ENGR00161314-3 mx6q usb-host: add hsic support

Header file

Signed-off-by: Peter Chen <peter.chen@freescale.com>
11 years agoENGR00161314-2 mx6q usb-host: add hsic support
Peter Chen [Thu, 3 Nov 2011 06:13:12 +0000 (14:13 +0800)]
ENGR00161314-2 mx6q usb-host: add hsic support

Device part

Add HSIC run and HSIC phy's definition

Signed-off-by: Peter Chen <peter.chen@freescale.com>
11 years agoENGR00161314-1 mx6q usb-host: add hsic support
Peter Chen [Thu, 3 Nov 2011 05:57:25 +0000 (13:57 +0800)]
ENGR00161314-1 mx6q usb-host: add hsic support

MSL part

Add HSIC support for Host2 and Host3, for HSIC mode, there
is not usb phy needed, the usb device is always at the board

- Validation hardware: iMX6Q Validation Port Card and Re-worked
Rev X3 board, for hardware rework detail, contact Ken Sun (b03826)

- Validation device: HSIC interface SMSC HUB(USB4640) and Host 3.
Host 2 is coding finishes, but not verified due to hardware limitation.

- Pin Conflict with Ethernet, order to use HSIC, the user need
disable ethernet function at both u-boot and linux kernel.
For u-boot: please undefine CONFIG_MXC_FEC at your board config file
For kernel: please define CONFIG_USB_EHCI_ARC_HSIC, the entry is:
Device Drivers---> USB support---> Support HSIC Host controller
for Freescale SoC

- Suspend/resume and wakeup are not supported due to IC issues,
these IC issues will be fixed at TO1.1 for i.mx6, software will
add these support after receiving TO1.1 chip.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
11 years agoENGR00161215-2 vpu: Add ioctls for querying and setting bitwork memory
Sammy He [Wed, 2 Nov 2011 14:26:18 +0000 (22:26 +0800)]
ENGR00161215-2 vpu: Add ioctls for querying and setting bitwork memory

Add VPU_IOC_QUERY_BITWORK_MEM and VPU_IOC_SET_BITWORK_MEM ioctls
implementation for registerring bitwork memory allocated from user
space to vpu driver.

Signed-off-by: Sammy He <r62914@freescale.com>
11 years agoENGR00161215-1 arch/arm: Add two new IOCTLs in mxc_vpu.h
Sammy He [Wed, 2 Nov 2011 14:25:16 +0000 (22:25 +0800)]
ENGR00161215-1 arch/arm: Add two new IOCTLs in mxc_vpu.h

Add IOCTL VPU_IOC_QUERY_BITWORK_MEM and VPU_IOC_SET_BITWORK_MEM
for vpu driver.
The two ioctls can be used when user allocates working buffer
from user space, for exmaple, allocating it from pmem interface
on android, then register it to vpu driver.

Signed-off-by: Sammy He <r62914@freescale.com>
11 years agoENGR00161285 [MX6Q ARM2] make spdif and i2c3 mutually exclusive
Alan Tull [Wed, 2 Nov 2011 15:46:57 +0000 (10:46 -0500)]
ENGR00161285 [MX6Q ARM2] make spdif and i2c3 mutually exclusive

Both S/PDIF in and I2C3 SDA use GPIO_16, so only one can be enabled
at a time.

Add early param "spdif_in" to enable S/PDIF in.  Default is to
enable I2C3 and leave S/PDIF in disabled.

Signed-off-by: Alan Tull <alan.tull@freescale.com>
11 years agoENGR00161256-2 mx6q arm2: add flexcan support
Dong Aisheng [Wed, 2 Nov 2011 11:23:31 +0000 (19:23 +0800)]
ENGR00161256-2 mx6q arm2: add flexcan support

Add flexcan support.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
11 years agoENGR00161256-1 flexcan: convert driver to use platform ids
Dong Aisheng [Wed, 2 Nov 2011 11:12:52 +0000 (19:12 +0800)]
ENGR00161256-1 flexcan: convert driver to use platform ids

Using platform ids to handle differences between different SoCs.

The default rx fifo global mask register, newly introduced in mx6q,
is 0xffffffff and the reset value in Message buffers(can be reused as the
memory of rx fifo filter table) is none zero, it will wrongly cause the
can to be unable to recevie packets due to filter.
We need to clear it to make sure to receive all packets.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
11 years agoENGR00161321 [MX6 ARM2]Disable Warm reset
Anson Huang [Thu, 3 Nov 2011 07:51:35 +0000 (15:51 +0800)]
ENGR00161321 [MX6 ARM2]Disable Warm reset

Current warm reset is not working with MMDC_CH1 bypass
bit set, now we disable warm reset to workaround it for
the coming release. Then, wdog reset will be cold reset.

Signed-off-by: Anson Huang <b20788@freescale.com>
11 years agoENGR00161312 - FEC: fix build warning
Fugang Duan [Thu, 3 Nov 2011 05:58:16 +0000 (13:58 +0800)]
ENGR00161312 - FEC: fix build warning

fix build warning:
> drivers/net/fec.c:435: warning: unused variable 'estatus'

Signed-off-by: Fugang Duan <B38611@freescale.com>
11 years agoENGR00161300 MXC V4L2 capture: fix build warning
Yuxi [Thu, 3 Nov 2011 02:25:54 +0000 (10:25 +0800)]
ENGR00161300 MXC V4L2 capture: fix build warning

fix build warning:
> drivers/media/video/mxc/capture/mxc_v4l2_capture.c:2457: warning:
> comparison between pointer and integer

Signed-off-by: Yuxi Sun <b36102@freescale.com>
11 years agoENGR00161234-2: Enable ocotp clock for mx6q
Terry Lv [Wed, 2 Nov 2011 09:26:06 +0000 (17:26 +0800)]
ENGR00161234-2: Enable ocotp clock for mx6q

Add clock enable code to arch.
OCOTP driver missed code to enable clock in driver.
Thus if ocotp clock is not enabled in clock.c, ocotp will not work.

We will remove ocotp clock enable code in board file and leave this
operation to driver.

Signed-off-by: Terry Lv <r65388@freescale.com>
11 years agoENGR00161234-1: Enable ocotp clock for mx6q
Terry Lv [Wed, 2 Nov 2011 09:14:39 +0000 (17:14 +0800)]
ENGR00161234-1: Enable ocotp clock for mx6q

Add clock enable code to driver.
OCOTP driver missed code to enable clock in driver.
Thus if ocotp clock is not enabled in clock.c, ocotp will not work.

Signed-off-by: Terry Lv <r65388@freescale.com>