Age | Commit message (Collapse) | Author |
|
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)
|
|
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)
|
|
PMIC: Charger removal may not always be detected by MC13892.
Signed-off-by: Nancy Chen <Nancy.Chen@freescale.com>
(cherry picked from commit 958a3b70a70ecd0824177875d76b09c2370257a3)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
This patch adds pwm enable/disable pad functions to pwm platform
data.
Signed-off-by: Liu Ying <b17645@freescale.com>
|
|
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>
|
|
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)
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Add REGULATOR_CHANGE_STATUS ops mask for mc13892 regulators
Signed-off-by: Zhou Jingyu <Jingyu.Zhou@freescale.com>
|
|
Previous patch is not stable enough, reverted.
Signed-off-by: Aisheng.Dong <b29396@freescale.com>
|
|
Previous patch is not stable enough, reverted.
Signed-off-by: Aisheng.Dong <b29396@freescale.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Enable MAX173135 and LTC3589 drivers in MX5 MFG
defconfig.
Signed-off-by: Lily Zhang <r58066@freescale.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
enable battery charger on mx50 rdp
Signed-off-by: Zhou Jingyu <Jingyu.Zhou@freescale.com>
|
|
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>
|
|
MX53 ARD: Add Linear PMIC support.
Signed-off-by: Nancy Chen <Nancy.Chen@freescale.com>
|
|
Add Linear PMIC support.
Signed-off-by: Nancy Chen <Nancy.Chen@freescale.com>
|
|
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>
|
|
- 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>
|
|
- 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>
|
|
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
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Add IEEE1588 device's resource definition, and set default clock input
for ptp RTC.
Signed-off-by: Xie Xiaobo <X.Xie@freescale.com>
|