Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Purna Chandra Mandal | 5c2dcd2 | 2016-01-28 15:30:16 +0530 | [diff] [blame] | 2 | /* |
| 3 | * (c) 2015 Purna Chandra Mandal <purna.mandal@microchip.com> |
| 4 | * |
Purna Chandra Mandal | 5c2dcd2 | 2016-01-28 15:30:16 +0530 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #include <config.h> |
| 8 | #include <asm/regdef.h> |
| 9 | #include <asm/mipsregs.h> |
| 10 | #include <asm/asm.h> |
| 11 | |
| 12 | LEAF(lowlevel_init) |
| 13 | /* |
| 14 | * Establish Cause |
| 15 | * (set IV bit) |
| 16 | */ |
| 17 | li t1, 0x00800000 |
| 18 | mtc0 t1, CP0_CAUSE |
| 19 | |
| 20 | /* Establish Wired (and Random) */ |
| 21 | mtc0 zero, CP0_WIRED |
| 22 | nop |
| 23 | |
| 24 | jr ra |
| 25 | nop |
| 26 | END(lowlevel_init) |