Skip to contentSkip to conversation

pxa: move serial driver to drivers/serial

PATCH New Jean-Christophe PLAGNIOL-VILLARD 1 participant 2 messages May 16, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 pxa: move serial driver to drivers/serial

---
 cpu/pxa/Makefile                                |    1 -
 drivers/serial/Makefile                         |    1 +
 cpu/pxa/serial.c => drivers/serial/serial_pxa.c |    0
 include/configs/cerf250.h                       |    1 +
 include/configs/cradle.h                        |    1 +
 include/configs/csb226.h                        |    1 +
 include/configs/delta.h                         |    1 +
 include/configs/innokom.h                       |    1 +
 include/configs/logodl.h                        |    1 +
 include/configs/lubbock.h                       |    1 +
 include/configs/pleb2.h                         |    1 +
 include/configs/pxa255_idp.h                    |    1 +
 include/configs/trizepsiv.h                     |    1 +
 include/configs/wepep250.h                      |    1 +
 include/configs/xaeniax.h                       |    1 +
 include/configs/xm250.h                         |    1 +
 include/configs/xsengine.h                      |    1 +
 include/configs/zylonite.h                      |    1 +
 18 files changed, 16 insertions(+), 1 deletions(-)
 rename cpu/pxa/serial.c => drivers/serial/serial_pxa.c (100%)
cpu/pxa/Makefile +0 -1
index 5dc3a52..07a151a 100644
@@ -30,7 +30,6 @@ START	= start.o
 COBJS	+= cpu.o
 COBJS	+= i2c.o
 COBJS	+= pxafb.o
-COBJS	+= serial.o
 COBJS	+= timer.o
 COBJS	+= usb.o
 
drivers/serial/Makefile +1 -0
index 14c818d..4a35703 100644
@@ -44,6 +44,7 @@ COBJS-$(CONFIG_MX31_UART) += serial_mx31.o
 COBJS-$(CONFIG_NETARM_SERIAL) += serial_netarm.o
 COBJS-$(CONFIG_PL010_SERIAL) += serial_pl01x.o
 COBJS-$(CONFIG_PL011_SERIAL) += serial_pl01x.o
+COBJS-$(CONFIG_PXA_SERIAL) += serial_pxa.o
 COBJS-$(CONFIG_SA1100_SERIAL) += serial_sa1100.o
 COBJS-$(CONFIG_S3C24X0_SERIAL) += serial_s3c24x0.o
 COBJS-$(CONFIG_S3C44B0_SERIAL) += serial_s3c44b0.o
drivers/serial/serial_pxa.c renamed from cpu/pxa/serial.c +0 -0
similarity index 100%
rename from cpu/pxa/serial.c
rename to drivers/serial/serial_pxa.c
include/configs/cerf250.h +1 -0
index 82d1401..b924758 100644
@@ -60,6 +60,7 @@
 /*
  * select serial console configuration
  */
+#define CONFIG_PXA_SERIAL
 #define CONFIG_FFUART	     1	/* we use FFUART on CERF PXA */
 
 /* allow to overwrite serial and ethaddr */
include/configs/cradle.h +1 -0
index 75c5f9b..b150c22 100644
@@ -57,6 +57,7 @@
 /*
  * select serial console configuration
  */
+#define CONFIG_PXA_SERIAL
 #define CONFIG_FFUART          1       /* we use FFUART on LUBBOCK */
 
 /* allow to overwrite serial and ethaddr */
include/configs/csb226.h +1 -0
index ed18450..12bab47 100644
@@ -53,6 +53,7 @@
 /*
  * select serial console configuration
  */
+#define CONFIG_PXA_SERIAL
 #define CONFIG_FFUART		1	/* we use FFUART on CSB226          */
 
 /* allow to overwrite serial and ethaddr */
include/configs/delta.h +1 -0
index bacbd90..e7186e8 100644
@@ -82,6 +82,7 @@
 /*
  * select serial console configuration
  */
+#define CONFIG_PXA_SERIAL
 #define CONFIG_FFUART		1
 
 /* allow to overwrite serial and ethaddr */
include/configs/innokom.h +1 -0
index 69654c7..ed03ad3 100644
@@ -50,6 +50,7 @@
 /*
  * select serial console configuration
  */
+#define CONFIG_PXA_SERIAL
 #define CONFIG_FFUART		1	/* we use FFUART on CSB226 */
 
 /* allow to overwrite serial and ethaddr */
include/configs/logodl.h +1 -0
index 889a9a3..5b903f0 100644
@@ -50,6 +50,7 @@
 /*
  * select serial console configuration
  */
+#define CONFIG_PXA_SERIAL
 #define CONFIG_FFUART		1	/* we use FFUART                    */
 
 /* allow to overwrite serial and ethaddr */
include/configs/lubbock.h +1 -0
index 2cf9c02..43913ca 100644
@@ -64,6 +64,7 @@
 /*
  * select serial console configuration
  */
+#define CONFIG_PXA_SERIAL
 #define CONFIG_FFUART	       1       /* we use FFUART on LUBBOCK */
 
 /* allow to overwrite serial and ethaddr */
include/configs/pleb2.h +1 -0
index ed873fa..635ef71 100644
@@ -62,6 +62,7 @@
 /*
  * select serial console configuration
  */
+#define CONFIG_PXA_SERIAL
 #define CONFIG_FFUART	       1       /* we use FFUART on PLEB 2 */
 
 /* allow to overwrite serial and ethaddr */
