From 60b1bc678220f781fdd170f980b8ceddc1354f55 Mon Sep 17 00:00:00 2001 From: mojifeng Date: Wed, 21 Feb 2024 16:09:42 +0800 Subject: [PATCH] add nnrt device info Change-Id: I3ac51d34d258a654c228d8742979ebde10ad2a74 --- laphone/config.json | 4 ++++ laphone/hdf_config/uhdf/device_info.hcs | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/laphone/config.json b/laphone/config.json index d976482..471855d 100755 --- a/laphone/config.json +++ b/laphone/config.json @@ -47,6 +47,10 @@ { "component": "drivers_peripheral_ril", "features":[] + }, + { + "component": "drivers_peripheral_nnrt", + "features":[] } ] }, diff --git a/laphone/hdf_config/uhdf/device_info.hcs b/laphone/hdf_config/uhdf/device_info.hcs index 74962d0..72d5990 100644 --- a/laphone/hdf_config/uhdf/device_info.hcs +++ b/laphone/hdf_config/uhdf/device_info.hcs @@ -511,5 +511,21 @@ } } } + + nnrt :: host { + hostName = "nnrt_host"; + priority = 50; + uid = ""; + gid = ""; + caps = ["DAC_OVERRIDE", "DAC_READ_SEARCH"]; + nnrt_device :: device { + device0 :: deviceNode { + policy = 2; + priority = 100; + moduleName = "libnnrt_driver.z.so"; + serviceName = "nnrt_device_service"; + } + } + } } } -- Gitee