Age | Commit message (Collapse) | Author |
|
Really disable pix/axi clock when SPDC is idle.
Signed-off-by: Robby Cai <R63905@freescale.com>
|
|
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>
|
|
update the battery info just when the value is changed.
Signed-off-by: Lin Fuzhen <fuzhen.lin@freescale.com>
|
|
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>
|
|
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>
|
|
- 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>
|
|
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>
|
|
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>
|
|
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)
|
|
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>
|
|
This issue is introduced in android gpu kernel merge,
fd60e6b4548d6e31beff9a959148653481b2e695
Signed-off-by: Xianzhong <b07117@freescale.com>
Acked-by: Lily Zhang
|
|
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>
|
|
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>
|
|
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>
|
|
enable the keypad as wake up source
Signed-off-by: b02247 <b02247@freescale.com>
|
|
Android does not enable openVG core, set VG initial power to false
Signed-off-by: Xianzhong <b07117@freescale.com>
Acked-by: Lily Zhang
|
|
Signed-off-by: Loren Huang <b02279@freescale.com>
Acked-by: Lily Zhang
|
|
This patch corrects sensor data struct by adding static
attribute.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
(cherry picked from commit 0736b94413f98c38a0b9032fd59e56ce5d47ff27)
|
|
This patch corrects sensor data struct by adding static
attribute.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
(cherry picked from commit 856a869d45599a19aa01e255ae85b0299748f4c9)
|
|
This patch corrects sensor data struct by adding static
attribute.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
(cherry picked from commit 6ec41710bb95620fe4f93247ba10e6c6a4928e0a)
|
|
This patch corrects sensor data struct by adding static
attribute.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
(cherry picked from commit c9be22e6d3dea164b31d20cad750fb4bd77b2b2f)
|
|
This patch corrects sensor data struct by adding static
attribute.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
(cherry picked from commit a14f5778bf1fe584a2769971f52cc3eec642fd23)
|
|
This patch corrects sensor data struct by adding static
attribute.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
(cherry picked from commit 8f7dc65f5407985b4fd8f7ed41d1f29ea2b1abff)
|
|
HDMI Hotplug function should work when display blank,
So keep HDMI HPD clock on.
Signed-off-by: Sandor Yu <R01008@freescale.com>
|
|
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
|
|
|
|
Galcore reads baseAddress parameter from GPU resource set by kernel
Signed-off-by: Larry Li <b20787@freescale.com>
Acked-by: Lily Zhang
|
|
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>
|
|
one sysfs interface for offset_discharger ,one sysfs interface for
offset_charger.
Signed-off-by: Rong Dian <b38775@freescale.com>
|
|
- Kernel will print dma free warning when no Sipix panel
connect. Fix dma free unmatched size.
Signed-off-by: Fugang Duan <B38611@freescale.com>
|
|
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>
|
|
Bind usb charger with power supply, and print some attributes about
usb charger.
Signed-off-by: Rong Dian <b38775@freescale.com>
|
|
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>
|
|
- 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
|
|
- 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>
|
|
Conflicts:
arch/arm/mach-mx6/devices-imx6q.h
drivers/power/sabresd_battery.c
|
|
Add VDOA tiled field format support for V4L2 output driver
Also add some debug information
Signed-off-by: Wayne Zou <b36644@freescale.com>
|
|
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>
|
|
Remove some unused code in battery driver
Signed-off-by: Lin Fuzhen <fuzhen.lin@freescale.com>
|
|
Remove redefined Item in Kconfig And Makefile for MAX11081
Signed-off-by: Lin Fuzhen <fuzhen.lin@freescale.com>
|
|
Remove some unused code in battery driver
Signed-off-by: Lin Fuzhen <fuzhen.lin@freescale.com>
|
|
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>
|
|
Remove redefined Item in Kconfig And Makefile for MAX11081
Signed-off-by: Lin Fuzhen <fuzhen.lin@freescale.com>
|
|
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>
|
|
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>
|
|
|
|
Not update FB var if video mode same as last HDMI cable plugout.
Signed-off-by: Sandor Yu <R01008@freescale.com>
|
|
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
|
|
Using small setting when switch from VGA to QVGA to take picture
Signed-off-by: Yuxi Sun <b36102@freescale.com>
|
|
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>
|