Commit Graph

158339 Commits

Author SHA1 Message Date
Liu Ying
e603df439e ENGR00120500 V4L2 overlay:Unblank overlay fb before enable PRP_VF channel
This change makes us get rid of DIx_SYNC_DISP_ERR. The error sometimes
causes the backgound framebuffer reinitialized automatically, even if
we preview captured video on overlay framebuffer.

Signed-off-by: Liu Ying <b17645@freescale.com>
2010-08-10 11:46:43 -05:00
Ran Ferderber
f2711d576d ENGR00120521 NV12 pixelformat fail on VDI
Fix stride calculation

Signed-off-by: Ran Ferderber r53561@freescale.com
2010-08-10 11:46:42 -05:00
Ran Ferderber
7fdcf663c9 ENGR00120523 Down sizing of stream bigger then 1024 two stripe failed
Fix stripe size calculation

Signed-off-by: Ran Ferderber r53561@freescale.com
2010-08-10 11:46:42 -05:00
Robby Cai
7a5f1cc19f ENGR00120447-2 FIX: MX23 PXP set wrong RGBBUF and RGBSIZE after TV/LCD switch
After TV/LCD switch, PXP uses wrong old FB info to set RGBBUF/RGBSIZE.
This patch fixes this problem by notifying PXP to adjust when FB changed.

Signed-off-by: Robby Cai <R63905@freescale.com>
2010-08-10 11:46:41 -05:00
Robby Cai
3383aabf96 ENGR00120447-1 Change the LCDIF clock setting for TVEnc to work
Need this adjust because set_rate of lcdif changed.

Signed-off-by: Robby Cai <R63905@freescale.com>
2010-08-10 11:46:41 -05:00
Sammy He
315ac28281 ENGR00120539 MX25: Fix GPIO3_BASE_ADDR definition incorrect issue
Fix GPIO3_BASE_ADDR definition incorrect issue

Signed-off-by: Sammy He <r62914@freescale.com>
2010-08-10 11:46:40 -05:00
Dinh Nguyen
d7156f8f12 ENGR00120342 Fix TZIC Base address for MX51 TO2 and TO3
The TZIC base address for MX51 non TO1 is defined as 0xE0003000,
but the according the MX51 TO2 Ref Manual, it should be 0xE0000000.

The reason the system still works with this error is because the TZIC
registers are mirrored at offset 0x3000.

Signed-off-by: Dinh L. Nguyen <Dinh.Nguyen@freescale.com>
2010-08-10 11:46:39 -05:00
Jun Li
e7152a6092 ENGR00120361 arc usb gadget:open usb controller clocks before open phy clock.
When register gadget driver,open usb controller clocks before open phy clock.

Signed-off-by: Li Jun <r65092@freescale.com>
2010-08-10 11:46:39 -05:00
Jason Chen
d8b8e1e7d9 ENGR00120428 v4l2 output: jitter after blank/unblank fb
blank/unblank fb during v4l2 playback, unblank will cause current buffer
of display channel to be 1. This patch make the sequence of select
display buffer correct.

Signed-off-by: Jason Chen <b02280@freescale.com>
2010-08-10 11:46:38 -05:00
William Lai
dc809e8cf8 ENGR00120372 CAN: Clock source for FlexCAN module can not be changed
Change the function strcasecmp(buf, "osc") to strncasecmp(buf, "osc",
3), which only compare the first 3bytes.

Signed-off-by: William Lai <b04597@freescale.com>
2010-08-10 11:46:38 -05:00
Jason
b4566a78e2 ENGR00120405 MX23 BCH:output debug information via pr_debug function
Output debug information via pr_debug function

Signed-off-by:Jason Liu <r64343@freescale.com>
2010-08-10 11:46:37 -05:00
Jason Chen
6a73a12e8e ENGR00120370 v4l2 output: fix display fail for blank fb during video play
1. Blank BG during video play on FG:
./mxc_v4l2_output.out -iw 320 -ih 240 -ow 1024 -oh 768 -d 3 qvga.yuv
echo 1 > /sys/class/graphics/fb0/blank
echo 0 > /sys/class/graphics/fb0/blank

2. The same input and output (ic_bypass):
./mxc_v4l2_output.out -iw 320 -ih 240 -ow 320 -oh 240 -d 3 qvga.yuv
echo 1 > /sys/class/graphics/fb0/blank
echo 0 > /sys/class/graphics/fb0/blank

Signed-off-by: Jason Chen <b02280@freescale.com>
2010-08-10 11:46:36 -05:00
Jason Chen
bd50dbbbaa ENGR00119976 v4l2 output: use mannual buffer select for display channel
To use manually buffer select instead of channel link, which resolve fb
blank during v4l2 running issue.

