summaryrefslogtreecommitdiff
path: root/arch
AgeCommit message (Collapse)Author
2010-12-14ARM: tegra: hardware arbitration semaphore supportVarun Wadekar
add apis to use the hardware arbitration semaphores in order to share hardware modules between kernel drivers and AVP firmware (e.g., the BSEA (audio bitstream) engine and AES block) Change-Id: I500ef0797223bc702151ad14e0e2156f50644a2a Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
2010-12-14ARM: tegra: duplicate vde clock for aes in tegra2_clocksVarun Wadekar
Change-Id: If5ad2bfe767c7c43e83fd78ac1cb3d9c62fe785d Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
2010-12-14ARM: tegra: add VDE and arb semaphores to iomap.hVarun Wadekar
Change-Id: Ic47b80d1c7fdf04305afbea4b34d6c9e9c9304ad Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
2010-12-08ARM: tegra: cpufreq: Adjust memory frequency with cpu frequencyColin Cross
Change-Id: I08c64f64a12bcb11e7c0e466fa77fe971e4b2cba Signed-off-by: Colin Cross <ccross@android.com>
2010-12-08ARM: tegra: dvfs: Add emc clock to dvfs tableColin Cross
Change-Id: Id93dcd0f4cac3164ab776bc4e68d836724b59bee Signed-off-by: Colin Cross <ccross@android.com>
2010-12-08ARM: tegra: clocks: Add emc scalingColin Cross
Change-Id: Ica5ee704dd35b5fbf02d8c030a8578d5e8694839 Signed-off-by: Colin Cross <ccross@android.com>
2010-12-08ARM: tegra: Add external memory controller driverColin Cross
Change-Id: Idcef38723b504719a09537612f2f94ad163844f5 Signed-off-by: Colin Cross <ccross@android.com>
2010-12-08ARM: tegra: clock: Round rate before dvfsColin Cross
Call the clock's round_rate op, if it exists, before setting dvfs rate. Ensures dvfs is set to the rate the clock will be at after the later call to set_rate. Change-Id: I4c8e85991238492adc3c37aed57c7269f3b41a2c Signed-off-by: Colin Cross <ccross@android.com>
2010-12-06[ARM] tegra: spdif/i2s audio: fixesChris Fries
-- release can take a long time Releasing the out file handles can take a long time, because we wait for a stop completion that may never arrive. -- fix possible dma list corruption If things have gone wrong and a "wait_till_stopped()" times out, prevent list corrption in the DMA by dequeing any queued requests. Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-12-06[ARM] tegra: ventana: fix gpio key for menu optionsVarun Wadekar
Change-Id: Ia6e5f92fa6f965832546dde95e10b00419396386 Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
2010-12-03[ARM] tegra: cpufreq: Support for tegra cpu throttlingDmitriy Gruzman
Change-Id: I28d69d22437b6ba2d22e4ce12746630786006071 Signed-off-by: Dmitriy Gruzman <dmitriy.gruzman@motorola.com>
2010-12-02ARM: tegra: suspend: Fix build with CONFIG_CACHE_L2X0=nAndrei Warkentin
Change-Id: I85c3a98d0c9f61153969649bb9de20a9158e9ee4 Signed-off-by: Andrei Warkentin <andreiw@motorola.com>
2010-12-02[ARM] tegra_i2s_audio: don't turn off hardware during over/underflowChris Fries
-- Leave I2S running during underflow, for a couple of reasons. First, the I2S buffers a few samples, and if we get a new write before those samples are flushed, we will keep continuous audio Second, we burn CPU time stopping and restarting the HW frequently. -- Fix TEGRA_AUDIO_IN/OUT_GET/SET_NUM_BUFS, was causing DMA to read/write to null HW address. Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-12-02[ARM] tegra: dma: Remove spam logChris Fries
"Interrupt during enqueue" happens periodically when the DMA is almost starving. This happens under certain not- uncommon scenarios. Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-12-01ARM: tegra: dvfs: Allow boot or run time disabling of dvfs railsColin Cross
Change-Id: Ie56cbf4ade1bbdb5835851f3c09668c1e0941a2c Signed-off-by: Colin Cross <ccross@android.com>
2010-12-01ARM: tegra: Add dvfs railsColin Cross
The previous version of dvfs handled requirements between two different voltage rails by using two sets of dvfs tables, one for each rail. That method fails for vdd_aon, which must be within 170 mV of vdd_core. Instead, have each dvfs clock only set the voltage rail that it directly depends on, and add a relationship system to the voltage rails. When the voltage changes on one rail, it calls update on all the rails that depend on it. The dependent rails compare the new voltage of the original rail to their own voltage, and update their own voltage as necessary. Change-Id: I17b30a61c7c0c01e44702ab486238789abd47330 Signed-off-by: Colin Cross <ccross@android.com>
2010-12-01Revert "ARM: tegra: dvfs: Fix locking on external dvfs calls"Colin Cross
This reverts commit f58886c359db3c5056fea2d1a41d297f19e9f585. Change-Id: Ie88d8f79db9bf958fc3b9f261d74d031785161d0
2010-12-01ARM: tegra: clock: Allow any clock to be a shared clockColin Cross
Change-Id: I7e6be30c7870e8b00a165f99655cd95b917fc6db Signed-off-by: Colin Cross <ccross@android.com>
2010-11-30ARM: tegra: enable emc clock updates after lp0James Wylder
Write a dummy value to EMC_MRW_0 to allow clock frequency changes after lp0. Change-Id: I2218967eaf9698eef6dcfe2e3edd89fbce2ebf1a Signed-off-by: James Wylder <james.wylder@motorola.com>
2010-11-30[ARM] tegra: ventana: fix volume up gpioVarun Wadekar
Change-Id: Ie0e25ee8074f4625feb7473f4d5ce759597ed035 Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
2010-11-30[ARM] tegra2_clocks: remove incorrectly-defined frequenciesIliyan Malchev
Definitions for 11.2896MHz and 12.288MHz were incorrect. These frequencies can be still requested through pll_a_out0. Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-11-30[ARM] tegra_i2s_audio: remove unnecessary clocksIliyan Malchev
Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-11-24ARM: tegra: clock: Fix cpu pll table entry for 608MHzColin Cross
The 608 MHz table entry would incorrectly produce a 760 MHz clock for input clocks of 12 MHz, 13 MHz, or 26 MHz. Change-Id: I6755fdde88f0851770490818dc2e5e1e2d512f20 Signed-off-by: Colin Cross <ccross@android.com>
2010-11-24ARM: tegra: Rearrange subsystem initialization orderColin Cross
Fuses must be initialized before clocks, so clocks can determine the maximum cpu frequency. Clocks must be initialized before DMA, so DMA can enable the clock. Once DMA is initialized, all fuses accesses must go through DMA to avoid a hardware bug. Change-Id: Id1f58e4f43152ec19000e02f2d1ea45abf141f9c Signed-off-by: Colin Cross <ccross@android.com>
2010-11-24ARM: tegra: dma: Add dma initialzation stub when compiled outColin Cross
Change-Id: Iac01fa701342a5ed0bbbb1c6e5d38adb401f2d79 Signed-off-by: Colin Cross <ccross@android.com>
2010-11-24ARM: tegra: fuse: Separate fuse dma initializationColin Cross
There is a dependency loop between fuses, clocks, and APBDMA. If dma is enabled, fuse reads must go through APBDMA to avoid corruption due to a hw bug. APBDMA requires a clock to be enabled. Clocks must read a fuse to determine allowable cpu frequencies. Separate out the fuse DMA initialization, and allow the fuse read and write functions to be called without using DMA before the DMA initialization has been completed. Access to the fuses before APBDMA is initialized won't hit the hardware bug because nothing else can be using DMA. Change-Id: Ib5cb0f346488f2869e8314c5f3b24fd86873f4c3 Signed-off-by: Colin Cross <ccross@android.com>
2010-11-24ARM: tegra: fuse: Fix warningsColin Cross
Change-Id: I2793cb8413669dbae8c6ca92572c423e27f46c4e Signed-off-by: Colin Cross <ccross@android.com>
2010-11-24ARM: tegra: fuse: Remove carriage returns in fuse filesColin Cross
Change-Id: If3675c8ee7a0e0a5d3f7bd0c147054bc3796deef Signed-off-by: Colin Cross <ccross@android.com>
2010-11-24ARM: tegra: suspend: protect suspend functions with CONFIG_PMAllen Martin
Protect suspend/resume functions behind #ifdef CONFIG_PM. This prevents a compile error with CONFIG_PM turned off. Signed-off-by: Allen Martin <amartin@nvidia.com> Signed-off-by: Colin Cross <ccross@android.com>
2010-11-24ARM: tegra: irq: protect irq suspend with CONFIG_PMAllen Martin
Protect irq suspend/resume functions behind #ifdef CONFIG_PM. This prevents a link error if CONFIG_PM is turned off. Signed-off-by: Allen Martin <amartin@nvidia.com> Signed-off-by: Colin Cross <ccross@android.com>
2010-11-24serial: tegra_hsuart: Use resources instead of platform data.Jaikumar Ganesh
Use resources to pass data to tegra_hsuart to set mapbase, irq. Signed-off-by: Jaikumar Ganesh <jaikumar@google.com>
2010-11-23[ARM] tegra: support to burn device fusesVarun Wadekar
Change-Id: Ic12a93d4212b5f9a7802537b8f21e288aa431005 Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
2010-11-23[ARM] tegra: fuse read/write apis for fuse burningVarun Wadekar
expose fuse register read and write apis for fuse burning Change-Id: Id6785f5506fe9293ddb5072240f49470ca5fcd08 Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
2010-11-23[ARM] tegra: use dma to read/write fuse registersVarun Wadekar
tegra2 hangs if fuse registers are accessed during an apb dma operation. war is to use apb dma to read/write fuse registers instead. Change-Id: I4d99a1ad56115c0d73e9cd0679cf38f70f922f3d Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
2010-11-23[ARM] tegra: Change size of constants from SZ_64 to 64.Jaikumar Ganesh
Signed-off-by: Jaikumar Ganesh <jaikumar@google.com>
2010-11-23[ARM] tegra_spdif_audio: support continuous DMA modeIliyan Malchev
-- Add support for contnuous single-buffered DMA -- Remove PIO support -- Added suspend and resume functionality Signed-off-by: Scott Peterson <speterson@nvidia.com> Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-11-22[ARM] tegra_spdif_audio: Enable 16 bit packed modeScott Peterson
Enable 16 bit packed fifo format mode to work avoid channel swapping when dma underrun occurs. Added suspend/resume functionality so spdif registers are restored. Change-Id: Id80e7903b81fd3b3b84af08dba40196121eb6cb7 Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-11-22[ARM] tegra: i2s: Continuous DMA supportChris Fries
- Refactor DMA interactions to handle continuous single-buffered DMA - Remove PIO support (obsolete, conflicts with new buffer management) - Remove sample rate conversion (obsolete) - Remove error-reporting logic - Remove TEGRA_AUDIO_IN/OUT_GET/SET_BUF_CONFIG - Add TEGRA_AUDIO_IN/OUT_GET/SET_NUM_BUFS Change-Id: I8f21a0bb314aac3b7d1bb4918bda9141e58db38d Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-11-22ARM: tegra: usb_phy: Disable disconnect detection during resumeJay Cheng
Change-Id: I30a45dc7e7a87773a93c128877d0f0827e5d44b7 Signed-off-by: Jay Cheng <jacheng@nvidia.com>
2010-11-18video: tegra: YUV overlay supportAri Hirvonen
Change-Id: I4bed4d37bc275cca9ef69390c217498529121db0 Signed-off-by: Erik Gilling <konkers@android.com>
2010-11-18ARM: tegra: usb_phy: Disable HS disconnect detect for USB2 portNathan Connell
Signed-off-by: Nathan Connell <w14185@motorola.com> Change-Id: Ia0c24128af0f1def38d0902b15a274582c302ce2
2010-11-17[ARM] tegra: dma: Single buffered continuous DMAChris Fries
- Added "single buffer continuous DMA" mode in addition to the "double buffer continuous DMA" mode that is already implemented - Changed the queuing of next buffer to be more flexible for continuous DMA. It can now get in-flight right after a transfer starts, or whenever the client enqueues a buffer. Signed-off-by: Iliyan Malchev <malchev@google.com>
2010-11-11video: tegra: add option to autodetect bitdepth from bootloaderErik Gilling
Change-Id: I5f17ab96323b3d313473622f572006d01b4716f7 Signed-off-by: Erik Gilling <konkers@android.com>
2010-11-11ARM: tegra: flush console before rebootDima Zavin
If the console_sem was held while the system was rebooted, the messages in the temporary logbuffer would not have propogated to all the console drivers. This force releases the console sem if it failed to be acquired. Change-Id: I6eba9d744ef41209d26328a17c7ae19c32d6e8cb Signed-off-by: Dima Zavin <dima@android.com>
2010-11-09ARM: tegra: usb_phy: Correct utmi power off sequenceJay Cheng
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-09ARM: tegra: dvfs: Fix dvfs disable config optionColin Cross
Change-Id: If976cc25147d96fd1130f48301017ce696e38f4f Signed-off-by: Colin Cross <ccross@android.com>
2010-11-09ARM: tegra: dvfs: Add lock to dvfs_regColin Cross
Change-Id: I0496cf37da3a20d697eb4f372c32d01d49352f98 Signed-off-by: Colin Cross <ccross@android.com>
2010-11-09ARM: tegra: dvfs: Fix locking on external dvfs callsColin Cross
Change-Id: I9e3a3cc8c6c4424d7f7ded22d886d51f715ec5d5 Signed-off-by: Colin Cross <ccross@android.com>
2010-11-09ARM: tegra: dvfs: Add config options to disable dvfsColin Cross
Change-Id: I401ab5587f28dfabaf0aae1ffa062a2411a1ad92 Signed-off-by: Colin Cross <ccross@android.com>
2010-11-09[ARM] tegra: cleanup empty functions in mach/fb.hErik Gilling
adds static inline Change-Id: Iff0473dcc02ad6d10adb878f195b57a2ed6e3e2a Signed-off-by: Erik Gilling <konkers@android.com>