提交 2f3428b5 编写于 作者: J Joonyoung Shim 提交者: Krzysztof Kozlowski

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: NJoonyoung Shim <jy0922.shim@samsung.com>
Tested-by: NMarek Szyprowski <m.szyprowski@samsung.com>
[k.kozlowski: Extend commit message]
Signed-off-by: NKrzysztof Kozlowski <k.kozlowski@samsung.com>
上级 17e0645e
...@@ -24,7 +24,11 @@ ...@@ -24,7 +24,11 @@
mrc p15, 0, \tmp, c0, c0, 0 mrc p15, 0, \tmp, c0, c0, 0
and \tmp, \tmp, #0xf0 and \tmp, \tmp, #0xf0
teq \tmp, #0xf0 @@ A15 teq \tmp, #0xf0 @@ A15
ldreq \rp, =EXYNOS5_PA_UART beq 100f
mrc p15, 0, \tmp, c0, c0, 5
and \tmp, \tmp, #0xf00
teq \tmp, #0x100 @@ A15 + A7 but boot to A7
100: ldreq \rp, =EXYNOS5_PA_UART
movne \rp, #EXYNOS4_PA_UART @@ EXYNOS4 movne \rp, #EXYNOS4_PA_UART @@ EXYNOS4
ldr \rv, =S3C_VA_UART ldr \rv, =S3C_VA_UART
#if CONFIG_DEBUG_S3C_UART != 0 #if CONFIG_DEBUG_S3C_UART != 0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册