]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
drivers/serial/ns16550: move ifdef into Makefile COBJS-$(...)
authorMike Frysinger <vapier@gentoo.org>
Thu, 12 Feb 2009 01:26:52 +0000 (20:26 -0500)
committerWolfgang Denk <wd@denx.de>
Sat, 21 Feb 2009 21:49:53 +0000 (22:49 +0100)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
drivers/serial/Makefile
drivers/serial/ns16550.c
drivers/serial/serial.c

index b6fd0d774698b30e8a0e1bdb59d269138b2c3d5d..0f980ab0a885b76d42914decfad88d7f1a2907b8 100644 (file)
@@ -28,10 +28,10 @@ LIB := $(obj)libserial.a
 COBJS-$(CONFIG_ATMEL_USART) += atmel_usart.o
 COBJS-$(CONFIG_MCFUART) += mcfuart.o
 COBJS-$(CONFIG_NS9750_UART) += ns9750_serial.o
-COBJS-y += ns16550.o
+COBJS-$(CONFIG_SYS_NS16550) += ns16550.o
 COBJS-$(CONFIG_DRIVER_S3C4510_UART) += s3c4510b_uart.o
 COBJS-$(CONFIG_S3C64XX) += s3c64xx.o
-COBJS-y += serial.o
+COBJS-$(CONFIG_SYS_NS16550_SERIAL) += serial.o
 COBJS-$(CONFIG_IXP_SERIAL) += serial_ixp.o
 COBJS-$(CONFIG_MAX3100_SERIAL) += serial_max3100.o
 COBJS-$(CONFIG_PL010_SERIAL) += serial_pl01x.o
index 1b347e91ad004a13c0434cf061265b3fbfa00d57..397f5df5d60b81139852037c35c9464ba6bece27 100644 (file)
@@ -5,9 +5,6 @@
  */
 
 #include <config.h>
-
-#ifdef CONFIG_SYS_NS16550
-
 #include <ns16550.h>
 
 #define LCRVAL LCR_8N1                                 /* 8 data, 1 stop, no parity */
@@ -36,7 +33,7 @@ void NS16550_init (NS16550_t com_port, int baud_divisor)
 #else
        com_port->mdr1 = 0;     /* /16 is proper to hit 115200 with 48MHz */
 #endif
-#endif
+#endif /* CONFIG_OMAP */
 }
 
 #ifndef CONFIG_NS16550_MIN_FUNCTIONS
@@ -80,4 +77,3 @@ int NS16550_tstc (NS16550_t com_port)
 }
 
 #endif /* CONFIG_NS16550_MIN_FUNCTIONS */
-#endif
index bce75489d2ecdf55442af084c1a7174ebee38104..966df9ac3bf8aba14e7d519b11f49da92c1fd9a4 100644 (file)
@@ -23,8 +23,6 @@
 
 #include <common.h>
 
-#ifdef CONFIG_SYS_NS16550_SERIAL
-
 #include <ns16550.h>
 #ifdef CONFIG_NS87308
 #include <ns87308.h>
@@ -328,5 +326,3 @@ DECLARE_ESERIAL_FUNCTIONS(4);
 struct serial_device eserial4_device =
        INIT_ESERIAL_STRUCTURE(4,"eserial3","EUART4");
 #endif /* CONFIG_SERIAL_MULTI */
-
-#endif