Commit Graph

158307 Commits

Author SHA1 Message Date
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
Ranjani Vaidyanathan-RA5478
b80fb67d2b ENGR00119263: MX51 : Fix pll_set_rate function
pll_set_rate function should only wait for PLL relock if PLL is enabled.
Also add a timeout to the infinte loop.

Signed-off-by: Ranjani Vaidyanathan-RA5478 <Ranjani.Vaidyanathan@freescale.com>
2010-08-10 11:46:13 -05:00
Jason
53e0dab7b7 ENGR00119242 Add wait timeout support to void dead loop in NAND driver
1. Add wait timeout support to void dead loop in NAND driver,
2. Try best to use IRQ mode instead of POLLING mode

Signed-off-by:Jason Liu <r64343@freescale.com>
2010-08-10 11:46:12 -05:00
Jason Chen
462edd5501 ENGR00119004 v4l2 output: fix kernel dump
Use fbi screen_base as virtual addr instead of phys_to_virtual.

Signed-off-by: Jason Chen <b02280@freescale.com>
2010-08-10 11:46:12 -05:00
Dinh Nguyen
9ed0a6c3b7 ENGR00118363 Fix SATA drive failure on Ubuntu 9.10
Fix SATA drive failure on Ubuntu 9.10
BugLink: https://bugs.launchpad.net/bugs/431963

Signed-off-by: Dinh Nguyen <r00091@freescale.com>
2010-08-10 11:46:11 -05:00
Nancy Chen
05ca3e8032 ENGR00119203 MX23: Correct VDDD value for CPU frequency 360 MHz
MX23: Correct VDDD value for CPU frequency 360 MHz.

Signed-off-by: Nancy Chen <Nancy.Chen@freescale.com>
2010-08-10 11:46:11 -05:00
Ranjani Vaidyanathan-RA5478
c3d89d0387 ENGR00119202: Fix DVFS-PER related bugs.
DVFS-PER needs to make sure that the pixel clock divider is an
even integer.
Added support for pixel clock being sourced from an external clock (PLL3)

Signed-off-by: Ranjani Vaidyanathan-RA5478 <Ranjani.Vaidyanathan@freescale.com>
2010-08-10 11:46:10 -05:00
Ranjani Vaidyanathan-RA5478
f603cc06d4 ENGR00119199: ipu: add clock nodes for pixel clocks
Added clock nodes for pixel clocks so that their rates and
parents can be easily tracked.

Signed-off-by: Rob Herring <r.herring@freescale.com>
2010-08-10 11:46:09 -05:00
Jason
2cf6c691b9 ENGR00118872 Write bootstream to kernel by kobs with BCH ECC
Write bootstream to kernel by kobs with BCH ECC.
Using the same combined Metadata & Block 0 BCH layout
with ROM code.

Page size 2048B; spare area  64B => ECC8,  N=3, B0=512B, M=10B
Page size 4096B; spare area 128B => ECC8,  N=7, B0=512B, M=10B
Page size 4096B; spare area 218B => ECC16, N=7, B0=512B, M=10B

Signed-off-by:Jason Liu <r64343@freescale.com>
2010-08-10 11:46:09 -05:00
Robby Cai
b90994953d ENGR00118610 MX23: Add double buffering for PXP
use PXP_NEXT register to implement double buffering schema.

Signed-off-by: Robby Cai <R63905@freescale.com>
2010-08-10 11:46:08 -05:00
Wallace Wang
e0754698a4 ENGR00119150 Bluetooth: Handsfree audio has noise
When bluetooth handsfree is enabled, sgtl5000 and bt
sound cards are both opened. BT sound card playback
can't use IRAM as sgtl5000 has used IRAM. The bt audio
platform data - ext_ram is not set when kernel porting
to 2.6.31.

Signed-off-by: Wallace Wang <r59996@freescale.com>
2010-08-10 11:46:08 -05:00
Zhou Jingyu
b7d7676a59 ENGR00118946 imx23: enable wake up from USB 5V
enable wake up from USB 5V