include/configs/pxa255_idp.h +1 -0
index 7485f72..2cae8ca 100644
@@ -100,6 +100,7 @@
 /*
  * select serial console configuration
  */
+#define CONFIG_PXA_SERIAL
 #define CONFIG_FFUART	       1       /* we use FFUART on LUBBOCK */
 
 /* allow to overwrite serial and ethaddr */
include/configs/trizepsiv.h +1 -0
index 4917318..49045fd 100644
@@ -65,6 +65,7 @@
 /*
  * select serial console configuration
  */
+#define CONFIG_PXA_SERIAL
 #define CONFIG_SERIAL_MULTI
 #define CONFIG_FFUART	       1       /* we use FFUART on Conxs */
 #define CONFIG_BTUART	       1       /* we use BTUART on Conxs */
include/configs/wepep250.h +1 -0
index 197ac0b..9a20cce 100644
@@ -33,6 +33,7 @@
 /*
  * Select serial console configuration
  */
+#define CONFIG_PXA_SERIAL
 #define CONFIG_BTUART          1       /* BTUART is default on WEP dev board */
 #define CONFIG_BAUDRATE   115200
 
include/configs/xaeniax.h +1 -0
index 1632d29..83883f6 100644
@@ -55,6 +55,7 @@
 /*
  * select serial console configuration
  */
+#define CONFIG_PXA_SERIAL
 #define CONFIG_BTUART	       1       /* we use BTUART on XAENIAX */
 
 
include/configs/xm250.h +1 -0
index c8bdf31..f18701a 100644
@@ -77,6 +77,7 @@
 /*
  * select serial console configuration
  */
+#define CONFIG_PXA_SERIAL
 #define CONFIG_FFUART	       1       /* we use FFUART */
 
 /* allow to overwrite serial and ethaddr */
include/configs/xsengine.h +1 -0
index 7e2abbf..2697cca 100644
@@ -99,6 +99,7 @@
 #define CONFIG_SMC_USE_32_BIT		1
 
 /* select serial console configuration */
+#define CONFIG_PXA_SERIAL
 #define CONFIG_FFUART			1
 
 /* allow to overwrite serial and ethaddr */
include/configs/zylonite.h +1 -0
index 217636a..15c3708 100644
@@ -72,6 +72,7 @@
 /*
  * select serial console configuration
  */
+#define CONFIG_PXA_SERIAL
 #define CONFIG_FFUART	       1
 
 /* allow to overwrite serial and ethaddr */
Signature · 1 line
1.6.2.4
#1 lore raw

PATCH 2/2 lh7a40x: move serial driver to drivers/serial

---
 cpu/lh7a40x/Makefile                               |    2 +-
 drivers/serial/Makefile                            |    1 +
 .../serial.c => drivers/serial/serial_lh7a40x.c    |    0
 include/configs/lpd7a400.h                         |    1 +
 include/configs/lpd7a404.h                         |    1 +
 5 files changed, 4 insertions(+), 1 deletions(-)
 rename cpu/lh7a40x/serial.c => drivers/serial/serial_lh7a40x.c (100%)
cpu/lh7a40x/Makefile +1 -1
index b9ae76e..1b3f58a 100644
@@ -26,7 +26,7 @@ include $(TOPDIR)/config.mk
 LIB	= $(obj)lib$(CPU).a
 
 START	= start.o
-COBJS	= cpu.o speed.o serial.o timer.o
+COBJS	= cpu.o speed.o timer.o
 
 SRCS	:= $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
 OBJS	:= $(addprefix $(obj),$(SOBJS) $(COBJS))
drivers/serial/Makefile +1 -0
index 4a35703..ab5d565 100644
@@ -39,6 +39,7 @@ COBJS-$(CONFIG_IMX_SERIAL) += serial_imx.o
 COBJS-$(CONFIG_IXP_SERIAL) += serial_ixp.o
 COBJS-$(CONFIG_KS8695_SERIAL) += serial_ks8695.o
 COBJS-$(CONFIG_LPC2292_SERIAL) += serial_lpc2292.o
+COBJS-$(CONFIG_LH7A40X_SERIAL) += serial_lh7a40x.o
 COBJS-$(CONFIG_MAX3100_SERIAL) += serial_max3100.o
 COBJS-$(CONFIG_MX31_UART) += serial_mx31.o
 COBJS-$(CONFIG_NETARM_SERIAL) += serial_netarm.o
drivers/serial/serial_lh7a40x.c renamed from cpu/lh7a40x/serial.c +0 -0
similarity index 100%
rename from cpu/lh7a40x/serial.c
rename to drivers/serial/serial_lh7a40x.c
include/configs/lpd7a400.h +1 -0
index b1bd74f..0724e53 100644
@@ -43,6 +43,7 @@
 /*
  * select serial console configuration
  */
+#define CONFIG_SERIAL_LH7A40X
 #define CONFIG_CONSOLE_UART2	/* UART2 LH7A40x for console */
 
 /* allow to overwrite serial and ethaddr */
include/configs/lpd7a404.h +1 -0
index b197674..e0ff3d7 100644
@@ -43,6 +43,7 @@
 /*
  * select serial console configuration
  */
+#define CONFIG_SERIAL_LH7A40X
 #define CONFIG_CONSOLE_UART2	/* UART2 LH7A40x for console */
 
 /* allow to overwrite serial and ethaddr */
Signature · 1 line
1.6.2.4