summaryrefslogtreecommitdiff
path: root/drivers
AgeCommit message (Collapse)Author
2015-05-08MLK-10823 usb: chipidea: imx: set b_sess_valid as wakeup source for imx7dl5.1.0_2.0.0_7d-alphaPeter Chen
In some situations, we need vbus level which lower than vbus valid as wakeup source, eg, at the OTG certification test, the valid bus level for b device is from 4.0v to 6.0v. Signed-off-by: Peter Chen <peter.chen@freescale.com>
2015-05-08MA-6376 Enable sensors on sabresd_7dHaoran Wang
Added drivers for fxas2100x, fxos8700 and mpl3115. Signed-off-by: Haoran Wang <b50027@freescale.com>
2015-05-08MA-6592 Enable EPDC display for i.MX7D sdbguoyin.chen
Disable lcdif framebuffer to make sure epdc fb as fb0 Change buffer number for epdc fb to be 3, which aligned with android hal Signed-off-by: guoyin.chen <guoyin.chen@freescale.com>
2015-05-08MLK-10736 epdc: update rotation configuration according to pxp driver changeRobby Cai
The commit c01cdab21b1e3cc045f40f29ca0d9292d238ffda introduced a different configuration for rotation case in PxP driver, that is, it requires the rotated width and height value. Thus EPDC driver, the user of PxP driver should also adjust accordingly. Signed-off-by: Robby Cai <r63905@freescale.com> (cherry picked from commit 390aa79dfd960ebb9b245c8ab9aa2c951a94cb78)
2015-05-08MA-6546 Fix PTP transport failureHaoran Wang
USB: gadget: mtp: Fix hang in ioctl(MTP_RECEIVE_FILE) for WritePartialObject In receive_file_work, we now queue reads with length rounded up to max packet size rather than mtp_rx_req_len. Otherwise the read request will never complete. Bug: 12195339 Cherry-picked from 0373636d110d37aedfc5d71ea56af61f6bb3b65e Mike Lockwood <lockwood@google.com> Signed-off-by: Haoran Wang <b50027@freescale.com>
2015-05-08MLK-10696 media: pxp-v4l2: refine the bounds sanity check logicFancy Fang
The output image area bounds check should be moved to where the 'l', 't', 'w' and 'h' are finalized to avoid the drect area beyond the maximum fb display area which may cause overflow issue when calculating the PXP PS LRC or ULC. Signed-off-by: Fancy Fang <chen.fang@freescale.com> (cherry picked from commit cf63a1f27173b9eb94992926cb1a22895d6ced5e)
2015-05-08net: fec: setup right value for mdio hold timeUwe Kleine-König
The FEC modules used on i.MX28 and newer have a register to tune the MDIO output hold time that should be at least 10 ns. Up to now this value was not explicitly set and so resulted in less hold time if the fec clock was faster than 100 MHz. This was noticed on an i.MX28 machine that uses an input clock of ~150 Mhz which resulted in unreliable communication with a Marvell switch. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: David S. Miller <davem@davemloft.net>
2015-05-08net: fec: fix unbalanced clk disable on driver unbindStefan Agner
When the driver is removed (e.g. using unbind through sysfs), the clocks get disabled twice, once on fec_enet_close and once on fec_drv_remove. Since the clocks are enabled only once, this leads to a warning: WARNING: CPU: 0 PID: 402 at drivers/clk/clk.c:992 clk_core_disable+0x64/0x68() Remove the call to fec_enet_clk_enable in fec_drv_remove to balance the clock enable/disable calls again. This has been introduce by e8fcfcd5684a ("net: fec: optimize the clock management to save power"). Signed-off-by: Stefan Agner <stefan@agner.ch> Acked-by: Fugang Duan <B38611@freescale.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2015-05-08net: fec: fix NULL pointer dereference in fec_enet_timeout_workHubert Feurstein
This patch initialises the fep->netdev pointer. This pointer was not initialised at all, but is used in fec_enet_timeout_work and in some error paths. Signed-off-by: Hubert Feurstein <h.feurstein@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
2015-05-08MLK-10573-4 dma: pxp-v3: add two planes output supportFancy Fang
The output channel support two planes YUV formats. So the output UV buffer should also be configured in this case. Signed-off-by: Fancy Fang <chen.fang@freescale.com> (cherry picked from commit 39a6cdaaccc9a0878fbce639d5f3ec2e195e48b6)
2015-05-08MLK-10573-3 dma: pxp-v3: add 'NV21' format supportFancy Fang
Add 'NV21' format support in pxp-v3 driver to fix some display issue in some test cases. Signed-off-by: Fancy Fang <chen.fang@freescale.com> (cherry picked from commit ff96db37e1a5292eda8f6ad6d56bd625c350686c)
2015-05-08MLK-10573-2 dma: pxp-v2: add two planes output supportFancy Fang
The output channel support two planes YUV formats. So the output UV buffer should also be configured in this case. Signed-off-by: Fancy Fang <chen.fang@freescale.com> (cherry picked from commit 6b360c61ed3371827417ed534b425ec243ea4313)
2015-05-08MLK-10573-1 dma: pxp-v2: add 'NV21' format supportFancy Fang
Add 'NV21' format support in pxp-v2 driver to fix some display issue in some test cases. Signed-off-by: Fancy Fang <chen.fang@freescale.com> (cherry picked from commit 23f59ebcc967be026f2a6417ab03c345b8c926f8)
2015-05-08MLK-10672 mmc: sdhci-esdhc-imx: set back the burst_length_enable bit to 1Haibo Chen
Currently we find that if a usdhc is choosed to boot system, then ROM code will set the burst length enable bit of this usdhc as 0. This will make performance drop a lot if this usdhc's burst length is 16. So this patch set back the burst_length_enable bit as 1, which is the default value, and means burst length is enabled for INCR. Signed-off-by: Haibo Chen <haibo.chen@freescale.com> (cherry picked from commit 1e48e8cb56019a120a82bc112177eab4c85b9f21)
2015-05-08MLK-10671 iio: ad2802a: use GPL v2 licenseHaibo Chen
Correct the GPL license to v2, not V2. Otherwise this driver is GPL-incompatible, and can't be make as module. Signed-off-by: Haibo Chen <haibo.chen@freescale.com> (cherry picked from commit 9641a38dd3fcd8ca0126c7158e37507958b49c5c)
2015-05-08MA-6541: sii902x: Add switch event for hdmi audio in sii902xShengjiu Wang
Add switch event for hdmi audio in sii902x Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
2015-05-08MLK-10654-2 pxp: cleanup the unused codesRobby Cai
- remove the unused codes - replace the C99 // comment style - no functional change Signed-off-by: Robby Cai <r63905@freescale.com> (cherry picked from commit 7aa1a01b293786ef03a33e15882487b4d663af42)
2015-05-08MLK-10654-1 epdc: cleanup the unused codesRobby Cai
remove the unused codes There's no functional change. Signed-off-by: Robby Cai <r63905@freescale.com> (cherry picked from commit 24babf0e772877b82f137d2c4d04c507414a95d6)
2015-05-08MLK-10629-4 mmc: sdhci: remove MMC_CAP_NEEDS_POLLDong Aisheng
This will cause meaningless CPU overhead by polling the card at backgroud if the CD is broken. Most board does not intend to use this function, so remove it. Platform driver could add it for test if needed. Signed-off-by: Dong Aisheng <b29396@freescale.com> (cherry picked from commit 9418183f29da8478d7103944f97a24946b7849d4)
2015-05-08MLK-10629-2 mmc: sdhci-esdhc-imx: implement wifi_card_detect functionDong Aisheng
WiFi driver could call wifi_card_detect function to re-detect card, this is required by some special WiFi cards like broadcom WiFi. To use this function, a new property is introduced to indicate a wifi host. Signed-off-by: Dong Aisheng <b29396@freescale.com> (cherry picked from commit bb95c03f7c576cdf20367875c19764ebb3eea4b2)
2015-05-08MLK-10593-3 video: mxsfb: use the default sync value to config lcdifFancy Fang
The sync information which are used to config lcd timings should be the same as the value in the dts file to avoid incorrect information which maybe passed by user app through fb ioctl. Signed-off-by: Fancy Fang <chen.fang@freescale.com> (cherry picked from commit bfcefaca9e333c84b6be84652853a769e6468f78)
2015-05-08MLK-10594 dma: pxp-v3: add RGB15 format supportFancy Fang
Add 'RGB15' format support for AS, PS and OUT channels for some multimedia applications. Signed-off-by: Fancy Fang <chen.fang@freescale.com> (cherry picked from commit 44b77612112d57ab54aabbb5d81e2df688646edd)
2015-05-08MLK-10574 dma: pxp-v3: porting some code change from v2Fancy Fang
Porting some changes from pxp-v2 driver to fix some bugs which have already been fixed in v2 driver. Signed-off-by: Fancy Fang <chen.fang@freescale.com> (cherry picked from commit 22ae3b63eca3913ce0fb524e383cd2ca1d36a23e)
2015-05-08MLK-10589 mmc: sdhci-esdhc-imx: set different burst length on different boardsHaibo Chen
currently we set burst length from 8 to 16 in our usdhc driver, but we find if the burst length is 16, the SD3.0 performance on i.MX6Q-sabreauto and i.MX6QP-sabreauto board will drop a lot. for TOSHIBA 16GB SDR104 card, if burst length is 16, the peformance on these two boards is: read: 19.4MB/s, write: 13.2MB/s when burst length is 8, the performance on these two boards is: read: 63MB/s, write: 25.4MB/s other boards like i.MX6sl-evk, i.MX6sx-sdb and i.MX7D-12x12-arm2 has no this issue. The root cause still not find on these two boards. So this patch just change the burst length to 16 for i.MX7d, all i.MX6 series will remain 8. Signed-off-by: Haibo Chen <haibo.chen@freescale.com> (cherry picked from commit bcb043082c14a65098a167624448715bbffa4a70)
2015-05-08mmc: sdhci: convert ADMA descriptors to a coherent allocationRussell King
Rather than using the streaming API, use the coherent allocator to provide this memory, thereby eliminating cache flushing of it each time we map and unmap it. This results in a 7.5% increase in transfer speed with a UHS-1 card operating in 3.3v mode at a clock of 49.5MHz. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Tested-by: Markus Pargmann <mpa@pengutronix.de> Tested-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Chris Ball <chris@printf.net> (cherry picked from commit d1e49f77d7c7b75fdc022e1d46c1549bbc91c5b7) (cherry picked from commit 71b9094aa4598818f4d866c823e2815052e4a9e0)
2015-05-08MLK-10571-1 clk: core: add CLK_SET_PARENT_ON flags to support clocks require ↵Dong Aisheng
parent on On Freescale i.MX7D platform, all clocks operations, including enable/disable, rate change and re-parent, requires its parent clock on. Current clock core can not support it well. This patch introduce a new flag CLK_SET_PARENT_ON to handle this special case in clock core that enable its parent clock firstly for each operation and disable it later after operation complete. The most special case is for set_parent() operation which requires both parent, old one and new one, to be enabled at the same time during the operation. Acked-by: Ranjani Vaidyanathan <Ranjani.Vaidyanathan@freescale.com> Signed-off-by: Dong Aisheng <b29396@freescale.com>
2015-05-08MLK-10541 pxp: fix build warningRobby Cai
Fix the warning by dynamically allocating the buffer for 'pxp_conf'. drivers/dma/pxp/pxp_device.c: In function 'pxp_ioc_config_chan': drivers/dma/pxp/pxp_device.c:487:1: warning: the frame size of 1264 bytes is larger than 1024 bytes [-Wframe-larger-than=] Signed-off-by: Robby Cai <r63905@freescale.com>
2015-05-08MLK-10565-2: mtd: qspi: Support QSPI on i.MX7D SDBHan Xu
Add a new entry for MX25L51245G QSPI NOR chip. Signed-off-by: Han Xu <b45815@freescale.com>
2015-05-08MLK-10274 tty: serial: clear AWAKE bit after resume backFugang Duan
When uart port (non-console port) in dma mode and use uart as remote wakeup source, after resume back, the AWAKE bit is not cleared most of interrupts are disabled. And then let system suspend state, system resume back immediately without any wake up action. So we need to clear the AWAKE bit after resume back in DMA mode. Signed-off-by: Fugang Duan <B38611@freescale.com>
2015-05-08MLK-10512-6 mcc: test: refine the print info in testRichard Zhu
- refine the print info format, to make alignment with m4 side. Signed-off-by: Richard Zhu <Richard.Zhu@freescale.com>
2015-05-08MLK-10512-5 mcc: sema4: enable sema4 on imx7dRichard Zhu
- enable sema4 on imx7d, and verified on imx7d mcc pingpong tests. Signed-off-by: Richard Zhu <Richard.Zhu@freescale.com>
2015-05-08MLK-10510-3 usb: chipidea: usbmisc_imx: add power lost check for i.MX7DLi Jun
Add power lost check implementation for i.MX7D. Acked-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Li Jun <jun.li@freescale.com>
2015-05-08MLK-10521-2: mtd: gpmi: Add NAND support on i.MX7DHan Xu
Support NAND on i.MX7D Signed-off-by: Han Xu <b45815@freescale.com>
2015-05-08MGS-608 [#1592] disable GC2000 TX clock gatingXianzhong
Random hang may occur if module clock gating is enabled for TX module, The software workaround is to disable clock gating for the TX module Date: Apr 01, 2015 Signed-off-by: Xianzhong <b07117@freescale.com> (cherry picked from commit 3bc16575406c239c0ad37cad73d2d8aa1d223c79)
2015-05-08MA-6476-2 The board can't touch after resume from deep suspendguoyin.chen
Remove early suspend/late resume in touch driver since it is been removed in 3.14 kernel Signed-off-by: guoyin.chen <guoyin.chen@freescale.com>
2015-05-08MLK-10502-2 spi: imx: use tc interrupt for the tail data in DMA modeRobin Gong
Use transfer complete interrupt for the tail data instead of PIO read. Some slave devices may not send data timely while checking rxfifo status, that means some tail data may loss. TC interrupt ensure no any data lossing. Signed-off-by: Robin Gong <b38343@freescale.com>
2015-05-08MLK-10502-1 spi: spi-imx: add bits_per_word checking in dma modeRobin Gong
Before, hardcode buswidth as 1byte while config dma channel. Correct it to dynamically config per buswidth setting. This patch cherry-pick from v3.10.y ccf74d50f7f85b6606d06a0245a72d22601ac9d8 Signed-off-by: Robin Gong <b38343@freescale.com>
2015-05-08MLK-10434-2: ov5640: Fix first frame black issueSandor Yu
The issue is caused by csi begin to work when ov5640 still in unstable state. Adjust ov5640 power up sequence: -Enable ov5640 power when device probe. -Remove ov5640 clock and power function from s_parm. -Remove s_stream function. -Remove regulator poweron/off from s_power function and only keep clk_enable/disable function in s_power. s_power will been called when v4l2 capture driver open/close. Signed-off-by: Sandor Yu <R01008@freescale.com>
2015-05-08MLK-10434-1: v4l2 capture: Add s_power subdev api in open/closeSandor Yu
Add s_power subdev api in vl42 capture open and close function. Signed-off-by: Sandor Yu <R01008@freescale.com>
2015-05-08MLK-10491-2:sii902x: Code change for imx7D SDBSandor Yu
-Remove variable waiting_for_fb, add manually trigger interrupter to support plugin interrupt is missed on some platform such as imx7D SDB. -Remove stop probe code if device_reset failed to support imx7D SDB. -Remove interrupt bit check in ISR. Signed-off-by: Sandor Yu <R01008@freescale.com>
2015-05-08MLK-10490 usb: chipidea: otg_fsm: update b_sess_vld after changes to be b_idleLi Jun
In a corner case: system suspend with usb device connected on OTG port, then remove usb device and connect OTG port to PC, and then resume the system, OTG cannot be enumrated by PC. Reason is there is no BSV irq generated after resume, so b_sess_vld cannot be updated and otg fsm state keeps in b_idle state with vbus on, this patch force a update of b_sess_vld flag according to OTGSC BSV status. Acked-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Li Jun <jun.li@freescale.com>
2015-05-08MLK-10466-3 pci: imx: add the pm mechanism for imx6qpRichard Zhu
add the pm mechanism for imx6qp pcie - enlarge the delay after pme_turn_off is set, then l23 can be enterred. - HW rework to use the dedicated gpio pin(gpio1_14) as the perst and change the sequence of the perst. - use the recommended deemp and swing configurations. Signed-off-by: Richard Zhu <Richard.Zhu@freescale.com>
2015-05-08MLK-10485: mtd: qspi: use quirk to distinguish different qspi versionHan Xu
add several quirk to distinguish different version of qspi module. Signed-off-by: Han Xu <b45815@freescale.com>
2015-05-08MLK-10205-2 mtd: qspi: support QSPI on i.MX7DHan Xu
Some code change for i.MX7D QSPI module. 1. Add specific devtype for i.MX7D. 2. Move get devtype data to early stage. 3. Fill the TXFIFO to 16 bytes to fix the HW related limitation. Signed-off-by: Han Xu <b45815@freescale.com>
2015-05-08MLK-10475-8 video: mxc: ldb: Add i.MX6qp LDB supportLiu Ying
i.MX6qp contains ldb clock tree fixup. This patch checks if we have the fixup or not according to the compatible string and separates the clock tree handling logics. Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
2015-05-08MLK-10475-6 video: mxc_ipuv3_fb: Add PRE/PRG supportguoyin.chen
This patch adds PRE/PRG support for IPUv3 fb. Signed-off-by: Liu Ying <Ying.Liu@freescale.com> Conflicts: drivers/video/mxc/mxc_ipuv3_fb.c
2015-05-08MLK-10475-5 mxc IPUv3: Add PRE supportLiu Ying
This patch adds PRE support. Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
2015-05-08MLK-10475-4 mxc IPUv3: Add PRG supportLiu Ying
This patch adds PRG support. Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
2015-05-08MLK-10475-3 mxc IPUv3: common: Changes for PRE/PRGLiu Ying
This patchs contains IPUv3 common driver change for adding PRE/PRG support. Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
2015-05-08MLK-10474 net: fec: remove frag number checkFugang Duan
Since TSO has no frag list, the frag number is zero. Remove the frag number check to fix kernel dump issue when SW TSO feature enable. Signed-off-by: Fugang Duan <B38611@freescale.com>