[PATCH 11/13] MIPS: loongson-ls1b: add NMON support

Antony Pavlov antonynpavlov at gmail.com
Sat Jan 18 10:13:01 EST 2014


Signed-off-by: Antony Pavlov <antonynpavlov at gmail.com>
---
 arch/mips/boards/loongson-ls1b/include/board/board_pbl_start.h | 3 +++
 arch/mips/mach-loongson/Kconfig                                | 1 +
 2 files changed, 4 insertions(+)

diff --git a/arch/mips/boards/loongson-ls1b/include/board/board_pbl_start.h b/arch/mips/boards/loongson-ls1b/include/board/board_pbl_start.h
index aa30e8d..1a92794 100644
--- a/arch/mips/boards/loongson-ls1b/include/board/board_pbl_start.h
+++ b/arch/mips/boards/loongson-ls1b/include/board/board_pbl_start.h
@@ -18,6 +18,7 @@
 #include <asm/pbl_macros.h>
 #include <mach/loongson1.h>
 #include <mach/debug_ll.h>
+#include <asm/pbl_nmon.h>
 
 	.macro	board_pbl_start
 	.set	push
@@ -32,6 +33,8 @@
 	debug_ll_ns16550_outc '.'
 	debug_ll_ns16550_outnl
 
+	mips_nmon
+
 	copy_to_link_location	pbl_start
 
 	.set	pop
diff --git a/arch/mips/mach-loongson/Kconfig b/arch/mips/mach-loongson/Kconfig
index fe48ed6..c9f1902 100644
--- a/arch/mips/mach-loongson/Kconfig
+++ b/arch/mips/mach-loongson/Kconfig
@@ -17,6 +17,7 @@ config BOARD_LOONGSON_TECH_LS1B
 	select DRIVER_SERIAL_NS16550
 	select HAVE_PBL_IMAGE
 	select HAVE_IMAGE_COMPRESSION
+	select HAS_NMON
 
 endchoice
 
-- 
1.8.5.3




More information about the barebox mailing list