]> 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)
commitc9b83b2ce96acd88a2798f9d6aa5c9b3b57bfe98
treee3a2a1db44bf7bc1b75a8f838e3bb1977e974b2d
parentf4840dc45b07c4596a29fd0058579cc6b0bdaad9
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