Signed-off-by: Jason Chen <b02280@freescale.com>
2010-08-10 11:46:36 -05:00
Robert Lee
19f30d875c ENGR00116049-2 [imx23] Addition of FIQ system for chip errata/bo's
[imx23] Addition of FIQ system for chip errata and bo's

Signed-off-by: Robert Lee <robert.lee@freescale.com>
2010-08-10 11:46:35 -05:00
Robert Lee
45741ef92a ENGR00116049-1 [imx23] Addition of FIQ system for chip errata/bo's
[imx23] Addition of FIQ system for chip errata and bo's

Signed-off-by: Robert Lee <robert.lee@freescale.com>
2010-08-10 11:46:35 -05:00
Sammy He
d957520090 ENGR00120054 MX51: Increase VPU IRAM size to support decoder
Increase VPU IRAM size to support decoder

Signed-off-by: Sammy He <r62914@freescale.com>
2010-08-10 11:46:34 -05:00
Wu Guoxing
0bc3d16ac3 ENGR00120126 mx51: add mem resources in platform device for gpu2d and gpu3d.
mx51: add mem resources in platform device for gpu2d and gpu3d registers.

Signed-off-by: Wu Guoxing <b02248@freescale.com>
2010-08-10 11:46:33 -05:00
Liu Ying
6c75f95b68 ENGR00119975 IPUv3:Inform user when IDMAC UV-offset overflows
UBO and VBO are 22-bit in CPMEM. When processing a high resolution
frame in YUV format, the value of UV-offset may overflow, but the
driver keeps silent.

Signed-off-by: Liu Ying <b17645@freescale.com>
2010-08-10 11:46:33 -05:00
Jun Li
491ec33463 ENGR00119899 Add FEC iomux config and PHY reset.
FEC driver of 2.6.31 kernel remove pin iomux config and PHY reset,
which is in fec_gpio_active() needed for i.MX25 and i.MX35.

Signed-off-by: Li Jun <r65092@freescale.com>
2010-08-10 11:46:32 -05:00
Liu Ying
46e0dd8d8d ENGR00119034 V4L2 overlay:Use DP to do CSC for preview on DPFG
Use DP to do CSC for preview on DPFG instead of using IC channel
so that we can get better performance. This change can make us
get rid of IC channel bandwidth limitation when using IC channel
to do upsizing from low resolution to high resolution and CSC.
This change doesn't touch V4L2 overlay for DPBG, because using DP
to do CSC will change the pixel format for DPBG(usually for GUI).
This change doesn't touch V4L2 capture, because users rarely do
upsizing with high multiple in this case.

Signed-off-by: Liu Ying <b17645@freescale.com>
2010-08-10 11:46:32 -05:00
Liu Ying
af4f8336b7 ENGR00119710 MXC V4L2 output:Support YUYV and UYVY input pixel format
Support YUYV and UYVY input pixel format for mxc V4L2 output.

Signed-off-by: Liu Ying <b17645@freescale.com>
2010-08-10 11:46:31 -05:00
Wallace Wang
11f2734551 ENGR00119583 MX35: Add regulators' standby control
u-boot set wrong standby contorl for regulators,
while kernel doesn't set standby controls which
cuase system can't wakeup from suspend mode.

Signed-off-by: Wallace Wang <r59996@freescale.com>
2010-08-10 11:46:30 -05:00
Patrick Turley
c1104dfed8 ENGR00119847 [MX23_BSP] Support polled read/write for debug UART
Added the polled read and write functions for the debug UART port.

Signed-off-by: Patrick Turley <patrick.turley@freescale.com>
2010-08-10 11:46:30 -05:00
Liu Ying
672a18731a ENGR00119720 IPUv3:Fix wrong UV offset set in CPMEM when idmac crops
The UV offset is set wrongly when idmac does cropping.
This patch changes to get the UV offset from user in this case now.

Signed-off-by: Liu Ying <b17645@freescale.com>
2010-08-10 11:46:29 -05:00
Jason
160dee8d80 ENGR00119693 Uniform handling NFC INT bit clearance
Uniform handling NFC INT bit clearance, the INT bit
will be unformed cleared in the wait_op_done function
after any NFC operation.

Signed-off-by:Jason Liu <r64343@freescale.com>
2010-08-10 11:46:29 -05:00
Zhou Jingyu
5ae650d6f6 ENGR00116787 change pmic event handling method
use level irq for pmic event handling to avoid
potential pmic event lost

