Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 2 | /* |
| 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> |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 10 | */ |
| 11 | |
| 12 | #ifndef _U_BOOT_ARM_H_ |
| 13 | #define _U_BOOT_ARM_H_ 1 |
| 14 | |
Simon Glass | 4ef529e | 2017-05-17 08:22:50 -0600 | [diff] [blame] | 15 | #ifndef __ASSEMBLY__ |
| 16 | |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 17 | /* for the following variables, see start.S */ |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 18 | extern ulong IRQ_STACK_START; /* top of IRQ stack */ |
| 19 | extern ulong FIQ_STACK_START; /* top of FIQ stack */ |
Albert Aribaud | 6d1fcb1 | 2010-10-11 13:13:28 +0200 | [diff] [blame] | 20 | extern ulong _datarel_start_ofs; |
| 21 | extern ulong _datarelrolocal_start_ofs; |
| 22 | extern ulong _datarellocal_start_ofs; |
| 23 | extern ulong _datarelro_start_ofs; |
Heiko Schocher | aeb2991 | 2010-09-17 13:10:39 +0200 | [diff] [blame] | 24 | extern ulong IRQ_STACK_START_IN; /* 8 bytes in IRQ stack */ |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 25 | |
Simon Glass | 2c33b4c | 2019-12-28 10:44:55 -0700 | [diff] [blame] | 26 | void s_init(void); |
| 27 | |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 28 | /* cpu/.../cpu.c */ |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 29 | int cleanup_before_linux(void); |
| 30 | |
Simon Glass | 277e308 | 2011-11-05 03:56:51 +0000 | [diff] [blame] | 31 | /* Set up ARMv7 MMU, caches and TLBs */ |
| 32 | void cpu_init_cp15(void); |
| 33 | |
Jean-Christophe PLAGNIOL-VILLARD | 23164f1 | 2009-04-16 21:30:44 +0200 | [diff] [blame] | 34 | /* cpu/.../arch/cpu.c */ |
Prafulla Wadaskar | 9819670 | 2009-05-31 14:53:20 +0200 | [diff] [blame] | 35 | int arch_misc_init(void); |
Jean-Christophe PLAGNIOL-VILLARD | 23164f1 | 2009-04-16 21:30:44 +0200 | [diff] [blame] | 36 | |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 37 | /* board/.../... */ |
| 38 | int board_init(void); |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 39 | |
Jeroen Hofstee | a964133 | 2014-10-08 22:57:59 +0200 | [diff] [blame] | 40 | /* calls to c from vectors.S */ |
Simon Glass | 30db774 | 2017-05-17 08:22:59 -0600 | [diff] [blame] | 41 | struct pt_regs; |
| 42 | |
Jeroen Hofstee | a964133 | 2014-10-08 22:57:59 +0200 | [diff] [blame] | 43 | void bad_mode(void); |
| 44 | void do_undefined_instruction(struct pt_regs *pt_regs); |
| 45 | void do_software_interrupt(struct pt_regs *pt_regs); |
| 46 | void do_prefetch_abort(struct pt_regs *pt_regs); |
| 47 | void do_data_abort(struct pt_regs *pt_regs); |
| 48 | void do_not_used(struct pt_regs *pt_regs); |
Jeroen Hofstee | a964133 | 2014-10-08 22:57:59 +0200 | [diff] [blame] | 49 | void do_fiq(struct pt_regs *pt_regs); |
Sean Anderson | 2d75549 | 2022-03-22 17:17:35 -0400 | [diff] [blame] | 50 | void do_irq(struct pt_regs *pt_regs); |
Jeroen Hofstee | a964133 | 2014-10-08 22:57:59 +0200 | [diff] [blame] | 51 | |
Simon Glass | 78ec73d | 2019-12-28 10:45:00 -0700 | [diff] [blame] | 52 | void reset_misc(void); |
| 53 | |
Simon Glass | 4ef529e | 2017-05-17 08:22:50 -0600 | [diff] [blame] | 54 | #endif /* __ASSEMBLY__ */ |
| 55 | |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 56 | #endif /* _U_BOOT_ARM_H_ */ |