summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/nxp/uart/nxp_console.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/nxp/uart/nxp_console.S b/drivers/nxp/uart/nxp_console.S
index 22baa87..995c0bc 100644
--- a/drivers/nxp/uart/nxp_console.S
+++ b/drivers/nxp/uart/nxp_console.S
@@ -184,7 +184,7 @@ endfunc console_putc
* In : r0 - character to be printed
* r1 - console base address
* Out : return -1 on error else return character.
- * Clobber list : r2, r7
+ * Clobber list : r2
* --------------------------------------------------------
*/
func console_core_putc
@@ -197,8 +197,8 @@ func console_core_putc
/* Wait for transmit MXC_UART_STAT2_OFFSET.MXC_UART_STAT2_TXDC == 1 */
__putc_spin_ready:
- ldr r7, [r1, #MXC_UART_STAT2_OFFSET]
- ands r7, #MXC_UART_STAT2_TXDC
+ ldr r2, [r1, #MXC_UART_STAT2_OFFSET]
+ ands r2, #MXC_UART_STAT2_TXDC
beq __putc_spin_ready
/* Transmit complete do we need to fixup \n to \n\r */