mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
FiiO M3K: Add dual boot support
Change-Id: Ic34d50855b317b5f4073b232dbf458edf82f55e1
This commit is contained in:
parent
89f4064743
commit
95408f2117
3 changed files with 148 additions and 78 deletions
|
|
@ -22,22 +22,14 @@
|
|||
#ifndef __SPL_X1000_H__
|
||||
#define __SPL_X1000_H__
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
struct spl_boot_option {
|
||||
uint32_t nand_addr;
|
||||
uint32_t nand_size;
|
||||
uint32_t load_addr;
|
||||
uint32_t exec_addr;
|
||||
const char* cmdline; /* for Linux */
|
||||
};
|
||||
|
||||
/* Defined by target, order is not important */
|
||||
extern const struct spl_boot_option spl_boot_options[];
|
||||
/* TODO: this needs some refactoring... */
|
||||
|
||||
/* Called on a fatal error */
|
||||
extern void spl_error(void) __attribute__((noreturn));
|
||||
|
||||
/* Called by SPL to handle a main boot */
|
||||
extern void spl_target_boot(void);
|
||||
|
||||
/* Invoked by SPL main routine to determine the boot option */
|
||||
extern int spl_get_boot_option(void);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue