aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-11-14 12:57:24 -0700
committerTom Rini <trini@konsulko.com>2019-12-02 18:23:11 -0500
commitb03e0510d769381ce3cda5a494889bfee5042c59 (patch)
treecb474a50859f50c473d2222002a798a4dfe4ed74 /include
parentf516fd99ec59d964836906c8ac370f246d60c14d (diff)
downloadu-boot-b03e0510d769381ce3cda5a494889bfee5042c59.zip
u-boot-b03e0510d769381ce3cda5a494889bfee5042c59.tar.gz
u-boot-b03e0510d769381ce3cda5a494889bfee5042c59.tar.bz2
common: Move serial functions out of common.h
These functions belong in serial.h so move them over. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include')
-rw-r--r--include/common.h9
-rw-r--r--include/serial.h8
2 files changed, 8 insertions, 9 deletions
diff --git a/include/common.h b/include/common.h
index f97a7b6..f433db1 100644
--- a/include/common.h
+++ b/include/common.h
@@ -238,15 +238,6 @@ void ft_pci_setup(void *blob, bd_t *bd);
void smp_set_core_boot_addr(unsigned long addr, int corenr);
void smp_kick_all_cpus(void);
-/* $(CPU)/serial.c */
-int serial_init (void);
-void serial_setbrg (void);
-void serial_putc (const char);
-void serial_putc_raw(const char);
-void serial_puts (const char *);
-int serial_getc (void);
-int serial_tstc (void);
-
/* $(CPU)/speed.c */
int get_clocks (void);
ulong get_bus_freq (ulong);
diff --git a/include/serial.h b/include/serial.h
index 8d1803c..104f34f 100644
--- a/include/serial.h
+++ b/include/serial.h
@@ -335,4 +335,12 @@ void sh_serial_initialize(void);
int serial_printf(const char *fmt, ...)
__attribute__ ((format (__printf__, 1, 2)));
+int serial_init(void);
+void serial_setbrg(void);
+void serial_putc(const char ch);
+void serial_putc_raw(const char ch);
+void serial_puts(const char *str);
+int serial_getc(void);
+int serial_tstc(void);
+
#endif