summaryrefslogtreecommitdiff
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-10ENGR00216010-1: gpc: Add missing display_pup_req config after system resumesRobby Cai
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>
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-10ENGR00216013-3 vpu: add VPU_IOC_PHYMEM_CHECK ioctl.Zhang Jiejing
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>
2012-07-10ENGR00216013-2 mx6: not call memblock_free after reserve memory.Zhang Jiejing
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>
2012-07-10ENGR00216013-1 memblock: add memblock_end_of_DRAM_with_reserved() function.Zhang Jiejing
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>
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-06ENGR00215884-2 MX6 SabreSD:Refine OV csi camera reset sequenceLiu Ying
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>
2012-07-06ENGR00215884-1 MX6 SabreSD:Refine OV mipi camera reset sequenceLiu Ying
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>
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-05ENGR00215188-3 mx6sl:enable LDO bypass function on mx6sl_arm2Robin Gong
enable LDO bypass function on mx6sl_arm2 board as mx6q_sabresd board Signed-off-by: Robin Gong <B38343@freescale.com>
2012-07-05ENGR00215188-2 LDO bypass: disable LDO bypass before suspend and back in resumeRobin Gong
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>
2012-07-05ENGR00215188-1 PFUZE CPUFREQ: reconstruct LDO bypass functionRobin Gong
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>
2012-07-05ENGR00215668 [MX6]Only restore PU field value instead of whole reg valueAnson Huang
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>
2012-07-05ENGR00215491 [MX6]Need to increase BUS freq when CPU freq is increasedAnson Huang
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>
2012-07-05ENGR00214810 [MX6]Fix bus freq 50M->528M change issueAnson Huang
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>
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 Keypadb02247
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>
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-03ENGR00215542 mx6sl: enable usb tether in mx6sl.Zhang Jiejing
enabel mx6sl usb tether. Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
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-29ENGR00215195 MX6 PM:Add necessary info for waitmode to help debug system issueLin Fuzhen
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>
2012-06-29ENGR00215041-3 MX6 SabreSD:Correct camera and audio mclk freqLiu Ying
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>
2012-06-29ENGR00215041-2 MX6 SabreSD:Set clko parent to be clko2Liu Ying
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>
2012-06-29ENGR00215041-1 MX6 clock:Support clko2 to be clko's parent clkLiu Ying
This patch supports clko2 clock to be clko's parent clock. Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
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-28ENGR00214791-1 [MX6] Add baseAddress parameter for GPU resourceLarry Li
Add baseAddress parameter for GPU resource according to different SOC Signed-off-by: Larry Li <b20787@freescale.com>
2012-06-28ENGR00215165 android: config: support pptp,l2tp vpn function, enable magic keyZhang Jiejing
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>
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-26ENGR00214899 mx6 sabresd: requires 400MHz DDR when WIFI workingXinyu Chen
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>
2012-06-25ENGR00214765 [MX6]Fix resume fail when there is pending wakeup irqAnson Huang
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>