Commit Graph

211958 Commits

Author SHA1 Message Date
Dima Zavin
5b5e9b563d media: video: tegra: add debugfs entry for tegra_rpc
For now just includes the existing ports, the peer owners,
and the port and peer state.

Change-Id: I2c6b603ca02dc48acc1c763380ff0f1cb66f482b
Signed-off-by: Dima Zavin <dima@android.com>
2010-11-09 18:48:07 -08:00
Dima Zavin
1ce38cb459 media: video: tegra: wait for remote ack on disconnect
Change-Id: I42bf507b7d644184bd27be6ff53e5974dcfa3797
Signed-off-by: Dima Zavin <dima@android.com>
2010-11-09 17:15:15 -08:00
Jay Cheng
15f59ba827 ARM: tegra: usb_phy: Correct utmi power off sequence
USB_WAKE_ON_CNNT_EN_DEV is only valid when USB controller is in device mode.

Also only one of USB_WAKE_ON_CNNT_EN_DEV and USB_WAKE_ON_DISCON_EN_DEV bits
can be set at any one time.

Change-Id: I76d7fcf73e6ab8fa1610ec4264060c44b221775c
Signed-off-by: Jay Cheng <jacheng@nvidia.com>
2010-11-09 17:02:58 -08:00
Colin Cross
2d73a7392a ARM: tegra: dvfs: Fix dvfs disable config option
Change-Id: If976cc25147d96fd1130f48301017ce696e38f4f
Signed-off-by: Colin Cross <ccross@android.com>
2010-11-09 15:48:55 -08:00
Colin Cross
d50e318877 ARM: tegra: dvfs: Add lock to dvfs_reg
Change-Id: I0496cf37da3a20d697eb4f372c32d01d49352f98
Signed-off-by: Colin Cross <ccross@android.com>
2010-11-09 15:03:27 -08:00
Colin Cross
f58886c359 ARM: tegra: dvfs: Fix locking on external dvfs calls
Change-Id: I9e3a3cc8c6c4424d7f7ded22d886d51f715ec5d5
Signed-off-by: Colin Cross <ccross@android.com>
2010-11-09 15:03:26 -08:00
Colin Cross
5dd546a463 ARM: tegra: dvfs: Add config options to disable dvfs
Change-Id: I401ab5587f28dfabaf0aae1ffa062a2411a1ad92
Signed-off-by: Colin Cross <ccross@android.com>
2010-11-09 15:03:25 -08:00
Erik Gilling
bb42d01d96 [ARM] tegra: cleanup empty functions in mach/fb.h
adds static inline

Change-Id: Iff0473dcc02ad6d10adb878f195b57a2ed6e3e2a
Signed-off-by: Erik Gilling <konkers@android.com>
2010-11-09 13:59:43 -08:00
Erik Gilling
15e220587f video: add short video mode decode to fbmon
Change-Id: Ida529e096688c231029628d3d16d6f8569bfe2c9
Signed-off-by: Erik Gilling <konkers@android.com>
2010-11-09 13:54:42 -08:00
Erik Gilling
961428a649 video: tegra: flush fb_flip workqueue on blank and suspend
Change-Id: I58e9ba73b2fd232e6c1f40946e2e353b90ce5dd7
Signed-off-by: Erik Gilling <konkers@android.com>
2010-11-09 13:54:41 -08:00
Erik Gilling
f1ec3093e5 video: tegra: fix crash when no HDMI modes are supported
Change-Id: I2e23d018d5acb814e7a088921c26c8f305790442
Signed-off-by: Erik Gilling <konkers@android.com>
2010-11-09 13:54:36 -08:00
Dima Zavin
acfd7740ee media: video: tegra: add ref count for remote clock requests
Change-Id: I824f9a27bfefe86211bc71d5f79ea798052b98b7
Signed-off-by: Dima Zavin <dima@android.com>
2010-11-08 13:59:48 -08:00
Dima Zavin
427a648355 ARM: tegra: make vcp/bsea/vde clocks be owned by the AVP
Change-Id: Ic0c3b1dc5cdccf5220d8c6cc8c7ef7883b28a4d1
Signed-off-by: Dima Zavin <dima@android.com>
2010-11-07 23:34:53 -08:00
Dima Zavin
a70a92ebdf ARM: tegra: add avp platform_device
Change-Id: I8229873e1a450b75d31e6ea4ec64647b88d16844
Signed-off-by: Dima Zavin <dima@android.com>
2010-11-07 23:34:53 -08:00
Dima Zavin
20e830c908 media: video: tegra: add support for the AVP media offload engine
Change-Id: Ia72e022ad1217ffe75915465ca0e886b16d1a64a
Signed-off-by: Dima Zavin <dima@android.com>
2010-11-07 23:34:45 -08:00
Dima Zavin
44729054a5 media: video: tegra: Add Tegra RPC support for tegra multimedia framework
Change-Id: I9233c5d7c678f6a9ba1c23af686137bf4d6a4291
Signed-off-by: Dima Zavin <dima@android.com>
2010-11-07 22:37:40 -08:00
Dima Zavin
23e9aed0c0 ARM: tegra: add avp mailbox address to iomap
Change-Id: I5472f6b6c2b8dd955843efd07d0b31d0f379fee6
Signed-off-by: Dima Zavin <dima@android.com>
2010-11-07 22:37:40 -08:00
Dima Zavin
6222412420 ARM: tegra: add missing spdif device declaration in header
Change-Id: If447711b095ec7025f3bbe232e22444839054927
Signed-off-by: Dima Zavin <dima@android.com>
2010-11-07 22:37:40 -08:00
Todd Poynor
7935def33e ARM: tegra: Don't include idle time in irqsoff/preemptoff tracers
Surprise bonus change: Rename tegra_enter_idle to more accurately reflect
what it does.

