projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22b0763
)
MIPS: Octeon: Export prom_putchar().
author
David Daney
<
[email protected]
>
Sat, 24 Jul 2010 01:41:44 +0000
(18:41 -0700)
committer
Ralf Baechle
<
[email protected]
>
Thu, 5 Aug 2010 12:26:21 +0000
(13:26 +0100)
The forthcoming watchdog driver will use it.
Signed-off-by: David Daney <
[email protected]
>
To:
[email protected]
To:
[email protected]
Cc:
[email protected]
Patchwork: https://patchwork.linux-mips.org/patch/1499/
Signed-off-by: Ralf Baechle <
[email protected]
>
arch/mips/cavium-octeon/setup.c
patch
|
blob
|
history
diff --git
a/arch/mips/cavium-octeon/setup.c
b/arch/mips/cavium-octeon/setup.c
index 7216fbd5d79d0af6a93ac50d95e7b398e9f77d58..041326e34f4d325c62475ea4964eebced8d3118d 100644
(file)
--- a/
arch/mips/cavium-octeon/setup.c
+++ b/
arch/mips/cavium-octeon/setup.c
@@
-687,7
+687,10
@@
void __init plat_mem_setup(void)
"cvmx_bootmem_phy_alloc\n");
}
-
+/*
+ * Emit one character to the boot UART. Exported for use by the
+ * watchdog timer.
+ */
int prom_putchar(char c)
{
uint64_t lsrval;
@@
-701,6
+704,7
@@
int prom_putchar(char c)
cvmx_write_csr(CVMX_MIO_UARTX_THR(octeon_uart), c & 0xffull);
return 1;
}
+EXPORT_SYMBOL(prom_putchar);
void prom_free_prom_memory(void)
{