diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-03-04 17:37:40 +0000 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-03-12 18:25:10 +0000 |
commit | d56964cc2b52bb4cbcc3770d1c8ce270eaf64f9d (patch) | |
tree | cac2f9c3757b1ff3b56eb1d50bae706ba99ddd5d /firmware/target/mips/ingenic_x1000/boot-x1000.h | |
parent | a87f93d8ffc6cf224947e88aee9cb912b8ec6f50 (diff) | |
download | rockbox-d56964cc2b52bb4cbcc3770d1c8ce270eaf64f9d.tar.gz rockbox-d56964cc2b52bb4cbcc3770d1c8ce270eaf64f9d.zip |
x1000: add dual boot helpers for the main bootloader
Two helpers (_init_clocktree and _init_uart2) already existed in
the SPL and are copied verbatim from there. The SPL versions are
still present and will be removed when dual boot works from the
main bootloader.
The other two helpers (_cleanup and _load_pdma_fw) are new.
Change-Id: I4661667966e26f52e6c5142f1947d2a34b7008ef
Diffstat (limited to 'firmware/target/mips/ingenic_x1000/boot-x1000.h')
-rw-r--r-- | firmware/target/mips/ingenic_x1000/boot-x1000.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/target/mips/ingenic_x1000/boot-x1000.h b/firmware/target/mips/ingenic_x1000/boot-x1000.h index 9faba649b5..fa918a3ead 100644 --- a/firmware/target/mips/ingenic_x1000/boot-x1000.h +++ b/firmware/target/mips/ingenic_x1000/boot-x1000.h | |||
@@ -51,6 +51,12 @@ void x1000_boot_linux(const void* source, size_t length, | |||
51 | void* load, void* entry, const char* args) | 51 | void* load, void* entry, const char* args) |
52 | __attribute__((section(".icode"))); | 52 | __attribute__((section(".icode"))); |
53 | 53 | ||
54 | /* dual boot support code */ | ||
55 | void x1000_dualboot_cleanup(void); | ||
56 | void x1000_dualboot_init_clocktree(void); | ||
57 | void x1000_dualboot_init_uart2(void); | ||
58 | int x1000_dualboot_load_pdma_fw(void); | ||
59 | |||
54 | /* Note: these functions are inlined to minimize SPL code size. | 60 | /* Note: these functions are inlined to minimize SPL code size. |
55 | * They are private to the X1000 early boot code anyway... */ | 61 | * They are private to the X1000 early boot code anyway... */ |
56 | 62 | ||