2 * Copyright (C) 2016 Stefan Roese <sr@denx.de>
4 * SPDX-License-Identifier: GPL-2.0+
12 * Dummy implementation that can be overwritten by a board
15 __weak int board_ahci_enable(void)
20 #ifdef CONFIG_ARMADA_8K
21 /* CP110 has different AHCI port addresses */
22 void __iomem *ahci_port_base(void __iomem *base, u32 port)
24 return base + 0x10000 + (port * 0x10000);
28 static int mvebu_ahci_probe(struct udevice *dev)
31 * Board specific SATA / AHCI enable code, e.g. enable the
32 * AHCI power or deassert reset
36 ahci_init(devfdt_get_addr_ptr(dev));
41 static const struct udevice_id mvebu_ahci_ids[] = {
42 { .compatible = "marvell,armada-3700-ahci" },
43 { .compatible = "marvell,armada-8k-ahci" },
47 U_BOOT_DRIVER(ahci_mvebu_drv) = {
50 .of_match = mvebu_ahci_ids,
51 .probe = mvebu_ahci_probe,