blob: dfbe06766cde82da55aaa305f5740ae5ebc0e528 [file] [log] [blame]
Gregory CLEMENTdd1033e2018-12-14 16:16:47 +01001/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
2/*
3 * Copyright (c) 2018 Microsemi Corporation
4 */
5
6#include <asm/asm.h>
7#include <asm/regdef.h>
8
9 .set noreorder
10 .extern vcoreiii_tlb_init
Gregory CLEMENT6bd82312018-12-14 16:16:48 +010011#ifdef CONFIG_SOC_LUTON
12 .extern pll_init
13#endif
Gregory CLEMENTdd1033e2018-12-14 16:16:47 +010014
15LEAF(lowlevel_init)
16 /*
17 * As we have no stack yet, we can assume the restricted
18 * luxury of the sX-registers without saving them
19 */
20 move s0,ra
21
22 jal vcoreiii_tlb_init
23 nop
Gregory CLEMENT6bd82312018-12-14 16:16:48 +010024#ifdef CONFIG_SOC_LUTON
25 jal pll_init
26 nop
27#endif
Gregory CLEMENTdd1033e2018-12-14 16:16:47 +010028 jr s0
29 nop
30 END(lowlevel_init)