diff options
Diffstat (limited to 'firmware/target/mips/ingenic_x1000/spl-x1000.h')
-rw-r--r-- | firmware/target/mips/ingenic_x1000/spl-x1000.h | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/firmware/target/mips/ingenic_x1000/spl-x1000.h b/firmware/target/mips/ingenic_x1000/spl-x1000.h index 062cb40f88..81714a3ed2 100644 --- a/firmware/target/mips/ingenic_x1000/spl-x1000.h +++ b/firmware/target/mips/ingenic_x1000/spl-x1000.h | |||
@@ -22,22 +22,14 @@ | |||
22 | #ifndef __SPL_X1000_H__ | 22 | #ifndef __SPL_X1000_H__ |
23 | #define __SPL_X1000_H__ | 23 | #define __SPL_X1000_H__ |
24 | 24 | ||
25 | #include <stdint.h> | 25 | /* TODO: this needs some refactoring... */ |
26 | |||
27 | struct spl_boot_option { | ||
28 | uint32_t nand_addr; | ||
29 | uint32_t nand_size; | ||
30 | uint32_t load_addr; | ||
31 | uint32_t exec_addr; | ||
32 | const char* cmdline; /* for Linux */ | ||
33 | }; | ||
34 | |||
35 | /* Defined by target, order is not important */ | ||
36 | extern const struct spl_boot_option spl_boot_options[]; | ||
37 | 26 | ||
38 | /* Called on a fatal error */ | 27 | /* Called on a fatal error */ |
39 | extern void spl_error(void) __attribute__((noreturn)); | 28 | extern void spl_error(void) __attribute__((noreturn)); |
40 | 29 | ||
30 | /* Called by SPL to handle a main boot */ | ||
31 | extern void spl_target_boot(void); | ||
32 | |||
41 | /* Invoked by SPL main routine to determine the boot option */ | 33 | /* Invoked by SPL main routine to determine the boot option */ |
42 | extern int spl_get_boot_option(void); | 34 | extern int spl_get_boot_option(void); |
43 | 35 | ||