| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * AHCI SATA platform driver |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 5 | 6 | * Jeff Garzik <jgarzik@pobox.com> |
|---|
| 6 | 7 | * Copyright 2010 MontaVista Software, LLC. |
|---|
| 7 | 8 | * 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. |
|---|
| 13 | 9 | */ |
|---|
| 14 | 10 | |
|---|
| 15 | 11 | #include <linux/kernel.h> |
|---|
| .. | .. |
|---|
| 66 | 62 | if (of_device_is_compatible(dev->of_node, "hisilicon,hisi-ahci")) |
|---|
| 67 | 63 | hpriv->flags |= AHCI_HFLAG_NO_FBS | AHCI_HFLAG_NO_NCQ; |
|---|
| 68 | 64 | |
|---|
| 65 | + if (of_device_is_compatible(dev->of_node, "rockchip,rk-ahci")) |
|---|
| 66 | + hpriv->flags |= AHCI_HFLAG_YES_FBS; |
|---|
| 67 | + |
|---|
| 69 | 68 | port = acpi_device_get_match_data(dev); |
|---|
| 70 | 69 | if (!port) |
|---|
| 71 | 70 | port = &ahci_port_info; |
|---|
| .. | .. |
|---|
| 92 | 91 | { .compatible = "snps,dwc-ahci", }, |
|---|
| 93 | 92 | { .compatible = "hisilicon,hisi-ahci", }, |
|---|
| 94 | 93 | { .compatible = "cavium,octeon-7130-ahci", }, |
|---|
| 94 | + { .compatible = "rockchip,rk-ahci", }, |
|---|
| 95 | 95 | {}, |
|---|
| 96 | 96 | }; |
|---|
| 97 | 97 | MODULE_DEVICE_TABLE(of, ahci_of_match); |
|---|