Skip to content

Commit 2f3428b

Browse files
Joonyoung Shimkrzk
authored andcommitted
ARM: EXYNOS: Fix UART address selection for DEBUG_LL
The Exynos542x SoCs using A15+A7 can boot to A15 or A7. If it boots using A7 (like on Odroid XU family boards), it can't choose right UART physical address only the part number of CP15. Fix the detection logic by checking the Cluster ID additionally. Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com> Tested-by: Marek Szyprowski <m.szyprowski@samsung.com> [k.kozlowski: Extend commit message] Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
1 parent 17e0645 commit 2f3428b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎arch/arm/include/debug/exynos.S‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@
2424
mrc p15, 0, \tmp, c0, c0, 0
2525
and \tmp, \tmp, #0xf0
2626
teq \tmp, #0xf0 @@ A15
27-
ldreq \rp, =EXYNOS5_PA_UART
27+
beq 100f
28+
mrc p15, 0, \tmp, c0, c0, 5
29+
and \tmp, \tmp, #0xf00
30+
teq \tmp, #0x100 @@ A15 + A7 but boot to A7
31+
100: ldreq \rp, =EXYNOS5_PA_UART
2832
movne \rp, #EXYNOS4_PA_UART @@ EXYNOS4
2933
ldr \rv, =S3C_VA_UART
3034
#if CONFIG_DEBUG_S3C_UART != 0

0 commit comments

Comments
 (0)