hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/ata/ahci_platform.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * AHCI SATA platform driver
34 *
....@@ -5,11 +6,6 @@
56 * Jeff Garzik <jgarzik@pobox.com>
67 * Copyright 2010 MontaVista Software, LLC.
78 * Anton Vorontsov <avorontsov@ru.mvista.com>
8
- *
9
- * This program is free software; you can redistribute it and/or modify
10
- * it under the terms of the GNU General Public License as published by
11
- * the Free Software Foundation; either version 2, or (at your option)
12
- * any later version.
139 */
1410
1511 #include <linux/kernel.h>
....@@ -66,6 +62,9 @@
6662 if (of_device_is_compatible(dev->of_node, "hisilicon,hisi-ahci"))
6763 hpriv->flags |= AHCI_HFLAG_NO_FBS | AHCI_HFLAG_NO_NCQ;
6864
65
+ if (of_device_is_compatible(dev->of_node, "rockchip,rk-ahci"))
66
+ hpriv->flags |= AHCI_HFLAG_YES_FBS;
67
+
6968 port = acpi_device_get_match_data(dev);
7069 if (!port)
7170 port = &ahci_port_info;
....@@ -92,6 +91,7 @@
9291 { .compatible = "snps,dwc-ahci", },
9392 { .compatible = "hisilicon,hisi-ahci", },
9493 { .compatible = "cavium,octeon-7130-ahci", },
94
+ { .compatible = "rockchip,rk-ahci", },
9595 {},
9696 };
9797 MODULE_DEVICE_TABLE(of, ahci_of_match);