]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - common/spl/spl.c
arm: spl: Provide for a board-specific loader
[karo-tx-uboot.git] / common / spl / spl.c
index 46447f4905216bb98748794d07752ea8c8121483..c294cc0f4b2d824f67a28c99c80036cf040395cd 100644 (file)
@@ -229,10 +229,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();
        }