summaryrefslogtreecommitdiff
path: root/drivers
AgeCommit message (Collapse)Author
2011-12-15ENGR00144112 TVE:Fix potential hang issue for suspendLiu Ying
Framebuffer suspend event comes before framebuffer blank event when system entering suspend mode. So, if another driver calls FB_EVENT_BLANK notifier chain, i.e, Android IPUv3 fb driver, the suspend and blank event handlers registered in TVE driver will be called. We used to disable TVE clock in suspend handler, so it causes system hang when we try to access TVE register when go to blank handler. This patch fixes this issue. Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
2011-12-15ENGR00144396 mmc: mx_sdhci: add pm_cap for support WiFi WoW suspend mode.Zhang Jiejing
This patch add pm_cap for mx_sdhci driver, so the client mmc driver can use sdio_set_host_pm_flags() to set the MMC_PM_KEEP_POWER. Also if the driver found MMC_PM_WAKE_SDIO_IRQ in pm_flags, it should not unregister irq of this host, since the client maybe use this irq to support wake up. Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
2011-12-15ENGR00151822 - EPDC fb: Prevent endless collision by managing FULL mode updatesDanny Nold
When using SNAPSHOT update scheme, submitting FULL mode updates can easily lead to an endlessly looping sequence of collisions if any updates are active when the new FULL mode update is submitted. Thus, we must first flush any updates out before submitting a new FULL mode update. Signed-off-by: Danny Nold <dannynold@freescale.com>
2011-12-15ENGR00151494-1 vpu: remove the code for vpu of mx32/mx37 platformsSammy He
The vpu code in driver for mx32/mx37 is out of date already, and we won't support the platforms, so clean the code for removing it. Signed-off-by: Sammy He <r62914@freescale.com>
2011-12-15ENGR00151167 input: mpr121: add debug function and improve sensitivityZhang Jiejing
improve mpr121 capacitive key sensitivity by change threshold of release and touch and add a quick charge bit in init which is not documented in MPR121's data sheet. move macro define from header to source file. Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
2011-12-15ENGR00151639 - EPDC fb: Memory for PxP workaround buffers may be reducedDanny Nold
- This patch changes the way that buffers are allocated and used for the case where PxP alignment limitations are not met (a copy from the update source buffer into a temporary buffer before initiating the PxP processing task is required). Previously, a buffer was allocated on a per-update basis, resulting in a large number of copy buffers. Now, we allocate just one copy buffer that can be reused any time the PxP alignment workaround is required. This is okay because it is assured that only one PxP transaction can be prepared at a time. Signed-off-by: Danny Nold <dannynold@freescale.com>
2011-12-15ENGR00151476-2 ipu,mc13892,gps: remove build warning messageLily Zhang
Remove build warning message from ipu, mc13892 and gps drivers Signed-off-by: Lily Zhang <r58066@freescale.com>
2011-12-15ENGR00151519 FEC: Fix compile warning about incompatible pointer typeZeng Zhaoming
kernel compilation with a warning about fec. drivers/net/fec.c:929: warning: initialization from incompatible pointer type. This is caused by wrongly define get_link callback return type to int. Signed-off-by: Zeng Zhaoming <b32542@freescale.com>
2011-12-15ENGR00151378 esdhc: fix build failure for mx25/31/35Dong Aisheng
The problem is in drivers/mmc/host/mx_sdhci.c. DIGCTL_BASE_ADDR is undefined. Define it for mx25/31/35 for pass building. Signed-off-by: Dong Aisheng <b29396@freescale.com>
2011-12-15ccwmx53: da-9052: By default, disable tick alarm and normal alarm.Alex Gonzalez
2011-12-15ccwmx53: da-9052: Avoid compilation warnings.Alex Gonzalez
2011-12-15ccwmx53: da5092-rtc: Enable PMIC IRQ as wake up event.Alex Gonzalez
On setting the alarm and if the wakeup event has been enabled, configure the PMIC IRQ as wakeup event.
2011-12-15ccwmx53: da9052-rtc: Add alarm validation.Alex Gonzalez
This prints a message when if the alarm is to trigger immediately.
2011-12-15ccwmx53: da9052-rtc, Add some helpful debug.Alex Gonzalez
2011-12-15ccwmx53: da9052-rtc: IRQ masks and battery charge.Alex Gonzalez
Unmask the RTC alarm IRQ, and mask other unwanted IRQs by default, as the battery charge events. Also, configure the battery not to charge by default, let the battery driver do this if needed.
2011-12-15ccwmx53: Allow to use the power/wakeup on the MX53.Alex Gonzalez
These are the same changes implemented in the MX51 that allows to use the power/wakeup GPIO interface.
2011-12-15ccxmx5x: Do not setup the PMIC wake up source by defaultAlex Gonzalez
Only set the PMIC wake up source if configured to use the power on button.
2011-12-12ccwmx53: da9052, lower the level for RTC notify messages.Alex Gonzalez
They were continuously polluting the console at our default loglevel.
2011-12-01ccwmx53: Set up camera IOMUX configuration.Alex Gonzalez
2011-12-01ccxmx53: add support for ldb and LQ121K1LG11 on CERTMX53Pedro Perez de Heredia
This commit adds support for the LQ121K1LG11 LVDS display on the CERTMX53 board. To enable this support, select that display in the video variable: video=displayfb:LVDS@LQ121K1LG11 and configure the lvds bridge with following kernel cmdline entry: std_bootarg=ldb=single,di=0,ch0_map=JEIDA Signed-off-by: Pedro Perez de Heredia <pedro.perez@digi.com>
2011-12-01ad9389: make variable staticPedro Perez de Heredia
Signed-off-by: Pedro Perez de Heredia <pedro.perez@digi.com>
2011-12-01Revert "ENGR00127358 ipuv3: make display data signal negative during ↵Pedro Perez de Heredia
blanking period" This reverts commit 192d207beb81ce5ec17968a7359da8ba42e5578b. This code was causing a problem on some diplays by moving to the right in 1 pixel the framebuffer. This was happening on the LQ70 display and also on some screens with the HDMI interface. Fixes #40184. Signed-off-by: Pedro Perez de Heredia <pedro.perez@digi.com>
2011-11-29ccxmx5x: SPI, Fix half duplex reads.Alex Gonzalez
This is the other half of 7b97ff0a7e268d03396314c077cd04f26d3869bf. On a half duplex SPI transfer, a NULL RX or TX buffer can be passed to indicate it. This caused a NULL pointer exception. Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2011-11-29mma7455l: do not output DRDY pin on Measurement modeHector Palacios
When setting the mode to Measurement (0x01 to Mode Control Register at address 0x16), the DRDY pin was by default output to INT1/DRDY pin causing an interrupt. It looks like the interrupt is not correctly handled and hangs the system. To avoid this, when setting any mode set also DRPD flag to not output Data Ready status to DRDY/INT1 pin. The interrupt logic must be reviewed because it hangs the system. Currently, this driver does not correctly support interrupts. Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2011-11-28ccxmx53: Add USB OTG support.Alex Gonzalez
2011-11-07mt9v111: Do not fix an I2C bus to use for the cameraAlex Gonzalez
Any I2C bus should work with the driver. In the CCWMX51 it has been tested with both I2C_MXC and I2C_IMX (the default). Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2011-11-04mma7455: Modify I2C read and write implementation.Alex Gonzalez
The mma7455 driver is not working with the IMX_I2C driver, but it is with the MXC_I2C one. This commit modifies the I2C send and receive driver functions to use i2c_master_send() and i2c_master_rcve() instead of directly i2c_transfer. This change makes the driver work with both I2C bus drivers. This fixes Vantive 40023. Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2011-10-26CCXMX51: Add VPU IRAM configuration optionAlex Gonzalez
This option was moved to platform code in ENGR00140893-1 (9672393), in order to have a different value between MX51 and MX53 on freescale's multiplatform kernel. Freescale's recommendation is to disable it in the MX51 and enable it on the MX53. However, on our testing we have found it working better on some conditions with the IRAM enabled on the MX51. This commit reintroduces the option as a configuration element, and defaults it to enabled as that was the DEL 5.6 default. Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2011-10-26ccxmx5x: Add support for the power button.Alex Gonzalez
The power button will now suspend and resume the device. Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2011-10-25MXC V4L2 capture: Increase timeout to wait for ready_q.Alex Gonzalez
When using fbdevsink, the application needs more time to provide buffers.
2011-10-25MXC V4L2 output: Exit mxc_v4l2out_streamon if no buffers queued.Alex Gonzalez
Some framebuffer elements like fbdevsink will not use this output driver and hence the buffer_cnt will be zero. In that case, we should't try to continue with the mxc_v4l2_streamon.
2011-10-25MXC V4l2 output: On resume, delay running mxc_v4l2out_streamon.Alex Gonzalez
When the mfw_v4lsink gstreamer element is used for camera capture, the mxc_streamon needs to be scheduled before mxc_v4lout_streamon, otherwise the application won't supply any more buffers to the output ready_q and the capture will not resume.
2011-10-25MXC V4L2 output: Specialize mxc_v4l2out_streamoff for suspendAlex Gonzalez
When calling mxc_v4l2out_streamoff from suspend, we don't want it to empty the ready queue as the application on resume will expect it to be as it was before suspend.
2011-10-25MXC IPU: Add debug statement to ipu_uninit_channel.Alex Gonzalez
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2011-10-25MXC V4L2 output: Perform a streamoff on suspend and streamon on resumeAlex Gonzalez
This fixes the video suspend and resume issues for videos that need to be resized using the IPU post processor. The PP was not being reinitialized correctly on suspend/resume and the video was frozen on the screen. This fixes #40009. Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2011-10-25usb gadget: wrap code in file storage for mx5 archHector Palacios
A patch by Freescale was causing a kernel warning when removing the USB cable on cc9m2443js platforms. Wrap this code under CONFIG_ARCH_MX5 define. This fixes vantive 39792. Signed-off-by: Hector Palacios <hector.palacios@digi.com> (cherry picked from commit 373ad26fb851d6b3fdb2b8db89f396d9b916d7f2)
2011-10-25mxc_camera: fix remaining CSI_MEM for dual cameraHector Palacios
Signed-off-by: Hector Palacios <hector.palacios@digi.com> (cherry picked from commit 240ab1b12fdfe3978c175b44c6f0709290c8b581)
2011-10-24MXC V4L2 capture: Reinitialize CSI on resume. (#40007)Alex Gonzalez
The CSI registers lose their configuration on suspend. Make sure they are reinitialized on resume.
2011-10-24MXC V4L2 capture: Do not always reset buffer queues on mxc_streamoffAlex Gonzalez
We need to call mxc_streamoff on suspend, otherwise the CSI_MEM0 DMA channel (15) will not be disabled and the IPU clock will be left enabled on suspend. That will make the target not react to wake up events. However, we don't want mxc_streamoff to reinitialize the buffer queues as the application will desynchronize. This is part of a set of fixes for #40007.
2011-10-24MXC V4L2 capture: Delay stream on until application event (#40007)Alex Gonzalez
The application needs to queue a buffer before we can re initialize the stream.
2011-10-24MXC IPU3: Change error message for warning.Alex Gonzalez
This condition has no effect on the functionality, don't scare the user with an error message.
2011-10-24MXC V4L2 output: Add suspend and resume functions (#40007)Alex Gonzalez
With the camera capture on, the MEM_PP_MEM channel is initialized, but on suspend the channel is not uninitialized. As a consequence the suspend happens with the IPU clock enabled, and the MX CPU will not respond to the programmed wake up events. On this commit we implement the un-initialization and re-initialization of that IPU channel on the new suspend and resume functions. Also, we need to call mxc_streamoff from mxc_v4l2_suspend to disable the CSI_MEM0 IPU channel. Unless all active IPU channels are disabled the IPU clock will be active and the wake up event will hang the target.
2011-10-24MXC IPU: Fix debug macroAlex Gonzalez
2011-10-22Revert "mxc_ts: improved wait on irq support, avoding a race condition"Pedro Perez de Heredia
This reverts commit 27092fa602c11d0abb03ea05601fdb4a8dd15cff. This fixes #37737. Signed-off-by: Pedro Perez de Heredia <pedro.perez@digi.com>
2011-10-19mxc_camera: fix support for dual cameraHector Palacios
Support for the two cameras was incomplete and caused the camera2 be not detected if the camera1 was not connected (see vantive 40526). Also, two devices (video0 and video1) were created no matter if only one camera was enabled in the kernel config. The commit, wraps the different arrays for the two camera sensors into the kernel config defines for each camera. The function that returns the CSI of the camera is substituted to return the index of the camera in the arrays, instead. The CSI of the camera is retrieved from field 'id' of the mxc_v4l2_devices array. The cameras (if enabled in kernel config) are registered, no matter if the sensor is detected, otherwise camera2 would not be detected if camera1 is not connected. This fixes vantive 40526. NOTE: a race appeared between function init_camera_struct() in mxc_v4l2_capture.c and function mt9v111_probe() in mt9v111.c. The first function registers the device which calls the probe. Apparently the race happened when accessing the i2c_client pointer. Moving this instruction below in the probe() made the race disappear but it might show up again in the future. Signed-off-by: Hector Palacios <hector.palacios@digi.com> (cherry picked from commit 870484c800401ab91945af30713756fd292a313f)
2011-10-18fim-sdio: card detect pin initial value fixed, and increase SD response timeoutRobert Hodaszi
- When card detect pin's polling was enabled, the driver always started with card unplugged state. It caused double initialization. - SD response timeout was too tight. Sometimes the FIM didn't have enough time to answer, if there was an SD communication error. Signed-off-by: Robert Hodaszi <robert.hodaszi@digi.com>
2011-10-17ccwmx5x: Disable watchdog warm reset optionAlex Gonzalez
Add a configuration option to force all resets to be cold resets. This is a workaround for v40123. Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com> Conflicts: drivers/watchdog/mxc_wdt.c Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2011-10-14ns9xxx-eth: free sk_buf when DMA_DESC fullHector Palacios
When the DMA descriptor ring was full, the socket buffer was not freed, which could lead to a memory leak as the rx irq routine keeps allocating socket buffers. This happened under the following scenario: netpipe test when target is forced to advertise 10baseT modes only. This fixes vantive #40455. Signed-off-by: Hector Palacios <hector.palacios@digi.com> (cherry picked from commit 64269671ee2aa18c4490fe319004a8aeae13698c)
2011-10-10fim-sdio: fix firmware restart / removing the SD-card without unmount could ↵Robert Hodaszi
cause invalid driver state Firmware restart function was not worked before -> fixed. If the user removed the SD-card under communication or without unmount, the driver got into an invalid state. It was because e.g. in case of a transmit error, the FIM firmware interrupted the communication after the problematic block, but the driver sent more blocks in a DMA buffer, so the FIM interpreted the remaining data as new commands. It is fixed in the FIM firmware also, see in the FIM repository: bf7188b061315ce9c8cd56c8cc37414851fe3556 In the fim_sd_send_command() function, the command response validater routine moved before the block writing. It causes a shorter command timeout time. Signed-off-by: Robert Hodaszi <robert.hodaszi@digi.com>
2011-10-03smsc911x: reset PHY_INT_EN if pendingHector Palacios
For some reason, after resuming with PHY_INT_EN by connecting the cable the interrupt line is hold low and the interrupt status is active. Writing a 1 to INT_STS doesn't seem to clear the interrupt either, preventing the driver from doing future wakeups. This commit resets PHY_INT_EN and restores its previous status. This clears the interrupt. Fixes vantive 39967. Signed-off-by: Hector Palacios <hector.palacios@digi.com> (cherry picked from commit 23762275c384e14940f11e8f3979f588e746195f)