Commit 38d5e150 authored by Avinash Mehta's avatar Avinash Mehta
Browse files

Correct UART PL011 initialization calculation



Currently for Armv7 plaforms the quotient calculated in pl011
uart init code is moved to register r1.

This patch moves the quotient to register r2 as done for other
platforms in the udiv instruction. Value of register r2 is then
used to calculate the values for IBRD and FBRD register

Change-Id: Ie6622f9f0e6d634378b471df5d02823b492c8a24
Signed-off-by: default avatarAvinash Mehta <avinash.mehta@arm.com>
parent 80003d86
...@@ -57,7 +57,7 @@ func console_pl011_core_init ...@@ -57,7 +57,7 @@ func console_pl011_core_init
#if (ARM_ARCH_MAJOR == 7) && !defined(ARMV7_SUPPORTS_VIRTUALIZATION) #if (ARM_ARCH_MAJOR == 7) && !defined(ARMV7_SUPPORTS_VIRTUALIZATION)
push {r0,r3} push {r0,r3}
softudiv r0,r1,r2,r3 softudiv r0,r1,r2,r3
mov r1, r0 mov r2, r0
pop {r0,r3} pop {r0,r3}
#else #else
udiv r2, r1, r2 udiv r2, r1, r2
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment