1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-29 22:41:17 +02:00

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>
This commit is contained in:
Simon Glass
2017-05-17 08:22:59 -06:00
committed by Tom Rini
parent c62db35d52
commit c45300b038
3 changed files with 4 additions and 0 deletions

View File

@@ -41,6 +41,7 @@ extern void udc_disconnect(void);
#define BOOTM_ENABLE_INITRD_TAG 0 #define BOOTM_ENABLE_INITRD_TAG 0
#endif #endif
struct tag_serialnr;
#ifdef CONFIG_SERIAL_TAG #ifdef CONFIG_SERIAL_TAG
#define BOOTM_ENABLE_SERIAL_TAG 1 #define BOOTM_ENABLE_SERIAL_TAG 1
void get_board_serial(struct tag_serialnr *serialnr); void get_board_serial(struct tag_serialnr *serialnr);

View File

@@ -47,6 +47,8 @@ ulong get_timer_masked (void);
void udelay_masked (unsigned long usec); void udelay_masked (unsigned long usec);
/* calls to c from vectors.S */ /* calls to c from vectors.S */
struct pt_regs;
void bad_mode(void); void bad_mode(void);
void do_undefined_instruction(struct pt_regs *pt_regs); void do_undefined_instruction(struct pt_regs *pt_regs);
void do_software_interrupt(struct pt_regs *pt_regs); void do_software_interrupt(struct pt_regs *pt_regs);

View File

@@ -31,6 +31,7 @@
#ifdef CONFIG_ARMV7_NONSEC #ifdef CONFIG_ARMV7_NONSEC
#include <asm/armv7.h> #include <asm/armv7.h>
#endif #endif
#include <asm/setup.h>
DECLARE_GLOBAL_DATA_PTR; DECLARE_GLOBAL_DATA_PTR;