summaryrefslogtreecommitdiffstats
path: root/arch/arm/boards/vexpress/lowlevel.c
blob: 2ef94c59d691f94ebaec335ac39e0a2fa5c4691d (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 <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);
}