kernel/0165-feat-npu-drv-need-add-autoload.patch

29 lines
849 B
Diff
Raw Permalink Normal View History

2025-01-03 03:30:57 +00:00
From 9e94458a57f575a9b85dc82824170e074afb92b1 Mon Sep 17 00:00:00 2001
2024-12-15 18:29:23 +00:00
From: donghuawei <donghuawei@eswincomputing.com>
Date: Wed, 4 Sep 2024 15:53:40 +0800
2024-12-27 22:35:16 +00:00
Subject: [PATCH 165/222] feat:npu drv need add autoload
2024-12-15 18:29:23 +00:00
Changelogs:
npu driver need autoload after system boot.
Signed-off-by: donghuawei <donghuawei@eswincomputing.com>
---
drivers/soc/eswin/ai_driver/npu/npu_main.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/soc/eswin/ai_driver/npu/npu_main.c b/drivers/soc/eswin/ai_driver/npu/npu_main.c
index a5455fcffd01..d045a32b5b59 100644
--- a/drivers/soc/eswin/ai_driver/npu/npu_main.c
+++ b/drivers/soc/eswin/ai_driver/npu/npu_main.c
@@ -247,6 +247,7 @@ static const struct of_device_id edla_of_match[] = {
},
{},
};
+MODULE_DEVICE_TABLE(of, edla_of_match);
void *npu_get_win_engine(void *arg_nvdla_dev)
{
--
2.47.0