Change-Id: I1237e1271df693c109b9db8b47421f8a4c3043c3
Signed-off-by: Todd Poynor <toddpoynor@google.com>
2010-11-05 19:10:28 -07:00
Iliyan Malchev
86d007b0f8 [ARM] tegra_i2s/spdif_audio: move allow_suspend to a work queue
Since pm_qos_update_request() may block, we need to make sure that
allow_suspend is always called in process context.

Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-11-05 13:34:43 -07:00
Rebecca Schultz Zavin
dbe75d43f5 Revert "tegra: video: nvmap: Printk if nvmap alloc fails"
This reverts commit e3ad53ad73.
2010-11-05 13:13:50 -07:00
Rebecca Schultz Zavin
49248d95e7 video: tegra: host: Add nvmap client name
Passes a name to nvmap_create_client so it can be tracked
for debugging.

Change-Id: I47c958549c29fb3d5299f6c693e1be79b27a29f3
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-11-05 12:17:21 -07:00
Rebecca Schultz Zavin
44d6c378c6 video: tegra: fb: Add nvmap client name
Passes a name to nvmap_create_client so it can be tracked
for debugging.

Change-Id: Id4aa9804d8cc8c04c44f51602362435fb877d1af
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-11-05 12:17:21 -07:00
Rebecca Schultz Zavin
c0645e1f95 video: tegra: nvmap: Add names to nvmap client
This modifies the api to allow the user to specify a name
for their clients.  This will allow the system to track
allocations from the kernel by name.

Change-Id: I44aad209bc54e72126be3bebfe416b30291d206c
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-11-05 12:17:21 -07:00
Rebecca Schultz Zavin
7fdc414272 video: tegra: nvmap: Move debug info to debugfs
Moves the file tracking clients to debugfs
Add a debugfs file to track the list of allocations per client

Change-Id: I2bb683e3ac0599fa05d962c79ef0b7cbd0007d75
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-11-05 12:17:20 -07:00
Colin Cross
1b26bfc7ad ARM: tegra: common: Reduce sclk to 120 MHz
Set pll_m_out1, sclk, and hclk to 120 MHz, and pclk to 60 MHz.
Drivers that require a faster bus speed can use a shared bus clock
reference to increase the sclk frequency up to 240 MHz, which will
also increase pll_m_out1, hclk, and pclk.

Change-Id: Ic491da80de1d95e6550cf9351eae185210f55b2a
Signed-off-by: Colin Cross <ccross@android.com>
2010-11-04 18:08:50 -07:00
Colin Cross
f0c1853343 serial: tegra_hsuart: Fix sleeping while atomic
Move the flush_work outside of stop_tx, do it during suspend and
shutdown instead.  Move the tty portion of the tx work into
the dma complete callback, and only handle polling on the fifo and
then requeuing the dma in the work function.

Change-Id: I56db6504d35e5e7019379dc8a4323b4a27c72e59
Signed-off-by: Colin Cross <ccross@android.com>
2010-11-04 17:49:47 -07:00
Colin Cross
c41283c28b ARM: tegra: clock: Add a pass-through set_rate to super clocks
Change-Id: I55027c93415a59cbf701b1f30e436203316c0d61
Signed-off-by: Colin Cross <ccross@android.com>
2010-11-03 17:55:55 -07:00
Colin Cross
34661b64da ARM: tegra: suspend: use clk_get_rate_all_locked
Signed-off-by: Colin Cross <ccross@android.com>
Change-Id: I2d4bfd8728998903f9cff4a0f1ab41e76bdc02d7
2010-11-03 17:55:54 -07:00
Colin Cross
a1d72a522d ARM: tegra: dvfs: Get rid of dvfs_lock and move init later
Get rid of dvfs_lock, replacing it with the cansleep flag on clocks.
Clocks with the cansleep flag set will lock a mutex before calling
into dvfs.

Also does the regulator api calls during late init, after the
regulators have been probed.

