mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/5] MIPS: tplink-mr3020: use ar9331_pbl_generic_start
@ 2019-01-19 16:36 Oleksij Rempel
  2019-01-19 16:36 ` [PATCH 2/5] MIPS: black-swift: " Oleksij Rempel
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Oleksij Rempel @ 2019-01-19 16:36 UTC (permalink / raw)
  To: barebox; +Cc: Oleksij Rempel

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

most ar9331 boards are almost identical. Remove as match duplicate code
as possible.

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
---
 arch/mips/boards/tplink-mr3020/lowlevel.S | 29 +----------------------
 1 file changed, 1 insertion(+), 28 deletions(-)

diff --git a/arch/mips/boards/tplink-mr3020/lowlevel.S b/arch/mips/boards/tplink-mr3020/lowlevel.S
index e3e6a61b78..0a1c193c1e 100644
--- a/arch/mips/boards/tplink-mr3020/lowlevel.S
+++ b/arch/mips/boards/tplink-mr3020/lowlevel.S
@@ -14,33 +14,6 @@
 
 ENTRY_FUNCTION(BOARD_PBL_START)
 
-	mips_barebox_10h
-
-	pbl_blt 0xbf000000 skip_pll_ram_config t8
-
-	hornet_mips24k_cp0_setup
-
-	pbl_ar9331_wmac_enable
-
-	hornet_1_1_war
-
-	pbl_ar9331_pll
-	pbl_ar9331_ddr1_config
-
-	/* Initialize caches... */
-	mips_cache_reset
-
-	/* ... and enable them */
-	dcache_enable
-
-skip_pll_ram_config:
-	pbl_ar9331_uart_enable
-	debug_ll_ath79_init
-
-	/*
-	 * It is amazing but we have to enable MDIO on GPIO
-	 * to use GPIO26 for the "WPS" LED and GPIO27 for the "3G" LED.
-	 */
-	pbl_ar9331_mdio_gpio_enable
+	ar9331_pbl_generic_start
 
 ENTRY_FUNCTION_END(BOARD_PBL_START, tplink_mr3020)
-- 
2.20.1


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-01-19 16:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-19 16:36 [PATCH 1/5] MIPS: tplink-mr3020: use ar9331_pbl_generic_start Oleksij Rempel
2019-01-19 16:36 ` [PATCH 2/5] MIPS: black-swift: " Oleksij Rempel
2019-01-19 16:36 ` [PATCH 3/5] MIPS: add ENTRY_FUNCTION_SRAM_END define Oleksij Rempel
2019-01-19 16:36 ` [PATCH 4/5] MIPS: ath79: add spi trap Oleksij Rempel
2019-01-19 16:36 ` [PATCH 5/5] MIPS: ath79: add SRAM support Oleksij Rempel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox