From 40e23d12017ba8aa40bb15c9214cd7ac531a159e Mon Sep 17 00:00:00 2001 From: Davide Grohmann Date: Thu, 17 Jun 2021 09:59:40 +0200 Subject: Do not expose device specific hw config in capabilities Change-Id: Ia90e2d74c3e071c6e3de381cfada9a5a155d7529 --- driver_library/include/ethosu.hpp | 10 ++-------- driver_library/src/ethosu.cpp | 5 +---- 2 files changed, 3 insertions(+), 12 deletions(-) (limited to 'driver_library') diff --git a/driver_library/include/ethosu.hpp b/driver_library/include/ethosu.hpp index d3f7421..d70ec95 100644 --- a/driver_library/include/ethosu.hpp +++ b/driver_library/include/ethosu.hpp @@ -98,21 +98,15 @@ public: * Hardware Configuration * @macsPerClockCycle: MACs per clock cycle * @cmdStreamVersion: NPU command stream version - * @shramSize: SHRAM size * @customDma: Custom DMA enabled */ struct HardwareConfiguration { public: - HardwareConfiguration(uint32_t _macsPerClockCycle, - uint32_t _cmdStreamVersion, - uint32_t _shramSize, - bool _customDma) : - macsPerClockCycle(_macsPerClockCycle), - cmdStreamVersion(_cmdStreamVersion), shramSize(_shramSize), customDma(_customDma) {} + HardwareConfiguration(uint32_t _macsPerClockCycle, uint32_t _cmdStreamVersion, bool _customDma) : + macsPerClockCycle(_macsPerClockCycle), cmdStreamVersion(_cmdStreamVersion), customDma(_customDma) {} uint32_t macsPerClockCycle; uint32_t cmdStreamVersion; - uint32_t shramSize; bool customDma; }; diff --git a/driver_library/src/ethosu.cpp b/driver_library/src/ethosu.cpp index ea1f7f4..997e12a 100644 --- a/driver_library/src/ethosu.cpp +++ b/driver_library/src/ethosu.cpp @@ -176,10 +176,7 @@ Capabilities Device::capabilities() { SemanticVersion(uapi.hw_id.version_major, uapi.hw_id.version_minor), SemanticVersion(uapi.hw_id.product_major), SemanticVersion(uapi.hw_id.arch_major_rev, uapi.hw_id.arch_minor_rev, uapi.hw_id.arch_patch_rev)), - HardwareConfiguration(uapi.hw_cfg.macs_per_cc, - uapi.hw_cfg.cmd_stream_version, - uapi.hw_cfg.shram_size, - bool(uapi.hw_cfg.custom_dma)), + HardwareConfiguration(uapi.hw_cfg.macs_per_cc, uapi.hw_cfg.cmd_stream_version, bool(uapi.hw_cfg.custom_dma)), SemanticVersion(uapi.driver_major_rev, uapi.driver_minor_rev, uapi.driver_patch_rev)); return capabilities; } -- cgit v1.2.1