summaryrefslogtreecommitdiff
path: root/drivers/mxc
AgeCommit message (Collapse)Author
2010-06-23ccwmx51: Do not unconditionally set the PMIC as a suspend wake up sourceAlejandro Gonzalez
This behaviour was causing that even when the user has not explicitely set a wakeup source the system was suspending without a way to awake. With this change the RTC wake up source is set up when its suspend method is called, making it possible to check for enabled wake up sources on the platform suspend enter. Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
2010-05-27ENGR00122465: Applying from 1004 release in FSL compass site.Alejandro Gonzalez
They are not am formatted. ENGR00122465-1-spi-polling ENGR00122465-2-spi-poll-sync Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
2010-05-26ccwmx51: Compare with FSL official L2.6.31_10.04.01 source treeAlejandro Gonzalez
Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
2010-05-26ccwmx51: Fix compilation issues after applying Freescale patchesAlejandro Gonzalez
The mach-mx51 folder has been replaced by mach-mx5 to enable the addition of more platforms. Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
2010-05-25ENGR00122962 ipu: don't set axi id to 1 on mx53Rob Herring
Setting the AXI ID on to 1 for sync display channels on MX53 causes display flickering when system is heavily loaded. Signed-off-by: Rob Herring <r.herring@freescale.com> Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
2010-05-25ENGR00122388-2 V4L2 capture:Support camera's MCLK from SSI_EXT1_CLKLiu Ying
This patch supports camera's MCLK be derived from SSI_EXT1_CLK. Signed-off-by: Liu Ying <b17645@freescale.com Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
2010-05-25ENGR00122290-3 MX5x Enable SCC2 and SAHARA driversAnish Trivedi
SAHARA driver changes for MX53 including fix for handling high memory user buffers Signed-off-by: Anish Trivedi <anish@freescale.com> Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
2010-05-25ENGR00122290-2 MX5x Enable SCC2 and SAHARA driversAnish Trivedi
SCC2 driver changes to set base address of registers and scc ram based on resources Signed-off-by: Anish Trivedi <anish@freescale.com> Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
2010-05-25ENGR00121879 MX53 fix i2c error when system is going downShen Yong
there is no battery on mx53 evk, which cause this issue. remove PMIC battery driver can fix this Signed-off-by: Shen Yong <b00984@freescale.com> Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
2010-05-25ENGR00121922 ipuv3: move ipu reset function to MSLJason Chen
move ipu reset function to MSL. Signed-off-by: Jason Chen <b02280@freescale.com> Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
2010-05-25ENGR00121797 Fix IPU register access for ipuv3mDinh Nguyen
Fix IPU register access for IPU v2 and v3. Signed-off-by: Rob Herring <r.herring@freescale.com> Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
2010-05-25ENGR00121656 MX53: Add support for VPUDinh Nguyen
Add support for VPU on MX53 EVK board. Signed-off-by: Rob Herring <r.herring@freescale.com> Signed-off-by: Sammy He <r62914@freescale.com> Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
2010-05-25ENGR00121700: ipu: add support for ipuv3M memory mappingRob Herring
The memory map on IPUv3M is compressed into a smaller region, so support this as revision 3 of the h/w. Signed-off-by: Rob Herring <r.herring@freescale.com> Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
2010-05-25ENGR00121100 tve: fix issue of make tve as primary displayJason Chen
This patch make tve primary display work for both imx51_bbg and imx37_3stack. For imx51_bbg, add "hdtv=2" to cmdline, for imx37_3stack, add "tv" to cmdline. Signed-off-by: Jason Chen <b02280@freescale.com> Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
2010-05-25ENGR00121097-1 Restructure vpu code to remove IO_ADDRESSSammy He
Restructure vpu code to remove IO_ADDRESS, and add iram allocator in vpu driver. Signed-off-by: Sammy He <r62914@freescale.com> Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
2010-05-25ENGR00121296: imx51: rename mx51 to mx5Rob Herring
Rename mx51 to mx5 for common source for MX5x family Signed-off-by: Rob Herring <r.herring@freescale.com> Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
2010-05-25ENGR00120880-1 Add interface to enable/disable HSYNC bit on imx_adcSammy He
Add interface to enable/disable HSYNC bit on imx_adc. Signed-off-by: Sammy He <r62914@freescale.com> Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
2010-05-24ENGR00120903 ipuv3 fb: make hdtv as primary displayJason Chen
1. Add "hdtv=2' to boot cmdline. HDTV should be primary display device. 2. Color key need be convert to YUV format when output is YUV, to correct the convertion function, negative coefficents of RGB2YUV CSC matrix could not use complement number. Signed-off-by: Jason Chen <b02280@freescale.com> Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
2010-05-24ENGR00120807 V4L2 capture:Change the mechanism for CSI->MEM captureLiu Ying
As CSI->MEM channel keeps on writing the buffer which is set to ready latestly and raising up end of frame interrupts, the current v4l2 capture realization mechanism is not appropriate for this channel. This patch will update the idmac buffer to a dummy buffer whenever there is no buffers queued by the user. Signed-off-by: Liu Ying <b17645@freescale.com> Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
2010-05-24ENGR00119169 V4L2 capture:enable CSI after PRP channels are setupLiu Ying
To preview with V4L2 overlay and capture at the same time may fail. This patch implements workaround for this issue by enabling CSI after PRP channels are setup. Signed-off-by: Liu Ying <b17645@freescale.com> Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
2010-05-24ENGR00120615-1 Add IPU_CSC_UPDATE case for ipu ioctlSammy He
Add IPU_CSC_UPDATE case for ipu ioctl. Signed-off-by: Sammy He <r62914@freescale.com> Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
2010-05-24ENGR00120394-3 imx: remove IO_ADDRESS usage in driversRob Herring
This replaces IO_ADDRESS with ioremap in drivers. Drivers needing more than trivial changes are not included. Signed-off-by: Rob Herring <r.herring@freescale.com> Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
2010-05-24ENGR00120394-1 imx: remove unneeded spba related codeRob Herring
The spba defaults to all masters enabled and this is fine as all chips only have ARM and SDMA as masters. Signed-off-by: Rob Herring <r.herring@freescale.com> Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
2010-05-24ENGR00120393-2 imx mlb: use iram allocatorRob Herring
Convert MLB driver to use iram allocator functions. Signed-off-by: Rob Herring <r.herring@freescale.com> Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
2010-05-24ENGR00120521 NV12 pixelformat fail on VDIRan Ferderber
Fix stride calculation Signed-off-by: Ran Ferderber r53561@freescale.com Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
2010-05-24ENGR00120523 Down sizing of stream bigger then 1024 two stripe failedRan Ferderber
Fix stripe size calculation Signed-off-by: Ran Ferderber r53561@freescale.com Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
2010-05-24ENGR00120428 v4l2 output: jitter after blank/unblank fbJason Chen
blank/unblank fb during v4l2 playback, unblank will cause current buffer of display channel to be 1. This patch make the sequence of select display buffer correct. Signed-off-by: Jason Chen <b02280@freescale.com> Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
2010-05-24ENGR00120370 v4l2 output: fix display fail for blank fb during video playJason Chen
1. Blank BG during video play on FG: ./mxc_v4l2_output.out -iw 320 -ih 240 -ow 1024 -oh 768 -d 3 qvga.yuv echo 1 > /sys/class/graphics/fb0/blank echo 0 > /sys/class/graphics/fb0/blank 2. The same input and output (ic_bypass): ./mxc_v4l2_output.out -iw 320 -ih 240 -ow 320 -oh 240 -d 3 qvga.yuv echo 1 > /sys/class/graphics/fb0/blank echo 0 > /sys/class/graphics/fb0/blank Signed-off-by: Jason Chen <b02280@freescale.com> Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
2010-05-24ENGR00119975 IPUv3:Inform user when IDMAC UV-offset overflowsLiu Ying
UBO and VBO are 22-bit in CPMEM. When processing a high resolution frame in YUV format, the value of UV-offset may overflow, but the driver keeps silent. Signed-off-by: Liu Ying <b17645@freescale.com> Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
2010-05-24ENGR00119720 IPUv3:Fix wrong UV offset set in CPMEM when idmac cropsLiu Ying
The UV offset is set wrongly when idmac does cropping. This patch changes to get the UV offset from user in this case now. Signed-off-by: Liu Ying <b17645@freescale.com> Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
2010-05-24ENGR00116787 change pmic event handling methodZhou Jingyu
use level irq for pmic event handling to avoid potential pmic event lost Signed-off-by: Zhou Jingyu <Jingyu.Zhou@freescale.com> Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
2010-05-24ENGR00119531 ipuv3: dmfc setting restore during resumeJason Chen
dmfc setting should be restored after system resume. Signed-off-by: Jason Chen <b02280@freescale.com> Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
2010-05-01pmic_adc: implement shutdown to disable the adc and solve reboot problemPedro Perez de Heredia
This commit implements the shutdown function to solve a problem that was happening when the touchscreen was enabled (and had been open). In that scenario, the reboot shell command was not working (the system was not rebooting properly, stalling after Restarting system message). Stopping the ADC by calling the deinit function seems to fix the problem. Signed-off-by: Pedro Perez de Heredia <pedro.perez@digi.com>
2010-04-13ccwmx51js: Remove unused kernel optionsAlejandro Gonzalez
The MXC_MC13892_RTC option refers to a module which is not implemented in the PMIC. Also, the I2C_MXC_SELECT3 option refers to an inexistent I2C interface. Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
2010-04-07ccwmx51js: PMIC MC13892 needs support for both SPI and I2C.Alejandro Gonzalez
Although in theory only one of them is needed as a control mechanism, the BSP code fails to build if one of them is not included. Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
2010-04-06pmic_adc: add Kconfig configuration entries for max X/Y deltaPedro Perez de Heredia
This commit adds 2 configuration entries to configure the maximum allowed Delta between 3 consecutive samples, to control the driver jitter. Signed-off-by: Pedro Perez de Heredia <pedro.perez@digi.com>
2010-02-15CCWMX51: Compilation and runtime issues for Linux-2.6.31Alejandro Gonzalez
Fix compilation errors and warnings and initialize FEC ethernet driver. Signed-off-by: Alejandro Gonzalez <alex.gonzalez@digi.com>
2010-02-12ENGR00119274 TVE: HDTV can not workJason Chen
1.arrange display port according to choice of different display device 2.for ipu_disp.c: not round pixel clock to even for tvout. 3.cmdline "hdtv" enable 720P, "hdtv=2" enable 720P as primary. Signed-off-by: Jason Chen <b02280@freescale.com>
2010-02-12ENGR00119136 ipuv3: support 720p for ipu libJason Chen
To support 720p output for ipu lib. Signed-off-by: Jason Chen <b02280@freescale.com>
2010-02-12ENGR00119275 ipuv3: dmfc size controlJason Chen
add dmfc size control for dynamic change and _setup. DMFC_NORMAL: segment 0,1 for DC, 4,5 for DP-BG, 6,7 for DP-FG. DMFC_HIGH_RESOLUTION_DC: segment 0~3 for DC, 4,5 for DP-BG, 6,7 for DP-FG. DMFC_HIGH_RESOLUTION_DP: segment 0,1 for DC, 2~5 for DP-BG, 6,7 for DP-FG. DMFC_HIGH_RESOLUTION_ONLY_DP: segment 0~3 for DP-BG, 4~7 for DP-FG. IPU diplay driver will try to enlarge its related DMFC segment size when it meet high resolution condition, but if dmfc is already in high resolution setting, dmfc will not change.That said, first request wins. For cmdline setting, "dmfc=1" is DMFC_HIGH_RESOLUTION_DC, "dmfc=2" is DMFC_HIGH_RESOLUTION_DP, "dmfc=3" is DMFC_HIGH_RESOLUTION_ONLY_DP. NOTE: DMFC_HIGH_RESOLUTION_ONLY_DP only can be set by cmdline. Signed-off-by: Jason Chen <b02280@freescale.com>
2010-02-12ENGR00114151 800x600-16@60 video not play correctlyRan Ferderber
Setting "video=mxcfb:800x600-16@60" in the exec command makes video not play correctly, IPU didn't play video when panel blank line where lower then minimum required by IPU Signed-off-by: Ran Ferderber r53561@freescale.com
2010-02-12ENGR00119263: MX51 : Fix pll_set_rate functionRanjani Vaidyanathan-RA5478
pll_set_rate function should only wait for PLL relock if PLL is enabled. Also add a timeout to the infinte loop. Signed-off-by: Ranjani Vaidyanathan-RA5478 <Ranjani.Vaidyanathan@freescale.com>
2010-02-12ENGR00119202: Fix DVFS-PER related bugs.Ranjani Vaidyanathan-RA5478
DVFS-PER needs to make sure that the pixel clock divider is an even integer. Added support for pixel clock being sourced from an external clock (PLL3) Signed-off-by: Ranjani Vaidyanathan-RA5478 <Ranjani.Vaidyanathan@freescale.com>
2010-02-12ENGR00119199: ipu: add clock nodes for pixel clocksRanjani Vaidyanathan-RA5478
Added clock nodes for pixel clocks so that their rates and parents can be easily tracked. Signed-off-by: Rob Herring <r.herring@freescale.com>
2010-02-12ENGR00088305: Add DVFS-PER supportRanjani Vaidyanathan-RA5478
Added support for DVFS-PER for both MX37 and MX51. Signed-off-by: Ranjani Vaidyanathan-RA5478 <Ranjani.Vaidyanathan@freescale.com>
2010-02-12ENGR00118712 ipuv3: add ipu channel disable timeoutJason Chen
Add timeout in ipu channel disable while loop. Signed-off-by: Jason Chen <b02280@freescale.com>
2010-02-12ENGR00118695 Fix touch screen cannot work sometimesSammy He
Fix touch screen cannot work sometimes issue: Use PD_IRQ mask to control irq to system, not PD_EN. Signed-off-by: Sammy He <r62914@freescale.com>
2010-02-12ENGR00118425 Mx35 ASRC: Cann't work as the SPDIF RX as inputWilliam Lai
The ASRC cann't work when the SPDIF RX is employed to drive the input part of the ASRC. The root cause is miswritting "reg |= 7 << AICPA;" as "reg | 7 << AICPA;". Signed-off-by: William Lai <b04597@freescale.com>
2010-02-12ENGR00116028 CROP for TVE 720Pmark gutman
Crop support for outgoing picture to TVE in 720P format Signed-off-by: Mark.Gutman@freescale.com>
2010-02-12ENGR00116313 ipuv3: DP gamma supportJason Chen
Support DP gamma by setting piecewise linear approximation, application need set coefficient const[k] and slope[k]. The algorithm to calculate these coefficient pls refer to unit test. Signed-off-by: Jason Chen <b02280@freescale.com>