From: Oleksij Rempel <li...@rempel-privat.de>

Signed-off-by: Oleksij Rempel <li...@rempel-privat.de>
Signed-off-by: Antony Pavlov <antonynpav...@gmail.com>
---
 .../tplink-mr3020/include/board/board_pbl_start.h  | 32 ++++++++++++++++++++++
 arch/mips/mach-ath79/Kconfig                       |  2 ++
 2 files changed, 34 insertions(+)

diff --git a/arch/mips/boards/tplink-mr3020/include/board/board_pbl_start.h 
b/arch/mips/boards/tplink-mr3020/include/board/board_pbl_start.h
new file mode 100644
index 0000000..f85c5ad
--- /dev/null
+++ b/arch/mips/boards/tplink-mr3020/include/board/board_pbl_start.h
@@ -0,0 +1,32 @@
+/*
+ * Copyright (C) 2013, 2015 Antony Pavlov <antonynpav...@gmail.com>
+ * Copyright (C) 2013 Oleksij Rempel <li...@rempel-privat.de>
+ *
+ * This file is part of barebox.
+ * See file CREDITS for list of people who contributed to this project.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2
+ * as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ */
+
+#include <asm/pbl_macros.h>
+
+       .macro  board_pbl_start
+       .set    push
+       .set    noreorder
+
+       mips_barebox_10h
+
+       mips_disable_interrupts
+
+       copy_to_link_location   pbl_start
+
+       .set    pop
+       .endm
diff --git a/arch/mips/mach-ath79/Kconfig b/arch/mips/mach-ath79/Kconfig
index 96fffd3..3fd9cdd 100644
--- a/arch/mips/mach-ath79/Kconfig
+++ b/arch/mips/mach-ath79/Kconfig
@@ -9,6 +9,8 @@ choice
 
 config BOARD_TPLINK_MR3020
        bool "TP-LINK MR3020"
+       select HAVE_PBL_IMAGE
+       select HAVE_IMAGE_COMPRESSION
 
 endchoice
 
-- 
2.1.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to