blob: f97f3dd1496aa54f7ca0667d0ebea299c95d50e7 [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 Denkd79de1d2013-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 Aribaud6d1fcb12010-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 Schocheraeb29912010-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 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 */
33int arch_cpu_init(void);
Prafulla Wadaskar98196702009-05-31 14:53:20 +020034int arch_misc_init(void);
Fabio Estevam4310ecc2012-04-02 11:19:45 +000035int arch_early_init_r(void);
Jean-Christophe PLAGNIOL-VILLARD23164f12009-04-16 21:30:44 +020036
wdenkc6097192002-11-03 00:24:07 +000037/* board/.../... */
38int board_init(void);
39int dram_init (void);
Heiko Schocheraeb29912010-09-17 13:10:39 +020040void dram_init_banksize (void);
wdenkc6097192002-11-03 00:24:07 +000041
wdenkc6097192002-11-03 00:24:07 +000042/* cpu/.../interrupt.c */
Jean-Christophe PLAGNIOL-VILLARDda7b3db2009-05-09 13:21:18 +020043int arch_interrupt_init (void);
wdenkc6097192002-11-03 00:24:07 +000044void reset_timer_masked (void);
45ulong get_timer_masked (void);
46void udelay_masked (unsigned long usec);
47
Jeroen Hofsteea9641332014-10-08 22:57:59 +020048/* calls to c from vectors.S */
49void bad_mode(void);
50void do_undefined_instruction(struct pt_regs *pt_regs);
51void do_software_interrupt(struct pt_regs *pt_regs);
52void do_prefetch_abort(struct pt_regs *pt_regs);
53void do_data_abort(struct pt_regs *pt_regs);
54void do_not_used(struct pt_regs *pt_regs);
55#ifdef CONFIG_ARM64
56void do_fiq(struct pt_regs *pt_regs, unsigned int esr);
57void do_irq(struct pt_regs *pt_regs, unsigned int esr);
58#else
59void do_fiq(struct pt_regs *pt_regs);
60void do_irq(struct pt_regs *pt_regswq);
61#endif
62
wdenkc6097192002-11-03 00:24:07 +000063#endif /* _U_BOOT_ARM_H_ */