- 27 Aug, 2012 4 commits
-
-
Loren HUANG authored
-Update gpu driver to check the SoC temperature, if the thermal_hot flag is set by thermal driver. GPU3D clock will be slown down to the minimum value, the clock will be recovery when the flag is cleared by thermal driver. -This patch depends on ENGR00220848, without it, kernel build can't pass. Signed-off-by:
Loren HUANG <b02279@freescale.com> Acked-by: Lily Zhang
-
Rong Dian authored
clear thermal hot variable in cooling device when thermal temperature falls then to get out of THERMAL_TRIP_HOT state Signed-off-by:
Rong Dian <b38775@freescale.com>
-
Sandor Yu authored
Bootup Android without HDMI cable plugin, then plugin HDMI cable, video mode in /sys/class/graphics/fb0/mode not same as actually HDMI work video mode. The root cause is in video mode point to one of video mode in original video modelist, but the modelist will be updated when HDMI cable plug to new monitor. If HDMI original worked video mode can work on new monitor, the HDMI and framebuffer will not updated, so HDMI actually work mode not same as /sys/class/graphics/fb0/mode Updated fbi mode pointer even if video mode no changed in case moselist is updated, the issue will fixed. Signed-off-by:
Sandor Yu <R01008@freescale.com>
-
Yuxi Sun authored
return error number when set camera change mode fail, if not the driver may continue to setup the video processing with wrong parameter. Signed-off-by:
Yuxi Sun <b36102@freescale.com>
-
- 26 Aug, 2012 3 commits
-
-
Ranjani Vaidyanathan authored
Set DDR to 50MHz in low power audio playback. AHB/AXI are at 24MHz. Also fix correct usecount for PLL1 main clock. If not it causes issues when pll1_sw_clk's parent is changed. Signed-off-by:
Ranjani Vaidyanathan <ra5478@freescale.com>
-
Ranjani Vaidyanathan authored
Checking of the bus_freq variables and changing of the bus/ddr frequency should be done under one mutex. Else there is a race-condition that the variable changed just after it was checked. Also ensure that the bus freq is always increased before the cpu freq is set to anything other than the lowest setpoint. Else there is a possibility that the ARM is set to run from PLL1 at higher frequency when bus/DDR are still at 24MHz. This is dangerous since when system enters WAIT mode in low bus freq state, PLL1 is set to bypass when ARM is being sourced from it. Signed-off-by:
Ranjani Vaidyanathan <ra5478@freescale.com>
-
Ranjani Vaidyanathan authored
Add a new working point table to MX6SL and set the voltages according to the latest datasheet. Signed-off-by:
Ranjani Vaidyanathan <ra5478@freescale.com>
-
- 24 Aug, 2012 12 commits
-
-
Robby Cai authored
Add platform device for V4L2 support Signed-off-by:
Robby Cai <R63905@freescale.com>
-
Robby Cai authored
Add V4L2 support -- driver part. Signed-off-by:
Robby Cai <R63905@freescale.com>
-
Robby Cai authored
Set correct PITCH (aka, stride) for AS, PS, Output buffer. This is needed for V4L2. Signed-off-by:
Robby Cai <R63905@freescale.com>
-
Chen Liangjun authored
CS42888 driver own 2 codec_dai for ESAI and ASRC P2P use. Due to the delay power down mechanism, if a ASRC P2P stream is played right after a finish of ESAI stream playback, ASRC P2P stream would be stop. In this patch, do nothing in the delay powerdown flow if CS42888 codec is on. Signed-off-by:
Chen Liangjun <b36089@freescale.com>
-
Wayne Zou authored
Replace BUG macro with error message Signed-off-by:
Wayne Zou <b36644@freescale.com>
-
Wayne Zou authored
Avoid release resource twice when timeout happen. Signed-off-by:
Wayne Zou <b36644@freescale.com>
-
make shi authored
The Mx6 phy sometimes work abnormally after system suspend/resume if the 1V1 is off. So we should keep the 1V1 active during the system suspend if any USB host enabled. - Add stop_mode_config to 1 with refcount - Add mutex to protect the refcount and HW_ANADIG_ANA_MISC0 register - If stop_mode_config is set as 1, the otg vbus wakeup system will be supported Signed-off-by:
make shi <b15407@freescale.com>
-
make shi authored
MSL headfile part change. Signed-off-by:
make shi <b15407@freescale.com>
-
Ranjani Vaidyanathan authored
Change AXI_CLK to be sourced from PLL3_PFD1_540MHz, so that it can run at 270MHz on MX6DL/S. This is required for improving VPU performance. Change AXI_CLK to be sourced from periph_clk just before the DDR freq is going to be dropped to 24MHz/50MHz. Change it back to PLL3_PFD1_540 when the DDR freq is back at 400MHz. Signed-off-by:
Ranjani Vaidyanathan <ra5478@freescale.com>
-
Chen Liangjun authored
ESAI playback and ASRC P2P playback use difference codec_dai while using the same codec. Thus they can't work together. In this patch, add mutual protection between ESAI playback and ASRC P2P playback. Signed-off-by:
Chen Liangjun <b36089@freescale.com>
-
Nancy Chen authored
[MX6X] Fix BogoMIPS value is not correct Signed-off-by:
Nancy Chen <Nancy.Chen@freescale.com>
-
Peter Chen authored
At pc sends suspend/resume case, the udc_controller->usb_state should keep unchange during the suspend/resume process, at former code, the fsl_udc_resume set udc_controller->usb_state to USB_STATE_ATTACHED unconditionally. In fact, USB_STATE_ATTACHED stands for initial state and should be set when we try to run controller. Signed-off-by:
Peter Chen <peter.chen@freescale.com>
-
- 23 Aug, 2012 6 commits
-
-
Robby Cai authored
mma8450q on E-INK DC3 boards, with i2c address 0x1c on I2C1. Signed-off-by:
Robby Cai <R63905@freescale.com>
-
Gary Zhang authored
config audio pads to avoid pop-noise Signed-off-by:
Gary Zhang <b13634@freescale.com>
-
Ryan QIAN authored
- invalid data preparation is a reasonable path, so no need to set to WARNING level, change it to DEBUG level. Signed-off-by:
Ryan QIAN <b32804@freescale.com>
-
Robin Gong authored
Increase VPU frequency to 352Mhz for TV box, use pll2_pfd_400M.To avoid impact other code which assume ARM clock sourcing from pll2_pfd_400M, change cpu setpoint of 396M to 352M. and disable bus freq adjust. add CONFIG_MX6_VPU_352M to choose it, default is disabled. Signed-off-by:
Robin Gong <B38343@freescale.com>
-
Robin Gong authored
Increase VPU frequency to 352Mhz for TV box, use pll2_pfd_400M.To avoid impact other code which assume ARM clock sourcing from pll2_pfd_400M, change cpu setpoint of 396M to 352M. and disable bus freq adjust. add CONFIG_MX6_VPU_352M to choose it, default is disabled. Signed-off-by:
Robin Gong <B38343@freescale.com>
-
Peter Chen authored
Move spin_unlock_irqrestore to avoid calling mutex at atomic environment, as dr_wake_up_enable will call mutex_lock Signed-off-by:
Peter Chen <peter.chen@freescale.com>
-
- 22 Aug, 2012 7 commits
-
-
Nancy Chen authored
[MX6SL]MMDC: DDR Controller's measure unit may return an incorrect value when operating below 100 MHz Signed-off-by:
Nancy Chen <Nancy.Chen@freescale.com>
-
Sandor Yu authored
In suspend/resume and HDMI plugin/plugout stress test, sometimes fbcon will call fb_set_par with parameter fb_var_screeninfo that xres anfd yres is zero. MX frame buffer driver can not correct handle this casue, it will cause IPU pixel clock gating/ungating mismatch. Check fb_var_screeninfo parameter in mxcfb_check_var and mxcfb_set_par function, returned if xres,yres zero. Signed-off-by:
Sandor Yu <R01008@freescale.com>
-
Ranjani Vaidyanathan authored
When ARM enters WFI in low power IDLE state, float the DDR IO pins to drop the power on the VDDHIGH rail. Need to run WFI code from IRAM since DDR needs to be put into self-refresh before changing the IO pins. Drop AHB to 8MHz and DDR to 1MHz when ARM is in WFI when in IDLE state. Set IPG_PERCLK to run at 3MHz, since we want to maintain a 1:2.5 ratio between PERCLK to AHB_CLK. Signed-off-by:
Ranjani Vaidyanathan <ra5478@freescale.com>
-
Wayne Zou authored
IPU: Clean up dead code Signed-off-by:
Wayne Zou <b36644@freescale.com>
-
Ryan QIAN authored
Test Env: 1. MX6DL SabreSD board. 2. On board eMMC (Sandisk: SDIN5C2-8G) running at 8-bit DDR @ 52MHz. 3. Test commands: 3.1 Writing command: # dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=100 conv=fsync 3.2 Reading command: # echo 1 > /proc/sys/vm/drop_caches # echo 1 > /proc/sys/vm/drop_caches # sleep 1 # dd if=/dev/mmcblk0 of=/dev/null bs=1M count=100 Performance result with this patch: ------------------------------------------------------- | CPU freq | SDMA (512KB) | SDMA (64KB) | ADMA | |----------+--------------+-------------+-------------| | 1Ghz | ~11MB/s (w) | ~5MB/s (w) | ~11MB/s (w) | | | ~25MB/s (r) | ~25MB/s (r) | ~23MB/s (r) | |----------+--------------+-------------+-------------| | 200Mhz | ~8MB/s (w) | ~5MB/s (w) | ~9MB/s (w) | | | ~16MB/s (r) | ~20MB/s (r) | ~13MB/s (r) | ------------------------------------------------------- Performance result without this patch: ------------------------------------------------------- | CPU freq | SDMA (512KB) | SDMA (64KB) | ADMA | |----------+--------------+-------------+-------------| | 1Ghz | ~10MB/s (w) | ~5MB/s (w) | ~10MB/s (w) | | | ~22MB/s (r) | ~23MB/s (r) | ~22MB/s (r) | |----------+--------------+-------------+-------------| | 200Mhz | ~8MB/s (w) | ~4MB/s (w) | ~8MB/s (w) | | | ~13MB/s (r) | ~16MB/s (r) | ~11MB/s (r) | ------------------------------------------------------- Signed-off-by:
Ryan QIAN <b32804@freescale.com>
-
Ryan QIAN authored
- set bounce buffer to 512KB from 64K, which is hw max seg size for fsl sd host controller - by enlarging the size of bounce buffer, it will reduce the number of irq on writing by merging small requests into a large one, which will improve writing throughput. - the side effect is that the reading throughput of 512KB bounce buffer is lower than the one of 64KB bounce buffer, when cpu freq is at 200Mhz. Test Env: 1. MX6DL SabreSD board 2. On board eMMC (Sandisk: SDIN5C2-8G) running at 8-bit DDR @ 52Mhz 3. Test commands: 3.1 Writing test command: # dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=100 conv=fsync 3.2 Reading test command: # echo 1 > /proc/sys/vm/drop_caches # echo 1 > /proc/sys/vm/drop_caches # sleep 1 # dd if=/dev/mmcblk0 of=/dev/null bs=1M count=100 Performance result: ------------------------------------------------------- | CPU freq | SDMA (512KB) | SDMA (64KB) | ADMA | |----------+--------------+-------------+-------------| | 1Ghz | ~10MB/s (w) | ~5MB/s (w) | ~10MB/s (w) | | | ~22MB/s (r) | ~23MB/s (r) | ~22MB/s (r) | |----------+--------------+-------------+-------------| | 200Mhz | ~8MB/s (w) | ~4MB/s (w) | ~8MB/s (w) | | | ~13MB/s (r) | ~16MB/s (r) | ~11MB/s (r) | ------------------------------------------------------- Signed-off-by:
Ryan QIAN <b32804@freescale.com>
-
Liu Ying authored
This patch changes to use original sync mechanism for eof irq, which may improve pan-display or alpha buffer update performance. 1) Initialize flip_completion and alpha_flip_completion only once when fb is initialized instead of initializing it every time when pan display is called. 2) Clear and enable eof irq after selecting buffer ready. In this way, we have no chance to lose an interrupt, as selecting a new buffer ready doesn't make the eof irq come(from the newly selected buffer) before we clear the irq status and enable the irq. Otherwise, if we clear the irq status and enable the irq before we doing down in pan-display or alpha buffer update, we have chance(users call pan-display or alpha buffer update faster than vsync frequency and blocks at down()) to clear an unhandled irq, which may cause performance issue. Signed-off-by:
Liu Ying <Ying.Liu@freescale.com> (cherry picked from commit 67c2bd5edef363412a074e9b4130b5207dac8a7f)
-
- 21 Aug, 2012 8 commits
-
-
Robin Gong authored
ECSPI pin MX6DL_PAD_EIM_D17__ECSPI1_MISO is configured overlap by epdc MX6DL_PAD_EIM_D17__GPIO_3_17, so that SPI-NOR flash can't work normally. From schematic of ARM2 board, epdc and spi share this pin if plug epdc daughter board. But SPI-NOR is on ARM2 mother board, so it should be config well firstly. So we make sure SPI-NOR work successfully by default. But if enable epdc , SPI-NOR on ARM2 will work fail. Signed-off-by:
Robin Gong <B38343@freescale.com>
-
Wayne Zou authored
Disable LDB DI clock when suspend. Signed-off-by:
Wayne Zou <b36644@freescale.com>
-
Sandor Yu authored
EDID read will failed sometimes on some boards. Read EDID twice if first one failed. Signed-off-by:
Sandor Yu <R01008@freescale.com>
-
make shi authored
- Set MX6SL_PAD_HSIC_DAT and MX6SL_PAD_HSIC_STROBE pad DDR attribute as DDR3 - Add imx6sl_add_fsl_ehci_hs and imx6sl_add_fsl_usb2_hs_wakeup in usb_h2.c Signed-off-by:
make shi <b15407@freescale.com>
-
Huang Shijie authored
If we use the late_initcall(), then there is a time slot between the exit of early uart console and the real console: -->late_initcall(mxc_early_uart_console_disable) ...... -->imx_startup() In this time slot, the clock will be closed, so the log printed during the time slot is buffered, this is why we can not see the NFS's log. Change the late_initcall() to late_initcall_sync() which eliminates the time slot. Signed-off-by:
Huang Shijie <b32955@freescale.com>
-
Anson Huang authored
1. BUS freq's set low bus setpoint using delat work, which didn't have mutex lock, so in some scenarios, set high bus freq function can be called at the same time, we need to move mutex lock into these two routine; 2. Using pm notify to make sure bus freq set to high setpoint before supend and restore after resume. 3. Clear build warning. Signed-off-by:
Anson Huang <b20788@freescale.com>
-
Rong Dian authored
export thermal hot variable for GPU Signed-off-by:
Rong Dian <b38775@freescale.com>
-
Rong Dian authored
1.Avoiding system wrong reboot caused by error temperature without cancel_delayed_work before entering into suspend,so to cancel thermal_zone_device temperature polling temperature delayed_work before entering into suspend, reenable polling temperature delayed_work after entering into resume. 2.In anatop_thermal_suspend, turn off alarm firstly Signed-off-by:
Rong Dian <b38775@freescale.com>
-