wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 1 | /* |
| 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 Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 10 | * SPDX-License-Identifier: GPL-2.0+ |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 11 | */ |
| 12 | |
| 13 | #ifndef _U_BOOT_ARM_H_ |
| 14 | #define _U_BOOT_ARM_H_ 1 |
| 15 | |
| 16 | /* for the following variables, see start.S */ |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 17 | extern ulong IRQ_STACK_START; /* top of IRQ stack */ |
| 18 | extern ulong FIQ_STACK_START; /* top of FIQ stack */ |
Albert Aribaud | 6d1fcb1 | 2010-10-11 13:13:28 +0200 | [diff] [blame] | 19 | extern ulong _datarel_start_ofs; |
| 20 | extern ulong _datarelrolocal_start_ofs; |
| 21 | extern ulong _datarellocal_start_ofs; |
| 22 | extern ulong _datarelro_start_ofs; |
Heiko Schocher | aeb2991 | 2010-09-17 13:10:39 +0200 | [diff] [blame] | 23 | extern ulong IRQ_STACK_START_IN; /* 8 bytes in IRQ stack */ |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 24 | |
| 25 | /* cpu/.../cpu.c */ |
| 26 | int cpu_init(void); |
| 27 | int cleanup_before_linux(void); |
| 28 | |
Simon Glass | 277e308 | 2011-11-05 03:56:51 +0000 | [diff] [blame] | 29 | /* Set up ARMv7 MMU, caches and TLBs */ |
| 30 | void cpu_init_cp15(void); |
| 31 | |
Jean-Christophe PLAGNIOL-VILLARD | 23164f1 | 2009-04-16 21:30:44 +0200 | [diff] [blame] | 32 | /* cpu/.../arch/cpu.c */ |
| 33 | int arch_cpu_init(void); |
Prafulla Wadaskar | 9819670 | 2009-05-31 14:53:20 +0200 | [diff] [blame] | 34 | int arch_misc_init(void); |
Fabio Estevam | 4310ecc | 2012-04-02 11:19:45 +0000 | [diff] [blame] | 35 | int arch_early_init_r(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); |
Heiko Schocher | aeb2991 | 2010-09-17 13:10:39 +0200 | [diff] [blame] | 39 | void dram_init_banksize (void); |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 40 | |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 41 | /* cpu/.../interrupt.c */ |
Jean-Christophe PLAGNIOL-VILLARD | da7b3db | 2009-05-09 13:21:18 +0200 | [diff] [blame] | 42 | int arch_interrupt_init (void); |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 43 | void reset_timer_masked (void); |
| 44 | ulong get_timer_masked (void); |
| 45 | void udelay_masked (unsigned long usec); |
| 46 | |
Jeroen Hofstee | a964133 | 2014-10-08 22:57:59 +0200 | [diff] [blame] | 47 | /* calls to c from vectors.S */ |
| 48 | void bad_mode(void); |
| 49 | void do_undefined_instruction(struct pt_regs *pt_regs); |
| 50 | void do_software_interrupt(struct pt_regs *pt_regs); |
| 51 | void do_prefetch_abort(struct pt_regs *pt_regs); |
| 52 | void do_data_abort(struct pt_regs *pt_regs); |
| 53 | void do_not_used(struct pt_regs *pt_regs); |
| 54 | #ifdef CONFIG_ARM64 |
| 55 | void do_fiq(struct pt_regs *pt_regs, unsigned int esr); |
| 56 | void do_irq(struct pt_regs *pt_regs, unsigned int esr); |
| 57 | #else |
| 58 | void do_fiq(struct pt_regs *pt_regs); |
| 59 | void do_irq(struct pt_regs *pt_regswq); |
| 60 | #endif |
| 61 | |
wdenk | c609719 | 2002-11-03 00:24:07 +0000 | [diff] [blame] | 62 | #endif /* _U_BOOT_ARM_H_ */ |