diff options
author | Simon Glass <sjg@chromium.org> | 2017-05-17 08:22:59 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-06-05 11:02:37 -0400 |
commit | c45300b0385e8c5f6be789421bd45de66fcfe1ed (patch) | |
tree | b7541984c51ecab3b6964740dbfaf50c8605f0b6 /arch | |
parent | c62db35d52c6ba5f31ac36e690c58ec54b273298 (diff) | |
download | u-boot-c45300b0385e8c5f6be789421bd45de66fcfe1ed.zip u-boot-c45300b0385e8c5f6be789421bd45de66fcfe1ed.tar.gz u-boot-c45300b0385e8c5f6be789421bd45de66fcfe1ed.tar.bz2 |
arm: Add declarations to avoid needing to include headers
At present common.h includes various ARM-specific headers. In preparation
for dropping this, add a few explicit declarations.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/include/asm/bootm.h | 1 | ||||
-rw-r--r-- | arch/arm/include/asm/u-boot-arm.h | 2 | ||||
-rw-r--r-- | arch/arm/lib/bootm.c | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/include/asm/bootm.h b/arch/arm/include/asm/bootm.h index 436c35a..4c9bb86 100644 --- a/arch/arm/include/asm/bootm.h +++ b/arch/arm/include/asm/bootm.h @@ -41,6 +41,7 @@ extern void udc_disconnect(void); #define BOOTM_ENABLE_INITRD_TAG 0 #endif +struct tag_serialnr; #ifdef CONFIG_SERIAL_TAG #define BOOTM_ENABLE_SERIAL_TAG 1 void get_board_serial(struct tag_serialnr *serialnr); diff --git a/arch/arm/include/asm/u-boot-arm.h b/arch/arm/include/asm/u-boot-arm.h index 3a0d0b8..ef4fca6 100644 --- a/arch/arm/include/asm/u-boot-arm.h +++ b/arch/arm/include/asm/u-boot-arm.h @@ -47,6 +47,8 @@ ulong get_timer_masked (void); void udelay_masked (unsigned long usec); /* calls to c from vectors.S */ +struct pt_regs; + void bad_mode(void); void do_undefined_instruction(struct pt_regs *pt_regs); void do_software_interrupt(struct pt_regs *pt_regs); diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c index eb24222..704849b 100644 --- a/arch/arm/lib/bootm.c +++ b/arch/arm/lib/bootm.c @@ -31,6 +31,7 @@ #ifdef CONFIG_ARMV7_NONSEC #include <asm/armv7.h> #endif +#include <asm/setup.h> DECLARE_GLOBAL_DATA_PTR; |