forked from len0rd/rockbox
eeprom driver for the h3x0 series, cleaned up the h1x0 series driver a bit, added debug entry for h3x0 that allows to write to the eeprom
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10597 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
98c9f959e5
commit
c4a59a290b
14 changed files with 132 additions and 50 deletions
|
|
@ -120,7 +120,7 @@ int init_dircache(bool preinit)
|
|||
|
||||
if (global_settings.dircache)
|
||||
{
|
||||
# ifdef HAVE_EEPROM
|
||||
# ifdef HAVE_EEPROM_SETTINGS
|
||||
if (firmware_settings.initialized && firmware_settings.disk_clean
|
||||
&& preinit)
|
||||
{
|
||||
|
|
@ -371,14 +371,14 @@ void init(void)
|
|||
panicf("ata: %d", rc);
|
||||
}
|
||||
|
||||
#ifdef HAVE_EEPROM
|
||||
#ifdef HAVE_EEPROM_SETTINGS
|
||||
eeprom_settings_init();
|
||||
#endif
|
||||
|
||||
usb_start_monitoring();
|
||||
while (usb_detect())
|
||||
{
|
||||
#ifdef HAVE_EEPROM
|
||||
#ifdef HAVE_EEPROM_SETTINGS
|
||||
firmware_settings.disk_clean = false;
|
||||
#endif
|
||||
/* enter USB mode early, before trying to mount */
|
||||
|
|
@ -444,7 +444,7 @@ void init(void)
|
|||
init_dircache(false);
|
||||
init_tagcache();
|
||||
|
||||
#ifdef HAVE_EEPROM
|
||||
#ifdef HAVE_EEPROM_SETTINGS
|
||||
if (firmware_settings.initialized)
|
||||
{
|
||||
/* In case we crash. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue