1*83d290c5STom Rini/* SPDX-License-Identifier: GPL-2.0+ */ 2be961fa1SPurna Chandra Mandal/* 3be961fa1SPurna Chandra Mandal * (c) 2015 Purna Chandra Mandal <purna.mandal@microchip.com> 4be961fa1SPurna Chandra Mandal * 5be961fa1SPurna Chandra Mandal*/ 6be961fa1SPurna Chandra Mandal 7be961fa1SPurna Chandra Mandal#include <config.h> 8be961fa1SPurna Chandra Mandal#include <asm/regdef.h> 9be961fa1SPurna Chandra Mandal#include <asm/mipsregs.h> 10be961fa1SPurna Chandra Mandal#include <asm/asm.h> 11be961fa1SPurna Chandra Mandal 12be961fa1SPurna Chandra MandalLEAF(lowlevel_init) 13be961fa1SPurna Chandra Mandal /* 14be961fa1SPurna Chandra Mandal * Establish Cause 15be961fa1SPurna Chandra Mandal * (set IV bit) 16be961fa1SPurna Chandra Mandal */ 17be961fa1SPurna Chandra Mandal li t1, 0x00800000 18be961fa1SPurna Chandra Mandal mtc0 t1, CP0_CAUSE 19be961fa1SPurna Chandra Mandal 20be961fa1SPurna Chandra Mandal /* Establish Wired (and Random) */ 21be961fa1SPurna Chandra Mandal mtc0 zero, CP0_WIRED 22be961fa1SPurna Chandra Mandal nop 23be961fa1SPurna Chandra Mandal 24be961fa1SPurna Chandra Mandal jr ra 25be961fa1SPurna Chandra Mandal nop 26be961fa1SPurna Chandra Mandal END(lowlevel_init) 27