1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2016 Stefan Roese <sr@denx.de>
11 * Dummy implementation that can be overwritten by a board
14 __weak int board_ahci_enable(void)
19 static int mvebu_ahci_bind(struct udevice *dev)
21 struct udevice *scsi_dev;
24 ret = ahci_bind_scsi(dev, &scsi_dev);
26 debug("%s: Failed to bind (err=%d\n)", __func__, ret);
33 static int mvebu_ahci_probe(struct udevice *dev)
36 * Board specific SATA / AHCI enable code, e.g. enable the
37 * AHCI power or deassert reset
41 ahci_probe_scsi(dev, (ulong)devfdt_get_addr_ptr(dev));
46 static const struct udevice_id mvebu_ahci_ids[] = {
47 { .compatible = "marvell,armada-3700-ahci" },
48 { .compatible = "marvell,armada-8k-ahci" },
52 U_BOOT_DRIVER(ahci_mvebu_drv) = {
55 .of_match = mvebu_ahci_ids,
56 .bind = mvebu_ahci_bind,
57 .probe = mvebu_ahci_probe,