Merge branch 'master' of git://git.denx.de/u-boot-fdt
[oweals/u-boot.git] / common / spl / spl.c
index 1826c47a99c464bd0023f3c173cab788de49acb0..ded0f304786d275ad3818072ab7019e49a26ba6a 100644 (file)
@@ -228,10 +228,15 @@ void board_init_r(gd_t *dummy1, ulong dummy2)
        case BOOT_DEVICE_SATA:
                spl_sata_load_image();
                break;
+#endif
+#ifdef CONFIG_SPL_BOARD_LOAD_IMAGE
+       case BOOT_DEVICE_BOARD:
+               spl_board_load_image();
+               break;
 #endif
        default:
 #if defined(CONFIG_SPL_SERIAL_SUPPORT) && defined(CONFIG_SPL_LIBCOMMON_SUPPORT)
-               printf("SPL: Unsupported Boot Device %d\n", boot_device);
+               puts("SPL: Unsupported Boot Device!\n");
 #endif
                hang();
        }