status_led: Kconfig migration
[platform/kernel/u-boot.git] / board / corscience / tricorder / tricorder.c
index 2dfcb27..e8260c6 100644 (file)
@@ -79,6 +79,8 @@ static void get_eeprom(struct tricorder_eeprom *eeprom)
                } else {
                        panic("Could not get board revision\n");
                }
+       } else {
+               memset(eeprom, 0, TRICORDER_EEPROM_SIZE);
        }
 }
 
@@ -118,11 +120,11 @@ int misc_init_r(void)
        print_hwversion(&eeprom);
 
        twl4030_power_init();
-       status_led_set(0, STATUS_LED_ON);
-       status_led_set(1, STATUS_LED_ON);
-       status_led_set(2, STATUS_LED_ON);
+       status_led_set(0, CONFIG_LED_STATUS_ON);
+       status_led_set(1, CONFIG_LED_STATUS_ON);
+       status_led_set(2, CONFIG_LED_STATUS_ON);
 
-       dieid_num_r();
+       omap_die_id_display();
 
        return 0;
 }
@@ -145,6 +147,13 @@ int board_mmc_init(bd_t *bis)
 }
 #endif
 
+#if defined(CONFIG_GENERIC_MMC)
+void board_mmc_power_init(void)
+{
+       twl4030_power_mmc_init(0);
+}
+#endif
+
 /*
  * Routine: get_board_mem_timings
  * Description: If we use SPL then there is no x-loader nor config header