summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config-h120.h5
-rw-r--r--firmware/export/eeprom_settings.h13
-rw-r--r--firmware/export/system.h4
3 files changed, 17 insertions, 5 deletions
diff --git a/firmware/export/config-h120.h b/firmware/export/config-h120.h
index ee3d70236a..9bfb9583dd 100644
--- a/firmware/export/config-h120.h
+++ b/firmware/export/config-h120.h
@@ -139,8 +139,9 @@
139#define BOOTFILE "rockbox." BOOTFILE_EXT 139#define BOOTFILE "rockbox." BOOTFILE_EXT
140 140
141#define BOOTLOADER_ENTRYPOINT 0x001F0000 141#define BOOTLOADER_ENTRYPOINT 0x001F0000
142#define FLASH_ENTRYPOINT 0x00001000 142#define FLASH_RAMIMAGE_ENTRY 0x00001000
143#define FLASH_MAGIC 0xfbfbfbf1 143#define FLASH_ROMIMAGE_ENTRY 0x00100000
144#define FLASH_MAGIC 0xfbfbfbf2
144 145
145/* Define this if there is an EEPROM chip */ 146/* Define this if there is an EEPROM chip */
146#define HAVE_EEPROM 147#define HAVE_EEPROM
diff --git a/firmware/export/eeprom_settings.h b/firmware/export/eeprom_settings.h
index 367e7b24e9..aade86bc0d 100644
--- a/firmware/export/eeprom_settings.h
+++ b/firmware/export/eeprom_settings.h
@@ -23,17 +23,26 @@
23#include <stdbool.h> 23#include <stdbool.h>
24#include "inttypes.h" 24#include "inttypes.h"
25 25
26#define EEPROM_SETTINGS_VERSION 0x24c01001 26#define EEPROM_SETTINGS_VERSION 0x24c01002
27#define EEPROM_SETTINGS_BL_MINVER 7 27#define EEPROM_SETTINGS_BL_MINVER 7
28 28
29enum boot_methods {
30 BOOT_DISK = 0,
31 BOOT_RAM,
32 BOOT_ROM,
33 BOOT_RECOVERY,
34};
35
29struct eeprom_settings 36struct eeprom_settings
30{ 37{
31 long version; /* Settings version number */ 38 long version; /* Settings version number */
32 bool initialized; /* Is eeprom_settings ready to be used */ 39 bool initialized; /* Is eeprom_settings ready to be used */
33 bool disk_clean; /* Is disk intact from last reboot */ 40 bool disk_clean; /* Is disk intact from last reboot */
34 bool boot_disk; /* Load firmware from disk (default=FLASH) */ 41 uint8_t bootmethod; /* The default boot method. */
35 uint8_t bl_version; /* Installed bootloader version */ 42 uint8_t bl_version; /* Installed bootloader version */
36 43
44 long reserved; /* A few reserved bits for the future. */
45
37 /* This must be the last entry */ 46 /* This must be the last entry */
38 uint32_t checksum; /* Checksum of this structure */ 47 uint32_t checksum; /* Checksum of this structure */
39}; 48};
diff --git a/firmware/export/system.h b/firmware/export/system.h
index 94922871b6..86bbefb28f 100644
--- a/firmware/export/system.h
+++ b/firmware/export/system.h
@@ -52,7 +52,9 @@ struct flash_header {
52 char version[32]; 52 char version[32];
53}; 53};
54 54
55bool detect_flashed_rockbox(void); 55bool detect_flashed_romimage(void);
56bool detect_flashed_ramimage(void);
57bool detect_original_firmware(void);
56 58
57#ifdef HAVE_ADJUSTABLE_CPU_FREQ 59#ifdef HAVE_ADJUSTABLE_CPU_FREQ
58#define FREQ cpu_frequency 60#define FREQ cpu_frequency