From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mout.gmx.net ([212.227.17.21]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eOonF-0004xo-4r for barebox@lists.infradead.org; Tue, 12 Dec 2017 17:56:41 +0000 From: Oleksij Rempel Date: Tue, 12 Dec 2017 18:55:56 +0100 Message-Id: <20171212175557.20067-5-linux@rempel-privat.de> In-Reply-To: <20171212175557.20067-1-linux@rempel-privat.de> References: <20171212175557.20067-1-linux@rempel-privat.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH v2 4/5] MIPS: ath79: ar9331: add ar9331_pbl_generic_start macro To: barebox@lists.infradead.org Cc: Oleksij Rempel Most of ar9331 boards have identical PBL. So we can sync the code to single macro. Signed-off-by: Oleksij Rempel --- arch/mips/mach-ath79/include/mach/pbl_macros.h | 35 ++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/arch/mips/mach-ath79/include/mach/pbl_macros.h b/arch/mips/mach-ath79/include/mach/pbl_macros.h index 9e4859b19..906d73e8c 100644 --- a/arch/mips/mach-ath79/include/mach/pbl_macros.h +++ b/arch/mips/mach-ath79/include/mach/pbl_macros.h @@ -368,4 +368,39 @@ normal_path: .set pop .endm + .macro ar9331_pbl_generic_start + .set push + .set noreorder + + 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_ram_generic_config + +skip_pll_ram_config: + /* Initialize caches... */ + mips_cache_reset + + /* ... and enable them */ + dcache_enable + + pbl_ar9331_uart_enable + debug_ll_ar9331_init + mips_nmon + + pbl_ar9331_mdio_gpio_enable + + copy_to_link_location pbl_start + + .set pop + .endm + #endif /* __ASM_MACH_ATH79_PBL_MACROS_H */ -- 2.14.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox