[U-Boot] [PATCH v2 1/7] ARM: UniPhier: use 32 bit register access for debug UART setting

Masahiro Yamada yamada.masahiro at socionext.com
Wed May 27 07:35:11 CEST 2015


For the same reason as commit d0c47b3ef7c5 (serial: UniPhier: use
32 bit register access), use "str" instead of "strb" for the LCR
register setting.

Signed-off-by: Masahiro Yamada <yamada.masahiro at socionext.com>
---

Changes in v2: None

 arch/arm/mach-uniphier/include/mach/debug-uart.S | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/arch/arm/mach-uniphier/include/mach/debug-uart.S b/arch/arm/mach-uniphier/include/mach/debug-uart.S
index af55fee..9ae2e18 100644
--- a/arch/arm/mach-uniphier/include/mach/debug-uart.S
+++ b/arch/arm/mach-uniphier/include/mach/debug-uart.S
@@ -1,6 +1,7 @@
 /*
- * Copyright (C) 2014 Panasonic Corporation
- *   Author: Masahiro Yamada <yamada.m at jp.panasonic.com>
+ * Copyright (C) 2014-2015 Panasonic Corporation
+ * Copyright (C) 2015      Socionext Inc.
+ *   Author: Masahiro Yamada <yamada.masahiro at socionext.com>
  *
  * SPDX-License-Identifier:	GPL-2.0+
  */
@@ -17,8 +18,8 @@
 
 	.macro		init_debug_uart, ra, rb, rc
 	addruart	\ra, \rb, \rc
-	mov		\rb, #UART_LCR_WLEN8
-	strb		\rb, [\ra, #0x11]
+	mov		\rb, #UART_LCR_WLEN8 << 8
+	str		\rb, [\ra, #0x10]
 	ldr		\rb, =DIVISOR
 	str		\rb, [\ra, #0x24]
 	.endm
-- 
1.9.1



More information about the U-Boot mailing list