]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: EXYNOS: fix CONFIG_DEBUG_LL
authorColin Cross <ccross@android.com>
Wed, 4 Apr 2012 16:27:19 +0000 (09:27 -0700)
committerKukjin Kim <kgene.kim@samsung.com>
Wed, 4 Apr 2012 16:27:19 +0000 (09:27 -0700)
commite91d7d097fcd369b147a24c346062852d19a6e48
treee3a2a1db44bf7bc1b75a8f838e3bb1977e974b2d
parent8ceafd8519b31ed16dbd4e872af4196228d8cfb9
ARM: EXYNOS: fix CONFIG_DEBUG_LL

addruart cannot read from the physical address of the chipid
register, that will fail as soon as the mmu is turned on.
Fixing it to read from the physical or virtual address depending
on the mmu state also does not work, because there is a period
between head.S and exynos_map_io where the mmu is on, the uart
is mapped and used, but the chipid mapping is not yet present.

Fix addruart to use the ARM Main ID cp15 register to determine
if the core is Cortex A15 (EXYNOS5) or not (EXYNOS4).

Signed-off-by: Colin Cross <ccross@android.com>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Tested-by: Thomas Abraham <thomas.abraham@linaro.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/mach-exynos/include/mach/debug-macro.S