2013-01-31 21:49:27 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2009-2013 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
|
|
|
|
*
|
|
|
|
* Under GPLv2
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define __LOWLEVEL_INIT__
|
|
|
|
|
|
|
|
#include <common.h>
|
|
|
|
#include <sizes.h>
|
|
|
|
#include <init.h>
|
|
|
|
#include <asm/system.h>
|
|
|
|
#include <asm/barebox-arm.h>
|
|
|
|
#include <asm/barebox-arm-head.h>
|
|
|
|
#include <mach/hardware.h>
|
|
|
|
#include <mach/at91sam9_ddrsdr.h>
|
|
|
|
|
2013-02-05 13:45:26 +00:00
|
|
|
void __naked __bare_init barebox_arm_reset_vector(void)
|
2013-01-31 21:49:27 +00:00
|
|
|
{
|
2013-02-05 13:45:26 +00:00
|
|
|
arm_cpu_lowlevel_init();
|
2013-01-31 21:49:27 +00:00
|
|
|
|
|
|
|
arm_setup_stack(SAMA5D3_SRAM_BASE + SAMA5D3_SRAM_SIZE - 16);
|
|
|
|
|
|
|
|
barebox_arm_entry(SAMA5_DDRCS, at91sama5_get_ddram_size(), 0);
|
|
|
|
}
|