]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
blackfin: Move blackfin serial driver out of blackfin arch folder.
authorSonic Zhang <sonic.zhang@analog.com>
Sun, 7 Apr 2013 11:04:14 +0000 (19:04 +0800)
committerSonic Zhang <sonic.zhang@analog.com>
Mon, 13 May 2013 08:30:26 +0000 (16:30 +0800)
- Move blackfin serial driver to the generic driver folder.
- Move blackfin serial headers to blackfin arch head folder.
- Update the include path to blackfin serial header in start up code.

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
arch/blackfin/cpu/Makefile
arch/blackfin/cpu/cpu.c
arch/blackfin/cpu/initcode.c
arch/blackfin/cpu/start.S
arch/blackfin/include/asm/serial.h [moved from arch/blackfin/cpu/serial.h with 100% similarity]
arch/blackfin/include/asm/serial1.h [moved from arch/blackfin/cpu/serial1.h with 100% similarity]
arch/blackfin/include/asm/serial4.h [moved from arch/blackfin/cpu/serial4.h with 100% similarity]
drivers/serial/Makefile
drivers/serial/serial_bfin.c [moved from arch/blackfin/cpu/serial.c with 99% similarity]
include/configs/bfin_adi_common.h

index 145f63eea7109fc1cfdc7953085dbf2c36fa68c6..929fc8b7cece8c9e869a7857765c13ead9ecfff7 100644 (file)
@@ -23,7 +23,6 @@ COBJS-y  += interrupts.o
 COBJS-$(CONFIG_JTAG_CONSOLE) += jtag-console.o
 COBJS-y  += os_log.o
 COBJS-y  += reset.o
-COBJS-y  += serial.o
 COBJS-y  += traps.o
 
 SRCS     := $(SEXTRA:.o=.S) $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
index d841f64c82cbedaccbfbeb1e5958b406793d6704..218f57ed389f26c3fb165684ed156adacd0db59d 100644 (file)
@@ -16,9 +16,9 @@
 #include <asm/mach-common/bits/core.h>
 #include <asm/mach-common/bits/ebiu.h>
 #include <asm/mach-common/bits/trace.h>
+#include <asm/serial.h>
 
 #include "cpu.h"
-#include "serial.h"
 #include "initcode.h"
 
 ulong bfin_poweron_retx;
index 078209fc246b1404c1f497ea7367429e437168bf..5fc06e11ffeb3bc3ff90c107281a28c8b463f559 100644 (file)
 #include <asm/mach-common/bits/watchdog.h>
 #include <asm/mach-common/bits/bootrom.h>
 #include <asm/mach-common/bits/core.h>
+#include <asm/serial.h>
 
-#define BUG() while (1) { asm volatile("emuexcpt;"); }
-
-#include "serial.h"
+#define BUG() while (1) asm volatile("emuexcpt;");
 
 #ifndef __ADSPBF60x__
 #include <asm/mach-common/bits/ebiu.h>
index 1c6ae352758bc4a182b5e1c604f60647ee844ac9..da084a87c6200b475fe5d1a5a2c3220d7a36f150 100644 (file)
@@ -35,8 +35,7 @@
 #include <asm/mach-common/bits/watchdog.h>
 #include <asm/mach-common/bits/core.h>
 #include <asm/mach-common/bits/pll.h>
-
-#include "serial.h"
+#include <asm/serial.h>
 
 /* It may seem odd that we make calls to functions even though we haven't
  * relocated ourselves yet out of {flash,ram,wherever}.  This is OK because
index fbc4e97e983fd2bbd8085acdcf71e04fe34743f3..442b7ea0df445b9c56c22c7ee9260dbc19b7059c 100644 (file)
@@ -52,6 +52,7 @@ COBJS-$(CONFIG_XILINX_UARTLITE) += serial_xuartlite.o
 COBJS-$(CONFIG_SANDBOX_SERIAL) += sandbox.o
 COBJS-$(CONFIG_SCIF_CONSOLE) += serial_sh.o
 COBJS-$(CONFIG_ZYNQ_SERIAL) += serial_zynq.o
+COBJS-$(CONFIG_BFIN_SERIAL) += serial_bfin.o
 
 ifndef CONFIG_SPL_BUILD
 COBJS-$(CONFIG_USB_TTY) += usbtty.o
similarity index 99%
rename from arch/blackfin/cpu/serial.c
rename to drivers/serial/serial_bfin.c
index c453a03c0cb6c85ae06ecea4cc3d92c123dd7548..0443b8427a93d70b8e1a852726d05f283339c1f7 100644 (file)
 #include <serial.h>
 #include <linux/compiler.h>
 #include <asm/blackfin.h>
+#include <asm/serial.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
 #ifdef CONFIG_UART_CONSOLE
 
-#include "serial.h"
-
 #ifdef CONFIG_DEBUG_SERIAL
 static uart_lsr_t cached_lsr[256];
 static uart_lsr_t cached_rbr[256];
index 0bcccf831b4707567f2eae32563cad0edce31f31..c751dd74c295d76c1a0801e4f66d49299656c90d 100644 (file)
 #ifndef CONFIG_BAUDRATE
 # define CONFIG_BAUDRATE       57600
 #endif
+#ifdef CONFIG_UART_CONSOLE
+# define CONFIG_BFIN_SERIAL
+#endif
 
 /*
  * Debug Settings