summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-01-25Revert "mm: page allocator: adjust the per-cpu counter threshold when memory ↵Javier Viguera
is low" Otherwise playing fullHD videos on HDMI crashes with: [<800303cc>] (dump_backtrace+0x0/0x10c) from [<803d4104>] (dump_stack+0x18/0x1c) r7:8053a048 r6:8053a048 r5:0000000c r4:00000001 [<803d40ec>] (dump_stack+0x0/0x1c) from [<800891d4>] (__alloc_pages_nodemask+0x524/0x57c) [<80088cb0>] (__alloc_pages_nodemask+0x0/0x57c) from [<80031a4c>] (__dma_alloc+0xf4/0x2b8) [<80031958>] (__dma_alloc+0x0/0x2b8) from [<80031c38>] (dma_alloc_writecombine+0x28/0x34) [<80031c10>] (dma_alloc_writecombine+0x0/0x34) from [<801d51e0>] (mxcfb_set_par+0xd8/0x464) .... This reverts commit 7c2141d484fbfa03af5f83602162d9576564121b. Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2012-01-25ccxmx53: da9052 battery, stop kthread on SIGKILL.Alex Gonzalez
The SIGKILL signal is received on system poweroff/reboot. If the thread is not stopped, the schedule() gets interrupted and the thread executes several consecutive times. It also fails to access the I2C bus printing error messages on the console. Making the thread TASK_UNINTERRUPTIBLE before schedule stops the multiple executions, but still prints I2C access error messages sometimes, when the thread is scheduled in the middle of the poweroff/reboot. Stopping the thread on SIGKILL provides a clean shutdown. The thread won't stop on suspend as a SIGKILL is not received. Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2012-01-25ccxmx53 da9052: Fix I2C access error before suspendAlex Gonzalez
Move the battery monitoring kernel thread schedule to the end of the thread. Before the thread was sleeping just after the freezing check. Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2012-01-25ccxmx53: Suspend, do not set CKE in high impedance.Alex Gonzalez
This has the effect of losing the contents of RAM while in self refrsh mode. Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2012-01-24da9052: Integrate a PMIC I2C access workaround.Alex Gonzalez
This patch was provided by Dialog and it doesn't seem to be yet integrated with Freescale upstream. It basically does a write flush on a set of registers. Dialog contact Christophe.Molle@diasemi.com Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com> (cherry picked from commit 8d5aa68cad489a1bba040dd32c92b0dd565cc881)
2012-01-23ccxmx5x: fix colour problems with LCD displaysPedro Perez de Heredia
This commit fixes problems with the LCD displays, where the pixel format was being incorrectly set after the last commit. Signed-off-by: Pedro Perez de Heredia <pedro.perez@digi.com> (cherry picked from commit a61ef1553c8a65868fd195a05d4ae8f347b97466) Signed-off-by: Pedro Perez de Heredia <pedro.perez@digi.com>
2012-01-21ccxmx5x: fixes in pixel format for RGB666 and RGB888 (#41820)Pedro Perez de Heredia
This commit fixes a problem on the ccxmx5x where the pixel format was incorrectly set for RGB666, RGB888 on VGA and HDMI interfaces. For the LCDs it was properly set. Fixes #41820. Signed-off-by: Pedro Perez de Heredia <pedro.perez@digi.com>
2012-01-21ccxmx51: minor code clean upPedro Perez de Heredia
Signed-off-by: Pedro Perez de Heredia <pedro.perez@digi.com>
2012-01-21ccxmx51: add missing variantsPedro Perez de Heredia
Signed-off-by: Pedro Perez de Heredia <pedro.perez@digi.com>
2012-01-21mxc ldb: fix problem with dual modesPedro Perez de Heredia
This commit fixes a problem with the dual mode that was happening in following scenario: video=displayfb:disabled video2=displayfb:LCD@LQ121K1LG11 ldb=dual,di=1,ch1_map=JEIDA Here the image on the LVDS channel 1 was not correctly represented because in this configuration, the data mapping is taken from the CH0, instead of the CH1 as should be. To workarround this problem, when the mode selected is dual or split, we configure both channels with the data mapping passed through the command line. Signed-off-by: Pedro Perez de Heredia <pedro.perez@digi.com> (cherry picked from commit db349fbadeff2c94856f2a161e386b1a0f09475e) Signed-off-by: Pedro Perez de Heredia <pedro.perez@digi.com>
2012-01-21mxc ldb: remove debug messagePedro Perez de Heredia
Signed-off-by: Pedro Perez de Heredia <pedro.perez@digi.com> (cherry picked from commit 93a8a2ae939a4e62c6ebb000e156d8efd02cab36) Signed-off-by: Pedro Perez de Heredia <pedro.perez@digi.com>
2012-01-20mt9v111: Prevent double freeing of resources.Alex Gonzalez
This foxes a kernel crash when both cameras are connected and the module removed. Fixes #41834. Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2012-01-20da9052 tsi: fix values used in register masksPedro Perez de Heredia
Signed-off-by: Pedro Perez de Heredia <pedro.perez@digi.com> (cherry picked from commit e9d86e3520636c877e11cda3ef6afbf86e09b133) Signed-off-by: Pedro Perez de Heredia <pedro.perez@digi.com>
2012-01-20ccxmx53: fixes on dual display support and video memPedro Perez de Heredia
This commit fixes some problems with some macros used for the dual video. It also corrects problems with the video memory mappings that was causing problems when using the vga interface with a resolution of 1680x1050 at 32 bpp. Signed-off-by: Pedro Perez de Heredia <pedro.perez@digi.com> (cherry picked from commit ec0c204972183b5ba1d2ade83bd36a26a1ab410d) Signed-off-by: Pedro Perez de Heredia <pedro.perez@digi.com>
2012-01-19Revert "sched: Do not account irq time to current task"Alex Gonzalez
This reverts commit a3fe22ee824895aafdc1b788e19c081a2e6dd9da. This commit was causing scheduling problems to gplay. Reverting it fixes Alternatives to this revert include backporting further scheduling fixes from 2.6.37, wait for a 2.6.35.15 release which will hopefully fix the issue, or configuring the kernel with HAVE_AN_UNSTABLE_SCHED_CLOCK, even though the clock is not really unstable.
2012-01-19Revert "sched: Remove irq time from available CPU power"Alex Gonzalez
This reverts commit fd72c5feeb61857dbcc4fac1c98157925fbb085e. This commit depends on a3fe22ee824895aafdc1b788e19c081a2e6dd9da which will be reverted next.
2012-01-19Merge commit 'v2.6.35.14' into del-5.8/mainAlex Gonzalez
Conflicts: arch/arm/plat-mxc/include/mach/gpio.h arch/x86/kernel/cpu/mtrr/main.c drivers/mmc/core/core.c drivers/net/smsc911x.c fs/proc/task_mmu.c include/linux/pm_runtime.h mm/memory.c mm/mlock.c Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2012-01-19da9052-battery: Fix compilation warning.Alex Gonzalez
And hold back from rewriting that confusing area of code. Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2012-01-19ccwmx53: Fix compilation warning.Alex Gonzalez
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2012-01-18ldb: remove debug messagePedro Perez de Heredia
Signed-off-by: Pedro Perez de Heredia <pedro.perez@digi.com>
2012-01-18ccwmx53js_defconfig: enable 2nd display and set console uartPedro Perez de Heredia
Signed-off-by: Pedro Perez de Heredia <pedro.perez@digi.com>
2012-01-18fim-sdio: enable pull-ups of FIM SDIO interfaceHector Palacios
It is believed to improve the stability of the signals so that they don't require external pull-ups. Specially for the cwme9210js where the lines are connected to the Redpine chip without pull-ups. Signed-off-by: Hector Palacios <hector.palacios@digi.com> (cherry picked from commit cffa4f0a5ad8b057d519bac479fdd75c15e4e1ba)
2012-01-17ENGR00155638 mx53 power: Add DDR float pin operation when system idleWayne Zou
1. Add DDR self-refresh mode and float pin operation when system idle For audio playback use case on android r10.3, it can save 10mA@1.54V about 15mW on DDRIO+ memory power, and 6.6mA@2.5V -16.5mW on VDD_REG It can reduce more memory power consumption if cpu idle time is longer 2. remove the L1/L2 cache operation during suspend for mx53 The L1/L2 cache are powered by VDDA/VDDAL1 and they should be supplied according to iMX53 datasheet, there is also no EMPG on MX53, so it can be removed to improve system performance and power. 3. remap the suspend_iram_base as MT_MEMORY_NONCACHED instead of MT_HIGH_VECTORS If the IRAM page is marked as Cacheable, the ARM cache controller will attempt to flush dirty cache lines to DDR, so it can fill those lines with IRAM instruction code. The problem is that the DDR is in self-refresh mode and HighZ DDR IO PADs during system idle or suspend, so any DDR access causes the ARM MPU subsystem to hang. It needs to cherry-pick two patches(5a4aeb9f6,7c8d972d8) from community. 4. Add DDR self-refresh mode and float pin operation for mx53 ARD board, and mx53 QS/Ripley board This patch can resovle ramdom suspend/resume issue, since the early code didn't consider the TLB missing case during suspend. It needs to save all the M4IF/IO MUX registers firstly to make sure the page table entried into TLB, and then enter DDR self-refresh mode. Signed-off-by: Wayne Zou <b36644@freescale.com>
2012-01-17ARM: 6419/1: mmu: Fix MT_MEMORY and MT_MEMORY_NONCACHED pte flagsSantosh Shilimkar
The commit f1a2481c0 sets up the default flags for MT_MEMORY and MT_MEMORY_NONCACHED memory types. L_PTE_USER flag is wrongly set as default for these entries so remove it. Also adding the 'L_PTE_WRITE' flag so that these pages become read-write instead of just being read-only [this stops them being exposed to userspace, which is the main concern here --rmk] Reported-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com> Acked-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2012-01-17ARM: 6407/1: mmu: Setup MT_MEMORY and MT_MEMORY_NONCACHED L1 entriesSantosh Shilimkar
This patch populates the L1 entries for MT_MEMORY and MT_MEMORY_NONCACHED types so that at boot-up, we can map memories outside system memory at page level granularity Previously the mapping was limiting to section level, which creates unnecessary additional mapping for which physical memory may not present. On the newer ARM with speculation, this is dangerous and can result in untraceable aborts. Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2012-01-17ENGR00154432 PMIC DA9053: fix I2C NAK for first access and shutdown issueWayne Zou
During the platform boot up, during the platform does DA9053 Read/Write operation, it writes slave address and wait for ACK . Instead of ACK PMIC sends NAK. A workaround fix is provided as a part of retries fix I2C NAK for very first access. Also fix a bug when the system fails to start after software shutdown. Signed-off-by: Wayne Zou <b36644@freescale.com>
2012-01-17ENGR00153741 MX5 PM: fix a NULL pointer reference when enter suspendWayne Zou
Fix the NULL pointer reference when there is no struct mxc_pm_platform_data defines on MX5 machines. Signed-off-by: Wayne Zou <b36644@freescale.com>
2012-01-17ENGR00153378 MX53 cleanup pm suspend/resume source code V2Wayne Zou
restructure the pm suspend/resume routines as mxc_pm_platform_data, so split the SOC pm routines from machine pm routines. Signed-off-by: Wayne Zou <b36644@freescale.com>
2012-01-17ccxmx53: set DSE to MED for video parallel interf with fullhdPedro Perez de Heredia
Signed-off-by: Pedro Perez de Heredia <pedro.perez@digi.com>
2012-01-16ccxmx5x: add macros and config options for early uart setupPedro Perez de Heredia
Signed-off-by: Pedro Perez de Heredia <pedro.perez@digi.com>
2012-01-16ccxmx53: Allow to build without SPI.Alex Gonzalez
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2012-01-16da9053: Finish shoutdown with an I2C read.Alex Gonzalez
A reported Dialog bug that will make the PMIC not power up again on some cases is worked around in this way. Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2012-01-16ccxmx53: Do not reconfigure IOMUX select input twice for UART0/1Alex Gonzalez
The CTS and RTS pins for UARTS0 and 1 are both set in their respective select input registers. When both pins are reconfigured, only the last IOMUX configuration remains. This change makes the first IOMUX configuration take effect, while the second IOMUX configuration will affect the pad control but not the select input control. Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2012-01-16ccwmx53: Serial, use UART mode macrosAlex Gonzalez
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2012-01-14ccxmx53: encapsulate properly conditionaly compiled codePedro Perez de Heredia
Signed-off-by: Pedro Perez de Heredia <pedro.perez@digi.com>
2012-01-13ccxmx53: fix iomux config for UART3 (#41605)Pedro Perez de Heredia
Signed-off-by: Pedro Perez de Heredia <pedro.perez@digi.com>
2012-01-13ccxmx53: set video pad settings based on display resolutionPedro Perez de Heredia
This commti workarrounds a problem found with the video interface where the pad settings (signal strength) needs to be set differently depending on the display resolution to avoid that incorrect pixels are shown in the screen. Similar problem happens with WinCE. Signed-off-by: Pedro Perez de Heredia <pedro.perez@digi.com>
2012-01-13ccxmx5x: defconfigs, update with kernel.Alex Gonzalez
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2012-01-13mxc: Add enable warm reset option.Alex Gonzalez
Newer U-Boot will set cold resets by defaults. This commit allows a kernel override back to the default setting. Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2012-01-12ccxmx53: da9052 tsi, do not control LDO9.Alex Gonzalez
On the ccxmx53, LDO9 is not supplying the touch. LDO8 is, but it also supplies other elements. Do not allow the touch driver to modify power supply settings as this assumes the touch is powered exclusively by a regulator while on the ccxmx53 it is not the case. Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2012-01-11ccxmx5x: Configure da9053 pm with the correct I2C address.Alex Gonzalez
Depending on the module revision, the PMIC has one I2C address or another. Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2012-01-11ccxmx53: Allow build without da9053 support.Alex Gonzalez
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2012-01-11ccxmx53: defconfig, remove CPU_FREQ until tested.Alex Gonzalez
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2012-01-11ccxmx53: defconfig, Add fusion touch defaults.Alex Gonzalez
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2012-01-11ccwmx53: defconfig, Add UART kernel defaults.Alex Gonzalez
Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2012-01-11da9052: Correct upper, lower and masks values.Alex Gonzalez
Some regulators have the upper,lower and mask values from old datasheets belonging to old parts. This commit corrects them to the latest available datasheet. With this change the values reported by the kernel now match the PMIC regulator registers configuration and the measured values in U-Boot. Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2012-01-11ccxmx53: Workaround for suspend halt.Alex Gonzalez
Strangely, if we don't enable and disable the I2C clock before suspend the target halts while suspending. This needs to be investigated although this commit is a workaround that allows to continue working. Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2012-01-11ccxmx53: PM, do not follow the same suspend process as other FSL platformsAlex Gonzalez
The PMIC suspend functions do some very peculiar things that are not needed on the ccxmx53 platforms. Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2012-01-11da9053-pm: Add comments to clarify suspend functions.Alex Gonzalez
These comments help see that these functions need not be called for the ccxmx53 platforms. Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>
2012-01-11da9052-regulator: Do not return error when setting voltage of non GO regs.Alex Gonzalez
Not all regulators require a register trigger. Do not return error for those cases. Signed-off-by: Alex Gonzalez <alex.gonzalez@digi.com>