blob: aef048708dab7e7b002dddd8ed21bf96414d11ec [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
Simon Glass2c33b4c2019-12-28 10:44:55 -070026void s_init(void);
27
wdenkc6097192002-11-03 00:24:07 +000028/* cpu/.../cpu.c */
wdenkc6097192002-11-03 00:24:07 +000029int cleanup_before_linux(void);
30
Simon Glass277e3082011-11-05 03:56:51 +000031/* Set up ARMv7 MMU, caches and TLBs */
32void cpu_init_cp15(void);
33
Jean-Christophe PLAGNIOL-VILLARD23164f12009-04-16 21:30:44 +020034/* cpu/.../arch/cpu.c */
Prafulla Wadaskar98196702009-05-31 14:53:20 +020035int arch_misc_init(void);
Jean-Christophe PLAGNIOL-VILLARD23164f12009-04-16 21:30:44 +020036
wdenkc6097192002-11-03 00:24:07 +000037/* board/.../... */
38int board_init(void);
wdenkc6097192002-11-03 00:24:07 +000039
Jeroen Hofsteea9641332014-10-08 22:57:59 +020040/* calls to c from vectors.S */
Simon Glass30db7742017-05-17 08:22:59 -060041struct pt_regs;
42
Jeroen Hofsteea9641332014-10-08 22:57:59 +020043void bad_mode(void);
44void do_undefined_instruction(struct pt_regs *pt_regs);
45void do_software_interrupt(struct pt_regs *pt_regs);
46void do_prefetch_abort(struct pt_regs *pt_regs);
47void do_data_abort(struct pt_regs *pt_regs);
48void do_not_used(struct pt_regs *pt_regs);
Jeroen Hofsteea9641332014-10-08 22:57:59 +020049void do_fiq(struct pt_regs *pt_regs);
Sean Anderson2d755492022-03-22 17:17:35 -040050void do_irq(struct pt_regs *pt_regs);
Jeroen Hofsteea9641332014-10-08 22:57:59 +020051
Simon Glass78ec73d2019-12-28 10:45:00 -070052void reset_misc(void);
53
Simon Glass4ef529e2017-05-17 08:22:50 -060054#endif /* __ASSEMBLY__ */
55
wdenkc6097192002-11-03 00:24:07 +000056#endif /* _U_BOOT_ARM_H_ */