summaryrefslogtreecommitdiff
path: root/core/arch/arm/plat-s5p6818/main.c
diff options
context:
space:
mode:
authoregukim <egukim@dignsys.com>2017-10-24 11:49:47 +0900
committereunggu kim <egukim@dignsys.com>2017-11-14 22:44:37 +0900
commit55074beb232064345583ffa4de3e4e33020fed47 (patch)
tree9608812d66d57ec6c5b3fe88bfaed31fd12fddcf /core/arch/arm/plat-s5p6818/main.c
parentade5579e84527ddcac19e324764035b6b81a9ae0 (diff)
downloadtef-optee_os-55074beb232064345583ffa4de3e4e33020fed47.tar.gz
tef-optee_os-55074beb232064345583ffa4de3e4e33020fed47.tar.bz2
tef-optee_os-55074beb232064345583ffa4de3e4e33020fed47.zip
artik710: porting for optee 2.4
This patch rewrote the s5p6818 uart driver for the optee2.4 framework. And revised build config for optee 2.4 build Cryptographic extensions disable as rpi3 Change-Id: Ie31101761bb1b278804824c60e1081666054c021 Signed-off-by: egukim <egukim@dignsys.com>
Diffstat (limited to 'core/arch/arm/plat-s5p6818/main.c')
-rw-r--r--core/arch/arm/plat-s5p6818/main.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/core/arch/arm/plat-s5p6818/main.c b/core/arch/arm/plat-s5p6818/main.c
index e907ffd..45e45ba 100644
--- a/core/arch/arm/plat-s5p6818/main.c
+++ b/core/arch/arm/plat-s5p6818/main.c
@@ -55,6 +55,8 @@ static const struct thread_handlers handlers = {
.system_reset = pm_do_nothing,
};
+static struct s5p6818_uart_data console_data __early_bss;
+
const struct thread_handlers *generic_boot_get_handlers(void)
{
return &handlers;
@@ -76,19 +78,9 @@ static void main_fiq(void)
void console_init(void)
{
- s5p6818_uart_init(CONSOLE_UART_BASE,
+ s5p6818_uart_init(&console_data, CONSOLE_UART_BASE,
CONSOLE_UART_CLK_IN_HZ,
CONSOLE_BAUDRATE);
+ register_serial_console(&console_data.chip);
}
-void console_putc(int ch)
-{
- s5p6818_uart_putc(ch, CONSOLE_UART_BASE);
- if (ch == '\n')
- s5p6818_uart_putc('\r', CONSOLE_UART_BASE);
-}
-
-void console_flush(void)
-{
- s5p6818_uart_flush(CONSOLE_UART_BASE);
-}