Age | Commit message (Collapse) | Author |
|
|
|
In order to save the power consumption, enable the
PDDQ mode of AHCI PHY when there is no sata disk
on the port
Signed-off-by: Richard Zhu <r65037@freescale.com>
(cherry picked from commit f97994abf50e9917a959ae62eabd08908a75a222)
|
|
DA9053 i2c issue: Rarely the i2c interface of DA9053 hang and it can
not be recovered if not power off totally. The Dialog suggests adding
dummy write for DA9053 I2C register access, in order to decrease the failure
of DA9053 register access and possibility of i2c failure.
Signed-off-by: Wayne Zou <b36644@freescale.com>
(cherry picked from commit bfd7cba1eeb46977b18a3c5fa65d812817a8294d)
|
|
It fix gpu hang.
Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
(cherry picked from commit acc00a6f1847bf8cdde1802b4375dc89d5160dfe)
|
|
This patch clears IDMAC_LOCK_EN_1 for tough single display(dmfc=3).
For example, 1080P50/1080P60 with 32bpp fb.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
(cherry picked from commit 204a5fb6af1426c499332224dff00f52bdbef39b)
|
|
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>
(cherry picked from commit 98d71e85dbd05df9c866d153a4ead9526a26422e)
|
|
1) Clear IDMAC_LOCK_EN when dual display is enabled
to workaround black flash issue when playing video
on DP-FG.
2) Only set IDMAC_LOCK_EN for IPUv3M.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
(cherry picked from commit 7c22da39601cfc6551292cbd2c5c1d9ee3b4fbfa)
|
|
Correct wrong parameter when call ipu_csi_set_window_size function
Signed-off-by: Yuxi Sun <b36102@freescale.com>
(cherry picked from commit c1cb33e5cbebb979967f74eecf55efe6a83884ab)
|
|
This patch restores IDMAC_CH_LOCK_EN_1 register when IPUv3
driver resumes. This avoid the relative issue if setting
IDMAC_CH_LOCK_EN_1 to be zero.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
(cherry picked from commit fce84cf35dcb338886df8e58f66a7ad1048d2abe)
|
|
Set IDMAC_LOCK_EN_1 to make SDC display channels to generate
eight AXI bursts upon the assertion of the DMA request.
This change fixes the random garbage lines when showing
NV12 frames decoded by VPU with V4L2 output on
XGA@60 display's overlay framebuffer. V4L2 output uses
MEM_PP_MEM to do 180 degree rotation.
The issue can be reproduced by the following VPU unit test
on MX53 SMD platform:
/unit_tests/mxc_vpu_test.out -D
'-i /1920x1080_H264_AAC5.1ch.2.1ch_track1.h264 -f 2 -w 1024
-h 768 -r 180 -u 1 -t 1'
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
(cherry picked from commit 50f969030c25bc33cf0f05a6a5cad98c52afd858)
|
|
Reset reg variable before setting or it will set an unexpected wrong value.
Signed-off-by: Dong Aisheng <b29396@freescale.com>
|
|
- Add support for 8-bit grayscale colormaps to be used
during EPDC update processing
- Add support in PxP for programming of colormaps
Signed-off-by: Danny Nold <dannynold@freescale.com>
|
|
there is hardware pin conflict between sii902x DET and egalax touch screen
on mx53 loco board. Request gpio during sii902x probe can fix this conflict
only when these two module not co-exist.
Signed-off-by: Jason Chen <b02280@freescale.com>
|
|
- Move the majority of code from the IRQ handler routine into a workqueue
routine. This should improve system interrupt latency.
- Change the spin_lock protecting EPDC queues into a mutex and change all
associated spin_lock calls into mutex calls.
Signed-off-by: Danny Nold <dannynold@freescale.com>
|
|
When setup irq is received, the status phase of the transfer is primed
on ep0 before the data phase. The usb requests are added to the list
of transfer descriptors (maintained by driver) in reverse of their
expected completion order. Completion order is data followed by status,
however the list of tds contains status followed by data.
Upon completion of the data request, the irq handler proceeds to check
the 1st td in the list -- the status request. In full speed mode,
the status phase has not yet completed at this time, so the td's
ACTIVE bit is still set. This leads irq handler to ignore the completion
interrupt without checking the actual td for the data request that caused
the interrupt.
In high speed mode, this issue does not bear itself out because the status
request also completes by the time the irq handler goes to process the data
completion interrupt.
The simple fix for this issue is to prime the status request AFTER the data
request, so that the list of tds maintained by the driver contains the tds
in the order of expected completion.
Signed-off-by: Anish Trivedi <anish@freescale.com>
|
|
Do not deal with un-enabled device interrupt
Signed-off-by: Peter Chen <peter.chen@freescale.com>
|
|
fix eSDHC errata 'DDTS ENGcm03648'
if it's command with busy, we should poll data0 signal
until it's high which means bus is idle.
Signed-off-by: Tony Lin <tony.lin@freescale.com>
|
|
- When usb cable is plugged out, the B_SESSION_VALID interrupt is disabled to
avoid usb disconection work queue interrupting. After usb disconection work
queue task is finished, re-enable it to generate interrupt.
Signed-off-by: Tony Liu <b08287@freescale.com>
|
|
-remove all the un-necessary operation in suspend_irq
-remove delay work queue
-fix review comments
Signed-off-by: Tony Liu <b08287@freescale.com>
|
|
a counter used in sdhci_enable_sdio_irq function is not correct.
calling the function with enable flag will skip enabling the irq if it
follows two continuous calls with disable flag because of the counter.
to resolve this problem, simply set the counter to 1 or 0 instead of counting.
this bug is reported by a customer.
Signed-off-by: Tony Lin <tony.lin@freescale.com>
|
|
FG pos need be reset to 0 when channel disable, but it will lost old setting.
Signed-off-by: Jason Chen <b02280@freescale.com>
|
|
For split mode, if using vf/enc task, the display is not correct.
Signed-off-by: Jason Chen <b02280@freescale.com>
|
|
One issue was found in split mode: For input 1024x600, output 1360x768,
after stripe calculation, input width and input column are not right.
This patch fix this issue.
Signed-off-by: Jason Chen <b02280@freescale.com>
|
|
The standard EHCI design will clear RS bit after usb bus goes to
suspend, but it causes some remote wakeup issues, like remote-wakeup
featured device will be reset after resuming.
According to usb 2.0 spec, the SOF need to be sent out within 3ms
after resume signal ends, or device may consider host disconnects
with device. Freescale's USB Controller (Chipidea's core) will ends
up resume signal automatically within 21ms after it recevices remote
wakeup signal. So, if software does not set RS bit within 21ms after
it recevices remote wakeup signal, the problem described above will
be occurred.
Signed-off-by: Peter Chen <peter.chen@freescale.com>
|
|
1. If change defconfig and only build in mc34708 dirver,
the following error is reported:
undefined reference to `mc13892_alloc_data'
undefined reference to `mc13892_init_registers'
undefined reference to `mc13892_get_revision'
This patch is to fix above compiling error.
2. Add mc34708 dependency in Kconfig
Signed-off-by: Lily Zhang <r58066@freescale.com>
|
|
Driver part
Please follow below load sequence to use OTG
- fsl_otg_arc
- ehci-hcd
- arcotg_udc
Besides, in order to match i.mx53 release windows, it changes some
common code, there will be a better solution at 2.6.38 in future
Signed-off-by: Peter Chen <peter.chen@freescale.com>
|
|
At armv7 SoC, the dma_alloc_coherent returns non-cachable, but
bufferable region, so the driver needs to drain write buffer by
itself, if the controller needs to visit dma buffer immediately
after cpu writes
There is a discussion for this armv7 change:
http://marc.info/?t=127918539100004&r=1&w=2
For this issue, the next dtd pointer is invalid sometimes, the reason
is the region which is used to store dtd is dma buffer, so the data may
not be written to memory when the controller visit this data.
Signed-off-by: Peter Chen <peter.chen@freescale.com>
|
|
- The spin_lock is at interrupt handler, so all code routines
using at interrupt handler are forbidden to hold spin_lock again
- Move the code which needs to be protected by spin_lock to workqueue,
and it will be called when workqueue is scheduled.
Signed-off-by: Peter Chen <peter.chen@freescale.com>
|
|
Below bugs are fixes:
- the device is invalid when usb device at otg port
The reason is udc->suspended is incorrect when otg as host mode
during boot up
- The disconnect can't be detected if usb is online when booting up
The reason is the vbus interrupt enable is cleared by otg switch work
Signed-off-by: Peter Chen <peter.chen@freescale.com>
|
|
wait_event_interruptible_timeout function could be signal
return, so we need add ERESTARTSYS return value to let libc
retry sys call.
Signed-off-by: Jason Chen <b02280@freescale.com>
|
|
1) do not always open clock for sdio card until sdio driver loaded
2) WiFi should disable host clock for host when unloaded because host
has no sense when sdio driver unloadded.
Noted the clock disable should at the end of SDIO driver remove callback.
Signed-off-by: Dong Aisheng <b29396@freescale.com>
|
|
Add Wolfson PMIC WM8325 driver support
Signed-off-by: Wayne Zou <b36644@freescale.com>
|
|
Add cea extend revision 1 and 2 support.
Signed-off-by: Jason Chen <b02280@freescale.com>
|
|
- Fixed bug in how new waveform set is copied into EPDC driver internal
copy of waveform modes.
Signed-off-by: Danny Nold <dannynold@freescale.com>
|
|
During the platform boot up, during the platform does DA9053 Read/Write
operation, it writes slave address and wait for ACK . Instead of ACK
PMIC sends NAK. A workaround fix is provided as a part of retries
fix I2C NAK for very first access.
Also fix a bug when the system fails to start after software shutdown.
Signed-off-by: Wayne Zou <b36644@freescale.com>
|
|
Changes Made
--------------
1) On Pen UP the TSI threads are stopped and
On Pen DOWN TSI threads are started
2) Removed TSI thread creation from Probe,
instead creating the TSI threads when PEN DOWN
Expected Output
-------------------
1) TSI threads to stop either when system is suspended or,
there is no touch event.Thus conserving power during system
suspend, idle and no touch event.
2) TSI threads to start only on touch event and not when system is resumed.
3) On system Start/Restart TSI threads will not be created and started till
the touch detection.
Signed-off-by: Wayne Zou <b36644@freescale.com>
|
|
Fix asrc build error introduced by:
'be75f376017a04b55cc9f4b3d1c3f2836deb9e47'
Signed-off-by: Zeng Zhaoming <b32542@freescale.com>
|
|
Asrc not works with ssi, it partly caused by ASRC driver not correctly
handle ssi input clock and data format.
SSI frame clock counting by word, when data format is 16bit-LE,
two channel data combine to one word, and frame rate used by
ASRC should take this into account.
And more, unlike Mx3x, Mx5x should set input and output data format
correctly in its ASRMCR1x register.
Signed-off-by: Zeng Zhaoming <b32542@freescale.com>
|
|
1) Current blank information should be unblank if
we return back from mxcfb_set_par() function
successfully.
2) Remove bypassing the suspend handling for
overlay framebuffer for Android.
3) Synchronize fb unblanking operation bewteen
Android early suspend and mxcfb_set_par() to
avoid fb being unblanked after early suspend
is done, as Android early suspend doesn't
guarantee fb cannot be operated after early
suspend.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
|
|
1) Fix race condition issue for enable/disable ipu clk.
2) Remove uninitializing MEM_FG_SYNC channel when
suspend for Android.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
|
|
Found the driver will leave i2c package dump message in kernel debug
level, it create too much noice, this should be deleted.
Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
|
|
Add vmalloced memory for multi-instances shared memory, vpu lib
will call mmap for accessing the memory.
VPU_IOC_GET_SHARE_MEM ioctl is still reserved for some time since
vpu lib still uses it for mx5x now. Will remove it after mx5x changes
to this new added memory later.
Signed-off-by: Sammy He <r62914@freescale.com>
|
|
This driver privides dedicated APIs similar to ones provided
by Linux PWM framework.
MC34708 PWM supports period of time from 16000 ns to 1024000 ns,
with the step of 16000 ns. The duty cycle is multiple of 1/32.
Signed-off-by: Robby Cai <R63905@freescale.com>
|
|
Fix a bug that da9052 tsi driver cannot support ts_calibrate test util.
Signed-off-by: Wayne Zou <b36644@freescale.com>
|
|
Using full register setting instead of partial register setting when switch
to VGA@30fps mode.
Signed-off-by: Yuxi Sun <b36102@freescale.com>
|
|
add initial setting at first, and update setting for 30fps_VGA mode,
QSXGA mode, and add exposure calculation for take picture.
Signed-off-by: Yuxi Sun <b36102@freescale.com>
|
|
The generation ID of MC34708 Rev 2.3 is 0x13.
The generation ID of MC34708 Rev 2.1 is 0x91.
This patch is used to remove generation id check to support
different Rev chips.
Signed-off-by: Lily Zhang <r58066@freescale.com>
|
|
Fix the issue of missing to increase open_count when vpu_open.
This is due to the patch of removing mx32 and mx37 code.
Signed-off-by: Sammy He <r62914@freescale.com>
|
|
set vga output gain to improve quality.
Signed-off-by: Jason Chen <b02280@freescale.com>
|
|
- Remove unused variable to correct build warning
- Fix __initdata structure define
Signed-off-by: Danny Nold <dannynold@freescale.com>
|