blob: b16694c72f8d6b6f06b2a6efd47cc612c4430ba6 [file] [log] [blame]
wdenkc6097192002-11-03 00:24:07 +00001/*
2 * (C) Copyright 2002
3 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
4 * Marius Groeger <mgroeger@sysgo.de>
5 *
6 * (C) Copyright 2002
7 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
8 * Alex Zuepke <azu@sysgo.de>
9 *
Wolfgang Denk1a459662013-07-08 09:37:19 +020010 * SPDX-License-Identifier: GPL-2.0+
wdenkc6097192002-11-03 00:24:07 +000011 */
12
13#ifndef _U_BOOT_ARM_H_
14#define _U_BOOT_ARM_H_ 1
15
16/* for the following variables, see start.S */
wdenkc6097192002-11-03 00:24:07 +000017extern ulong IRQ_STACK_START; /* top of IRQ stack */
18extern ulong FIQ_STACK_START; /* top of FIQ stack */
Albert Aribaud92d5ecb2010-10-11 13:13:28 +020019extern ulong _datarel_start_ofs;
20extern ulong _datarelrolocal_start_ofs;
21extern ulong _datarellocal_start_ofs;
22extern ulong _datarelro_start_ofs;
Heiko Schocherf1d2b312010-09-17 13:10:39 +020023extern ulong IRQ_STACK_START_IN; /* 8 bytes in IRQ stack */
wdenkc6097192002-11-03 00:24:07 +000024
25/* cpu/.../cpu.c */
26int cpu_init(void);
27int cleanup_before_linux(void);
28
Simon Glass80433c92011-11-05 03:56:51 +000029/* Set up ARMv7 MMU, caches and TLBs */
30void cpu_init_cp15(void);
31
Jean-Christophe PLAGNIOL-VILLARDdc39ae92009-04-16 21:30:44 +020032/* cpu/.../arch/cpu.c */
33int arch_cpu_init(void);
Prafulla Wadaskara24d96e2009-05-31 14:53:20 +020034int arch_misc_init(void);
Fabio Estevamd519b4b2012-04-02 11:19:45 +000035int arch_early_init_r(void);
Jean-Christophe PLAGNIOL-VILLARDdc39ae92009-04-16 21:30:44 +020036
wdenkc6097192002-11-03 00:24:07 +000037/* board/.../... */
38int board_init(void);
39int dram_init (void);
Heiko Schocherf1d2b312010-09-17 13:10:39 +020040void dram_init_banksize (void);
wdenkc6097192002-11-03 00:24:07 +000041
wdenkc6097192002-11-03 00:24:07 +000042/* cpu/.../interrupt.c */
Jean-Christophe PLAGNIOL-VILLARDc358d9c32009-05-09 13:21:18 +020043int arch_interrupt_init (void);
wdenkc6097192002-11-03 00:24:07 +000044void reset_timer_masked (void);
45ulong get_timer_masked (void);
46void udelay_masked (unsigned long usec);
47
wdenkc6097192002-11-03 00:24:07 +000048#endif /* _U_BOOT_ARM_H_ */