summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-10-27ENGR00132538 MX53: Get the CAN clk via dev_id and con_idWilliam Lai
Use both dev_id and con_id to get enable the CAN clock. Only use the con_id can't get the can_clk2, which is the root cause for CAN2 hang. Signed-off-by: William Lai<b04597@freescale.com> (cherry picked from commit 9a75b3c9a9a09f6ffeecf5b617b1a3c72d4aa1b9)
2010-10-27ENGR00132990 MXC V4L2 capture:Check zero width/height in VIDIOC_S_FMTLiu Ying
This patch checks zero width/height parameters provided by user in ioctrl VIDIOC_S_FMT. It can fix the issue of division by zero in kernel in this case. Signed-off-by: Liu Ying <b17645@freescale.com> (cherry picked from commit 40a72bed068e55b641a41cab3b17cd04999f7d8c)
2010-10-27ENGR00131644 PMIC: Charger removal may not be detectedNancy Chen
PMIC: Charger removal may not always be detected by MC13892. Signed-off-by: Nancy Chen <Nancy.Chen@freescale.com> (cherry picked from commit 958a3b70a70ecd0824177875d76b09c2370257a3)
2010-10-27ENGR00132971 Workaround for imx5x M4IF burst len errata for armv7 neonSammy He
Workaround for imx5x M4IF burst len errata when armv7 neon enabled, use pgprot_writecombine instead of pgprot_noncached, to avoid burst len > 8. Signed-off-by: Sammy He <r62914@freescale.com> (cherry picked from commit 1e48145ed446105dea8b615cf4c4c77d60f4b988)
2010-10-27ENGR00132776 LDB:Add default 1080P split mode for DI1Liu Ying
Though users can specify 'ldb=xxx' to enable 1080P LVDS panel when using DI1, it is not easy for them to set it correctly. This patch will add the default LDB setting for this case and correct the comment of ldb_setup() function. Signed-off-by: Liu Ying <b17645@freescale.com> (cherry picked from commit 2c6f21732a3e1940d9014406547e2f880b465ef9)
2010-10-27ENGR00132882 MXC V4L2 capture:Check slave is present when open devLiu Ying
This patch makes sure that slave device is present when opening related video device. It will avoid a kernel dump if slave device is not present before calling custom open function. Signed-off-by: Liu Ying <b17645@freescale.com> (cherry picked from commit 29f466a69e5ec6ac3253936c9f3f25004f7aff19)
2010-10-27ENGR00132935-3 MXC PWM:Use gpio when inverted pwm keeps lowLiu Ying
This patch uses gpio to set pwm signal to keep low when the control signal is inverted, i.e., the pwm control signal may be inverted by a MOSFET chip. Signed-off-by: Liu Ying <b17645@freescale.com> (cherry picked from commit eaea1b2e48bbb9693d80d8c3affcd6e0fb8aae71)
2010-10-27ENGR00132935-2 MX53 ARD:Add pwm enable/disable pad functionsLiu Ying
This patch adds pwm enable/disable pad functions to pwm platform data. Signed-off-by: Liu Ying <b17645@freescale.com>
2010-10-27ENGR00132935-1 fsl dev:Add pwm enable/disable pad functionsLiu Ying
This patch adds pwm enable/disable pad functions declaration to pwm platform data in fsl_device.h. Signed-off-by: Liu Ying <b17645@freescale.com>
2010-10-27ENGR00132894 usb: clk_get should not be called at IRQ contextPeter Chen
The old implementation will clk_get/clk_put for each clk on/off operation. As some clk on/off operation would be IRQ context. So, it will ocurr the error like "schedule at atomic context". The new implementation will only call clk_get at usb initialization, and clk_put at usb de-initialization. The driver's clock on/off will only call clk_enable/clk_disable. Signed-off-by: Peter Chen <peter.chen@freescale.com> (cherry picked from commit 8238957cb2223f0fe46e8d32cdb891d5433ec830)
2010-10-22ENGR00132877 add fixed regulator dcdc_3v15Alan Tull
The i.Mx50EVK (rdp) board has a fixed dc-dc converter. Show it as a fixed regulator so the audio driver will be able to get its voltage. Signed-off-by: Alan Tull <alan.tull@freescale.com>
2010-10-22ENGR00132875-2: MX50EVK:Add platform specific Suspend/Resume supportRanjani Vaidyanathan
EIM IOMUX settings that improve the power numbers break keypad. Move the EIM IOMUX settings to platform specific functions called during suspend/resume. Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
2010-10-22ENGR00132875-1: Fix EIM IOMUX settings that break keypadRanjani Vaidyanathan
Create a platform specific power management data structure that will facilitate platform specific functions to be called during suspend/resume. Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
2010-10-22ENGR00132849-2 esdhc: do not use spin_lock when set power on/offAisheng.Dong
Do not use spin_lock when sets power on/off since pmic driver may sleep on this operation. Signed-off-by: Aisheng.Dong <b29396@freescale.com>
2010-10-22ENGR00132849-1 mx50 rdp: set power_mmc to VSDAisheng.Dong
Since VSD voltage is not always on, we need to pass the correct regulator to esdhc driver to dynamically enable it. Signed-off-by: Aisheng.Dong <b29396@freescale.com>
2010-10-22ENGR00132880 Add REGULATOR_CHANGE_STATUS ops mask for mc13892 regulatorsZhou Jingyu
Add REGULATOR_CHANGE_STATUS ops mask for mc13892 regulators Signed-off-by: Zhou Jingyu <Jingyu.Zhou@freescale.com>
2010-10-22ENGR00132885-2 Reverted the commit d6c3005 (ENGR00132615-2)Robby Cai
Previous patch is not stable enough, reverted. Signed-off-by: Aisheng.Dong <b29396@freescale.com>
2010-10-22ENGR00132885-1 Reverted the commit 8281bd8 (ENGR00132615-1)Robby Cai
Previous patch is not stable enough, reverted. Signed-off-by: Aisheng.Dong <b29396@freescale.com>
2010-10-22ENGR00132878 IMX USB:autosuspending caused device can not disconnectHu hui
if enable the auto suspend for the usb device attached to the usb otg host port, after the usb device and it's roothub,hcd auto suspend, disconnecting the usb device can not be realized by the roothub, because the roothub is in the suspend state. Signed-off-by: Hu Hui <b29976@freescale.com>
2010-10-21ENGR00132874 Mx50: Donot change Vcc votlage in LPAPM modeRanjani Vaidyanathan
Vcc voltage needs to be increased before increasing the frequency when exiting from LPAPM mode. Some drivers are initiating the frequency/voltage change request (via clk_enable/clk_disable) in an ISR or tasklet context. Since the regulator API code uses SPI that can sleep during its transactions, the system will crash when sleep is called in an ISR/tasklet context. Hence the current solution is to remove the voltage change code. Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
2010-10-21ENGR00132832-2 SSI: fix ssi errors caused by dual fifo sdma scriptZeng Zhaoming
MX5 dual fifo breaks mx50 ssi, because new sdma script only support mx51 and mx53. Fix it setting ssi fifo according to cpu model. Signed-off-by: Zeng Zhaoming <b32542@freescale.com>
2010-10-21ENGR00132832-1 MX50 SSI: fix ssi errors caused by mx5 dual fifo enableZeng Zhaoming
Upgrade SDMA script to support SSIs dual fifo breaks mx50 ssi, because mx50 new script not available yet. Fix it by according to cpu model to set correct sdma script address. Signed-off-by: Zeng Zhaoming <b32542@freescale.com>
2010-10-21ENGR00132844 MX5x: Fix bug of UART DMA enable macro usageXinyu Chen
In the MX5x clock code, it's incorrect to use the existence of the macro to determin the uart is DMA enabled or not. Fix this bug by checking the macro value. Signed-off-by: Xinyu Chen <xinyu.chen@freescale.com>
2010-10-21ENGR00132026 MTD: Fix MTD_MODE_RAW write failFrank Li
Kobs-ng use MTD_MODE_RAW write boot stream to NAND flash. mtdchar have not initilized all field of struct mtd_oob_ops in mtd_write when mode is MTD_MODE_RAW. function nand_do_write_ops if (ops->ooboffs && (ops->ooboffs + ops->ooblen > oobmaxlen)) return -EINVAL; ooboffs is not initilized at mtd_write. So random data cause nand_do_write_ops return fail. Signed-off-by: Frank Li <Frank.Li@freescale.com>
2010-10-20ENGR00132805 MX5 MFG: enable MAX173135 and LTC3589Lily Zhang
Enable MAX173135 and LTC3589 drivers in MX5 MFG defconfig. Signed-off-by: Lily Zhang <r58066@freescale.com>
2010-10-20ENGR00132493 RAMDISK: doing write barrier will return -EIOHu hui
when doing write barrier, the data of the bio is NULL, it's OK for ramdisk doing nothing, So the result of the bio must be success. Signed-off-by: Hu Hui <b29976@freescale.com>
2010-10-19ENGR00132153 sgtl5000: do not enforce symmetry if rate is unknownAlan Tull
If a playback and a record stream are started together, the alsa userspace may not not do the necessary ioctl calls for the audio driver stack to know the sample rate and sample size of the first stream before starting the second stream, i.e.: arecord -D plughw:0 -d 10 -f S16_LE -r 44100 -c 2 -traw | aplay -D plughw:0 -f S16_LE -r 44100 -c 2 -traw Normally we want to the driver to make sure that the second stream does not request a different playback rate/bit size from the first stream. But at that point, the driver thinks that the sample rate and sample size are 0. So in that case do not enforce constraints. This still allows for usecases where play is started first and then record is started after a delay while playback continues. Signed-off-by: Alan Tull <alan.tull@freescale.com>
2010-10-19ENGR00132649 SAHARA test causes ext3 file system crashAnish Trivedi
During kernel upgrade, replaced deprecated functions: dmac_clean_range() with clean_dcache_area() and, dmac_inv_range() with invalidate_kernel_vmap_range(), but that results in some test case failures when file system is on the SD card instead of NFS. Quite possibly the cache coherency problems were not showing up during NFS testing. Corrected this by using the proper replacements: dmac_clean_range() replaced by dmac_map_area() and, dmac_inv_range() replaced by dmac_unmap_area(). This fixes the cache coherency issues and all tests pass with file system on SD card as well mounted over NFS. Signed-off-by: Anish Trivedi <anish@freescale.com>
2010-10-19ENGR00132761 MX51: correct the debug early uart's clockXinyu Chen
As uboot changes the PLL1, this causes the UART1 clock PRE/PODF divider settings are not correct. Fix this by set uart's parent to PLL3 as uboot did. Signed-off-by: Xinyu Chen <xinyu.chen@freescale.com>
2010-10-18ENGR00131932-2 ssi, sound: Upgrade SDMA scripts to v1.1.0 versionZeng Zhaoming
New sdma script support double ssi fifo. This feature is not enabled by default in mx51 and mx53 configs. Enable double ssi fifo for audio, if underrun/overrun happens, It is possible to cuase stereo channel swapped and can't be recovered. Signed-off-by: Zeng Zhaoming <b32542@freescale.com>
2010-10-18ENGR00131932-1 MX51, MX53, sdma: Upgrade SDMA scripts to v1.1.0 versionZeng Zhaoming
Upgrade sdma mx51 script to v1.1 http://compass.freescale.net/go/220269616 Upgrade sdma mx53 script to v1.1 http://compass.freescale.net/go/211002731 These new scripts support ssi dual fifo. Pan Qihong-B30266 provide the usage: ----------- mcu_2_ssiapp and ssiapp_2_mcu are supporting SSI tx/rx residing on peripheral DMA region. mcu_2_ssish and ssish_2_mcu are supporting SSI tx/rx residing on shared peripheral DMA region. With all these 4 scripts, will support all the 3 SSIs. ---------- Signed-off-by: Zeng Zhaoming <b32542@freescale.com>
2010-10-18ENGR00132536 usb-host: Clock should be opened before calling ehci_shutdownPeter Chen
When trigger "reboot" command, the driver will call xxx_shutdown. For usb-host, it will write registers. So, it needs to open clock before ehci_shutdown if the usb is in low power mode. Signed-off-by: Peter Chen <peter.chen@freescale.com>
2010-10-18ENGR00132532 mxs-mmc: change serial clock polarityAisheng.Dong
Some mmc cards may not work properly with data change after rising edge of SCK. Changing to use falling edge of SCK to get better compatibility. Signed-off-by: Aisheng.Dong <b29396@freescale.com>
2010-10-18ENGR00132608 I.MX USB:crashed with cable unpluged during data transferHu hui
During data transfer between pc and imx board, if unplug the cable, the udc will enter low power mode and the gadget class driver is disconnected from the udc driver with the ep->desc cleared, this is done in udc irq handler which may interrupte the current udc queue operation, so when queue operation can continue it's work, the ep->desc may be NULL which will cause the NULL pointer exception in kernel. Signed-off-by: Hu Hui <b29976@freescale.com>
2010-10-18ENGR00132563 mx50: enable battery charger on mx50 rdpZhou Jingyu
enable battery charger on mx50 rdp Signed-off-by: Zhou Jingyu <Jingyu.Zhou@freescale.com>
2010-10-16ENGR00132607 MX50: Fix ePxP crash issueRobby Cai
It can be reproduced by loop-running epdc rotation test. The crash reason is the timing to disable ePxP clocks is critical, which was not met before. This issue is fixed by disabling clocks only when ePxP is inactive and no more task is on the wait queue. Signed-off-by: Robby Cai <R63905@freescale.com>
2010-10-15ENGR00124788-2 MX53 ARD: Add Linear PMIC supportNancy Chen
MX53 ARD: Add Linear PMIC support. Signed-off-by: Nancy Chen <Nancy.Chen@freescale.com>
2010-10-15ENGR00124788-1 Add Linear PMIC supportNancy Chen
Add Linear PMIC support. Signed-off-by: Nancy Chen <Nancy.Chen@freescale.com>
2010-10-15ENGR00132674: MX50: Update DDR frequency change code to use new scripts.Ranjani Vaidyanathan
Update the DDR frequency change code to latest the DDR settings for both 24Mhz and 266Mhz. 266MHz latest script version 04 from compass site: http://compass.freescale.net/doc/220496654/Codex_LPDDR2_266MHz.inc 24MHz latest script version 03 from compass site: http://compass.freescale.net/doc/219884330/Codex_LPDDR2_24MHz.inc Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
2010-10-15ENGR00126326-2 - MAX17135: Add support for temperature sensor monitoringDanny Nold
- MAX17135 re-architected: - Core functionality, including I2C access to the chip, moved into drivers/mfd/max17135-core.c - MAX17135 regulators registered via init() callback in plat-specific code. - All access to registers funnelled through max17135_reg_read/write() apis. - max17135.h moved from regulator/ folder into mfd/ folder. - Support for reading internal and external temperature via sysfs interface, consistent with lm-sensors hwmon interface. Signed-off-by: Danny Nold <dannynold@freescale.com>
2010-10-15ENGR00126326-1 - MSL: Add support for MAX17135 temperature sensor driverDanny Nold
- Support added for MAX17135 temperature sensor driver for both MX50 ARM2 and RDP platforms. - MAX17135 driver re-architected with init() callback function in MSL layer which registers regulators. Signed-off-by: Danny Nold <dannynold@freescale.com>
2010-10-15ENGR00132525-3 sgtl5000: audio clock gatingAlan Tull
Turn off audio clock when possible. Empirical data says that we need to leave the clocks on for 300 mSec after all codec writes are done so schedule work to do that. Signed-off-by: Alan Tull <alan.tull@freescale.com> audio clock gating debug
2010-10-15ENGR00132525-2 sgtl5000: audio clock gatingAlan Tull
Turn off audio clock when possible. Empirical data says that we need to leave the clocks on for 300 mSec after all codec writes are done so schedule work to do that. Signed-off-by: Alan Tull <alan.tull@freescale.com>
2010-10-15ENGR00132525-1 sgtl5000: audio clock gatingAlan Tull
Turn off audio clock when possible. Empirical data says that we need to leave the clocks on for 300 mSec after all codec writes are done so schedule work to do that. This feature supported for i.Mx51 Babbage and i.Mx50 EVK (rdp) boards. Signed-off-by: Alan Tull <alan.tull@freescale.com>
2010-10-15ENGR00132634: MX50: Reduce STOP mode power consumptionRanjani Vaidyanathan
Improve STOP mode power consumption in MX50 by doing the following: 1. Disable regulators that are not being used. 2. Set as many regulators as possible into STANDBY mode. 3. Set EIM, FEC IOMUX settings for minimum power leakage. Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
2010-10-15ENGR00132656 MX53 ARD: add MFG supportLily Zhang
Add MFG tool support for MX53 ARD. Remove MLB driver in updater defconfig because it is not needed by MFG tool Signed-off-by: Lily Zhang <r58066@freescale.com>
2010-10-15ENGR00132639-2 Power: mxc_pwerkey break mx25 kernel buildHu hui
Driver Part define a new platform data struct, and Put the pmic callback register into platform data structure, then we can cover all pmic Signed-off-by: Hu Hui <b29976@freescale.com>
2010-10-15ENGR00132639-1 Power: mxc_pwerkey break mx25 kernel buildHu hui
MSL Part define a new platform data struct, and Put the pmic callback register into platform data structure, then we can cover all pmic Signed-off-by: Hu Hui <b29976@freescale.com>
2010-10-15ENGR00131580-2 PTP: Support IEEE 1588 interface functionality for MX5Xie Xiaobo
IEEE1588 implementation is a Hardware-assisted method in i.MX5, This supply the 1588 support for MX53 FEC. Signed-off-by: Xie Xiaobo <X.Xie@freescale.com>
2010-10-15ENGR00131580-1 MX53: Add IEEE1588 hardware-assisted device definitionXie Xiaobo
Add IEEE1588 device's resource definition, and set default clock input for ptp RTC. Signed-off-by: Xie Xiaobo <X.Xie@freescale.com>