diff options
author | Biju Das <biju.das.jz@bp.renesas.com> | 2020-12-16 10:36:17 +0000 |
---|---|---|
committer | Biju Das <biju.das.jz@bp.renesas.com> | 2021-01-13 13:03:48 +0000 |
commit | 865e34741b02b3a9ddf9f652f2649407f33debb0 (patch) | |
tree | e9347cae84d81ec41fcb925a53b8f4c06ebbbb1f /drivers/renesas/rcar/console/rcar_console.S | |
parent | c40739a68f557c2267749999f876af6e5f5ff66f (diff) | |
download | trusted-firmware-a-865e34741b02b3a9ddf9f652f2649407f33debb0.tar.gz |
drivers: renesas: console: Move to common
Move console/scif driver code to common directory, so that the
same code can be re-used by both R-Car Gen3 and RZ/G2 platforms.
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Change-Id: I0b15e4f4ffaaa99e77bcee32b1dad648eeadcd9b
Diffstat (limited to 'drivers/renesas/rcar/console/rcar_console.S')
-rw-r--r-- | drivers/renesas/rcar/console/rcar_console.S | 93 |
1 files changed, 0 insertions, 93 deletions
diff --git a/drivers/renesas/rcar/console/rcar_console.S b/drivers/renesas/rcar/console/rcar_console.S deleted file mode 100644 index 29baa67a4a..0000000000 --- a/drivers/renesas/rcar/console/rcar_console.S +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright (c) 2018-2019, Renesas Electronics Corporation. All rights reserved. - * - * SPDX-License-Identifier: BSD-3-Clause - */ - -#include <arch.h> -#include <asm_macros.S> -#include <console_macros.S> -#include <drivers/renesas/rcar/console/console.h> - - .globl console_rcar_register - .globl console_rcar_init - .globl console_rcar_putc - .globl console_rcar_flush - - .extern rcar_log_init - .extern rcar_set_log_data - - /* ----------------------------------------------- - * int console_rcar_register( - * uintptr_t base, uint32_t clk, uint32_t baud, - * console_t *console) - * Function to initialize and register a new rcar - * console. Storage passed in for the console struct - * *must* be persistent (i.e. not from the stack). - * In: x0 - UART register base address - * w1 - UART clock in Hz - * w2 - Baud rate - * x3 - pointer to empty console_t struct - * Out: return 1 on success, 0 on error - * Clobber list : x0, x1, x2, x6, x7, x14 - * ----------------------------------------------- - */ -func console_rcar_register - mov x7, x30 - mov x6, x3 - cbz x6, register_fail - str x0, [x6, #CONSOLE_T_BASE] - - bl rcar_log_init - cbz x0, register_fail - - mov x0, x6 - mov x30, x7 - finish_console_register rcar, putc=1, getc=0, flush=1 - -register_fail: - ret x7 -endfunc console_rcar_register - - /* --------------------------------------------- - * int console_rcar_init(unsigned long base_addr, - * unsigned int uart_clk, unsigned int baud_rate) - * Function to initialize the console without a - * C Runtime to print debug information. This - * function will be accessed by crash reporting. - * In: x0 - console base address - * w1 - Uart clock in Hz - * w2 - Baud rate - * Out: return 1 on success - * Clobber list : x1, x2 - * --------------------------------------------- - */ -func console_rcar_init - mov w0, #0 - ret -endfunc console_rcar_init - - /* -------------------------------------------------------- - * int console_rcar_putc(int c, console_t *console) - * Function to output a character over the console. It - * returns the character printed on success or -1 on error. - * In : w0 - character to be printed - * x1 - pointer to console_t structure - * Out : return -1 on error else return character. - * Clobber list : x2 - * -------------------------------------------------------- - */ -func console_rcar_putc - b rcar_set_log_data -endfunc console_rcar_putc - - /* --------------------------------------------- - * void console_rcar_flush(void) - * Function to force a write of all buffered - * data that hasn't been output. It returns void - * Clobber list : x0, x1 - * --------------------------------------------- - */ -func console_rcar_flush - ret -endfunc console_rcar_flush |