diff options
author | davidcunado-arm <david.cunado@arm.com> | 2017-04-12 22:23:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-12 22:23:44 +0100 |
commit | f07d3985b86acc6abc963924d82c9ba9a795fb22 (patch) | |
tree | 1c516dd4d561e9a71ea1fc8b9b6527b78cff0d21 /plat/mediatek | |
parent | 45cd814bf71b311686db9fa65f78171ba5abf02f (diff) | |
parent | 1e09ff93444943edcebfb167202f37a5e7913d92 (diff) |
Merge pull request #885 from antonio-nino-diaz-arm/an/console-flush
Implement console_flush()
Diffstat (limited to 'plat/mediatek')
-rw-r--r-- | plat/mediatek/common/drivers/uart/8250_console.S | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/plat/mediatek/common/drivers/uart/8250_console.S b/plat/mediatek/common/drivers/uart/8250_console.S index 5b0ae6df..8da248c1 100644 --- a/plat/mediatek/common/drivers/uart/8250_console.S +++ b/plat/mediatek/common/drivers/uart/8250_console.S @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2015-2017, ARM Limited and Contributors. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -33,6 +33,7 @@ .globl console_core_init .globl console_core_putc .globl console_core_getc + .globl console_core_flush /* ----------------------------------------------- * int console_core_init(unsigned long base_addr, @@ -170,3 +171,18 @@ getc_error: mov w0, #-1 ret endfunc console_core_getc + + /* --------------------------------------------- + * int console_core_flush(uintptr_t base_addr) + * Function to force a write of all buffered + * data that hasn't been output. + * In : x0 - console base address + * Out : return -1 on error else return 0. + * Clobber list : x0, x1 + * --------------------------------------------- + */ +func console_core_flush + /* Placeholder */ + mov w0, #0 + ret +endfunc console_core_flush |