blob: 414042d4039b52b626eeae689b0b5a0e31d59fc5 [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);
Heiko Schocherf1d2b312010-09-17 13:10:39 +020039void dram_init_banksize (void);
wdenkc6097192002-11-03 00:24:07 +000040
wdenkc6097192002-11-03 00:24:07 +000041/* cpu/.../interrupt.c */
Jean-Christophe PLAGNIOL-VILLARDc358d9c32009-05-09 13:21:18 +020042int arch_interrupt_init (void);
wdenkc6097192002-11-03 00:24:07 +000043void reset_timer_masked (void);
44ulong get_timer_masked (void);
45void udelay_masked (unsigned long usec);
46
Jeroen Hofstee49c4bc32014-10-08 22:57:59 +020047/* calls to c from vectors.S */
48void bad_mode(void);
49void do_undefined_instruction(struct pt_regs *pt_regs);
50void do_software_interrupt(struct pt_regs *pt_regs);
51void do_prefetch_abort(struct pt_regs *pt_regs);
52void do_data_abort(struct pt_regs *pt_regs);
53void do_not_used(struct pt_regs *pt_regs);
54#ifdef CONFIG_ARM64
55void do_fiq(struct pt_regs *pt_regs, unsigned int esr);
56void do_irq(struct pt_regs *pt_regs, unsigned int esr);
57#else
58void do_fiq(struct pt_regs *pt_regs);
59void do_irq(struct pt_regs *pt_regswq);
60#endif
61
wdenkc6097192002-11-03 00:24:07 +000062#endif /* _U_BOOT_ARM_H_ */