From 6d82245b00d35de260d3473283480e451d8a198e Mon Sep 17 00:00:00 2001 From: Oleksij Rempel Date: Tue, 12 Dec 2017 18:55:56 +0100 Subject: MIPS: ath79: ar9331: add ar9331_pbl_generic_start macro Most of ar9331 boards have identical PBL. So we can sync the code to single macro. Signed-off-by: Oleksij Rempel Signed-off-by: Sascha Hauer --- 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 9e4859b19f..906d73e8c7 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 */ -- cgit v1.2.3