mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-08-10 01:06:59 +02:00
When bringing in the series 'arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"' I failed to notice that b4 noticed it was based on next and so took that as the base commit and merged that part of next to master. This reverts commitc8ffd1356d
, reversing changes made to2ee6f3a5f7
. Reported-by: Jonas Karlman <jonas@kwiboo.se> Signed-off-by: Tom Rini <trini@konsulko.com>
28 lines
556 B
C
28 lines
556 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright (C) 2023
|
|
* Ventana Micro Systems Inc.
|
|
*
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <spl.h>
|
|
#include <nvme.h>
|
|
|
|
static int spl_nvme_load_image(struct spl_image_info *spl_image,
|
|
struct spl_boot_device *bootdev)
|
|
{
|
|
int ret;
|
|
|
|
ret = nvme_scan_namespace();
|
|
if (ret < 0)
|
|
return ret;
|
|
|
|
ret = spl_blk_load_image(spl_image, bootdev, UCLASS_NVME,
|
|
CONFIG_SPL_NVME_BOOT_DEVICE,
|
|
CONFIG_SYS_NVME_BOOT_PARTITION);
|
|
return ret;
|
|
}
|
|
|
|
SPL_LOAD_IMAGE_METHOD("NVME", 0, BOOT_DEVICE_NVME, spl_nvme_load_image);
|