summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/vexpress/lowlevel.c
blob: 204d29d8f0985d7f689d65a036e9b7a6e52a5225 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * Copyright (C) 2013 Jean-Christophe PLAGNIOL-VILLARD <plagnio@jcrosoft.com>
 *
 * GPLv2 only
 */

#include <common.h>
#include <linux/sizes.h>
#include <asm/barebox-arm-head.h>
#include <asm/barebox-arm.h>
#include <asm/system_info.h>
#include <linux/amba/sp804.h>

void __naked barebox_arm_reset_vector(void)
{
	arm_cpu_lowlevel_init();

	if (amba_is_arm_sp804(IOMEM(0x10011000)))
		barebox_arm_entry(0x60000000, SZ_512M, NULL);
	else
		barebox_arm_entry(0x80000000, SZ_512M, NULL);
}