serial: 16550: Drop OMAP1510 support
PATCH 1/1 serial: 16550: Drop OMAP1510 support
The CONFIG_OMAP1510 is no longer defined, so remove this dead code.
Signed-off-by Marek Vasut <[email protected]>
Cc Tom Rini <[email protected]>
Cc Simon Glass <[email protected]>
--- drivers/serial/ns16550.c | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-)
drivers/serial/ns16550.c +3 -17
@@ -128,27 +128,13 @@ static int ns16550_readb(NS16550_t port, int offset) (unsigned char *)addr - (unsigned char *)com_port)#endif -static inline int calc_divisor (NS16550_t port,int clock,int baudrate) +int ns16550_calc_divisor (NS16550_t port,int clock,int baudrate) {const unsigned int mode_x_div =16 ;return DIV_ROUND_CLOSEST (clock, mode_x_div * baudrate); } -int ns16550_calc_divisor (NS16550_t port,int clock,int baudrate) -{ -#ifdef CONFIG_OMAP1510 -/* If can't cleanly clock 115200 set div to 1 */ -if ((clock ==12000000 ) && (baudrate ==115200 )) { - port->osc_12m_sel =OSC_12M_SEL ;/* enable 6.5 * divisor */ -return 1 ;/* return 1 for base divisor */ - } - port->osc_12m_sel =0 ;/* clear if previsouly set */ -#endif - -return calc_divisor (port, clock, baudrate); -} -static void NS16550_setbrg (NS16550_t com_port,int baud_divisor) {serial_out (UART_LCR_BKSE |UART_LCRVAL , &com_port->lcr);
@@ -271,8 +257,8 @@ static inline void _debug_uart_init(void)* feasible. The better fix is to move all users of this driver to * driver model. */ - baud_divisor =calc_divisor (com_port,CONFIG_DEBUG_UART_CLOCK , -CONFIG_BAUDRATE ); + baud_divisor =ns16550_calc_divisor (com_port,CONFIG_DEBUG_UART_CLOCK , +CONFIG_BAUDRATE );serial_dout (&com_port->ier,CONFIG_SYS_NS16550_IER );serial_dout (&com_port->mcr,UART_MCRVAL );serial_dout (&com_port->fcr,UART_FCRVAL );
Signature · 1 line
2.7.0
PATCH 1/1 serial: 16550: Drop OMAP1510 support
Quoted 8 lines · Marek Vasut
The
CONFIG_OMAP1510is no longer defined, so remove this dead code.Signed-off-by Marek Vasut <[email protected]>Cc Tom Rini <[email protected]>Cc Simon Glass <[email protected]>--- drivers/serial/ns16550.c | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-)
Reviewed-by Simon Glass <[email protected]>
PATCH 1/1 serial: 16550: Drop OMAP1510 support
In reply to Marek VasutQuoted 5 lines · Marek Vasut
The
CONFIG_OMAP1510is no longer defined, so remove this dead code.Signed-off-by Marek Vasut <[email protected]>Cc Tom Rini <[email protected]>Cc Simon Glass <[email protected]>
Acked-by Nishanth Menon <[email protected]>
Signature · 2 lines
Regards, Nishanth Menon
Quoted 7 lines · Marek Vasut
The
CONFIG_OMAP1510is no longer defined, so remove this dead code.Signed-off-by Marek Vasut <[email protected]>Cc Tom Rini <[email protected]>Cc Simon Glass <[email protected]>Reviewed-by Simon Glass <[email protected]>Acked-by Nishanth Menon <[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/ff3f44ae/attachment.sig>