mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
arm: mvebu: sata_mv: Add bootstd hook to enable sata_bootdev
Add hook in sata_mv probe to enable bootstd bootdev. Note: bootdev_setup_for_sibling_blk() invocation is a noop if bootsd is not enabled for ahci sata yet. Signed-off-by: Tony Dinh <mibodhi@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
b3f559a147
commit
19acf771c6
1 changed files with 7 additions and 1 deletions
|
@ -34,6 +34,7 @@
|
|||
#include <common.h>
|
||||
#include <ahci.h>
|
||||
#include <blk.h>
|
||||
#include <bootdev.h>
|
||||
#include <cpu_func.h>
|
||||
#include <dm.h>
|
||||
#include <log.h>
|
||||
|
@ -1105,6 +1106,12 @@ static int sata_mv_probe(struct udevice *dev)
|
|||
/* TODO: undo create */
|
||||
continue;
|
||||
|
||||
ret = bootdev_setup_for_sibling_blk(blk, "sata_bootdev");
|
||||
if (ret) {
|
||||
printf("%s: Failed to create bootdev\n", __func__);
|
||||
continue;
|
||||
}
|
||||
|
||||
/* If we got here, the current SATA port was probed
|
||||
* successfully, so set the probe status to successful.
|
||||
*/
|
||||
|
@ -1117,7 +1124,6 @@ static int sata_mv_probe(struct udevice *dev)
|
|||
static int sata_mv_scan(struct udevice *dev)
|
||||
{
|
||||
/* Nothing to do here */
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue