diff options
Diffstat (limited to 'firmware/target/mips/ingenic_x1000/spl-x1000.h')
-rw-r--r-- | firmware/target/mips/ingenic_x1000/spl-x1000.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/firmware/target/mips/ingenic_x1000/spl-x1000.h b/firmware/target/mips/ingenic_x1000/spl-x1000.h index d2255a8d05..062cb40f88 100644 --- a/firmware/target/mips/ingenic_x1000/spl-x1000.h +++ b/firmware/target/mips/ingenic_x1000/spl-x1000.h | |||
@@ -22,10 +22,7 @@ | |||
22 | #ifndef __SPL_X1000_H__ | 22 | #ifndef __SPL_X1000_H__ |
23 | #define __SPL_X1000_H__ | 23 | #define __SPL_X1000_H__ |
24 | 24 | ||
25 | #include "spl-x1000-defs.h" | 25 | #include <stdint.h> |
26 | |||
27 | #define SPL_ARGUMENTS ((struct x1000_spl_arguments*)SPL_ARGUMENTS_ADDRESS) | ||
28 | #define SPL_STATUS ((struct x1000_spl_status*)SPL_STATUS_ADDRESS) | ||
29 | 26 | ||
30 | struct spl_boot_option { | 27 | struct spl_boot_option { |
31 | uint32_t nand_addr; | 28 | uint32_t nand_addr; |
@@ -35,15 +32,13 @@ struct spl_boot_option { | |||
35 | const char* cmdline; /* for Linux */ | 32 | const char* cmdline; /* for Linux */ |
36 | }; | 33 | }; |
37 | 34 | ||
38 | /* Defined by target, indices are 0 = ROCKBOX, 1 = ORIG_FW, etc... */ | 35 | /* Defined by target, order is not important */ |
39 | extern const struct spl_boot_option spl_boot_options[]; | 36 | extern const struct spl_boot_option spl_boot_options[]; |
40 | 37 | ||
41 | /* Called on a fatal error */ | 38 | /* Called on a fatal error */ |
42 | extern void spl_error(void) __attribute__((noreturn)); | 39 | extern void spl_error(void) __attribute__((noreturn)); |
43 | 40 | ||
44 | /* When SPL boots with SPL_BOOTOPTION_CHOOSE, this function is invoked | 41 | /* Invoked by SPL main routine to determine the boot option */ |
45 | * to let the target figure out the boot option based on buttons the | ||
46 | * user is pressing */ | ||
47 | extern int spl_get_boot_option(void); | 42 | extern int spl_get_boot_option(void); |
48 | 43 | ||
49 | /* Do any setup/initialization needed for the given boot option, this | 44 | /* Do any setup/initialization needed for the given boot option, this |