/* Board initialization shamelessly stolen from Ashling PathFinder
   configuration */

#include <config.h>
#include <version.h>
#include <asm/regdef.h>
#include <asm/mipsregs.h>

#ifndef STR
#define __STR(x) #x
#define STR(x) __STR(x)
#endif

	.text
	.set noreorder
	.set mips32

	.globl lowlevel_init
	.ent lowlevel_init

	/*
	   lowlevel_init should be a no-op, except for legacy NOR builds
	   which run directly from flash without a primary bootloader.
	*/

lowlevel_init:

#ifdef GENERATED_CONFIG
#include STR(GENERATED_CONFIG.S)
#else
#error "GENERATED_CONFIG must be defined..."
#endif

	jr	ra
	nop

	.end lowlevel_init

