提交 92b5bf98 编写于 作者: F Feng Kan 提交者: Tejun Heo

sata: xgene: add ACPI support for APM X-Gene SATA ports

This adds ACPI support for the APM X-Gene SATA ports. When the system
boots using ACPI table, the SATA ports are able to configure using the
values supplied by the ACPI table rather than the DTS.
Signed-off-by: NFeng Kan <fkan@apm.com>
Reviewed-by: NHanjun Guo <hanjun.guo@linaro.org>
Reviewed-by: NMika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: NTejun Heo <tj@kernel.org>
上级 3661aa99
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
* NOTE: PM support is not currently available. * NOTE: PM support is not currently available.
* *
*/ */
#include <linux/acpi.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/ahci_platform.h> #include <linux/ahci_platform.h>
...@@ -718,6 +719,14 @@ static int xgene_ahci_probe(struct platform_device *pdev) ...@@ -718,6 +719,14 @@ static int xgene_ahci_probe(struct platform_device *pdev)
return rc; return rc;
} }
#ifdef CONFIG_ACPI
static const struct acpi_device_id xgene_ahci_acpi_match[] = {
{ "APMC0D0D", },
{ }
};
MODULE_DEVICE_TABLE(acpi, xgene_ahci_acpi_match);
#endif
static const struct of_device_id xgene_ahci_of_match[] = { static const struct of_device_id xgene_ahci_of_match[] = {
{.compatible = "apm,xgene-ahci"}, {.compatible = "apm,xgene-ahci"},
{}, {},
...@@ -730,6 +739,7 @@ static struct platform_driver xgene_ahci_driver = { ...@@ -730,6 +739,7 @@ static struct platform_driver xgene_ahci_driver = {
.driver = { .driver = {
.name = DRV_NAME, .name = DRV_NAME,
.of_match_table = xgene_ahci_of_match, .of_match_table = xgene_ahci_of_match,
.acpi_match_table = ACPI_PTR(xgene_ahci_acpi_match),
}, },
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册