From dc3b0e19c99c2216e1f72bb7d072bb44f4d7d716 Mon Sep 17 00:00:00 2001 From: liupingwei Date: Sat, 8 Feb 2025 16:17:27 +0800 Subject: [PATCH] add kae support for uefi boot Signed-off-by: liupingwei --- kae_driver/plat_hpre_main.c | 6 ++++++ kae_driver/plat_sec_main.c | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/kae_driver/plat_hpre_main.c b/kae_driver/plat_hpre_main.c index 9e49a51..888bf22 100644 --- a/kae_driver/plat_hpre_main.c +++ b/kae_driver/plat_hpre_main.c @@ -83,12 +83,18 @@ static struct of_device_id hisi_hpre_dt_ids[] = { { }, }; +static struct acpi_device_id hisi_hpre_acpi_match[] = { + {"HPRE07", 0}, + { }, +}; + static struct platform_driver hpre_driver = { .probe = hpre_probe, .remove = hpre_remove, .driver = { .name = "hisi_plat_hpre", .of_match_table = hisi_hpre_dt_ids, + .acpi_match_table = hisi_hpre_acpi_match, } }; diff --git a/kae_driver/plat_sec_main.c b/kae_driver/plat_sec_main.c index 00eaead..d9f1c3b 100644 --- a/kae_driver/plat_sec_main.c +++ b/kae_driver/plat_sec_main.c @@ -86,12 +86,18 @@ static struct of_device_id hisi_sec_dt_ids[] = { { /* sentinel */ }, }; +static struct acpi_device_id hisi_sec_acpi_match[] = { + {"SEC07", 0}, + { }, +}; + static struct platform_driver sec_driver = { .probe = sec_probe, .remove = sec_remove, .driver = { .name = "hisi_plat_sec", .of_match_table = hisi_sec_dt_ids, + .acpi_match_table = hisi_sec_acpi_match, } }; -- Gitee