aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/cavium-octeon
diff options
context:
space:
mode:
authorDavid Daney <ddaney@caviumnetworks.com>2010-07-23 21:41:44 -0400
committerRalf Baechle <ralf@linux-mips.org>2010-08-05 08:26:21 -0400
commitea435464a14af37b9384e96b2f5a1f76a605b048 (patch)
tree570445a09ab8c2e5684b0a6ca59fafcf11d593b4 /arch/mips/cavium-octeon
parent22b0763a2328434ac68cca884e1b7d350ca61332 (diff)
MIPS: Octeon: Export prom_putchar().
The forthcoming watchdog driver will use it. Signed-off-by: David Daney <ddaney@caviumnetworks.com> To: linux-mips@linux-mips.org To: wim@iguana.be Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/1499/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/cavium-octeon')
-rw-r--r--arch/mips/cavium-octeon/setup.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/mips/cavium-octeon/setup.c b/arch/mips/cavium-octeon/setup.c
index 7216fbd5d79d..041326e34f4d 100644
--- a/arch/mips/cavium-octeon/setup.c
+++ b/arch/mips/cavium-octeon/setup.c
@@ -687,7 +687,10 @@ void __init plat_mem_setup(void)
687 "cvmx_bootmem_phy_alloc\n"); 687 "cvmx_bootmem_phy_alloc\n");
688} 688}
689 689
690 690/*
691 * Emit one character to the boot UART. Exported for use by the
692 * watchdog timer.
693 */
691int prom_putchar(char c) 694int prom_putchar(char c)
692{ 695{
693 uint64_t lsrval; 696 uint64_t lsrval;
@@ -701,6 +704,7 @@ int prom_putchar(char c)
701 cvmx_write_csr(CVMX_MIO_UARTX_THR(octeon_uart), c & 0xffull); 704 cvmx_write_csr(CVMX_MIO_UARTX_THR(octeon_uart), c & 0xffull);
702 return 1; 705 return 1;
703} 706}
707EXPORT_SYMBOL(prom_putchar);
704 708
705void prom_free_prom_memory(void) 709void prom_free_prom_memory(void)
706{ 710{