summaryrefslogtreecommitdiff
path: root/drivers
AgeCommit message (Collapse)Author
2012-01-11ENGR00171544 usb-core: usb host will be broken after system pm testPeter Chen
At i.mx6q sabrelite, there is a usb hub on board. After several suspend suspend/resume iterations, the usb host will be broken. It is IC limitation, and similar with: 574b9641d5846e58273dac6bf80fcf1ff312c5c9 Signed-off-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: make shi <b15407@freescale.com>
2012-01-11ENGR00169489-2 Add OV5642 csi camera support for i.mx6 sabre-lite board.Yi Li
Add OV5642 csi camera support for i.mx6 sabre-lite board Signed-off-by: Yi Li <R80015@freescale.com>
2012-01-11ENGR00171444 HDMI: Change video mode system will hang.Sandor Yu
There are two couples register for HDMI PHY interrupt/mask: HDMI_FC_INT2, HDMI_FC_MASK2 and HDMI_IH_FC_STAT2, HDMI_IH_MUTE_FC_STAT2. The register can not mixed use it, otherwise the interrupt will missing and not clean. Mask interrupt with HDMI_IH_MUTE_FC_STAT2 so check interrupt should use register HDMI_IH_FC_STAT2. Signed-off-by: Sandor Yu <R01008@freescale.com>
2012-01-09ENGR00171564-3 MX6Q ARM2: Enable TVIN based on AutoBoardEven Xu
- Add adv7180 driver to ARM2 support - Add adv7180 configure - Chenge CSI configure for BT656 support Signed-off-by: Even Xu <b21019@freescale.com>
2012-01-09ENGR00170912 HDMI: system hang if set hdmi_mode video=mxcfb1Sandor Yu
System will hang at PHY PLL lock wating loop, if HDMI PHY is down. Added timeout check for HDMI PHY PLL lock waiting. Signed-off-by: Sandor Yu <R01008@freescale.com>
2012-01-09ENGR00170444: [v3]imx6sabreauto adv7180 TVin portb37753
Kconfig and Makefile was modified in order to enable adv7180 driver for mx6q architecture. adv7180.c mutex was changed to semaphore as is described in "https://lwn.net/Articles/304725/ ". sensor data structure is added in fsl_devices.h. mxc_v4l2_capture.c condition in mxc_v4l2_sparam was removed because is going to be always true capture mode only have 1 possible value as is described in "https://lwn.net/Articles/235023/". ipu_capture.c clock divisor setup was added at init the csi. Signed-off-by: B37753 <B37753@freescale.com>
2012-01-04ENGR00171259 mx6 Fix warning while remove GPU moduleLarry Li
Avoid necessary clk_disable operation Signed-off-by: Larry Li <b20787@freescale.com>
2011-12-31ENGR00171113 flexcan: add self wakeup functionDong Aisheng
Flexcan can use the self wakeup function to wakeup system in system suspend state. Signed-off-by: Dong Aisheng <b29396@freescale.com>
2011-12-31ENGR00171043 gadget-audio: Kernel panic after insert g_audio at second timePeter Chen
The reason is it does not call usb_ep_disable at gadget disable routine. Signed-off-by: Peter Chen <peter.chen@freescale.com>
2011-12-31ENGR00162913-1 ASRC:fix asrc_audio_clock divider set bugChen Liangjun
The asrc_audio_clock in MX5 is different from MX6.Thus the divider value set can not be used in the MX6. Part of noise of ASRC output is caused by this. Add the function to calculate the divider and prescaler value according to the sample rate and asrc_audio_clock. Signed-off-by: Chen Liangjun <b36089@freescale.com>
2011-12-31ENGR00171083 Revert "ENGR00170944 [MX6Q MMC]suspend/resume crash"Ryan QIAN
issue: in the reverted patch, sdhc driver will claim host on its entering suspend state. and the wifi driver will hold host on its loading. so once system is about to enter suspend state, system will be pended on claiming host. fix: - Revert "ENGR00170944 [MX6Q MMC]suspend/resume crash" This reverts commit 3b2e3729dc57a5ff532552cde49de7ace4c5792c. Signed-off-by: Ryan QIAN <b32804@freescale.com>
2011-12-31ENGR00171111 MX6Q/TOUCHSCREEN : change the printk to dynamic printHuang Shijie
Too much printk make the dmesg mess. Change it to dynamic print mode. Signed-off-by: Huang Shijie <b32955@freescale.com>
2011-12-31ENGR00171035 Fix OV3640 XGA can not workEven Xu
- Fix OV3640 XGA cannot work, XGA can be supported - Add OV3640 720P, 1080P at 15fps support - Fix a MXC_V4L2_CAPTURE driver bug, when setting param, only when current mode and framerate are the same with param, then not change current setting again Signed-off-by: Even Xu <b21019@freescale.com>
2011-12-31ENGR00171027-3 usbcore:after plug in/out on the hub,host can't workTony LIU
This issue will happen only when suspend bit is set but phcd is not set The root cause of this issue is the IC defect. - If the suspend bit is set without phcd bit set, host controller can't resume normally - The workaround is after set suspend bit, we need set the following bit in USB PHY at once: HW_USBPHY_PWD_RXPWDRX HW_USBPHY_PWD_RXPWDDIFF HW_USBPHY_PWD_RXPWD1PT1 HW_USBPHY_PWD_RXPWDENV HW_USBPHY_PWD_TXPWDv2I HW_USBPHY_PWD_TXPWDIBIAS HW_USBPHY_PWD_TXPWDFS - Furthermore, after resume, we must clear these bits during the K state - IC has no plan to fix this issue - This issue only happen on MX6Q/MX28 core part Signed-off-by: Tony LIU <junjie.liu@freescale.com>
2011-12-31ENGR00171027-2 [USB_HOST]after plug in/out on the hub,host can't workTony LIU
This issue will happen only when suspend bit is set but phcd is not set The root cause of this issue is the IC defect. - If the suspend bit is set without phcd bit set, host controller can't resume normally - The workaround is after set suspend bit, we need set the following bit in USB PHY at once: HW_USBPHY_PWD_RXPWDRX HW_USBPHY_PWD_RXPWDDIFF HW_USBPHY_PWD_RXPWD1PT1 HW_USBPHY_PWD_RXPWDENV HW_USBPHY_PWD_TXPWDv2I HW_USBPHY_PWD_TXPWDIBIAS HW_USBPHY_PWD_TXPWDFS - Furthermore, after resume, we must clear these bits during the K state - IC has no plan to fix this issue - This issue only happen on MX6Q/MX28 driver part Signed-off-by: Tony LIU <junjie.liu@freescale.com>
2011-12-30ENGR00171047 Fix ov5640 QSXGA can not workEven Xu
Change sensor configuration to fix this issue. Signed-off-by: Even Xu <b21019@freescale.com>
2011-12-29ENGR00171064 [MX6]Complete SNVS RTC featureAnson Huang
Add ioctl support to complete RTC feature. Signed-off-by: Anson Huang <b20788@freescale.com>
2011-12-29ENGR00171052 mxc hdmi: fix HDMI CSC clock settingSandor Yu
Move HDMI csc clock setting to fucntion mxc_hdmi_enable_video_path. Signed-off-by: Sandor Yu <R01008@freescale.com>
2011-12-28ENGR00171010 enable exposure calculate functionYuxi Sun
Exposure calculate function was not used and this produce build warning, enable this function not only remove this warning, but also get a better image quality when take picture. Signed-off-by: Yuxi Sun <b36102@freescale.com>
2011-12-28ENGR00171001-2 MX6Q PFUZE100: fix build warningsRobin Gong
fix build warnings on pfuze driver: arch/arm/mach-mx6/mx6q_sabreauto_pmic_pfuze100.c:388: warning: initialization from incompatible pointer type drivers/mfd/pfuze-core.c:523: warning: initialization from incompatible pointer type drivers/mfd/pfuze-core.c:412: warning: 'pfuze_add_subdevice' defined but not used Signed-off-by: Robin Gong <B38343@freescale.com>
2011-12-28ENGR00170969: Remove build warnings in MLB driverTerry Lv
Remove build warnings in MLB driver. Signed-off-by: Terry Lv <r65388@freescale.com>
2011-12-28ENGR00170998 [MX6Q MMC]build warningTony Lin
fix following build warning: drivers/mmc/host/sdhci.c: In function 'sdhci_clk_worker': drivers/mmc/host/sdhci.c:53: warning: unused variable 'flags' drivers/mmc/host/sdhci.c: In function 'sdhci_resume_host': drivers/mmc/host/sdhci.c:1751: warning: 'ret' may be used uninitialized in this function Signed-off-by: Tony Lin <tony.lin@freescale.com>
2011-12-27ENGR00161871: ENET: Changing MDIO read and write timeoutRogerio Pimentel
The original FEC_MII_TIMEOUT was set to 1ms, which is too low when passed to the usecs_to_jiffies macro. On ARM one jiffy is 10ms, so use msecs_to_jiffies instead and use a timeout of 30ms, which corresponds to 3 jiffies. After running 3 hours NFS boots, the MDIO timeout do not occur anymore. Signed-off-by: Rogerio Pimentel <rogerio.pimentel@freescale.com>
2011-12-27ENGR00170938-2 mxc hdmi: Enable HDMI output color space convertSandor Yu
Enable HDMI output CSC. Enable HDMI under scan. Signed-off-by: Sandor Yu <R01008@freescale.com>
2011-12-27ENGR00170946:gpu:fix gpu kernel module can not be removed issuewu guoxing
fix gpu kernel module can not be removed issue Signed-off-by: Wu Guoxing <b39297@freescale.com> Acked-by: Lily Zhang
2011-12-27ENGR00139278-3: Add MLB main driver for mx6qTerry Lv
Add MLB main driver for mx6q. Signed-off-by: Terry Lv <r65388@freescale.com>
2011-12-27ENGR00170944 [MX6Q MMC]suspend/resume crashTony Lin
if the system suspend in the process of data transfer, current request is broken by the suspend request, thus there're sd/mmc requests error logs. to prevent this error, add a claim host in suspend function and release it in resume function to make sure the request is finished before entering suspend and next request could be started after resuming. Signed-off-by: Tony Lin <tony.lin@freescale.com>
2011-12-27ENGR00170784 - FEC : dma skb buffer map is not used rightly.Fugang Duan
Enable "CONFIG_DMA_API_DEBUG" in kernel, and system print: DMA-API: device driver tries to free DMA memory it has not allocated [device address=0x0000000046688020]...[<80222494>] (debug_dma_unmap_page+0x8c/0x98) from [<802a36a0>] (fec_enet_interrupt+0x430/0x5ac) Correct the usage of "dma_map_single" function. Signed-off-by: Fugang Duan <B38611@freescale.com>
2011-12-27ENGR00170929 [MX6Q MMC]might sleep in atomic contextTony Lin
call clk_enable/clk_disable in atomic is forbidden. move all the calls out of atomic context. Signed-off-by: Tony Lin <tony.lin@freescale.com>
2011-12-26ENGR00170751 Enable clock gating while gpu core comes to idleLoren Huang
-Correct gc355 initial power state to poweroff. -Separate clock gating operation in function gckOS_SetGPUPower(). -Turn on clock while suspend GPU cores. -Remove clock switch in drv_open(). Signed-off-by: Loren Huang <b02279@freescale.com> Acked-by: Lily Zhang
2011-12-26ENGR00170819-1 usb-gadget: add usb audio supportPeter Chen
- Only 44.1Khz audio are supported at i.MX6q, since only 44.1Khz local playback are supported at i.MX6q. - Since there is no feedback at current usb audio framework, it may have pop noise/no sound after play some minutes. - About how to test: please refer Documentation/arm/imx/udc.txt Signed-off-by: Peter Chen <peter.chen@freescale.com>
2011-12-26ENGR00170901-2 IMX/UART : add a wait queue for DMA RX in SMPHuang Shijie
The DMA RX thread may run on another CPU, while the application runs on one CPU. The application will close the uart when it finishes the required reading. But the DMA RX thread maybe still running in this situation. So add a wait queue to synchronize the __TWO__ sides in the SMP. Signed-off-by: Huang Shijie <b32955@freescale.com>
2011-12-26ENGR00170901-1 IMX/UART : Revert "ENGR00170465-2"Huang Shijie
This reverts commit 7e5181cd28ac3d786d0760f405fa5a1e3407a7a9. Signed-off-by: Huang Shijie <b32955@freescale.com>
2011-12-26Merge branch 'imx_2.6.38' of ↵Tony LIU
ssh://sw-git01-tx30.am.freescale.net/git/sw_git/repos/linux-2.6-imx into imx_2.6.38
2011-12-26ENGR00170144 [USB-Host] Fix the following USB hub issue on mx6qTony LIU
- After auto suspend, attach device to hub will cause host can't work any more - after system suspend, attach device to hub will cause host can't work any more - HSDISCONNECTDEC logic error - Set RUNSTOP in bus suspend, if no short delay, host can't work any more Signed-off-by: Tony LIU <junjie.liu@freescale.com>
2011-12-26ENGR00170800 mxc hdmi add more video mode to default modelistSandor Yu
Add all non-interlaced CEA mode to default modelist Add XGA and SXGA video mode to default modelist Signed-off-by: Sandor Yu <R01008@freescale.com>
2011-12-23ENGR00170788 MX6Q PFUZE100:configure VDDARM and VDDSOC voltage in standbyRobin Gong
Configure register 33&40&47 to set standby voltage of SW1A/1B/1C Signed-off-by: Robin Gong <B38343@freescale.com>
2011-12-22ENGR00170530 usb-udc: Some tiny bug fixesPeter Chen
Most of them are from community - Using correct dequeue method - Fix the ISOC_XFER condition judgement - Need to wmb before prime - Fix some conditions of udc->max_ep judgement Signed-off-by: Peter Chen <peter.chen@freescale.com>
2011-12-21ENGR00170255-3 MX6Q PFUZE100: add regulator driver of pfuze100Robin Gong
add new regulator driver for pfuze100 based on mfd structure Signed-off-by: Robin Gong <B38343@freescale.com>
2011-12-21ENGR00170255-2 MX6Q PFUZE100: add pfuze100 driverRobin Gong
add pfuze core driver for mx6 Signed-off-by: Robin Gong <B38343@freescale.com>
2011-12-19ENGR00162644 tty: serial: imx: Allow UART to be a source for wakeupFabio Estevam
Allow UART to be a source from wakeup from low power mode. Tested on a mx6sabrelite (where ttymxc1 is the console) by doing: echo enabled > /sys/devices/platform/imx-uart.1/tty/ttymxc1/power/wakeup echo mem > /sys/power/state and then pressing a key in the console will wakeup the system. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
2011-12-19ENGR00170534 mxc hdmi: hot-plug detect state notify and recordingSandor Yu
1. create sys node for fb name, cable state, edid data 2. call kobject_uevent_env pass cable state Signed-off-by: Sandor Yu <R01008@freescale.com>
2011-12-19ENGR00170465-2 MX6Q/UART : enlarge the RX FIFO threthold when DMA is enabled.Huang Shijie
Enlarge the RX FIFO threthold from 1 to 16 when the DMA is enabled. This will give us better performance. Signed-off-by: Huang Shijie <b32955@freescale.com>
2011-12-16ENGR00169872-2 rework hdmi initialization and hotplug sequenceAlan Tull
This commit intends to implement the flowchart and details documented in the HDMI Transmitter Controller User Guide section entitled "Programming Model". Some input is also from the Synopsys API code. The HDMI specification requires HDMI to set itself to VGA DVI mode before reading the EDID. So follow this sequence when HDMI is hotplugged: 1. Hdmi connector is plugged in, HDMI video gets an interrupt. 2. Clear out video mode list. Add only VGA DVI mode to list. 3. Request VGA DVI mode (call fb_set_var()) 4. HDMI video driver will get FB_EVENT_MODE_CHANGE callback and call mxc_hdmi_setup() to set up HDMI. 5. Read the edid and add video modes from edid. Select the video mode that is similar to the command line default. 6. Request VGA DVI mode (call fb_set_var()) 7. HDMI video driver will get FB_EVENT_MODE_CHANGE callback and do mxc_hdmi_setup(). Also included is a workaround for an overflow condition in the HDMI. The frame composer has an arithmetic unit that gets updated every time we write to one of the FC registers. But sometimes, depending on the relation between the tmds and sfr clocks, it may happen that this unit doesn't get updated, even though the registers are holding correct values. The workaround for this is, after completing the controller configuration, to rewrite one of the FC registers (i.e. FC_INVIDCONF) three or four times with the same value, and then follow it up by a SW reset to the TMDS clock domain (MC_SWRSTZ). We clear the overflow condition as described above every time we change video mode. Also an overflow interupt handler will clear the overflow condition if it happens again. This overflow condition is expected (and not a problem) when we are in DVI (non-HDMI) mode, so we do not worry about it in that case. Signed-off-by: Alan Tull <alan.tull@freescale.com>
2011-12-16Revert "tty: serial: imx: Allow UART to be a source for wakeup"Alan Tull
This reverts commit 6565023ad182d3347972aad3f1a13ba57266e81a.
2011-12-16tty: serial: imx: Allow UART to be a source for wakeupFabio Estevam
Allow UART to be a source for wakeup from low power mode. Tested on a mx6sabrelite (where ttymxc1 is the console) by doing: echo enabled > /sys/devices/platform/imx-uart.1/tty/ttymxc1/power/wakeup echo mem > /sys/power/state and then pressing a key in the console will wakeup the sytem. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
2011-12-16USB: Gadget: Composite: Debug interface comparisonJassi Brar
While checking valid interface number we should compare MAX_CONFIG_INTERFACES with the variable 'intf' (which holds the lower 8bits of w_index) rather than 'w_index' Signed-off-by: Jassi Brar <jassi.brar@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-12-16usb: gadget: audio: queue wLength-sized requestsFelipe Balbi
On Audio class, the wLength field of the Setup packet, contains the data payload size of the following Data phase. Instead of harcoding values, use wLength. This also fixes a bug where Gadget driver had to receive 3 bytes, but it was queueing a ZLP. Signed-off-by: Felipe Balbi <balbi@ti.com>
2011-12-16usb: gadget: audio: actually support both speedsFelipe Balbi
While testing g_audio with HighSpeed UDC on a FS Hub, we had no configurations to present to the host. That's because both speeds where mutually exclusive. Signed-off-by: Felipe Balbi <balbi@ti.com>
2011-12-16USB: gadget: f_audio: Fix invalid dereference of initdataMartin Jackson
as_out_ep_desc contines to be used during gadget enumeration and thus should not be marked as __initdata Signed-off-by: Martin Jackson <mjackson220.list@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>