Signed-off-by: Colin Cross <ccross@android.com>
Change-Id: I5b8bd249bd4f3ae495f2076f1e6d2bfb38737f29
2010-11-03 17:55:53 -07:00
Colin Cross
c95714d0ba ARM: tegra: clock: Redo clock locking
Give each clock its own lock, and remove all lock traversals from
parent to child clocks to prevent AB-BA deadlocks.

Signed-off-by: Colin Cross <ccross@android.com>
Change-Id: I0afb7d1bca956439b1a4f17bbc6748aaec706b49
2010-11-03 17:37:56 -07:00
Colin Cross
1f8ca000a0 ARM: tegra: clock: Drop set_rate on audio clocks
Signed-off-by: Colin Cross <ccross@android.com>
Change-Id: Idabc71386e7a2fba214d243405e70149faf47a8e
2010-11-03 17:37:56 -07:00
Colin Cross
3d89a90359 ARM: tegra: dvfs: Disable dvfs on sdmmc
The sdhci core calls clock functions with a spinlock held, which
conflicts with the mutex in dvfs clocks.  Disable dvfs on sdmmc
for now.

Signed-off-by: Colin Cross <ccross@android.com>
Change-Id: I59c0648ab6718571794e082d1f4828f158d00031
2010-11-03 17:37:56 -07:00
Rebecca Schultz Zavin
e3ad53ad73 tegra: video: nvmap: Printk if nvmap alloc fails
Prints a log message if the nvmap allocate ioctl fails.

Change-Id: Ia0777bc2fcd665dafff0f8948b01faad3f552d72
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2010-11-03 16:45:29 -07:00
Chris Fries
e8d9abdf7b [ARM] tegra_i2s_audio: add support for master/slave switching
- Remove duplicate code between probe() and resume(), make new function
  i2s_configure()
- When master, pass the sample rate from the board info
- Clean up some checkpatch.pl complaints.

Change-Id: I0169d9a70c02eaf2173b1f1941a545792c01bc6b
Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-11-03 13:05:04 -07:00
Chris Fries
47e55a567c [ARM] tegra_spdif_audio: add timeout to prevent flush deadlock
Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-11-02 19:43:33 -07:00
Chris Fries
8e1fb0fece [ARM] tegra_i2s_audio: add timeout to prevent flush deadlock
Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-11-02 19:43:33 -07:00
Rebecca Schultz Zavin
44da1b533e 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>
2010-11-02 16:19:11 -07:00
Ravindra Lokhande
53bb435d8d [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>
2010-11-02 14:10:42 -07:00
Dima Zavin
624287cd63 ARM: configs: update tegra_defconfig to enable regulators
Change-Id: I64e0f2ef1f57d4d2dc86143145f396dfeb4abe46
Signed-off-by: Dima Zavin <dima@android.com>
2010-11-01 15:47:16 -07:00
Erik Gilling
fcb400c604 video: tegra: set memory priority higher on DC init
Change-Id: I4196a994b7f83f524fb4bd728e2cb58b8cc078e3
Signed-off-by: Erik Gilling <konkers@android.com>
2010-10-29 18:11:07 -07:00
Erik Gilling
a03616950e [ARM] tegra: add API to set memory client priority
Change-Id: Id9b157004f7364fb1f7aaffa925b710dcfb90e86
Signed-off-by: Erik Gilling <konkers@android.com>
2010-10-29 18:11:07 -07:00
Erik Gilling
913a6a0a1c video: tegra: add underflow stats to debug output
Change-Id: Id878f8e7791fa4fa63be1fd39978023ad4f7f93a
Signed-off-by: Erik Gilling <konkers@android.com>
2010-10-29 15:09:33 -07:00
Rebecca Schultz Zavin
95b5312b0f 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>
2010-10-28 18:05:59 -07:00
Colin Cross
84b33d62a4 serial: tegra_hsuart: Remove suspend log spam
Change-Id: I22045608426ff317e6dd7e6f4c8b408f40aeb75f
Signed-off-by: Colin Cross <ccross@android.com>
2010-10-28 17:51:22 -07:00
Colin Cross
f3fadd743d ARM: tegra: suspend: Remove log spam
Change-Id: I6ad42216d74254351f050d2a895681e5f87f269e
Signed-off-by: Colin Cross <ccross@android.com>
2010-10-28 17:51:22 -07:00
Colin Cross
c6069ff5ff Revert "video: tegra: add hdmi switch_dev for hotplug notifications"
This reverts commit 831bbd76da.
2010-10-28 17:51:21 -07:00
Colin Cross
4060ab885f ARM: tegra: suspend: Disable FIQs in suspend
Change-Id: I9aaba8c0cada6efcdcc0fe8633f643ec5609b198
Signed-off-by: Colin Cross <ccross@android.com>
2010-10-28 17:51:21 -07:00
Rebecca Schultz Zavin
179ad42101 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>
2010-10-28 17:19:56 -07:00
Jay Cheng
b0d63aa773 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>
2010-10-28 12:45:46 -07:00