summaryrefslogtreecommitdiff
path: root/drivers
AgeCommit message (Collapse)Author
2012-07-10ENGR00216010-3: spdc: Make clock enable/disable paired for PIX and AXIimx-android-r13.5-alphaRobby Cai
Really disable pix/axi clock when SPDC is idle. Signed-off-by: Robby Cai <R63905@freescale.com>
2012-07-10ENGR00216010-2: [e|s]pdc: re-initialize the controller after resumeRobby Cai
Because we have DISPLAY power down/up request when do suspend/resume, EPDC/SPDC has been powered off and powered on again, thus re-initialization is needed. Signed-off-by: Robby Cai <R63905@freescale.com>
2012-07-10ENGR00216254 mx6 sabresd battery:change battery status update strategyLin Fuzhen
update the battery info just when the value is changed. Signed-off-by: Lin Fuzhen <fuzhen.lin@freescale.com>
2012-07-10ENGR00215718: battery: fix issure that coulomb data increases in dischargerRong Dian
Hardware cannot support battery internal resistance and coulomb calculation, estimate data only by battery voltage.The true battery voltage will change to a bit lower about 50mV~500mV than normal voltage with playing game or video or other consumption actions, then change back to normal voltage with finishing playing game or video or other consumption actions in the discharger stage. Signed-off-by: Rong Dian <b38775@freescale.com>
2012-07-10ENGR00216013-4 vpu: add phy address check ioctl.Zhang Jiejing
this patch is adding a ioctl for vpu to check the phy addr before vpu start using this addr, this use case is common in some Direct Render case, the VPU 's framebuffer phy memory is allocate by GPU, if the address given by GPU have some wrong, like pass a virtual address, vpu will hang the system. Add this IOCTL to be the goalkeeper, this IOCTL can check whether the phy address was virtual memory or the address is within phy memory of your DDR. The phy memory valild check is now doing best effort: 1. check whether is was allocated by vmalloc(), which must be a phy un-continus 2. check whether is was beyound DDR's top address, usually the other driver pass a virtual address as a phy address. Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
2012-07-10ENGR00215792 USB:fix gadget issue when boot kernel with USB connectedmake shi
- USB gadget disconnected when system boot kernel with USB connected. Commit 68b1c60f7f6c436340206679a18d61d9 induce the issue, call dr_discharge_line(1) to ensure no abnormal usb wakeup interrupt happen after plug out the cable. There are two cases cause dr_discharge_line(1) of fsl_otg_event() be called. One case is switch the otg mode form Host mode to Device mode. Another case is boot kernel with USB connected. The host_first_call is true when system boot kernel with USB connected, otherwise it is false. So dr_discharge_line(true) should not be called in fsl_otg_event() if host_first_call is true. - USBOH3 clock is still on after plug out the cable when boot kernel with USB connected, If the suspended bit is 0x1 and stopped is 0x0,the case is regarded as suspend connected to usb charger. USB clock will be turn on, otherwise the second suspend is processed without USB clock and it causes system hang. But system boot kernel with cable connected, suspended is 0x1 and stopped is 0x0. USB clock will be on by mistake. And stopped is cleared in dr_controller_run() when system boot kernel with USB connected. We should check the suspended and stopped bit before call dr_controller_run() to fix the issue. Signed-off-by: make shi <b15407@freescale.com>
2012-07-10ENGR00215344-1 disable the fix of GPU became slow after long time runRichard Liu
disable fix of GPU became slow after long time run some applications the patch has some side effect when play video or camera record disable it and will provide a final solution later Signed-off-by: Richard Liu <r66033@freescale.com>
2012-07-09ENGR00216008 ov5642: Add exposure calculation when set modeYuxi Sun
Originally only QSXGA mode use exposure calculation, now we enable this function on every mode to fix image dark problem. Signed-off-by: Yuxi Sun <b36102@freescale.com>
2012-07-09ENGR00216005 OV5640 mipi camera:Correct sensor chip nameLiu Ying
This patch corrects ov5640 mipi camera sensor chip name to distinguish it from ov5640 csi camera. Signed-off-by: Liu Ying <Ying.Liu@freescale.com> (cherry picked from commit a70509deaa06107c46e408ca7a1573034eab23ba)
2012-07-06ENGR00215844 OV5642 camera: Add FPS checking for mode changeguoyin.chen
For fast mode setting, ov5642_change_mode does not check the fps setting. New mode in ov5642_change_mode will have to be the same FPS as previous mode. Only schedule the fast setting if previous fps is same as new one. Signed-off-by: guoyin.chen <guoyin.chen@freescale.com>
2012-07-06ENGR00215943 Fixed gpu power auto gating issueXianzhong
This issue is introduced in android gpu kernel merge, fd60e6b4548d6e31beff9a959148653481b2e695 Signed-off-by: Xianzhong <b07117@freescale.com> Acked-by: Lily Zhang
2012-07-05ENGR00215592 - EPDC fb: Fix bug in selecting next LUT when 0-31 busyDanny Nold
If LUT 63 is busy and LUTs 0-31 are busy, the epdc_choose_next_lut function was not correctly selecting an available LUT between 32-62. Instead, it was returning 0. This fixes that issue by properly offsetting the available LUT from the second 32-bit segment of the 64-bit LUT field. Signed-off-by: Danny Nold <dannynold@freescale.com>
2012-07-05ENGR00215188-4 PFUZE : remove related old code in pfuze driverRobin Gong
1.remove related old code in pfuze driver 2.add i2c write retry as i2c read retry. Signed-off-by: Robin Gong <B38343@freescale.com>
2012-07-04ENGR00215762 OV5642 camera:Improve XGA@30 image qualityLiu Ying
This patch changes output drive capability of ov5642 camera register 0x302c's bit[6:5] to 0'11 to get 4x drive capability so that green lines cannot be seen in the captured frames. Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
2012-07-04ENGR00215740 enable the keypad as wake up sourceb02247
enable the keypad as wake up source Signed-off-by: b02247 <b02247@freescale.com>
2012-07-04ENGR00215504-1 Fixed gpu suspend resume failure issueXianzhong
Android does not enable openVG core, set VG initial power to false Signed-off-by: Xianzhong <b07117@freescale.com> Acked-by: Lily Zhang
2012-07-03ENGR00215504 Merge vivante 4.6.9 kernel part codeXianzhong
Signed-off-by: Loren Huang <b02279@freescale.com> Acked-by: Lily Zhang
2012-07-03ENGR00215531-6 V4L2:OV8820_mipi:Correct sensor data attributeLiu Ying
This patch corrects sensor data struct by adding static attribute. Signed-off-by: Liu Ying <Ying.Liu@freescale.com> (cherry picked from commit 0736b94413f98c38a0b9032fd59e56ce5d47ff27)
2012-07-03ENGR00215531-5 V4L2:OV5642:Correct sensor data attributeLiu Ying
This patch corrects sensor data struct by adding static attribute. Signed-off-by: Liu Ying <Ying.Liu@freescale.com> (cherry picked from commit 856a869d45599a19aa01e255ae85b0299748f4c9)
2012-07-03ENGR00215531-4 V4L2:OV5640_mipi:Correct sensor data attributeLiu Ying
This patch corrects sensor data struct by adding static attribute. Signed-off-by: Liu Ying <Ying.Liu@freescale.com> (cherry picked from commit 6ec41710bb95620fe4f93247ba10e6c6a4928e0a)
2012-07-03ENGR00215531-3 V4L2:OV5640:Correct sensor data attributeLiu Ying
This patch corrects sensor data struct by adding static attribute. Signed-off-by: Liu Ying <Ying.Liu@freescale.com> (cherry picked from commit c9be22e6d3dea164b31d20cad750fb4bd77b2b2f)
2012-07-03ENGR00215531-2 V4L2:OV3640:Correct sensor data attributeLiu Ying
This patch corrects sensor data struct by adding static attribute. Signed-off-by: Liu Ying <Ying.Liu@freescale.com> (cherry picked from commit a14f5778bf1fe584a2769971f52cc3eec642fd23)
2012-07-03ENGR00215531-1 V4L2:ADV7180:Correct sensor data attributeLiu Ying
This patch corrects sensor data struct by adding static attribute. Signed-off-by: Liu Ying <Ying.Liu@freescale.com> (cherry picked from commit 8f7dc65f5407985b4fd8f7ed41d1f29ea2b1abff)
2012-07-02ENGR00215516 MX6x HDMI, keep HDMI HPD clock on when display blankSandor Yu
HDMI Hotplug function should work when display blank, So keep HDMI HPD clock on. Signed-off-by: Sandor Yu <R01008@freescale.com>
2012-07-02ENGR00215344 GPU became slow after long time run some applicationsRichard Liu
GPU became slow after long time run some applications root cause is when GPU reserved memory exhaust, GPU will request continue physical memory which will trigger defregment operation in kernel and cause system slow Signed-off-by: Richard Liu <r66033@freescale.com> Acked-by: Lily Zhang
2012-06-29Merge commit 'rel_imx_3.0.15_12.06.01_RC3' into imx_3.0.15_androidXinyu Chen
2012-06-28ENGR00214791-2 [MX6] GalCore gets baseAddress parameter for kernelLarry Li
Galcore reads baseAddress parameter from GPU resource set by kernel Signed-off-by: Larry Li <b20787@freescale.com> Acked-by: Lily Zhang
2012-06-27ENGR00214865 mxc_v4l2_capture:Be silent when closing deviceLiu Ying
This patch changes the debug level of a kernel message in mxc_v4l2_close() from KERN_INFO to KERN_DEBUG to make the console silent when closing device. Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
2012-06-21ENGR00214578: battery:divide one offset sysfs interface into two interfacesRong Dian
one sysfs interface for offset_discharger ,one sysfs interface for offset_charger. Signed-off-by: Rong Dian <b38775@freescale.com>
2012-06-21ENGR00214568 - SPDC : fix dma free unmatched sizeFugang Duan
- Kernel will print dma free warning when no Sipix panel connect. Fix dma free unmatched size. Signed-off-by: Fugang Duan <B38611@freescale.com>
2012-06-21ENGR00210937:v4l2: kernel dump caused by remove mxc_v4l2_captureWu Guoxing
kernel dump when do "modprobe -r mxc_v4l2_capture" this is caused by unregister wrong v4l2 int device when rmmod Signed-off-by: Wu Guoxing <b39297@freescale.com>
2012-06-21ENGR00214367-2 imx6 usb charger: bind usb charger with power supplyRong Dian
Bind usb charger with power supply, and print some attributes about usb charger. Signed-off-by: Rong Dian <b38775@freescale.com>
2012-06-21ENGR00214367-1 power_supply: add get_supplier_propertyRong Dian
add get_supplier_property interface. This patch was written by: Heikki Krogerus <heikki.krogerus@linux.intel.com> originally. Signed-off-by: Rong Dian <b38775@freescale.com>
2012-06-21ENGR00213944-02: mmc: sdhci: [MX6] support SD v3.0 memory cards.Ryan QIAN
- Add variable pad speed setting per SD clk freq. - Add SD3.0 support on SD1, SD2, and SD3. - Enhance drive strength on SD pad to improve its compatibility. - change the definition of pad speed changing interface - combine pad speed setting for different SD host controllers into one function. Signed-off-by: Ryan QIAN <b32804@freescale.com> Acked-by: Lily Zhang
2012-06-21ENGR00213944-01: mmc: sdhci: support SD v3.0 memory cards.Ryan QIAN
- Correct switcing signaling voltage sequence according to SD3.0 spec, that turn off SD clk before switching signaling voltage. - previous code can work on MX6Q but failed on MX6SL. - only have sequence corrected, it can work on MX6SL. Signed-off-by: Ryan QIAN <b32804@freescale.com>
2012-06-21Merge remote branch 'fsl-linux-sdk/imx_3.0.15' into imx_3.0.15_androidXinyu Chen
Conflicts: arch/arm/mach-mx6/devices-imx6q.h drivers/power/sabresd_battery.c
2012-06-21ENGR00182045-2 V4L2 output: Fix bug: VDOA interlaced video can't play normallyWayne Zou
Add VDOA tiled field format support for V4L2 output driver Also add some debug information Signed-off-by: Wayne Zou <b36644@freescale.com>
2012-06-21ENGR00182045-1 IPU device: Fix bug: VDOA interlaced video can't play normallyWayne Zou
Add IPU_MAX_VDI_IN_WIDTH for I.MX IPUv3 hardware For chrome buffer address(uoff) should be offset from luma buffer address Signed-off-by: Wayne Zou <b36644@freescale.com>
2012-06-21ENGR00214081-2 PM: Remove unused code in battery driverLin Fuzhen
Remove some unused code in battery driver Signed-off-by: Lin Fuzhen <fuzhen.lin@freescale.com>
2012-06-21ENGR00214081-1 Input: Remove redefined Item in Kconfig And MakefileLin Fuzhen
Remove redefined Item in Kconfig And Makefile for MAX11081 Signed-off-by: Lin Fuzhen <fuzhen.lin@freescale.com>
2012-06-19ENGR00214081-4 PM: Remove unused code in battery driverLin Fuzhen
Remove some unused code in battery driver Signed-off-by: Lin Fuzhen <fuzhen.lin@freescale.com>
2012-06-19ENGR00214081-3 PM: Need init the wakelock before add battery deviceLin Fuzhen
Fix below issue: [<c00ad820>] (wake_lock_internal+0x288/0x344) from [<c0372174>] (power_supply_changed+0x28/0x40) [<c0372174>] (power_supply_changed+0x28/0x40) from [<c0372d70>] (max8903_battery_update_status+0xc4/0x120) [<c0372d70>] (max8903_battery_update_status+0xc4/0x120) from [<c0372fe8>] (max8903_battery_get_property+0x2c/0x1ec) [<c0372fe8>] (max8903_battery_get_property+0x2c/0x1ec) from [<c03723f8>] (power_supply_show_property+0x3c/0x1ac) [<c03723f8>] (power_supply_show_property+0x3c/0x1ac) from [<c0372600>] (power_supply_uevent+0x98/0x19c) [<c0372600>] (power_supply_uevent+0x98/0x19c) from [<c028969c>] (dev_uevent+0xa4/0x170) [<c028969c>] (dev_uevent+0xa4/0x170) from [<c0240c20>] (kobject_uevent_env+0x1b4/0x454) [<c0240c20>] (kobject_uevent_env+0x1b4/0x454) from [<c028a2d4>] (device_add+0x49c/0x570) [<c028a2d4>] (device_add+0x49c/0x570) from [<c0372230>] (power_supply_register+0xa4/0x110) [<c0372230>] (power_supply_register+0xa4/0x110) from [<c0564300>] (max8903_probe+0x2f8/0x688) [<c0564300>] (max8903_probe+0x2f8/0x688) from [<c028d178>] (platform_drv_probe+0x18/0x1c) [<c028d178>] (platform_drv_probe+0x18/0x1c) from [<c028bebc>] (driver_probe_device+0x98/0x1a8) [<c028bebc>] (driver_probe_device+0x98/0x1a8) from [<c028c058>] (__driver_attach+0x8c/0x90) [<c028c058>] (__driver_attach+0x8c/0x90) from [<c028b708>] (bus_for_each_dev+0x60/0x8c) [<c028b708>] (bus_for_each_dev+0x60/0x8c) from [<c028afd8>] (bus_add_driver+0xa0/0x234) [<c028afd8>] (bus_add_driver+0xa0/0x234) from [<c028c64c>] (driver_register+0x78/0x144) [<c028c64c>] (driver_register+0x78/0x144) from [<c0040520>] (do_one_initcall+0x34/0x17c) [<c0040520>] (do_one_initcall+0x34/0x17c) from [<c00083e8>] (kernel_init+0xb4/0x160) [<c00083e8>] (kernel_init+0xb4/0x160) from [<c0047074>] (kernel_thread_exit+0x0/0x8) for the wake lock in power_supply_register() route is not initialized so in wakelock_internal(), it will cause BUG(), and then system crash Signed-off-by: Lin Fuzhen <fuzhen.lin@freescale.com>
2012-06-19ENGR00214081-1 Input: Remove redefined Item in Kconfig And MakefileLin Fuzhen
Remove redefined Item in Kconfig And Makefile for MAX11081 Signed-off-by: Lin Fuzhen <fuzhen.lin@freescale.com>
2012-06-18ENGR00213722:MX6 SABRESD battery:add voltage offset sysfsRong Dian
interface and modify driver 1.add battery sample voltage offset sysfs interface. 2.add usb charger powersupply from max8903 UOK. 3.modify battery max coulomb data to 99% in charger full stage and modify battery max coulomb data to 100% in discharger stage,because hardware cannot support battery internal resistance and coulomb calculation.Battery voltage and coulomb may increase a bit in charger stage,so keep max coulomb data 99% in charger full stage. Signed-off-by: Rong Dian <b38775@freescale.com>
2012-06-18ENGR00212318 ASRC:update to in/out width configChen Liangjun
The origin ASRC driver did not support input and output wordwidth config but an total wordwidth config instead. And the input wordwith and output wordwidth are all fixed to 24 bit. In this path, we do things below: 1 Update to use input wordwidth and output wordwidth config seperately instead of an total wordwidth config. 2 Set corresponding DMA(input/output) buswidth according ASRC's input and output wordwidth config. 3 Support 16/24 bit input wordwidth and 24 bit output wordwidth. Signed-off-by: Chen Liangjun <b36089@freescale.com>
2012-06-18Merge remote branch 'fsl-linux-sdk/imx_3.0.15' into imx_3.0.15_androidXinyu Chen
2012-06-15ENGR00213514 HDMI: adjust hotplugin sequencySandor Yu
Not update FB var if video mode same as last HDMI cable plugout. Signed-off-by: Sandor Yu <R01008@freescale.com>
2012-06-15ENGR00213170-2 [MX6SL] Enable GPU driverLarry Li
Use allocated GPU resource to enable GPU. Memroy address on imx6sl board starts from 0x80000000 and GC320 can access [baseAddress, baseAddress + 2G) only without MMU. So to make GC320 work, baseAddres must be set to 0x80000000, and all address sent to GC320 must be a offset to baseAddress. GC355 doesn't need this baseAddress, that means it needs a real physcial adress, rather than the offset to baseAddress. Original code always change phsysical address to 'offset' before use it, no matter it is used by GC355 or GC320, so only one of them can work. Solution is to move address adjustion to arch specific part. So each core can get what it wants. Signed-off-by: Larry Li <b20787@freescale.com> Acked-by: Lily Zhang
2012-06-15ENGR00162848 ov5642: Fix QVGA take photo very darkYuxi Sun
Using small setting when switch from VGA to QVGA to take picture Signed-off-by: Yuxi Sun <b36102@freescale.com>
2012-06-14ENGR00213158-4 IPU: remove in_interrupt() check in _ipu_get/_ipu_putWayne Zou
Remove in_interrupt() check in _ipu_get/_ipu_put, since clk_enable and clk_disable should not happen in interrupt context. Signed-off-by: Wayne Zou <b36644@freescale.com>