Correct UART PL011 initialization calculation
authorAvinash Mehta <avinash.mehta@arm.com>
Tue, 8 Oct 2019 11:09:04 +0000 (12:09 +0100)
committerAvinash Mehta <avinash.mehta@arm.com>
Tue, 8 Oct 2019 12:58:25 +0000 (13:58 +0100)
commit38d5e150edc82570e1a3e9dc2e95dce96e6fd94e
tree05ab416d8306f82af472ba91434cd36f9433a526
parent80003d86a60272ef82b8bca3c71ee358222b825b
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: Avinash Mehta <avinash.mehta@arm.com>
drivers/arm/pl011/aarch32/pl011_console.S