Signed-off-by: Zhou Jingyu <Jingyu.Zhou@freescale.com>
2010-08-10 11:46:07 -05:00
Jason
86fde4a0b4 ENGR00118830 Update NAND driver scan scheme to support new nand type
Update NAND scan scheme to support new nand type. With this patch
Linux NAND driver can support new NAND flash on mx25/mx35 board while
compatible with old NAND on old boards.

Signed-off-by: Jason Liu <r64343@freescale.com>
2010-08-10 11:46:07 -05:00
Miao Yu
a47e299e88 ENGR00119069 V4L2 capture: Do not change current crop setting for tvin.
There is one CSI crop improvement (engr117261) in v4l2 capture.
But the improvement is not suitable for tvin module since the
ACT_FRM_SIZE wouldn't be the same with the SENSOR_SIZE.

Signed-off-by: Miao Yu <r65093@freescale.com>
2010-08-10 11:46:06 -05:00
Wallace Wang
9bb4bf18dc ENGR00119006 MX35: Configure TVIN as module
TVIN module is missed in MX35 configure file.

Signed-off-by: Wallace Wang <r59996@freescale.com>
2010-08-10 11:46:05 -05:00
Katherine Lu
02df226f65 ENGR00119022 MX51: fix PWM backlight blink
fix PWM backlight blink

Signed-off-by: Katherine Lu <katherine.lu@freescale.com>
2010-08-10 11:46:05 -05:00
Lily Zhang
97e1b336f2 ENGR00119023-2 Fix build error in SPI NOR driver
1. Add SPI NOR flash driver in Makefile
2. Fix build error with gcc 4.3.3 toolchain

Signed-off-by: Lily Zhang <r58066@freescale.com>
2010-08-10 11:46:04 -05:00
Lily Zhang
51a8cfd43b ENGR00119023-1 MX51: Build in SPI NOR flash driver
Add CONFIG_MTD_MXC_DATAFLASH to build in SPI NOR
flash driver

Signed-off-by: Lily Zhang <r58066@freescale.com>
2010-08-10 11:46:03 -05:00
Jun Li
247de7bcf9 ENGR00119024 USB OTG nobody cared IRQ when add gadget driver.
When add usb gadget driver in OTG mode, cause nobody cared irq,
this pach disable usbintr in udc driver probe.

Signed-off-by: Li Jun <r65092@freescale.com>
2010-08-10 11:46:03 -05:00
Robert Lee
aad98b7602 ENGR00118995 iMX23: power supply protection mechanism must be implemented.
iMX23: power supply protection mechanism must be implemented
 in order to properly protect the SoC from damage or getting
 into a locked up state.  Several chip errata exists which (some are
 documented and some are not yet documented at the time of this writing).

Signed-off-by: Robert Lee <robert.lee@freescale.com>
2010-08-10 11:46:02 -05:00
Zhou Jingyu
4d5dab2ecf ENGR00118898 mx35: fix error when disable pseudo irq
avoid i2c access of pseudo irq ops while suspending

Signed-off-by: Zhou Jingyu <Jingyu.Zhou@freescale.com>
2010-08-10 11:46:02 -05:00
Wallace Wang
f44d879824 ENGR00119005 ASRC: Remove unsupported sample rates from mixer
ASRC minmal output sample rate is 32000.  When ASRC
is used as ASRC-ESAI per_2_per mode, the unsupported
sample rates should not be included in ASRC mixer.

Signed-off-by: Wallace Wang <r59996@freescale.com>
2010-08-10 11:46:01 -05:00
Jun Li
6f878917d5 ENGR00116829 close usbpll for usb controler is not in serial mode.
1. close usb_clk after usb otg controller switch to utmi mode.
2. usb_clk is a glabal variable for 60M usbpll, when enable usboh3_clk
for i.MX51 host port, usb_clk is used, which causes usb_clk can not be
closed after the controller is in ULPI mode.

Signed-off-by: Li Jun <r65092@freescale.com>
2010-08-10 11:46:00 -05:00
Jun Li
ff7bf0e322 ENGR00117147-2 USB clock gating and PHY low power mode.
1. If there is no usb devices connectted or all connectted usb
devices are in suspend state, usb host can suspend its whole bus,
then put the PHY into low power mode and close all usb clocks.
2. close all usb clocks for usb device low power mode.
(The patch is splitted 2 patches, this is FSL specific driver
part.)

Signed-off-by: Li Jun <r65092@freescale.com>
2010-08-10 11:46:00 -05:00
Jun Li
69d4c12178 ENGR00117147-1 USB clock gating and PHY low power mode.
If there is no usb devices connectted or all connectted usb
devices are in suspend state, usb host can suspend its whole bus,
then put the PHY into low power mode and close all usb clocks.
(The patch is splitted 2 patches, this is common code part.)

Signed-off-by: Li Jun <r65092@freescale.com>
2010-08-10 11:45:59 -05:00
Richard Zhu
b6831dd13b ENGR00118900 [Mx35]Unexpected messages when insert/extract cards.
The unexpected messages are printed by the kernel.
The root cause is that the I2C IO func can't be called in the
interrupt context, since the SD/MMC port and CD PIN is logically
walk through the MCU I2C bus.
Solution:Don't call the I2C IO func in the interrupt context in
card detection IRQ handler, move them to work-queue enviroment.

Signed-off-by: Richard Zhu <r65037@freescale.com>
2010-08-10 11:45:59 -05:00
Ranjani Vaidyanathan-RA5478
4d33a6263f ENGR00118976: Fix mx37 build due missing function definition.
Fixed build break when MXC_DVFS_PER is not defined.

Signed-off-by: Ranjani Vaidyanathan-RA5478 <Ranjani.Vaidyanathan@freescale.com>
2010-08-10 11:45:58 -05:00
Frank.Li
2e21083d70 ENGR00118544 iMX23 Clear dangerous macro stmp3xxx_setl(clearl)
No all regiser use _SCT. stmp3xxx_setl may write to wrong address.
please use __raw_write (value, REG_XXX_SET) to write date to SCT
register.  Only REG_XXX_SCT is defined when it exist at hardware.

Signed-off-by: Frank.Li <Frank.Li@freescale.com>
2010-08-10 11:45:57 -05:00
Ranjani Vaidyanathan-RA5478
28af5a66c6 ENGR00088305: Add DVFS-PER support
Added support for DVFS-PER for both MX37 and MX51.

Signed-off-by: Ranjani Vaidyanathan-RA5478 <Ranjani.Vaidyanathan@freescale.com>
2010-08-10 11:45:57 -05:00
Jason Chen
951bbecb7f ENGR00118712 ipuv3: add ipu channel disable timeout
Add timeout in ipu channel disable while loop.

Signed-off-by: Jason Chen <b02280@freescale.com>
2010-08-10 11:45:56 -05:00
Nancy Chen
02c1785e34 ENGR00118915 MX23: VDDD_BO voltage needs to be updated
MX23: VDDD_BO voltage needs to be updated which caused the system hangs
if cpufreq Conservative governor is using and CPUFREQ is trigged.

Signed-off-by: Nancy Chen <Nancy.Chen@freescale.com>
2010-08-10 11:45:55 -05:00
mark gutman
a190829bde ENGR00118832 TVout: error color displays
Fixing IC bypass behavoir for cropping

Signed-off-by: Mark Gutman <r58412@freescale.com>
2010-08-10 11:45:55 -05:00
Frank Li
508bad5d12 ENGR00118888-2 Fix iMX23 mfg firmware usb segment fault
Miss some configuration and wrong use put_unaligned_be32

Signed-off-by: Frank Li <Frank.Li@freescale.com>
2010-08-10 11:45:54 -05:00