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>
|
|
There's only DISPLAY power down request setting before system suspends,
but without the paired DISPLAY power up request setting after resume.
This will cause ePxP/EPDC/SPDC module nonfunctional because the modules
will be powered down once pdn_req is asserted but not powered up again.
With this patch, ePxP/EPDC/SPDC survived (need reinitialize each, however)
on resume.
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>
|
|
Add VPU_IOC_PHYMEM_CHECK ioctl in header file.
This IOCTL will check the phy memory address is valid or not.
Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
|
|
Remove call memblock_free after reserve memory with memblock_allocate().
The function of memblock_free is to remove the memory block from reserve list
of memblock, it will totally lost the info about how much phy memory
we have.
Skipping call this can make the reserved memory be accountable in
memblock With no side-effect.
After doing this, we can know how much our phy memory is, then can add check
in our driver like(vpu) to check the phy memory valid or not before vpu start
use the address.
Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
|
|
add a function to check the end address including reserved memory,
this API can provide the top address of phy memory,
it can be used to check if the phy memory is valild in some driver
like VPU.
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
|
|
This patch refines OV csi camera reset sequence according to
OV's recommendation:
reset --------------------|_____|----------------
->| 1ms |<-
pwdn ----------|_________________________|------
->| 5ms |<- ->| 5ms |<-
->| 5ms |<-
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
|
|
This patch refines OV mipi camera reset sequence according to
OV's recommendation:
reset --------------------|_____|----------------
->| 1ms |<-
pwdn ----------|_________________________|------
->| 5ms |<- ->| 5ms |<-
->| 5ms |<-
This change makes the OV mipi camera be at a correct status
after reset, otherwise, the wrong status of OV mipi camera
will reduce the ~2.78V analog camera power to ~2.3V, which
causes random thin colorful lines on OV5642 CSI camera image
as OV5642 CSI camera uses the same analog power.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
|
|
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>
|
|
enable LDO bypass function on mx6sl_arm2 board as mx6q_sabresd board
Signed-off-by: Robin Gong <B38343@freescale.com>
|
|
There is one SOC bug if use LDO bypass, VDDARM_CAP will take 2ms to raise up
normal voltage when system resume back, longer than 40us before. Then it will
cause cpu hang if resume back.
Workaround:
We can disable LDO bypass at the last minute of suspend and enable LDO bypass
again as long as system resume back.
Signed-off-by: Robin Gong <B38343@freescale.com>
|
|
As before, raw I2C operation is added in suspend interface of cpufeq driver,so
that we can raise up cpu frequency and voltage after I2C driver suspended.But
the code is not platform independent if customer use another pmic whose I2C
slave address is different with pfuze.
Now, we rasie up cpu frequency and disable cpu frequency change in more earlier
than before. If system begin to suspend flow, we will do this.
Signed-off-by: Robin Gong <B38343@freescale.com>
|
|
Only need to save and restore PU field register value instead of the
whole CORE REG value to avoid changing SOC and ARM voltage.
No need to increase BUS freq before CPU freq increase when system
is in audio bus mode.
Signed-off-by: Anson Huang <b20788@freescale.com>
|
|
When BUS freq is running at DLL off mode(24M or 50M), when CPU
freq is increased, we need to increase BUS freq to 400M setpoint
in order to achieve high performance when CPU is busy.
Signed-off-by: Anson Huang <b20788@freescale.com>
|
|
50M -> 528M bus freq change will cause system hang, root
cause is that we didn't set 50M as DLL off mode, it should
be DLL off mode.
And make sure bus, axi, ahb, ipg and ipg_perclk are at right
freq during all setpoints.
Can't disable PU LDO again if it is not enabled.
Signed-off-by: Anson Huang <b20788@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>
|
|
1. enable the Keypad
2. change the F5 as POWER key
Signed-off-by: b02247 <b02247@freescale.com>
Signed-off-by: Jack Lee <jacklee@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
|
|
enabel mx6sl usb tether.
Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
|
|
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
|
|
Add debug message for wait mode to check it was enabled or not.
it will easy to get the wait mode status from this info
e.g, if wait mode is enabled, there are below info from console:
wait mode is enabled for i.MX6
Signed-off-by: Lin Fuzhen <fuzhen.lin@freescale.com>
|
|
This patch corrects camera mclk and audio mclk frequency
to be 24MHz to align with 24MHz osc clock.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
|
|
On MX6 SabreSD board, gpio_0 is muxed to clko to be
audio mclk and camera mclk. 24MHz osc clk is a stable
clock source, which can meet the requirement of audio
mclk and camera mclk. This patch sets clko parent
clock to be clko2 clock so that camera mclk and audio
mclk can source from osc clk.
There are 2 benifits after applying this patch:
1) clko's original parent clock(pll4_audio_main_clk)
can be gated off to save power or used by another
module.
2) ov5640/ov5642 camera most settings can reach
claimed 15fps or 30fps with no human eye recognizable
video quality downgrade.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
|
|
This patch supports clko2 clock to be clko's parent clock.
Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
|
|
|
|
Galcore reads baseAddress parameter from GPU resource set by kernel
Signed-off-by: Larry Li <b20787@freescale.com>
Acked-by: Lily Zhang
|
|
Add baseAddress parameter for GPU resource according to different
SOC
Signed-off-by: Larry Li <b20787@freescale.com>
|
|
1. enable pptp,l2tp vpn function.
- tested pptp
- l2tp not tested.
2. enable magic key in android by default, usuful when debuging.
Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
|
|
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>
|
|
Change the sdhc2 clock flag to require at least
400MHz DDR frequency when SDIO working.
If the SDIO clock is not taking into count by busfreq,
then when we going to low bus mode, the WIFI sdio
driver will lost interrupt and cause WIFI failed to work.
Signed-off-by: Xinyu Chen <xinyu.chen@freescale.com>
|
|
r2 is broken by L2 clean function which is used in the flow of
pending wakeup irq there before suspend, need to avoid using
important register.
Signed-off-by: Anson Huang <b20788@freescale.com>
|