serial: 16550: Make serial_io/out_shift available to debug mode
PATCH 1/1 serial: 16550: Make serial_io/out_shift available to debug mode
The ns16550 driver needs serial_in_shift() and serial_out_shift() when compiled in debug UART mode, so shift the DM_SERIAL check a little to make these functions available.
--- drivers/serial/ns16550.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
drivers/serial/ns16550.c +6 -6
@@ -54,12 +54,6 @@ DECLARE_GLOBAL_DATA_PTR;#define CONFIG_SYS_NS16550_IER 0x00#endif /* CONFIG_SYS_NS16550_IER */ -#ifdef CONFIG_DM_SERIAL - -#ifndef CONFIG_SYS_NS16550_CLK -#define CONFIG_SYS_NS16550_CLK 0 -#endif -static inline void serial_out_shift (void *addr,int shift,int value) {#ifdef CONFIG_SYS_NS16550_PORT_MAPPED
@@ -94,6 +88,12 @@ static inline int serial_in_shift(void *addr, int shift)#endif } +#ifdef CONFIG_DM_SERIAL + +#ifndef CONFIG_SYS_NS16550_CLK +#define CONFIG_SYS_NS16550_CLK 0 +#endif +static void ns16550_writeb (NS16550_t port,int offset,int value) {struct ns16550_platdata *plat = port->plat;
Signature · 1 line
2.7.0
PATCH 1/1 serial: 16550: Make serial_io/out_shift available to debug mode
Quoted 7 lines · Marek Vasut
The ns16550 driver needs
serial_in_shift()andserial_out_shift()when compiled in debug UART mode, so shift theDM_SERIALcheck a little to make these functions available.Signed-off-by Marek Vasut <[email protected]>Cc Tom Rini <[email protected]>Cc Simon Glass <[email protected]>
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160530/08ebf88c/attachment.sig>
PATCH 1/1 serial: 16550: Make serial_io/out_shift available to debug mode
In reply to Marek VasutQuoted 10 lines · Marek Vasut
The ns16550 driver needs
serial_in_shift()andserial_out_shift()when compiled in debug UART mode, so shift theDM_SERIALcheck a little to make these functions available.Signed-off-by Marek Vasut <[email protected]>Cc Tom Rini <[email protected]>Cc Simon Glass <[email protected]>--- drivers/serial/ns16550.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
Quoted 9 lines · Marek Vasut
The ns16550 driver needs
serial_in_shift()andserial_out_shift()when compiled in debug UART mode, so shift theDM_SERIALcheck a little to make these functions available.Signed-off-by Marek Vasut <[email protected]>Cc Tom Rini <[email protected]>Cc Simon Glass <[email protected]>Reviewed-by Tom Rini <[email protected]>Reviewed-by Simon Glass <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160603/85aadf80/attachment.sig>