]> git.karo-electronics.de Git - linux-beck.git/commit
ARM: tegra: Support Tegra30 in decompressor UART setup
authorStephen Warren <swarren@nvidia.com>
Tue, 3 Jan 2012 12:05:47 +0000 (12:05 +0000)
committerOlof Johansson <olof@lixom.net>
Tue, 7 Feb 2012 02:24:59 +0000 (18:24 -0800)
commite53b7d87cc375fbe428551651094fb676764aae3
treedaea897501425cdd5bf68ed6f9b8eeb0e266993b
parentcb3732d0dc9df198c889a26210b6b27bc51a1c4a
ARM: tegra: Support Tegra30 in decompressor UART setup

On Tegra20, the UART clock runs at 216MHz, whereas on Tegra30 it runs at
408MHz. Modify arch_decomp_setup() to detect Tegra20-vs-Tegra30 at run-
time, and program the correct divisor.

This makes uncompressor messages work correctly on Tegra30. This also
fixes early printk, assuming zImage is used and this setup code runs.

v2: Use CHIPID register to differentiate between chips, rather than a
GIC register. This should be more future-proof. Volatile is required
to prevent the compiler transforming the 32-bit apb_misc register read
into an 8-bit read of address 1 higher, since the HW only supports 32-
bit accesses, and will hang on an 8-bit access.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/mach-tegra/include/mach/uncompress.h