Age | Commit message (Collapse) | Author |
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
enabel mx6sl usb tether.
Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
|
|
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>
|
|
|
|
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>
|
|
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>
|
|
- MX6 sololite cpu board NFS boot fails in sometimes, because MAC
cannot get any packets while sending DHCP to require IP. The
reproduce rate is 10%.
- Lan8720 phy enter a unexpected status, and need software reset
phy before transmition.
- Do some below overnight tests after add the changes, no NFS
boot issue found.
1. Kernel boot from MMC, rootfs mount from NFS.
2. Kernel boot from tftp, rootfs mount form NFS.
Signed-off-by: Fugang Duan <B38611@freescale.com>
|
|
Previous flow when we change PLL1_SW_CLK from 400M
PFD to PLL1_MAIN_CLK is as below:
1. move PLL1_SW_CLK from 400M PFD to PLL1_MAIN_CLK;
2. change PLL1_MAIN_CLK's freq if necessary;
There is chance that the PLL1_MAIN_CLK freq is higher
than what we want, then after step1, system may hang as
we use low voltage to run high freq.
The correct flow should be as below:
1. make sure PLL1_MAIN_CLK is enabled;
2. make sure pLL1_MAIN_CLK freq is what we want;
3. move PLL1_SW_CLK from 400M PFD to PLL1_MAIN_CLK.
Signed-off-by: Anson Huang <b20788@freescale.com>
|
|
Busfreq should be enabled at boot by default on i.MX6SL.
Signed-off-by: Nancy Chen <Nancy.Chen@freescale.com>
|
|
Set conservative governor as default governor.
Signed-off-by: Nancy Chen <Nancy.Chen@freescale.com>
|
|
disable imx6 usb charger default
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
|
|
Conflicts:
arch/arm/mach-mx6/devices-imx6q.h
drivers/power/sabresd_battery.c
|
|
set IPU AXI-id0 Qos=0xf(bypass) and AXI-id1 Qos=0x7,
mx6q use AXI-id0 for IPU display channel, it should has
highest priority(bypass), and AXI-id1 for other IPU channel,
it has high priority.
Also, clear OCRAM_CTL bits to disable OCRAM read/write pipeline control.
Signed-off-by: Wayne Zou <b36644@freescale.com>
|
|
Add support for SoC power optimization in Idle mode (1st phase):
1. ARM @ 198MHz. VDDARM_CAP @ 0.85V
2. AHB @ 24MHz, DDR @ 25MHz
3. PU regulator disabled when system is in IDLE.
Signed-off-by: Nancy Chen <Nancy.Chen@freescale.com>
Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
|
|
As MX6SL has replaced CAAM with DCP+RNGB, CAAM configs need to be
removed from mx6s defconfig.
Signed-off-by: Terry Lv <r65388@freescale.com>
|
|
Previous configuration suppressed a number of crypto API features that
caused misleading results when using the CAAM driver through the tcrypt.
Enabling the API tests eliminated this.
Also, added in other common ciphers and modes that, if lacking, would
cause confusion with tcrypt behavior.
Signed-off-by: Steve Cornelius <steve.cornelius@freescale.com>
Signed-off-by: Terry Lv <r65388@freescale.com>
|
|
As Arik TO1.0 GPT use ipg_perclk as clock source, we need to
lower it to 6M before init GPT, or the clock source freq will
be wrong if we lower the ipg_perclk after GPT time already init.
Signed-off-by: Anson Huang <b20788@freescale.com>
|
|
Enable MAX11081 for reading battery voltage
Signed-off-by: Lin Fuzhen <fuzhen.lin@freescale.com>
|
|
When bus freq is changed, we need to update periph
clk's parent, better to use clk_set_parent API instead
of changing the parent directly.
Signed-off-by: Anson Huang <b20788@freescale.com>
|
|
Fix:
WARNING: vmlinux.o(.data+0x8c28): Section mismatch in reference from the
variable mx6_gpmi_nand_platform_data to the function
.init.text:gpmi_nand_platform_init()
The variable mx6_gpmi_nand_platform_data references
the function __init gpmi_nand_platform_init()
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console
Signed-off-by: Robby Cai <R63905@freescale.com>
|
|
Add ELAN capacitive TS support on EINK-DC3 stacked on MX6SL_ARM2 board
- configure the iomux setting (need 4.7K Ohm pull up on 'touch_int_b')
- configure the i2c slave addr
- configure the GPIO setting for ELAN ce/int/rst
- update the defconfig
Signed-off-by: Robby Cai <R63905@freescale.com>
|
|
Add the support for keypad on EINK-DC3 board which is stacked on ARM2 board.
- configure the iomux setting
- add dummy kpp clock to fool imx_keypad driver
- add platform device for keypad
- add key mapping (4x4 array) used on EINK-DC3
- update the defconfig for keypad driver
Signed-off-by: Robby Cai <R63905@freescale.com>
|
|
this patch add more iomux strength to mx6dl's emmc.
otherwise, -110 error when access emmc will occures.
current test show this patch can improve on this issue.
Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
|
|
this patch add more iomux strength to mx6dl's emmc.
otherwise, -110 error when access emmc will occures.
current test show this patch can improve on this issue.
Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
|
|
|
|
Previous voltage for 672M is 1.05V, normal test is OK,
but if CPU is busy in background and do the CPUFreq change
as well, always fail the stress test at 672M setpoint, after
increase it to 1.1V, stress test is OK.
Signed-off-by: Anson Huang <b20788@freescale.com>
|
|
Prepare resourec such as memory, interrupt, clock, regester address
needed by GPU.
Signed-off-by: Larry Li <b20787@freescale.com>
|
|
Add IPU oneshot interrupt mode: IPU_IRQF_ONESHOT.
Interrupt is not reenabled after irq handler finished.
Signed-off-by: Wayne Zou <b36644@freescale.com>
|
|
Add battery support for sabresd_6dq
Signed-off-by: Lin Fuzhen <fuzhen.lin@freescale.com>
|
|
Prepare resourec such as memory, interrupt, clock, regester address
needed by GPU.
Signed-off-by: Larry Li <b20787@freescale.com>
|
|
As DDR freq change is by modifying CCM register directly,
we need to update the clock tree as well, or the clock
tree will be broken. Also, we need to make sure the clock
rate counting is right.
Signed-off-by: Anson Huang <b20788@freescale.com>
|
|
Conflicts:
arch/arm/mach-mx6/board-mx6q_arm2.c
arch/arm/mach-mx6/board-mx6q_sabreauto.c
arch/arm/mach-mx6/board-mx6q_sabrelite.c
arch/arm/mach-mx6/board-mx6q_sabresd.c
drivers/video/mxc/mxc_ipuv3_fb.c
|
|
There is no fuse data for distinguish 1.2G or 1G, kernel need support passed
param from u-boot that can know 1.2G or 1G. If 1.2G, will configure VDDSOC_IN
&VDDARM_IN to 1.425V by pfuze and VDDSOC&VDDPU to 1.25V by internal ldo
Signed-off-by: Robin Gong <B38343@freescale.com>
|