From 87b2b6d88310b60a5c5fd19300db6fca83f964e4 Mon Sep 17 00:00:00 2001 From: liujiaxin25 Date: Fri, 12 Apr 2024 16:51:55 +0800 Subject: [PATCH] =?UTF-8?q?AI=E5=9F=BA=E7=A1=80=E8=83=BD=E5=8A=9B=EF=BC=9A?= =?UTF-8?q?=E6=96=B0=E5=A2=9Ennrt=20host=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- laphone/config.json | 4 ++++ laphone/hdf_config/uhdf/device_info.hcs | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) mode change 100755 => 100644 laphone/config.json diff --git a/laphone/config.json b/laphone/config.json old mode 100755 new mode 100644 index bb70bdf..f3997a1 --- 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 34aecdc..038e365 100644 --- a/laphone/hdf_config/uhdf/device_info.hcs +++ b/laphone/hdf_config/uhdf/device_info.hcs @@ -512,5 +512,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