mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-20 15:48:14 +01: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 commit c8ffd1356d42223cbb8c86280a083cc3c93e6426, reversing changes made to 2ee6f3a5f7550de3599faef9704e166e5dcace35. Reported-by: Jonas Karlman <jonas@kwiboo.se> Signed-off-by: Tom Rini <trini@konsulko.com>
46 lines
829 B
C
46 lines
829 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright (C) 2023 tinylab.org
|
|
* Author: Bin Meng <bmeng@tinylab.org>
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <dm.h>
|
|
#include <errno.h>
|
|
#include <pci.h>
|
|
#include <ufs.h>
|
|
#include <dm/device_compat.h>
|
|
#include "ufs.h"
|
|
|
|
static int ufs_pci_bind(struct udevice *dev)
|
|
{
|
|
struct udevice *scsi_dev;
|
|
|
|
return ufs_scsi_bind(dev, &scsi_dev);
|
|
}
|
|
|
|
static int ufs_pci_probe(struct udevice *dev)
|
|
{
|
|
int err;
|
|
|
|
err = ufshcd_probe(dev, NULL);
|
|
if (err)
|
|
dev_err(dev, "%s failed (ret=%d)\n", __func__, err);
|
|
|
|
return err;
|
|
}
|
|
|
|
U_BOOT_DRIVER(ufs_pci) = {
|
|
.name = "ufs_pci",
|
|
.id = UCLASS_UFS,
|
|
.bind = ufs_pci_bind,
|
|
.probe = ufs_pci_probe,
|
|
};
|
|
|
|
static struct pci_device_id ufs_supported[] = {
|
|
{ PCI_DEVICE(PCI_VENDOR_ID_REDHAT, PCI_DEVICE_ID_REDHAT_UFS) },
|
|
{},
|
|
};
|
|
|
|
U_BOOT_PCI_DEVICE(ufs_pci, ufs_supported);
|