From 3f26fcf34001197ed267fa1ad549095aae49c88e Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Tue, 11 May 2021 13:28:43 +0100 Subject: FiiO M3K: New bootloader SPL and UCL-compressed bootloader are now packed into one output, bootloader.m3k, eliminating the separate SPL build phase. The Rockbox bootloader now has a recovery menu, accessible by holding VOL+ when booting, that lets you back up, restore, and update the bootloader from the device. Change-Id: I642c6e5fb83587a013ab2fbfd1adab439561ced2 --- firmware/target/mips/ingenic_x1000/nand-x1000.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'firmware/target/mips/ingenic_x1000/nand-x1000.h') diff --git a/firmware/target/mips/ingenic_x1000/nand-x1000.h b/firmware/target/mips/ingenic_x1000/nand-x1000.h index 6c415b1170..f5db0bbfa5 100644 --- a/firmware/target/mips/ingenic_x1000/nand-x1000.h +++ b/firmware/target/mips/ingenic_x1000/nand-x1000.h @@ -36,7 +36,14 @@ #include #include #include -#include "nand-x1000-err.h" + +/* Error codes which can be returned by the NAND API */ +#define NAND_SUCCESS 0 +#define NAND_ERR_UNKNOWN_CHIP (-1) +#define NAND_ERR_UNALIGNED (-2) +#define NAND_ERR_WRITE_PROTECT (-3) +#define NAND_ERR_CONTROLLER (-4) +#define NAND_ERR_COMMAND (-5) /* Chip supports quad I/O for page read/write */ #define NANDCHIP_FLAG_QUAD 0x01 -- cgit v1.2.3