diff options
author | Kefeng Wang <wangkefeng.wang@huawei.com> | 2016-10-18 12:52:59 +0800 |
---|---|---|
committer | Graeme Gregory <graeme.gregory@linaro.org> | 2017-06-06 10:00:43 +0100 |
commit | aa6a05a8e11dc75328502e98204f6ea7ff597ada (patch) | |
tree | 47252f57d1959ba7491d7fdac8f1b958307f44c5 | |
parent | c1ac72840a9ce3a497b11dcd27d81cc2ed4c0651 (diff) | |
download | leg-kernel-aa6a05a8e11dc75328502e98204f6ea7ff597ada.tar.gz |
bus: hisi_lpc: add ACPI support
Here is an example to show how to describe lpc node in DSDT.
Device (LPC0) {
Name(_HID, "HISI0191") // HiSi LPC
Name (_CRS, ResourceTemplate () {
Memory32Fixed (ReadWrite, 0xa01b0000, 0x1000)
})
}
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Xinliang Liu <xinliang.liu@linaro.org>
-rw-r--r-- | drivers/bus/hisi_lpc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/bus/hisi_lpc.c b/drivers/bus/hisi_lpc.c index 501a36148d55..2c85951f9f69 100644 --- a/drivers/bus/hisi_lpc.c +++ b/drivers/bus/hisi_lpc.c @@ -1,3 +1,4 @@ +#include <linux/acpi.h> #include <linux/errno.h> #include <linux/delay.h> #include <linux/io.h> @@ -180,10 +181,16 @@ static const struct of_device_id lpc_pltfm_match[] = { {}, }; +static const struct acpi_device_id lpc_acpi_match[] = { + { "HISI0191", }, + {}, +}; + static struct platform_driver lpc_driver = { .driver = { .name = "LPC", .of_match_table = lpc_pltfm_match, + .acpi_match_table = lpc_acpi_match, }, .probe = lpc_probe, }; |