diff options
Diffstat (limited to 'firmware/target/mips/ingenic_x1000/spl-x1000.h')
-rw-r--r-- | firmware/target/mips/ingenic_x1000/spl-x1000.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/firmware/target/mips/ingenic_x1000/spl-x1000.h b/firmware/target/mips/ingenic_x1000/spl-x1000.h index 44601438f3..d2255a8d05 100644 --- a/firmware/target/mips/ingenic_x1000/spl-x1000.h +++ b/firmware/target/mips/ingenic_x1000/spl-x1000.h | |||
@@ -39,11 +39,17 @@ struct spl_boot_option { | |||
39 | extern const struct spl_boot_option spl_boot_options[]; | 39 | extern const struct spl_boot_option spl_boot_options[]; |
40 | 40 | ||
41 | /* Called on a fatal error */ | 41 | /* Called on a fatal error */ |
42 | void spl_error(void) __attribute__((noreturn)); | 42 | extern void spl_error(void) __attribute__((noreturn)); |
43 | 43 | ||
44 | /* When SPL boots with SPL_BOOTOPTION_CHOOSE, this function is invoked | 44 | /* When SPL boots with SPL_BOOTOPTION_CHOOSE, this function is invoked |
45 | * to let the target figure out the boot option based on buttons the | 45 | * to let the target figure out the boot option based on buttons the |
46 | * user is pressing */ | 46 | * user is pressing */ |
47 | extern int spl_get_boot_option(void); | 47 | extern int spl_get_boot_option(void); |
48 | 48 | ||
49 | /* Do any setup/initialization needed for the given boot option, this | ||
50 | * will be called right before flushing caches + jumping to the image. | ||
51 | * Typical use is to set up system clocks, etc. | ||
52 | */ | ||
53 | extern void spl_handle_pre_boot(int bootopt); | ||
54 | |||
49 | #endif /* __SPL_X1000_H__ */ | 55 | #endif /* __SPL_X1000_H__ */ |