Signed-off-by: Zhou Jingyu <Jingyu.Zhou@freescale.com>
2010-08-10 11:46:28 -05:00
Jason Chen
08336b4823 ENGR00119578 v4l2 output: fix fb setting for display 5
when Cropping happen, for display 5(tvout), fb setting still need keep
as org.

Signed-off-by: Jason Chen <b02280@freescale.com>
2010-08-10 11:46:28 -05:00
Robby Cai
3140d3d9f8 ENGR00119635 MX23 fix wrong state transition of enable lcd controller
fix the bug that causes the driver to enable the lcd controller twice,
which will request lcd pins twice.

Signed-off-by: Robby Cai <R63905@freescale.com>
2010-08-10 11:46:27 -05:00
Liu Ying
7c929dfbe6 ENGR00119582 V4L2 capture:Fix race condition for accessing kernel resource
Some kernel resource can be accessed in interrupt handler and user
controlled V4L2 ioctrls, so there is a race condition which makes
the kernel malfunction potentially.

Signed-off-by: Liu Ying <b17645@freescale.com>
2010-08-10 11:46:26 -05:00
Jason Chen
feff72e021 ENGR00119531 ipuv3: dmfc setting restore during resume
dmfc setting should be restored after system resume.

Signed-off-by: Jason Chen <b02280@freescale.com>
2010-08-10 11:46:26 -05:00
Zhou Jingyu
f8e7e781bb ENGR00119305 imx23: fix ethernet standby issue
fix can not goto standby when using ethernet

Signed-off-by: Zhou Jingyu <Jingyu.Zhou@freescale.com>
2010-08-10 11:46:25 -05:00
Wallace Wang
f0d50f0423 ENGR00119532 MX35: Change nand partition for bootloader to 3M bytes
Reserve 3M for bootloader since new nand block size is 512K byte.

Signed-off-by: Wallace Wang <r59996@freescale.com>
2010-08-10 11:46:24 -05:00
Sammy He
e757d73a9c ENGR00119504 MX25: Change nand partition for bootloader to 3M byte
Reserve more size to bootloader since new nand block size is 512K byte.

Signed-off-by: Sammy He <r62914@freescale.com>
2010-08-10 11:46:24 -05:00
Jason
66ff713019 ENGR00119484 Update NFC INT wait timeout value to 1s
Update NFC INT wait timeout value to 1s.
1s should be enough for all platforms.
If INT bit not set for 1s timeout value, this
should be high potential of IC issues.

Signed-off-by:Jason Liu <r64343@freescale.com>
2010-08-10 11:46:23 -05:00
Frank Li
29d86b6058 ENGR00119296 Fix iMX23 display abnormal when change frequency
Miss clear BYPASS_CPU bit for CLKSEQ. CPU and HClk frequency will low than
24Mhz, so there are not enough bandwidth to support LCD refresh

Signed-off-by: Frank Li <Frank.Li@freescale.com>
2010-08-10 11:46:23 -05:00
Richard Zhu
33d8915245 ENGR00119432 MX35 system can't re-boot up when SD/MMC boot is used.
Do not disable the eSDHC clk on MX35 3DS board,
since SYSTEM can't boot up after the reset key
is pressed when the SD/MMC boot mode is used.
The root cause is that the ROM code don't ensure
the SD/MMC clk is running when boot system.

Signed-off-by: Richard Zhu <r65037@freescale.com>
2010-08-10 11:46:22 -05:00
Liu Ying
74c4be6d23 ENGR00119070 IPUv3 FB:Support DP local alpha in pixel
Modify MXCFB_SET_LOC_ALPHA ioctrl to support DP local alpha with
alpha value contained in pixel.

Signed-off-by: Liu Ying <b17645@freescale.com>
2010-08-10 11:46:22 -05:00
Jason Chen
f6d0a6f9d9 ENGR00119179 TVE: fix system hang for tvout
if unblank to blank tve fb too quickly, system will hang. It's caused by
unprotected tve register access.

Signed-off-by: Jason Chen <b02280@freescale.com>
2010-08-10 11:46:21 -05:00
Liu Ying
e3e4b0b18f ENGR00119081 V4l2 capture:Support NV12 output pixel format for still capture
Support NV12 output pixel format for still capture.

Signed-off-by: Liu Ying <b17645@freescale.com>
2010-08-10 11:46:20 -05:00
Lionel Xu
2f78735cb2 ENGR00119104 MX23 ALSA: Resolve the problem of record from line-in
Resolve the line-in record problem.

