Dima Zavin [Tue, 2 Nov 2010 23:25:53 +0000 (16:25 -0700)]
Merge remote branch 'tegra/android-tegra-2.6.36' into android-tegra-moto-2.6.36
Conflicts:
drivers/media/video/tegra/Kconfig
drivers/media/video/tegra/Makefile
Dima Zavin [Mon, 1 Nov 2010 22:57:00 +0000 (15:57 -0700)]
media: video: tegra: remove camera in tegra-moto since it moved to linux-tegra
Change-Id: Ifd25caa7ccd9a09eb7eaedc14786953eae78dce9
Signed-off-by: Dima Zavin <dima@android.com>
Colin Cross [Tue, 2 Nov 2010 23:21:11 +0000 (16:21 -0700)]
Merge branch 'linux-tegra-2.6.36' into android-tegra-2.6.36
Colin Cross [Tue, 2 Nov 2010 23:21:00 +0000 (16:21 -0700)]
Merge branch 'android-2.6.36' into android-tegra-2.6.36
Rebecca Schultz Zavin [Mon, 1 Nov 2010 22:39:10 +0000 (15:39 -0700)]
media: video: tegra: add basic camera/isp support
The tegra_camera device includes all clock and regulator
functionality needed to support camera on tegra.
Change-Id: I281f1cb5f360276af832309e35dbe17c98b62bb3
Signed-off-by: Dima Zavin <dima@android.com>
Greg Meiste [Tue, 2 Nov 2010 16:04:05 +0000 (11:04 -0500)]
power: ds2781: Reset ACR if not 100% when charge complete
If the charge IC reaches charge complete, it obviously will stop
charging. If the DS2781 has not reached 100%, it never will. So
reset the ACR register to the 100% value.
The DS2781 is supposed to reset itself to 100% if charge complete
is reached, but it is not doing so reliably. Maxim has suggested
this as a workaround.
Change-Id: I97e532570694019227af4af4280ef06e9d67c6b2
Signed-off-by: Greg Meiste <w30289@motorola.com>
Greg Meiste [Thu, 28 Oct 2010 14:21:56 +0000 (09:21 -0500)]
power: ds2781: Perform sanity check on capacity
When the factory is installing the batteries, it is inadvertently causing
some batteries to reset their fuel gauge to 0%. Add a sanity check to
reset the capacity to a reasonable value if this condition is detected.
Change-Id: I4bc2d4e778763fd36be66ba9adb2efd371b2c7e1
Signed-off-by: Greg Meiste <w30289@motorola.com>
Greg Meiste [Mon, 1 Nov 2010 18:27:40 +0000 (13:27 -0500)]
power: ds2781: Allow system to suspend while charging
Change-Id: I18ce88ab7979f536f5441a9960961be039b01cda
Signed-off-by: Greg Meiste <w30289@motorola.com>
Greg Meiste [Tue, 2 Nov 2010 14:10:13 +0000 (09:10 -0500)]
power: ds2781: Make workqueue freezeable
In addition to being single threaded, the ds2781 workqueue must also be
freezeable. This will prevent the driver from trying to read the
battery status before the tegra_w1 driver has resumed from suspend.
Change-Id: I114c7c50ff79f2e5c7aab47bbc8b3e6b641a46a1
Signed-off-by: Greg Meiste <w30289@motorola.com>
Nathan Connell [Tue, 2 Nov 2010 12:47:30 +0000 (07:47 -0500)]
ARM: tegra: stingray: Run the WLAN SDIO at 48MHz off PLLM
Run the WLAN SDIO interface at 48MHZ to avoid
EMI with all other supported RF cards in the
device. The SDIO clock must be generated from the
spectrally clean PLLM.
Signed-off-by: Nathan Connell <w14185@motorola.com>
Change-Id: Ic8580b11a8392aa17f5947f03bbb09605db84ec5
vcdt34 [Thu, 28 Oct 2010 04:23:01 +0000 (23:23 -0500)]
ARM: tegra: stingray: add /proc/bootinfo
Add /proc/bootinfo pseudo-file to make the power-up reason
available to user-mode applications.
Removed macros and superfluous code. Revised
to pass checkpatch.pl gauntlet.
Revised leading comments for accuracy.
Remove trailing whitespaces. Recheck with checkpatch.pl
Converted to seq_file interface.
Change-Id: I5098a4aef645f5e346d4bdd60ced1b2beb3f68db
Signed-off-by: vcdt34 <john.poplett@motorola.com>
Ravindra Lokhande [Mon, 27 Sep 2010 17:53:41 +0000 (12:53 -0500)]
[ARM] tegra: driver for spdif audio
Creates /dev/spdif_out and /dev/spdif_out_ctl for playback and control
settings. Playback is working.
Signed-off-by: Iliyan Malchev <malchev@google.com>
makarand.karvekar [Mon, 25 Oct 2010 23:52:06 +0000 (18:52 -0500)]
leds: backlight: add PWM and Bright modes
lp8550 has PWM and Bright modes to control backlight.
remove redundant writes to device ctrl config.
Change-Id: Ida6f405fd174a87965f9d2daabbdc6b236f30245
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
Dima Zavin [Mon, 1 Nov 2010 22:46:57 +0000 (15:46 -0700)]
ARM: configs: update tegra_defconfig to enable regulators
Change-Id: I64e0f2ef1f57d4d2dc86143145f396dfeb4abe46
Signed-off-by: Dima Zavin <dima@android.com>
makarand.karvekar [Mon, 25 Oct 2010 23:56:18 +0000 (18:56 -0500)]
[ARM] tegra: stingray: adjust backlight settings for current and boost freq
Change-Id: Ie475a5e9a874e828ca602a9f9ee60f83703c63f0
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
James Wilson [Wed, 27 Oct 2010 20:33:47 +0000 (15:33 -0500)]
[ARM] tegra: stingray: Do not enumerate as usbnet
during recovery mode, even if using factory cable.
Signed-off-by: James Wilson <james.wilson@motorola.com>
Greg Meiste [Mon, 1 Nov 2010 16:27:24 +0000 (11:27 -0500)]
w1: slaves: ds2781: Return error when reset fails
The DS2781 one wire driver was returning success, even though the reset
had failed. This covered up the issue where the DS2781 battery driver
was not reporting up up-to-date information.
Change-Id: Ie0c775ab900ed44ce12e798d62484b145c81d244
Signed-off-by: Greg Meiste <w30289@motorola.com>
makarand.karvekar [Sun, 31 Oct 2010 23:59:20 +0000 (18:59 -0500)]
misc: l3g4200d: fix power down issue
only clean PD bit in CTRL_REG1 when power off
and restore it when power on
Author: Ken Hu <jian-wu.hu@motorola.com>
Change-Id: I50c6ba1a77d8a347c63ffb7518182c7ac1a1d738
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
Theodore Ts'o [Thu, 28 Oct 2010 01:30:13 +0000 (21:30 -0400)]
ext4: fix kernel oops if the journal superblock has a non-zero j_errno
Commit
84061e0 fixed an accounting bug only to introduce the
possibility of a kernel OOPS if the journal has a non-zero j_errno
field indicating that the file system had detected a fs inconsistency.
After the journal replay, if the journal superblock indicates that the
file system has an error, this indication is transfered to the file
system and then ext4_commit_super() is called to write this to the
disk.
But since the percpu counters are now initialized after the journal
replay, the call to ext4_commit_super() will cause a kernel oops since
it needs to use the percpu counters the ext4 superblock structure.
The fix is to skip setting the ext4 free block and free inode fields
if the percpu counter has not been set.
Thanks to Ken Sumrall for reporting and analyzing the root causes of
this bug.
Addresses-Google-Bug: #
3054080
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Erik Gilling [Sat, 30 Oct 2010 01:16:19 +0000 (18:16 -0700)]
Merge branch android-tegra-2.6.36 into android-tegra-moto-2.6.36
Change-Id: I6da740f6846d5212ff331bf4473a1e7faa96e21e
Erik Gilling [Sat, 30 Oct 2010 01:14:13 +0000 (18:14 -0700)]
Merge branch linux-tegra-2.6.36 into android-tegra-2.6.36
Change-Id: I6f5240610c57da5fe73951a1727944b5a4ff32db
Erik Gilling [Sat, 30 Oct 2010 01:01:24 +0000 (18:01 -0700)]
video: tegra: set memory priority higher on DC init
Change-Id: I4196a994b7f83f524fb4bd728e2cb58b8cc078e3
Signed-off-by: Erik Gilling <konkers@android.com>
Erik Gilling [Sat, 30 Oct 2010 00:59:33 +0000 (17:59 -0700)]
[ARM] tegra: add API to set memory client priority
Change-Id: Id9b157004f7364fb1f7aaffa925b710dcfb90e86
Signed-off-by: Erik Gilling <konkers@android.com>
Erik Gilling [Fri, 29 Oct 2010 22:05:23 +0000 (15:05 -0700)]
video: tegra: add underflow stats to debug output
Change-Id: Id878f8e7791fa4fa63be1fd39978023ad4f7f93a
Signed-off-by: Erik Gilling <konkers@android.com>
Colin Cross [Fri, 29 Oct 2010 04:03:22 +0000 (21:03 -0700)]
Merge branch 'android-tegra-2.6.36' into android-tegra-moto-2.6.36
Conflicts:
drivers/mmc/host/sdhci-tegra.c
Change-Id: I9716a3c3a89d9a442d662cc402e1e4fdde1c3be4
Todd Poynor [Fri, 29 Oct 2010 03:26:32 +0000 (20:26 -0700)]
Revert "tegra sdhci: Enable/disable SDCLK source in set_clock host_op"
This reverts commit
474c80c4fa5c263e9e2bfe3523b8528f7d87684f.
Change-Id: I7a7bd0ea2e353248dd6286bef4cc1914d3edf5bd
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Rebecca Schultz Zavin [Fri, 29 Oct 2010 01:10:10 +0000 (18:10 -0700)]
Merge remote branch 'tegra/android-tegra-2.6.36' into android-tegra-moto-2.6.36
Rebecca Schultz Zavin [Fri, 29 Oct 2010 01:07:30 +0000 (18:07 -0700)]
Merge remote branch 'tegra/linux-tegra-2.6.36' into android-tegra-2.6.36
Change-Id: I9bdd8188cbbdf3cc9860b54500f080662d90a20a
Rebecca Schultz Zavin [Thu, 28 Oct 2010 03:52:19 +0000 (20:52 -0700)]
video: tegra: nvmap: Fix handle ref counting
In the current implementation handles hold references to a
client and clients hold references to their handles. As a
result when a process terminates it's handles can't be cleaned
up and we leak memory. Instead only hold references to handles
from clients.
Change-Id: Iba699e740a043deaf0a78b13b4ea01544675078f
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
Colin Cross [Fri, 29 Oct 2010 00:55:06 +0000 (17:55 -0700)]
Merge branch 'android-tegra-2.6.36' into android-tegra-moto-2.6.36
Erik Gilling [Mon, 18 Oct 2010 22:38:22 +0000 (15:38 -0700)]
video: tegra: add hdmi switch_dev for hotplug notifications
Change-Id: I0454179633835d35367bc5c28513319e3aa6a069
Signed-off-by: Erik Gilling <konkers@android.com>
Colin Cross [Fri, 29 Oct 2010 00:53:30 +0000 (17:53 -0700)]
Merge branch 'linux-tegra-2.6.36' into android-tegra-2.6.36
Colin Cross [Fri, 29 Oct 2010 00:53:24 +0000 (17:53 -0700)]
Merge branch 'android-2.6.36' into android-tegra-2.6.36
Colin Cross [Wed, 27 Oct 2010 23:17:57 +0000 (16:17 -0700)]
serial: tegra_hsuart: Remove suspend log spam
Change-Id: I22045608426ff317e6dd7e6f4c8b408f40aeb75f
Signed-off-by: Colin Cross <ccross@android.com>
Colin Cross [Wed, 27 Oct 2010 23:17:40 +0000 (16:17 -0700)]
ARM: tegra: suspend: Remove log spam
Change-Id: I6ad42216d74254351f050d2a895681e5f87f269e
Signed-off-by: Colin Cross <ccross@android.com>
Colin Cross [Wed, 27 Oct 2010 23:05:41 +0000 (16:05 -0700)]
Revert "video: tegra: add hdmi switch_dev for hotplug notifications"
This reverts commit
831bbd76da80cf5c7986262e39c872dfc0262a95.
Colin Cross [Wed, 27 Oct 2010 21:15:19 +0000 (14:15 -0700)]
ARM: tegra: suspend: Disable FIQs in suspend
Change-Id: I9aaba8c0cada6efcdcc0fe8633f643ec5609b198
Signed-off-by: Colin Cross <ccross@android.com>
Dmitry Shmidt [Fri, 29 Oct 2010 00:26:13 +0000 (17:26 -0700)]
[ARM] tegra: stingray: Set default path to wlan firmware in stingray_defconfig
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Rebecca Schultz Zavin [Tue, 26 Oct 2010 23:41:40 +0000 (16:41 -0700)]
video: tegra: nvmap: Track carveout clients
This patch adds the ability to track the total allocations in a
given carveout heap by client. It also adds a sys file to print
the list of clients, their pids and their respective carveout sizes
Change-Id: I34fc97c3be574d2bd30d7594320ff05f6e13c476
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
Jay Cheng [Wed, 27 Oct 2010 15:45:19 +0000 (11:45 -0400)]
usb: host: ehci: Add missed memory barrier in the hcd driver
There is one wmb missing in the usb host controller driver after the queue head
update. Due to this data transaction is not happening on the bus after urb
submission by the hcd driver. Register updates/queue heads data in the memory
is not reflected on the AHB bus. After adding the wmb after queue head update
data transaction the USB bus started with out any delay.
originally fixed by Venkat Moganty <vmoganty@nvidia.com>
Change-Id: Ic834df5172ac2f2eb3bced317d38b4a2e7a44801
Signed-off-by: Jay Cheng <jacheng@nvidia.com>
makarand.karvekar [Wed, 27 Oct 2010 20:06:35 +0000 (15:06 -0500)]
[ARM] tegra: edge and multi-touch tuning for stingray
improved touch reporting at edges.
improved multi-touch touch reports(for keypad).
increased number of touches to 10.
Change-Id: I866de3bf45ba96d23ab0d975131a0f0a5055815f
Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com>
Sergey Kudakov [Wed, 20 Oct 2010 20:38:32 +0000 (15:38 -0500)]
input: touchscreen: qtouch: resume touch after display
Signed-off-by: Sergey Kudakov <sergey.kudakov@motorola.com>
Greg Meiste [Wed, 8 Sep 2010 18:38:36 +0000 (13:38 -0500)]
[ARM] tegra: Setup regulators for suspend
The regulator framework may need to change certain regulators when
entering suspend.
Change-Id: I584e92b3c32cbd1a63325831822e2704a3dd2774
Signed-off-by: Greg Meiste <w30289@motorola.com>
Iliyan Malchev [Fri, 20 Aug 2010 17:22:10 +0000 (10:22 -0700)]
[ARM] tegra: hsuart: use a workqueue in the tx dma callback
Signed-off-by: Iliyan Malchev <malchev@google.com>
Iliyan Malchev [Fri, 20 Aug 2010 17:22:10 +0000 (10:22 -0700)]
[ARM] tegra: dma: switch to nonthreaded interrupts
Signed-off-by: Iliyan Malchev <malchev@google.com>
Erik Gilling [Wed, 27 Oct 2010 04:09:54 +0000 (21:09 -0700)]
Merge branch android-tegra-2.6.36 into android-tegra-moto-2.6.36
Change-Id: I9d242079e228853e884997e8bb6cb4d913f0c34d
Erik Gilling [Wed, 27 Oct 2010 04:08:37 +0000 (21:08 -0700)]
Merge branch linux-tegra-2.6.36 into android-tegra-2.6.36
Change-Id: Ifde4541e78b49ef83ed11d3a488c6580cf89af15
Erik Gilling [Wed, 27 Oct 2010 04:05:43 +0000 (21:05 -0700)]
video: tegra: fix dvfs for hdmi
Change-Id: I4e6eef34a1e794e622bec10c9025b3820cd6ba8d
Signed-off-by: Erik Gilling <konkers@android.com>
Colin Cross [Wed, 27 Oct 2010 03:33:24 +0000 (20:33 -0700)]
ARM: tegra: dvfs: hdmi can not be an auto dvfs clock
The hdmi block contains a divider that is not visible to the clock
subsystem, prevent auto dvfs on it so that clk_set_rate can set the
input clock higher than 148.5 MHz.
Change-Id: I7f09f4d099e2f24166a65b1b582fe16c1451deba
Signed-off-by: Colin Cross <ccross@android.com>
James Wylder [Fri, 15 Oct 2010 15:04:57 +0000 (10:04 -0500)]
[ARM] tegra: stingray: update CPU Power Good and Power off Times
Change-Id: I4dc3a5dc3fb26c786b459c16b52b299ce7251506
Signed-off-by: James Wylder <james.wylder@motorola.com>
prabhu annabathula [Mon, 25 Oct 2010 18:31:59 +0000 (13:31 -0500)]
[ARM] tegra: stingray: pull up on TEGRA_PINGROUP_SDIO1 (UARTE)
UARTE used by GPS is changed to 4-wire connect between
Broadcom chip and Tegra from P3 hardwares.
uart5_cts_n is not connected in hardware versions < P3, pull down
on cts line pin to keep it low in hardware versions < P3.
Signed-off-by: prabhu annabathula <prabhu.annabathula@motorola.com>
Greg Meiste [Tue, 26 Oct 2010 20:56:44 +0000 (15:56 -0500)]
firmware: cpcap: Reset SW2 and SW4 on soft reset
When given the signal from the host to stop so a soft reset can
occur, the uC also needs to reset SW2 and SW4 to their default
voltages to ensure the host can power back up.
Change-Id: I40e075011d2bf2caf4c495cb66147f2e2a449fdf
Signed-off-by: Greg Meiste <w30289@motorola.com>
Nathan Connell [Tue, 26 Oct 2010 13:40:16 +0000 (08:40 -0500)]
ARM: tegra: stingray: Run SDIO2 clock from PLLM at 50MHz
Run the SDIO2 clock at 50 MHz to avoid EMI in the GPS receive band
Change-Id: I101b82a99e1071db0916db8c62a321a0563ec5ad
Signed-off-by: Nathan Connell <w14185@motorola.com>
Erik Gilling [Wed, 27 Oct 2010 01:24:50 +0000 (18:24 -0700)]
Merge branch android-tegra-2.6.36 into android-tegra-moto-2.6.36
Conflicts:
drivers/mmc/host/sdhci-tegra.c
Change-Id: I52c329c835d80d868c731b23ca2d9dfad6e6586e
Erik Gilling [Wed, 27 Oct 2010 01:22:24 +0000 (18:22 -0700)]
Merge branch linux-tegra-2.6.36 into android-tegra-2.6.36
Change-Id: I0d4216b0a407e50c029a6c0869d727b188f7da04
Erik Gilling [Tue, 26 Oct 2010 22:30:35 +0000 (15:30 -0700)]
video: tegra: flesh out edid support
* read blocks in a single command instead of byte at a time
* allow reading past segment 0 (edid > 256 bytes)
* handle mutiple extention blocks
* add debugfs file for reading edid
Change-Id: Iec8182cdbccdaa2142e4bbc892202d2e8d73c23b
Signed-off-by: Erik Gilling <konkers@android.com>
Erik Gilling [Tue, 26 Oct 2010 22:29:11 +0000 (15:29 -0700)]
video: tegra: transmute HDMI modes into supported ones
Change-Id: I37222e9d1617a0ace062e05740365cfe5c0c2af8
Signed-off-by: Erik Gilling <konkers@android.com>
Erik Gilling [Tue, 26 Oct 2010 22:21:23 +0000 (15:21 -0700)]
video: tegra: allow setting output mode without changing fb geometry
Change-Id: I0a723b4e68c99d2727e12d2c26f1506b1f634f8a
Signed-off-by: Erik Gilling <konkers@android.com>
Erik Gilling [Tue, 26 Oct 2010 21:25:48 +0000 (14:25 -0700)]
video: tegra: add IOCTL for querying modes
Change-Id: Ic312271b96a8bb8d8b2696448d3ff7fd73a7a851
Signed-off-by: Erik Gilling <konkers@android.com>
Colin Cross [Wed, 27 Oct 2010 00:33:31 +0000 (17:33 -0700)]
ARM: tegra: clock: Don't restore PLLP registers
The PLLP registers are now being restored by the low-level resume code,
and the CPU may be running off PLLP, so don't touch them during clock
resume.
Change-Id: Ida248a929c8b59f2e51f43dbbef1cd792ef68737
Signed-off-by: Colin Cross <ccross@android.com>
Colin Cross [Wed, 27 Oct 2010 00:32:13 +0000 (17:32 -0700)]
ARM: tegra: suspend: Save and restore PLLP in low-level suspend
Save and restore the PLLP registers in the platform suspend code, as
the CPU clock may be sourced from the PLLP registers later, before
the clock resume that used to re-enable PLLP has been called.
Change-Id: I0ffc18d8a7f2d62c544328bd44ca7cf62848bc44
Signed-off-by: Colin Cross <ccross@android.com>
Iliyan Malchev [Thu, 21 Oct 2010 23:48:37 +0000 (16:48 -0700)]
[ARM] tegra: dma: expose TEGRA_DMA_MAX_TRANSFER_SIZE, fix typo
NV_DMA_MAX_TRASFER_SIZE --> TEGRA_DMA_MAX_TRANSFER_SIZE
Signed-off-by: Iliyan Malchev <malchev@google.com>
Iliyan Malchev [Wed, 20 Oct 2010 23:48:18 +0000 (16:48 -0700)]
[ARM] tegra: dma: make checkpatch happy
Signed-off-by: Iliyan Malchev <malchev@google.com>
Benoit Goby [Wed, 20 Oct 2010 04:58:13 +0000 (21:58 -0700)]
mdm6600: Force tty->low_latency to 1
This makes the tty push data immediately to the ldisc when
flip_buffer_push is called instead of scheduling a delayed
workqueue. This fixes the dropped data problem.
Change-Id: I9558e3b4529653983ec9bf8af8ae7c8f8c25787f
Signed-off-by: Benoit Goby <benoit@android.com>
John Kramer [Tue, 19 Oct 2010 19:31:30 +0000 (14:31 -0500)]
media: video: tegra: Add features to soc2030
Add user white balance, effects and exposure support
to the soc2030 2MP camera sensor driver
Change-Id: I8f572b9369bbbbab89b49a60046f48dbcb54b33d
Signed-off-by: John Kramer <john.kramer@motorola.com>
Todd Poynor [Mon, 11 Oct 2010 22:31:42 +0000 (15:31 -0700)]
tegra sdhci: Enable/disable SDCLK source in set_clock host_op
Change-Id: I08efc82429a2422a6038d7c50399850223fad240
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Todd Poynor [Mon, 11 Oct 2010 23:51:28 +0000 (16:51 -0700)]
sdhci: Always pass clock request value zero to set_clock host op
To allow the set_clock host op to disable the SDCLK source when not
needed, always call the host op when the requested clock speed is
zero. Do this even if host->clock already equals zero, because
the SDHCI driver may set that value (without calling the host op)
to force an update at the next (non-zero-speed) call.
Change-Id: If99230d76138679b5767f77cb925f15408ae518e
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Colin Cross [Tue, 26 Oct 2010 01:51:19 +0000 (18:51 -0700)]
Merge branch 'android-tegra-2.6.36' into android-tegra-moto-2.6.36
Conflicts:
arch/arm/mach-tegra/tegra2_clocks.c
Change-Id: I175cf5b73d60abd4ac0a9a3f8216a2b7b2ebae84
Colin Cross [Tue, 26 Oct 2010 01:48:16 +0000 (18:48 -0700)]
Merge branch 'linux-tegra-2.6.36' into android-tegra-2.6.36
Colin Cross [Tue, 26 Oct 2010 01:48:09 +0000 (18:48 -0700)]
Merge branch 'android-2.6.36' into android-tegra-2.6.36
Colin Cross [Mon, 25 Oct 2010 23:23:09 +0000 (16:23 -0700)]
ARM: tegra: clock: Fix warning
Change-Id: I2c175f65b7e7db234f7317e7c51aeea65d33d555
Colin Cross [Sun, 24 Oct 2010 23:10:31 +0000 (16:10 -0700)]
ARM: tegra: Remove debugging from tegra_move_framebuffer
Change-Id: I012b3b565faefe60e7ce581f748905d3baab6da4
Signed-off-by: Colin Cross <ccross@android.com>
Colin Cross [Sun, 24 Oct 2010 06:25:52 +0000 (23:25 -0700)]
ARM: tegra: suspend: Track the amount of time spent in suspend
Change-Id: Iee5ec7da45d3405846d8655104d9736eccedb713
Signed-off-by: Colin Cross <ccross@android.com>
Colin Cross [Sun, 24 Oct 2010 23:11:03 +0000 (16:11 -0700)]
ARM: tegra: timer: Fix us timer time after resume from LP1
In LP1 suspend, or during a failed LP0 suspend, the core power is
not turned off and the timer register is not reset. Saving the
timer value during suspend and adding it to the offset after resume
will cause the timer value to double for each suspend cycle.
To fix, when resuming subtract the current value of the timer
register from the offset. Also, use the rtc registers to add
the time that passed during suspend.
Change-Id: I9f7ee2089b98cf66af45271f8478fbd9eb2ee250
Signed-off-by: Colin Cross <ccross@android.com>
Colin Cross [Sun, 24 Oct 2010 06:22:53 +0000 (23:22 -0700)]
ARM: tegra: timer: Remove 32k clocksource
The 32k clocksource is never used, because it is always registered
at the same time as the us clocksource, which has a higher rating.
Using the 32k clocksource would cause a race condition with the
tegra_rtc driver on the RTC shadow registers. Remove the 32k
clocksource, add a replacement tegra_read_rtc_ms function for the
suspend code to track suspend time, and add a comment on
read_persistent_clock that it should never be called while the
tegra_rtc driver is running. It is currently only called from
timekeeping init, suspend, and resume.
Change-Id: Ic964578e9923b0f0338959f75de1ac170f850337
Signed-off-by: Colin Cross <ccross@android.com>
Colin Cross [Sun, 24 Oct 2010 06:22:07 +0000 (23:22 -0700)]
ARM: tegra: irq: Add debugfs file to show wake irqs
Change-Id: I66124275869d5f83024937010e14018b7980bb05
Signed-off-by: Colin Cross <ccross@android.com>
Colin Cross [Sat, 23 Oct 2010 22:55:32 +0000 (15:55 -0700)]
ARM: tegra: cpuidle: Keep statistics on idle wake interrupts
Change-Id: Ieaee455b4e52f232c5b1285756c22bcdc7fdc6b4
Signed-off-by: Colin Cross <ccross@android.com>
Colin Cross [Sat, 23 Oct 2010 22:01:35 +0000 (15:01 -0700)]
ARM: tegra: suspend: Fix compile issues with CONFIG_SMP=n
Move suspend pagetable creation to suspend.c
Always compile headsmp-t2.S, it's needed for LP2 resume
Change-Id: I9e23c6bf72fff3e98e0549edf1f85bec823a3a38
Signed-off-by: Colin Cross <ccross@android.com>
Colin Cross [Sat, 23 Oct 2010 21:56:27 +0000 (14:56 -0700)]
ARM: tegra: cpuidle: Fix compile issues with CONFIG_SMP=n
Change-Id: Id02744bcdfc079a6091be2e8a736bcd3a6cc0ba6
Signed-off-by: Colin Cross <ccross@android.com>
Colin Cross [Sat, 23 Oct 2010 21:55:56 +0000 (14:55 -0700)]
ARM: tegra: cpufreq: Fix compile issues with CONFIG_SMP=n
Change-Id: Id678df6299adfc23a4321ddaff10b4c64a4ed895
Signed-off-by: Colin Cross <ccross@android.com>
Rebecca Schultz Zavin [Fri, 22 Oct 2010 22:55:17 +0000 (15:55 -0700)]
[ARM] fiq_debugger: Print local timer irqs count
Prints the number of local timer irqs on each cpu when
the irqs command is executed.
Change-Id: Ic70fa9f528d98996fabb2d0cc80e937c5b239c1a
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
James Wylder [Wed, 20 Oct 2010 20:05:09 +0000 (15:05 -0500)]
[ARM] tegra: cpuidle define power_specified
Turn on the cpuidle_device power_specified field
to enable usage of the defined cpuidle_state.power_usage fields
for each state.
Signed-off-by: James Wylder <james.wylder@motorola.com>
Change-Id: Ibca20a937bf4079f61e4b3ae64394d797b4eb287
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Colin Cross [Mon, 25 Oct 2010 21:15:44 +0000 (14:15 -0700)]
ARM: tegra: clock: Remove dependency between "set" and debugfs
Change-Id: I732f9428096d057e08092120c6f8c2890230a242
Colin Cross [Mon, 18 Oct 2010 03:49:48 +0000 (20:49 -0700)]
video: tegra: dc: Call dvfs functions
Change-Id: If3cca5da2abc5e6c3671c8c23af90cd4e029db5c
Signed-off-by: Colin Cross <ccross@android.com>
Colin Cross [Thu, 9 Sep 2010 02:49:54 +0000 (19:49 -0700)]
[ARM] tegra: dvfs: Convert cpu to new dvfs, add core dvfs tables
Change-Id: I4020943ee10026866b29302aac177a5bdc259184
Signed-off-by: Colin Cross <ccross@android.com>
Colin Cross [Thu, 21 Oct 2010 02:19:58 +0000 (19:19 -0700)]
[ARM] tegra: clock: Refcount periph clock enables
Some peripheral clocks share enable bits. Refcount the enables so
that calling clk_disable on one clock will not turn off another
clock.
Change-Id: Iefb015bc83cac77b3faef8db86cfc42b25c0b6ae
Signed-off-by: Colin Cross <ccross@android.com>
Colin Cross [Thu, 14 Oct 2010 04:39:04 +0000 (21:39 -0700)]
[ARM] tegra: clock: Add shared bus clock type
Change-Id: If8022248049e790030f1480f37a074401e24d54c
Signed-off-by: Colin Cross <ccross@android.com>
Colin Cross [Thu, 14 Oct 2010 02:16:27 +0000 (19:16 -0700)]
[ARM] tegra: clock: Move unshared clk struct members into union
Change-Id: I4e03194d4a86c73eea4773fbdcaf773e06b6eebf
Signed-off-by: Colin Cross <ccross@android.com>
Colin Cross [Thu, 14 Oct 2010 04:38:28 +0000 (21:38 -0700)]
[ARM] tegra: clock: Rearrange static clock tables
Change-Id: I90078bf5e9eaa0fa64681e2ed77c7ac7f7d31804
Signed-off-by: Colin Cross <ccross@android.com>
Colin Cross [Thu, 9 Sep 2010 02:46:13 +0000 (19:46 -0700)]
[ARM] tegra: clock: Add new dvfs
New and improved dvfs:
Registered dynamically during init
Exports dvfs functions to control clocks that are not visible to
the clock subsystem
Supports multiple regulators per clock
Fix dvfs on disabled clocks
Adds /d/clock/dvfs to show current voltage requirements
Change-Id: I93794a7761dccc702566e8850bb79f344ff787a2
Signed-off-by: Colin Cross <ccross@android.com>
Colin Cross [Thu, 9 Sep 2010 02:41:14 +0000 (19:41 -0700)]
[ARM] tegra: clock: Drop old CPU dvfs
Change-Id: Iaa5377dd1d8bf32e90deb668053c10588642fa03
Signed-off-by: Colin Cross <ccross@android.com>
Colin Cross [Thu, 14 Oct 2010 01:04:47 +0000 (18:04 -0700)]
[ARM] tegra: cpufreq: Remove cansleep from clk api
Change-Id: I97614cac27da66a95664664143952f376fc5462e
Signed-off-by: Colin Cross <ccross@android.com>
Colin Cross [Thu, 14 Oct 2010 02:16:02 +0000 (19:16 -0700)]
[ARM] tegra: clock: Initialize clocks that have no enable
Change-Id: I136713c2a2ff9fec9fc629ae8f91709e49016618
Signed-off-by: Colin Cross <ccross@android.com>
Colin Cross [Thu, 21 Oct 2010 00:47:18 +0000 (17:47 -0700)]
[ARM] tegra: Disable clocks left on by bootloader
Change-Id: I6651ab59b738787ec94f358d5789d950c3d1a563
Signed-off-by: Colin Cross <ccross@android.com>
Colin Cross [Thu, 21 Oct 2010 00:47:59 +0000 (17:47 -0700)]
[ARM] tegra: cpufreq: Take an extra reference to pllx
During cpu frequency changes, take an extra reference to pllx so
that it doesn't turn off and on while the cpu is on pllp.
Change-Id: I574d399a67aab21f99473296a29aa1eedc0eedb9
Signed-off-by: Colin Cross <ccross@android.com>
Sergey Kudakov [Wed, 20 Oct 2010 20:40:35 +0000 (15:40 -0500)]
leds: leds-lp8550: Disable suspend/resume
Prevent led driver from resuming while display is suspended
Change-Id: I8881d563cbeff472b99f618f30257a9ca66d9c7e
Signed-off-by: Sergey Kudakov <sergey.kudakov@motorola.com>
Sergey Kudakov [Wed, 20 Oct 2010 20:30:41 +0000 (15:30 -0500)]
[ARM] tegra: stingray: lock gen_i2c for 200ms while
Sharp is powering up to avoid contention
between tegra and Sharp's internal i2c master
Change-Id: I1506c112a34c8ccee7ccbcd4d8bc4e70fa26bec0
Signed-off-by: Sergey Kudakov <sergey.kudakov@motorola.com>
Greg Meiste [Wed, 20 Oct 2010 14:48:58 +0000 (09:48 -0500)]
firmware: cpcap: Fixes for LED blink macro
1) The uC should not have been changing the current, only the
duty cycle.
2) The blink pattern (300ms on, 2700ms off) does not work when
fading is introduced. Change the on/off times to work with
the new pattern (on instantly, then fade for 2 seconds, then
off for 2700ms).
3) Update how the duty cycle is saved. Before it was saved once
and could never been updated again until the device was
restarted. Now the duty cycle can be changed without a reboot.
Change-Id: Iaa193eae35046e53661e0db5386141e4d17ac9c3
Signed-off-by: Greg Meiste <w30289@motorola.com>
Greg Meiste [Wed, 20 Oct 2010 14:47:52 +0000 (09:47 -0500)]
[ARM] tegra: stingray: Change to 2 second fade
Change CPCAP configuration from a 4 second LED fade to a 2 second fade.
Also change the LED mask so the notification LED always turns on
instantly.
Change-Id: I7b3080a4f9f770187dd5a906fc9cf436a4e630f2
Signed-off-by: Greg Meiste <w30289@motorola.com>
Chris Fries [Thu, 21 Oct 2010 04:20:49 +0000 (23:20 -0500)]
[ARM] mfd: cpcap-audio: disable unused audio hardware
Disable unused audio hardware, and decouple the STDAC and CODEC states.
- While controlling output, don't touch CODEC state/mute
- While controlling input, don't touch STDAC state/mute
- Don't enable external input gains, it's not connected.
Signed-off-by: Iliyan Malchev <malchev@google.com>