From d56964cc2b52bb4cbcc3770d1c8ce270eaf64f9d Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Fri, 4 Mar 2022 17:37:40 +0000 Subject: 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 --- firmware/target/mips/ingenic_x1000/boot-x1000.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'firmware/target/mips/ingenic_x1000/boot-x1000.h') 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, void* load, void* entry, const char* args) __attribute__((section(".icode"))); +/* dual boot support code */ +void x1000_dualboot_cleanup(void); +void x1000_dualboot_init_clocktree(void); +void x1000_dualboot_init_uart2(void); +int x1000_dualboot_load_pdma_fw(void); + /* Note: these functions are inlined to minimize SPL code size. * They are private to the X1000 early boot code anyway... */ -- cgit v1.2.3