Signed-off-by: Lionel Xu <r63889@freescale.com>
2010-08-10 11:46:20 -05:00
Jason Chen
d2d97286cb ENGR00119274 TVE: HDTV can not work
1.arrange display port according to choice of different display device
2.for ipu_disp.c: not round pixel clock to even for tvout.
3.cmdline "hdtv" enable 720P, "hdtv=2" enable 720P as primary.

Signed-off-by: Jason Chen <b02280@freescale.com>
2010-08-10 11:46:19 -05:00
Jason Chen
1ca0ec7611 ENGR00119136 ipuv3: support 720p for ipu lib
To support 720p output for ipu lib.

Signed-off-by: Jason Chen <b02280@freescale.com>
2010-08-10 11:46:18 -05:00
Patrick Turley
bde9c04a2a ENGR00119443 [MX23_BSP] GPMI driver computes wrong block size for K9GAG08U0D
Improved the GPMI driver's use of information from the device identification
database.

Signed-off-by: Patrick Turley <patrick.turley@freescale.com>
2010-08-10 11:46:18 -05:00
Jason Chen
eb16973c50 ENGR00119275 ipuv3: dmfc size control
add dmfc size control for dynamic change and _setup.
DMFC_NORMAL: segment 0,1 for DC, 4,5 for DP-BG, 6,7 for DP-FG.
DMFC_HIGH_RESOLUTION_DC: segment 0~3 for DC, 4,5 for DP-BG, 6,7 for DP-FG.
DMFC_HIGH_RESOLUTION_DP: segment 0,1 for DC, 2~5 for DP-BG, 6,7 for DP-FG.
DMFC_HIGH_RESOLUTION_ONLY_DP: segment 0~3 for DP-BG, 4~7 for DP-FG.
IPU diplay driver will try to enlarge its related DMFC segment size
when it meet high resolution condition, but if dmfc is already in high
resolution setting, dmfc will not change.That said, first request wins.

For cmdline setting, "dmfc=1" is DMFC_HIGH_RESOLUTION_DC, "dmfc=2"
is DMFC_HIGH_RESOLUTION_DP, "dmfc=3" is
DMFC_HIGH_RESOLUTION_ONLY_DP.

NOTE: DMFC_HIGH_RESOLUTION_ONLY_DP only can be set by cmdline.

Signed-off-by: Jason Chen <b02280@freescale.com>
2010-08-10 11:46:17 -05:00
Ran Ferderber
809a676b58 ENGR00114151 800x600-16@60 video not play correctly
Setting "video=mxcfb:800x600-16@60" in the exec command makes video not play
correctly, IPU didn't play video when panel blank line where lower then minimum
required by IPU

Signed-off-by: Ran Ferderber r53561@freescale.com
2010-08-10 11:46:17 -05:00
Jason
e4bb87cf4a ENGR00119324 Put GPMI NAND flash scan scheme code to the common NAND directory
1.GPMI NAND flash scan scheme can overcome the shortcomings
  of MTD NAND community code.

2.Put it to the common NAND directory can benifit I.MX NAND
  driver besides GPMI NAND driver.

3.Fix the section mismatch build warnings on ALL platforms.

4.Fix the kbuild build errors of I.MX platforms.

Signed-off-by:Jason Liu <r64343@freescale.com>
2010-08-10 11:46:16 -05:00
Robby Cai
272e9ef719 ENGR00119063 MX23: fix system halt rather than reboot when watchdog timeout
fixed by setting AUTO_RESTART bit in HW_RTC_PERSISTENT0 register.

Signed-off-by: Robby Cai <R63905@freescale.com>
2010-08-10 11:46:15 -05:00
Robby Cai
3ac3fb4bd0 ENGR00118892 MX23: iMX233 disable lcd clock when LCD off
Disable lcdif controller when suspend or screen blanked.
By doing so, can set CPU freq to 64000Khz (ENGR00119096)

Signed-off-by: Robby Cai <R63905@freescale.com>
2010-08-10 11:46:15 -05:00
Frank Li
392eeef20f ENGR00119075 fix iMX23 USB initialization cause wrong power status
USB initialization set power status register to wrong status.
Cause power state change dead loop.
Remove EA code using debug register to control HW_POWER_STS bit.
That is not perfered.

Signed-off-by: Frank Li <Frank.Li@freescale.com>
2010-08-10 11:46:14 -05:00
Alan Tull
d759e7cb52 ENGR00119267 revert to gcc 4.1.2 toolchain
Change -march=armv7-a to -march=armv7a
Revert "ENGR00116759 iMX51: Fix compile error when using gcc4.3.3"
This reverts commit 39b2ec2cfc591472db51c75944d8462255e9cf4d.

Signed-off-by: Alan Tull <r80115@freescale.com>
2010-08-10 11:46:14 -05:00