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
diff --git a/bootloader/main.c b/bootloader/main.c
index 0b05827..7c2b125 100644
--- a/bootloader/main.c
+++ b/bootloader/main.c
@@ -357,7 +357,7 @@
         power_off();
     }
 
-#ifdef HAVE_EEPROM
+#ifdef HAVE_EEPROM_SETTINGS
     firmware_settings.initialized = false;
 #endif
     if (detect_flashed_rockbox())
@@ -365,7 +365,7 @@
         bool load_from_flash;
         
         load_from_flash = !rec_button;
-#ifdef HAVE_EEPROM
+#ifdef HAVE_EEPROM_SETTINGS
         if (eeprom_settings_init())
         {
             /* If bootloader version has not been reset, disk might
@@ -389,7 +389,7 @@
             lcd_update();
             if (i == 0)
             {
-#ifdef HAVE_EEPROM
+#ifdef HAVE_EEPROM_SETTINGS
                 eeprom_settings_store();
 #endif
                 start_firmware();
@@ -457,7 +457,7 @@
         sleep(HZ);
 #endif
     
-#ifdef HAVE_EEPROM
+#ifdef HAVE_EEPROM_SETTINGS
         if (firmware_settings.initialized)
         {
             firmware_settings.disk_clean = false;
@@ -503,7 +503,7 @@
     printf("Result: %d", i);
     lcd_update();
 
-#ifdef HAVE_EEPROM
+#ifdef HAVE_EEPROM_SETTINGS
     if (firmware_settings.initialized)
         eeprom_settings_store();
 #endif