9
0
Fork 0
barebox/arch
Antony Pavlov 902b498458 MIPS: XBurst: suitable solution for per-board debug_ll
In the commit 40492a0c13
(MIPS: add common header file for DEBUG_LL via NS16550)
introduced common DEBUG_LL via NS16550 for MIPS
(see file arch/mips/include/debug_ll_ns16550.h).

In the commit 1cbe2b2c00
(MIPS: XBurst: add Ritmix RZX-50 board support)
the file debug_ll_ns16550.h used in
the file arch/mips/mach-xburst/include/mach/debug_ll.h.

Usage looks like this:

------------------------------------------------
+#ifdef CONFIG_BOARD_RZX50
+#include <mach/debug_ll_jz4755.h>
+#endif
+
+#include <debug_ll_ns16550.h>
------------------------------------------------

So after adding another board (e.g. A320) we will have something like this:

------------------------------------------------
 #ifdef CONFIG_BOARD_RZX50
 #include <mach/debug_ll_jz4755.h>
 #endif

+#ifdef CONFIG_BOARD_A320
+#include <mach/debug_ll_jz4740.h>
+#endif

 #include <debug_ll_ns16550.h>
------------------------------------------------

This approach has disadvantage:
* the files mach/debug_ll_jz4740.h and mach/debug_ll_jz4755.h
(they go to arch/mips/arch-xburst) are __BOARD-SPECIFIC__
(not SOC- or mach-specific!); The file mach-xburst/include/mach/debug_ll.h
is outside board directory, but it contains some board related information.

This commit introduce a more suitable solution.

Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-06-05 08:36:59 +02:00
..
arm i.MX51 clock: Added USB clock to dump_clocks command. 2012-05-31 09:00:07 +02:00
blackfin booting: more flexible Linux bootargs generation 2012-05-14 09:16:31 +02:00
mips MIPS: XBurst: suitable solution for per-board debug_ll 2012-06-05 08:36:59 +02:00
nios2 booting: more flexible Linux bootargs generation 2012-05-14 09:16:31 +02:00
openrisc ENV: remove kernelimage_type from env/config 2012-03-13 13:36:30 +01:00
ppc ppc 85xx: Fix whitespaces 2012-05-24 11:18:32 +02:00
sandbox Use DEVICE_ID_DYNAMIC where applicable 2012-04-16 09:43:02 +02:00
x86 Use DEVICE_ID_DYNAMIC where applicable 2012-04-16 09:43:02 +02:00
architecture.dox MIPS: add documentation 2011-08-05 18:20:17 +02:00