From 87962b8ddff7c4aa4fc6671fedf9d097042b78c8 Mon Sep 17 00:00:00 2001 From: Chanwoo Choi Date: Mon, 8 Aug 2022 11:33:59 +0900 Subject: power-vim3: Add display/disk hal information Change-Id: I0214e0bb80e20d1ad948fdb83a5714c936151f09 Signed-off-by: Chanwoo Choi --- CMakeLists.txt | 3 ++- packaging/hal-backend-power-vim3.spec | 1 + scripts/pass-dummy.json | 14 ++++++++++++++ scripts/pass.json | 12 ++++++++++++ 4 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 scripts/pass-dummy.json diff --git a/CMakeLists.txt b/CMakeLists.txt index d99a943..f7b4e86 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,7 +34,8 @@ SET(CONF_FILES ${CMAKE_CURRENT_SOURCE_DIR}/scripts/pass-cpu2.json ${CMAKE_CURRENT_SOURCE_DIR}/scripts/pass-bus.json ${CMAKE_CURRENT_SOURCE_DIR}/scripts/pass-gpu.json - ${CMAKE_CURRENT_SOURCE_DIR}/scripts/pass-memory.json) + ${CMAKE_CURRENT_SOURCE_DIR}/scripts/pass-memory.json + ${CMAKE_CURRENT_SOURCE_DIR}/scripts/pass-dummy.json) INSTALL(FILES ${CONF_FILES} DESTINATION /hal/etc/pass) INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/scripts/pass-hal.conf DESTINATION /hal/lib/tmpfiles.d) INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/LICENSE DESTINATION ${HAL_LICENSEDIR}/${PROJECT_NAME}) diff --git a/packaging/hal-backend-power-vim3.spec b/packaging/hal-backend-power-vim3.spec index 3643dca..5b3a2ed 100644 --- a/packaging/hal-backend-power-vim3.spec +++ b/packaging/hal-backend-power-vim3.spec @@ -62,3 +62,4 @@ fi %config %{_hal_sysconfdir}/pass/pass-bus.json %config %{_hal_sysconfdir}/pass/pass-gpu.json %config %{_hal_sysconfdir}/pass/pass-memory.json +%config %{_hal_sysconfdir}/pass/pass-dummy.json diff --git a/scripts/pass-dummy.json b/scripts/pass-dummy.json new file mode 100644 index 0000000..e2c17ca --- /dev/null +++ b/scripts/pass-dummy.json @@ -0,0 +1,14 @@ +{ + "support" : false, + "init_level" : 0, + "level_list" : + [ + { + "level" : 0 + } + ], + + "pmqos_support" : false, + "thermal_support" : false, + "cpuhp_support" : false +} diff --git a/scripts/pass.json b/scripts/pass.json index 79c9216..8f702c6 100644 --- a/scripts/pass.json +++ b/scripts/pass.json @@ -31,6 +31,18 @@ "device_type" : "memory", "device_name" : "memory", "device_config_path" : "/hal/etc/pass/pass-memory.json" + }, { + "device_type" : "display", + "device_name" : "hdmi0", + "device_config_path" : "/hal/etc/pass/pass-dummy.json" + }, { + "device_type" : "disk", + "device_name" : "zram0", + "device_config_path" : "/hal/etc/pass/pass-dummy.json" + }, { + "device_type" : "disk", + "device_name" : "mmcblk0", + "device_config_path" : "/hal/etc/pass/pass-dummy.json" } ] } -- cgit v1.2.3