summaryrefslogtreecommitdiff
path: root/plat/mediatek
diff options
context:
space:
mode:
authorJuan Castillo <juan.castillo@arm.com>2015-11-26 14:52:15 +0000
committerJuan Castillo <juan.castillo@arm.com>2016-01-21 17:27:47 +0000
commit9400b40ea4c71153a63c1f1cdaa416d45a325ec5 (patch)
tree2246537b57b322e106a2e4cc618e0958c513dad6 /plat/mediatek
parentf9410b47c3ea36c9c231760a85efbbb7d6e575a7 (diff)
Disable PL011 UART before configuring it
The PL011 TRM (ARM DDI 0183G) specifies that the UART must be disabled before any of the control registers are programmed. The PL011 driver included in TF does not disable the UART, so the initialization in BL2 and BL31 is violating this requirement (and potentially in BL1 if the UART is enabled after reset). This patch modifies the initialization function in the PL011 console driver to disable the UART before programming the control registers. Register clobber list and documentation updated. Fixes ARM-software/tf-issues#300 Change-Id: I839b2d681d48b03f821ac53663a6a78e8b30a1a1
Diffstat (limited to 'plat/mediatek')
-rw-r--r--plat/mediatek/mt8173/aarch64/plat_helpers.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/plat/mediatek/mt8173/aarch64/plat_helpers.S b/plat/mediatek/mt8173/aarch64/plat_helpers.S
index 99a054c8..af3a4073 100644
--- a/plat/mediatek/mt8173/aarch64/plat_helpers.S
+++ b/plat/mediatek/mt8173/aarch64/plat_helpers.S
@@ -63,7 +63,7 @@ endfunc platform_is_primary_cpu
* int plat_crash_console_init(void)
* Function to initialize the crash console
* without a C Runtime to print crash report.
- * Clobber list : x0, x1, x2
+ * Clobber list : x0 - x4
* ---------------------------------------------
*/
func plat_crash_console_init