blob: 2e8c8e53d79bc905f00cc169f334290b0fe01d72 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
wdenkc6097192002-11-03 00:24:07 +00002/*
3 * (C) Copyright 2002
4 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
5 * Marius Groeger <mgroeger@sysgo.de>
6 *
7 * (C) Copyright 2002
8 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
9 * Alex Zuepke <azu@sysgo.de>
wdenkc6097192002-11-03 00:24:07 +000010 */
11
12#ifndef _U_BOOT_ARM_H_
13#define _U_BOOT_ARM_H_ 1
14
Simon Glass4ef529e2017-05-17 08:22:50 -060015#ifndef __ASSEMBLY__
16
wdenkc6097192002-11-03 00:24:07 +000017/* for the following variables, see start.S */
wdenkc6097192002-11-03 00:24:07 +000018extern ulong IRQ_STACK_START; /* top of IRQ stack */
19extern ulong FIQ_STACK_START; /* top of FIQ stack */
Albert Aribaud6d1fcb12010-10-11 13:13:28 +020020extern ulong _datarel_start_ofs;
21extern ulong _datarelrolocal_start_ofs;
22extern ulong _datarellocal_start_ofs;
23extern ulong _datarelro_start_ofs;
Heiko Schocheraeb29912010-09-17 13:10:39 +020024extern ulong IRQ_STACK_START_IN; /* 8 bytes in IRQ stack */
wdenkc6097192002-11-03 00:24:07 +000025
26/* cpu/.../cpu.c */
wdenkc6097192002-11-03 00:24:07 +000027int cleanup_before_linux(void);
28
Simon Glass277e3082011-11-05 03:56:51 +000029/* Set up ARMv7 MMU, caches and TLBs */
30void cpu_init_cp15(void);
31
Jean-Christophe PLAGNIOL-VILLARD23164f12009-04-16 21:30:44 +020032/* cpu/.../arch/cpu.c */
Prafulla Wadaskar98196702009-05-31 14:53:20 +020033int arch_misc_init(void);
Jean-Christophe PLAGNIOL-VILLARD23164f12009-04-16 21:30:44 +020034
wdenkc6097192002-11-03 00:24:07 +000035/* board/.../... */
36int board_init(void);
wdenkc6097192002-11-03 00:24:07 +000037
Jeroen Hofsteea9641332014-10-08 22:57:59 +020038/* calls to c from vectors.S */
Simon Glass30db7742017-05-17 08:22:59 -060039struct pt_regs;
40
Jeroen Hofsteea9641332014-10-08 22:57:59 +020041void bad_mode(void);
42void do_undefined_instruction(struct pt_regs *pt_regs);
43void do_software_interrupt(struct pt_regs *pt_regs);
44void do_prefetch_abort(struct pt_regs *pt_regs);
45void do_data_abort(struct pt_regs *pt_regs);
46void do_not_used(struct pt_regs *pt_regs);
47#ifdef CONFIG_ARM64
48void do_fiq(struct pt_regs *pt_regs, unsigned int esr);
49void do_irq(struct pt_regs *pt_regs, unsigned int esr);
50#else
51void do_fiq(struct pt_regs *pt_regs);
52void do_irq(struct pt_regs *pt_regswq);
53#endif
54
Simon Glass4ef529e2017-05-17 08:22:50 -060055#endif /* __ASSEMBLY__ */
56
wdenkc6097192002-11-03 00:24:07 +000057#endif /* _U_BOOT_ARM_H_ */