Gregory CLEMENT | dd1033e | 2018-12-14 16:16:47 +0100 | [diff] [blame] | 1 | /* 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 CLEMENT | 6bd8231 | 2018-12-14 16:16:48 +0100 | [diff] [blame] | 11 | #ifdef CONFIG_SOC_LUTON |
| 12 | .extern pll_init |
| 13 | #endif |
Gregory CLEMENT | dd1033e | 2018-12-14 16:16:47 +0100 | [diff] [blame] | 14 | |
| 15 | LEAF(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 CLEMENT | 6bd8231 | 2018-12-14 16:16:48 +0100 | [diff] [blame] | 24 | #ifdef CONFIG_SOC_LUTON |
| 25 | jal pll_init |
| 26 | nop |
| 27 | #endif |
Gregory CLEMENT | dd1033e | 2018-12-14 16:16:47 +0100 | [diff] [blame] | 28 | jr s0 |
| 29 | nop |
| 30 | END(lowlevel_init) |