2 * Copyright (C) 2016 Stefan Roese <sr@denx.de>
4 * SPDX-License-Identifier: GPL-2.0+
11 DECLARE_GLOBAL_DATA_PTR;
14 * Dummy implementation that can be overwritten by a board
17 __weak int board_ahci_enable(void)
22 #ifdef CONFIG_ARMADA_8K
23 /* CP110 has different AHCI port addresses */
24 void __iomem *ahci_port_base(void __iomem *base, u32 port)
26 return base + 0x10000 + (port * 0x10000);
30 static int mvebu_ahci_probe(struct udevice *dev)
33 * Board specific SATA / AHCI enable code, e.g. enable the
34 * AHCI power or deassert reset
38 ahci_init(dev_get_addr_ptr(dev));
43 static const struct udevice_id mvebu_ahci_ids[] = {
44 { .compatible = "marvell,armada-3700-ahci" },
45 { .compatible = "marvell,armada-8k-ahci" },
49 U_BOOT_DRIVER(ahci_mvebu_drv) = {
52 .of_match = mvebu_ahci_ids,
53 .probe = mvebu_ahci_probe,