firmware: move iriver flash helper functions into target tree

Move the iriver-specific functions for detecting flashed
Rockbox/OF images into system-iriver.c and remove the
HAVE_FLASHED_ROCKBOX define which is now redundant (all
targets using system-iriver.c enable it).

Copyright attribution on the new system-iriver.h header
is a best guess from Git history.

Change-Id: If1933f881a63fd517162ab9ca8f4a3007b997739
This commit is contained in:
Aidan MacDonald 2026-09-08 11:22:42 +01:00 • committed by Solomon Peachy
parent 190822f261
commit c6abf3382a
12 changed files with 74 additions and 62 deletions

View file

@ -40,16 +40,6 @@ extern void system_init(void);
extern long cpu_frequency;
struct flash_header {
uint32_t magic;
uint32_t length;
char version[32];
};
bool detect_flashed_romimage(void);
bool detect_flashed_ramimage(void);
bool detect_original_firmware(void);
#if defined(HAVE_ADJUSTABLE_CPU_FREQ) \
&& defined(ROCKBOX_HAS_LOGF) && (NUM_CORES == 1)
#define CPU_BOOST_LOGGING